/* SƏTİR6 — sayt stilləri. Bütün rənglər tokens.css-dəki tokenlərdən gəlir. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.55; background: var(--canvas); color: var(--ink); min-height: 100vh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--blue); color: var(--on-color); padding: 10px 14px; border-radius: var(--radius-link); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Səhifə çərçivəsi ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px; }
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: var(--space-18); margin-bottom: 22px; }
.logo { display: inline-flex; align-items: center; height: 64px; padding: 0 28px 0 max(16px, env(safe-area-inset-left, 0px)); margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); background: var(--blue); color: var(--on-color); border-radius: 0 0 var(--radius-logo) 0; text-decoration: none; font-size: 30px; font-weight: 500; letter-spacing: 3px; box-shadow: var(--shadow-highlight); }
.logo sup { font-size: 10px; margin-left: 2px; letter-spacing: 0; }
.topbar-mid { display: flex; justify-content: center; padding-top: 12px; min-width: 0; }
.topbar-end { display: flex; align-items: center; gap: var(--space-12); padding-top: 18px; }

/* NavPill */
.nav { display: inline-flex; align-items: center; gap: 2px; height: var(--size-nav); padding: var(--space-5); border-radius: var(--radius-nav); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-count { padding: 0 var(--space-12) 0 var(--space-6); font-size: 12px; font-weight: 700; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-count small { font-size: 9.5px; font-weight: 600; color: var(--ink-subtle); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: var(--size-link); padding: 0 var(--space-12); border-radius: var(--radius-link); color: var(--ink-subtle); font-size: 12px; font-weight: 600; letter-spacing: 0.84px; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color .15s, background-color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--blue); color: var(--on-color); }
.nav-link .ico { display: none; }
.icon-btn { width: var(--size-link); height: var(--size-link); display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }

/* Dil seçicisi: AZ | TR | EN */
.langs { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .8px; }
.langs button { border: 0; background: none; padding: 6px 6px; border-radius: var(--radius-sm); color: var(--ink-subtle); cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--blue); }
.langs button:hover { color: var(--ink); }
.langs span { color: var(--line-strong); }

/* Vərəq və InfoBand */
.sheet { background: var(--sheet); border-radius: var(--radius-folder); box-shadow: var(--shadow-float); overflow: hidden; }
.band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-18); min-height: 34px; padding: 0 var(--space-28); background: var(--green); color: var(--on-color); font-size: 10.5px; font-weight: 700; letter-spacing: 1.26px; text-transform: uppercase; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.band a, .band button { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; background: none; border: 0; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; cursor: pointer; transition: background .2s, transform .2s; }
.band a:hover, .band button:hover { background: rgba(0,0,0,.14); }
.band a:active, .band button:active { transform: translateY(1px); }
.band a:focus-visible, .band button:focus-visible { outline: 2px solid var(--on-color); outline-offset: 1px; }
.band [aria-current="page"], .band button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.band-langs { display: inline-flex; align-items: center; gap: 2px; }
.band-langs i { font-style: normal; opacity: .8; padding: 0 2px; }
.band-langs button { margin: 0; padding: 4px 5px; }
.about { display: grid; gap: 14px; max-width: 520px; padding: 26px; border-radius: var(--radius-tab); background: var(--sheet); color: var(--ink); }
.about ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.about .btn { justify-self: start; }
.sheet-body { padding: 28px var(--space-28) 40px; display: grid; gap: 44px; }
.view { min-height: 50vh; display: grid; gap: 48px; align-content: start; }
.view > * { min-width: 0; }

/* ---------- Tipoqrafiya ---------- */
.kicker { font-size: 10.5px; font-weight: 600; letter-spacing: 1.26px; text-transform: uppercase; color: var(--ink-subtle); }
.display-xl { font-size: clamp(56px, 13vw, 150px); line-height: .9; font-weight: 500; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); margin: 0; user-select: none; }
.display-lg { font-size: clamp(32px, 5.4vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: .02em; }
.display-lg em, .section-title em { font-style: normal; color: var(--blue); }
.section-title { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: .01em; }
.lede { font-size: 15px; color: var(--ink-muted); max-width: 60ch; }
.meta { font-size: 12px; font-weight: 600; letter-spacing: .96px; text-transform: uppercase; color: var(--ink-subtle); }
.muted { color: var(--ink-muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin-top: 6px; }

/* ---------- Düymələr ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 18px; border-radius: var(--radius-tab); border: 1px solid var(--line-strong); background: var(--sheet); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .3px; cursor: pointer; text-decoration: none; transition: transform .15s ease-out, background-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--on-color); box-shadow: var(--shadow-highlight); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--blue); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.namepill { display: inline-flex; align-items: center; gap: var(--space-12); height: var(--size-pill); padding: 0 var(--space-6) 0 var(--space-18); border: 0; border-radius: var(--radius-tab); background: var(--blue); color: var(--on-color); font-size: 16px; font-weight: 600; letter-spacing: .6px; cursor: pointer; box-shadow: var(--shadow-highlight); text-decoration: none; white-space: nowrap; }
.namepill-demo { margin-left: calc(var(--space-6) * -1); padding: 2px 8px; border-radius: var(--radius-pill); background: var(--on-color-veil); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.namepill-demo[hidden] { display: none; }
.namepill-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-chip-btn); background: var(--on-color-veil); }
.namepill-btn svg { width: 14px; height: 14px; }

/* Etiketlər */
.chip { display: inline-flex; align-items: center; height: var(--size-chip); padding: 0 var(--space-6); border: 1px solid currentColor; border-radius: var(--radius-pill); font-size: 9.5px; font-weight: 600; letter-spacing: .38px; line-height: 1; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--canvas); color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.tag-blue { background: var(--blue); color: var(--on-color); }
.tag-butter { background: var(--butter); color: var(--on-butter); }
.tag-orange { background: var(--orange); color: var(--on-color); }
.bracket { color: var(--blue); text-decoration: none; font-size: 13px; }
.bracket:hover { text-decoration: underline; text-underline-offset: 3px; }
.brackets { display: flex; flex-wrap: wrap; gap: 8px 16px; }
/* Toxunma ekranlarında kiçik keçidlərin basılma sahəsi böyüdülür (görünüş eyni qalır) */
@media (pointer: coarse), (max-width: 640px) {
  .band { min-height: 44px; }
  .band a, .band button, .band-langs button { display: inline-flex; align-items: center; min-height: 40px; flex-shrink: 0; }
  .brackets { gap: 4px 12px; }
  .bracket { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 20px; position: relative; }
.hero .wm { margin-bottom: 4px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.hero-side { display: grid; gap: 14px; justify-items: start; }
.search { display: flex; gap: 8px; width: 100%; max-width: 640px; padding: 6px; border-radius: var(--radius-nav); background: var(--canvas); border: 1px solid var(--line); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 10px; font-size: 15px; height: 40px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Davam et */
.continue { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 16px; border-radius: var(--radius-folder); background: var(--navy); color: var(--on-color); box-shadow: var(--shadow-highlight); }
.continue .cover { width: 76px; }
.continue .cover-ph { padding: 8px 6px 8px 12px; }
.continue .cover-ph .ct { display: none; }
.continue .cover-ph .ca, .continue .cover-ph .cn { display: none; }
.continue h3 { font-size: 20px; font-weight: 700; }
.continue .meta { color: var(--on-color-soft); }
.progress { height: 6px; border-radius: var(--radius-pill); background: var(--on-color-veil); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; width: var(--p, 0%); background: var(--green); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.progress.on-sheet { background: var(--canvas); }

/* ---------- Kitab kartları ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 20px; }
.book { display: grid; gap: 10px; text-decoration: none; color: inherit; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.book { perspective: 900px; }
/* Kitab 3D: siçanın arxasınca əyilir, sağda səhifə kənarları görünür, üz qabığında işıq parıltısı keçir */
.book .cover { transform-style: preserve-3d; transform-origin: 30% 50%;
  transform: translateY(var(--ty, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.book .cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.book:hover .cover, .book:focus-visible .cover { --ty: -8px; --ry: var(--hy, -16deg); --rx: var(--hx, 4deg);
  box-shadow: var(--shadow-highlight),
    2px 0 0 0 #fbf8f1, 3px 0 0 0 #d9d4c7, 5px 0 0 0 #fbf8f1, 6px 0 0 0 #d9d4c7, 8px 0 0 0 #f6f1e6, 9px 0 0 0 #cfc9ba,
    18px 26px 34px -14px rgba(19, 26, 44, .45); }
.book:hover .cover::after, .book:focus-visible .cover::after { opacity: 1; }
.book:active .cover { --ty: -2px; transition-duration: .12s; }
.book h3 { transition: color .2s; }
.book:hover h3 { color: var(--blue); }
.book h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.book .author { font-size: 13px; color: var(--ink-muted); }
.book .tags { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Üz qabığı: həqiqi şəkil və ya aydın yer tutucu */
.cover { position: relative; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 6px var(--radius-tab) var(--radius-tab) 6px; overflow: hidden; background: var(--c, var(--blue)); color: var(--c-ink, var(--on-color)); box-shadow: var(--shadow-highlight), var(--shadow-float); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 14px 12px 12px 18px; }
.cover-ph::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: currentColor; opacity: .25; }
.cover-ph .ct { font-size: 15px; font-weight: 800; line-height: 1.15; letter-spacing: .02em; overflow-wrap: anywhere; }
.cover-ph .ca { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; opacity: .85; margin-top: 6px; }
.cover-ph .cn { font-size: 9.5px; font-weight: 600; letter-spacing: .4px; line-height: 1.3; opacity: .85; display: flex; gap: 5px; align-items: flex-start; }
.cover-ph .cn svg { width: 12px; height: 12px; flex: none; margin-top: 1px; }
.cover[data-c="green"] { --c: var(--green); }
.cover[data-c="orange"] { --c: var(--orange); }
.cover[data-c="butter"] { --c: var(--butter); --c-ink: var(--on-butter); }
.cover[data-c="navy"] { --c: var(--navy); }
.badge-sample { position: absolute; top: 8px; right: 8px; background: var(--sheet); color: var(--ink); font-size: 9.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 3px 7px; border-radius: var(--radius-pill); }
.badge-read { position: absolute; bottom: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sheet); color: var(--blue); }
.badge-read svg { width: 13px; height: 13px; }

/* ---------- Qovluqlar: düşərək gəlir, yavaşca üzür; üstünə gələndə qapaq açılır və içindəki kitablar qalxır ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; perspective: 1200px; }
.folder { --f: var(--blue); --f-ink: var(--on-color); --f-soft: var(--on-color-soft); position: relative; display: block; padding-top: 26px; text-decoration: none; color: var(--f-ink);
  animation: folderIn .8s cubic-bezier(.2,.9,.25,1.15) both, folderFloat 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 110ms), calc(1s + var(--i, 0) * .7s); }
.folder-tab { position: absolute; z-index: 1; top: 0; left: var(--space-28); height: 27px; display: inline-flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-12); background: var(--f); border-radius: var(--radius-tab) var(--radius-tab) 0 0; font-size: 10.5px; font-weight: 700; letter-spacing: 1.26px; text-transform: uppercase; box-shadow: var(--shadow-highlight);
  transform-origin: bottom center; animation: tabFlip .6s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(.35s + var(--i, 0) * 110ms); }
.folder-back { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; border-radius: var(--radius-folder); background: color-mix(in srgb, var(--f) 72%, #000); }
.folder-papers { position: absolute; left: 14%; right: 14%; top: 30px; height: 120px; display: flex; justify-content: center; pointer-events: none; }
.folder-paper { position: relative; width: 30%; aspect-ratio: 2 / 3; margin: 0 -3%; border-radius: 6px; overflow: hidden; background: #fbf6ea; box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transform: translateY(-12px) rotate(calc((var(--k) - 1) * 8deg)); transition: transform .55s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(var(--k) * 50ms); }
.folder-paper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder-body { position: relative; z-index: 2; min-height: 150px; padding: var(--space-18); background: var(--f); border-radius: var(--radius-folder); box-shadow: var(--shadow-highlight), var(--shadow-float); display: grid; grid-template-rows: auto 1fr auto; gap: 6px;
  transform-origin: bottom center; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .4s; overflow: hidden; }
/* ön qapaqdan keçən işıq zolağı */
.folder-body::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); animation: folderShine 7s ease-in-out infinite; animation-delay: calc(2.4s + var(--i, 0) * 1.1s); pointer-events: none; }
.folder-title { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.05; font-weight: 700; letter-spacing: .5px; min-width: 0; padding-right: 2.2em; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.folder-n { position: absolute; top: var(--space-18); right: var(--space-18); font-size: 30px; font-weight: 300; line-height: 1.2; color: var(--f-soft); font-variant-numeric: tabular-nums; transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.folder-meta { align-self: end; font-size: 10.5px; font-weight: 700; letter-spacing: 1.26px; text-transform: uppercase; color: var(--f-soft); font-variant-numeric: tabular-nums; }
.folder-arrow { display: inline-block; transition: transform .3s; }
.folder:hover, .folder:focus-visible { animation-play-state: running, paused; }
.folder:hover .folder-body, .folder:focus-visible .folder-body { transform: rotateX(-24deg) translateY(4px); box-shadow: var(--shadow-highlight), 0 30px 40px -18px rgba(0,0,0,.45); }
.folder:hover .folder-paper, .folder:focus-visible .folder-paper { transform: translateY(-46px) rotate(calc((var(--k) - 1) * 12deg)); }
.folder:hover .folder-paper:nth-child(2), .folder:focus-visible .folder-paper:nth-child(2) { transform: translateY(-62px); }
.folder:hover .folder-n { transform: rotate(-10deg) scale(1.15); }
.folder:hover .folder-arrow { transform: translateX(6px); }
.folder:active .folder-body { transform: rotateX(-10deg) scale(.98); }
.folder[data-c="green"] { --f: var(--green); }
.folder[data-c="orange"] { --f: var(--orange); }
.folder[data-c="butter"] { --f: var(--butter); --f-ink: var(--on-butter); --f-soft: var(--on-butter-soft); }
.folder[data-c="navy"] { --f: var(--navy); }
@keyframes folderIn { 0% { opacity: 0; transform: translateY(-40px) rotate(-4deg) scale(.92); } 60% { opacity: 1; transform: translateY(6px) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes folderFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes tabFlip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes folderShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .folder, .folder-tab, .folder-body::after { animation: none !important; } .folder-body, .folder-paper { transition: none; } }

/* ---------- Uşaq bölməsi ---------- */
.kids { position: relative; border-radius: var(--radius-sheet); background: var(--butter); color: var(--on-butter); padding: 26px; overflow: hidden; }
.kids .section-title { color: var(--on-butter); }
.kids .lede { color: var(--on-butter); }
.kids .book .author, .kids .book h3 { color: var(--on-butter); }
.kids .dots { position: absolute; right: -20px; top: -20px; width: 180px; height: 180px; pointer-events: none; }
.kids .dots i { position: absolute; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.kids .dots i:nth-child(1) { width: 70px; height: 70px; background: var(--orange); right: 30px; top: 40px; }
.kids .dots i:nth-child(2) { width: 38px; height: 38px; background: var(--blue); right: 110px; top: 30px; animation-delay: -1.3s; }
.kids .dots i:nth-child(3) { width: 24px; height: 24px; background: var(--green); right: 70px; top: 120px; animation-delay: -2.4s; }
.kids .book:hover .cover { animation: wiggle .5s ease-in-out; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -3deg; } 60% { rotate: 2.5deg; } }

/* ---------- Kataloq ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; padding: 18px; border-radius: var(--radius-folder); background: var(--canvas); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 10.5px; font-weight: 700; letter-spacing: 1.26px; text-transform: uppercase; color: var(--ink-muted); }
.field select, .field input[type="number"], .field input[type="search"] { height: 38px; border-radius: var(--radius-link); border: 1px solid var(--line-strong); background: var(--sheet); padding: 0 10px; width: 100%; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.filters-toggle { display: none; }

/* Boş, yüklənmə və xəta halları */
.state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-folder); }
.state svg { width: 40px; height: 40px; color: var(--ink-subtle); }
.state h3 { font-size: 18px; }
.skeleton { border-radius: var(--radius-tab); background: linear-gradient(90deg, var(--canvas) 0%, var(--line) 50%, var(--canvas) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Kitab səhifəsi ---------- */
.book-page { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 40px; align-items: start; }
.book-page .cover { width: 100%; view-transition-name: book-cover; }
.book-page .cover-ph .ct { font-size: 24px; }
.book-page h1 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: .02em; }
.book-main { display: grid; gap: 22px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-tab); overflow: hidden; }
.facts div { background: var(--sheet); box-shadow: 0 0 0 .5px var(--line); padding: 12px 14px; display: grid; gap: 2px; }
.facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-subtle); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts .unv { color: var(--ink-subtle); font-weight: 500; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-tab); background: var(--canvas); color: var(--ink-muted); font-size: 13.5px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--blue); }
.notice.warn { background: var(--butter); color: var(--on-butter); }
.notice.warn svg { color: var(--on-butter); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.back svg { width: 14px; height: 14px; }

/* Fikir açıqcası (bağlı halda — qovluq tabı) */

/* Açıqca dialoqu */
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(19, 26, 44, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] .pc-wrap { animation: unfold .55s cubic-bezier(.2,.9,.2,1.1) both; }
@keyframes unfold { from { opacity: 0; transform: perspective(900px) rotateX(-28deg) translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
.pc-wrap { display: grid; gap: 14px; padding-top: 16px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-actions .btn:not(.btn-primary) { background: var(--sheet); }

/* ---------- Oxu pəncərəsi ---------- */
.reader { --r-bg: var(--sheet); --r-ink: var(--ink); --r-size: 19px; display: grid; gap: 0; }
.reader[data-bg="sepia"] { --r-bg: #f6efdc; --r-ink: #3b3222; }
.reader[data-bg="dark"] { --r-bg: #141a28; --r-ink: #e3e6ee; }
.reader-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius-nav); box-shadow: var(--shadow-float); }
.reader-bar .grp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-link); background: var(--canvas); }
.seg button { border: 0; background: transparent; height: 30px; min-width: 34px; padding: 0 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.seg button[aria-pressed="true"] { background: var(--blue); color: var(--on-color); }
.reader-progress { height: 4px; background: var(--canvas); border-radius: var(--radius-pill); overflow: hidden; margin: 10px 4px 0; }
.reader-progress span { display: block; height: 100%; width: var(--p, 0%); background: var(--blue); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.page { margin-top: 18px; background: var(--r-bg); color: var(--r-ink); border-radius: var(--radius-folder); padding: clamp(22px, 5vw, 56px) clamp(18px, 6vw, 72px); transition: background-color .3s, color .3s; border: 1px solid var(--line); }
.page-in { max-width: 66ch; margin: 0 auto; font-family: var(--font-read); font-size: var(--r-size); line-height: 1.75; }
.page-in h2 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 1.26px; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.page-in p + p { margin-top: .9em; }
.page-in p { text-indent: 1.4em; hyphens: auto; }
.page-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.page-src { margin-top: 28px; font-family: var(--font-sans); font-size: 12px; opacity: .75; }
.page-src a { color: inherit; }
.drawer { margin-top: 18px; padding: 18px; border-radius: var(--radius-folder); background: var(--canvas); display: grid; gap: 12px; }
.drawer textarea { width: 100%; min-height: 90px; border-radius: var(--radius-link); border: 1px solid var(--line-strong); background: var(--sheet); padding: 10px; resize: vertical; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 10px 12px; border-radius: var(--radius-tab); background: var(--sheet); font-size: 14px; }
.note-list .meta { display: block; margin-bottom: 2px; }

/* ---------- AI söhbəti ---------- */
.chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.chat-side { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius-folder); background: var(--canvas); }
.chat-main { display: grid; grid-template-rows: auto 1fr auto; min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius-folder); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 16px; background: var(--blue); color: var(--on-color); flex-wrap: wrap; }
.chat-head .chip { color: var(--on-color); }
.mode { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--butter); color: var(--on-butter); }
.mode.live { background: var(--green); color: #1b2234; }
.msgs { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 62vh; }
.msg { max-width: 78%; padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; animation: msgIn .35s cubic-bezier(.2,.8,.2,1) both; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--blue); color: var(--on-color); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--canvas); color: var(--ink); border-bottom-left-radius: 4px; }
.msg .ref { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); }
.msg .demo-tag { display: inline-block; margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--on-butter); background: var(--butter); padding: 2px 7px; border-radius: var(--radius-pill); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--canvas); border-radius: 16px; border-bottom-left-radius: 4px; animation: msgIn .3s both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-subtle); animation: dot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.composer { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--sheet); }
.suggests { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.suggests button { flex: none; border: 1px solid var(--line-strong); background: var(--sheet); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink-muted); }
.suggests button:hover { color: var(--blue); border-color: var(--blue); }
.composer form { display: flex; gap: 8px; }
.composer textarea { flex: 1; min-width: 0; resize: none; height: 44px; max-height: 140px; border-radius: var(--radius-tab); border: 1px solid var(--line-strong); background: var(--sheet); padding: 10px 12px; }

/* ---------- Oxu məkanı ---------- */
.shelf-row { display: grid; gap: 14px; }
.shelf-list { display: grid; gap: 10px; }
.shelf-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-tab); background: var(--canvas); text-decoration: none; color: inherit; animation: rise .4s both; animation-delay: calc(var(--i, 0) * 40ms); }
.shelf-item .mini { display: block; width: 56px; }
.mini .cover-ph { padding: 6px 4px 6px 10px; }
.mini .cover-ph::before { left: 4px; }
.mini .cover-ph .ct { display: none; }
.mini .cover-ph .ca, .mini .cover-ph .cn { display: none; }
.shelf-item h3 { font-size: 15px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; gap: 8px; align-items: center; background: var(--ink); color: var(--sheet); padding: 10px 16px; border-radius: var(--radius-tab); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-float); animation: toast .3s cubic-bezier(.2,.8,.2,1) both; max-width: calc(100vw - 32px); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.footer { margin-top: 26px; font-size: 12.5px; color: var(--ink-subtle); max-width: 70ch; }

/* Səhifə keçidi (View Transitions dəstəklənəndə) */
::view-transition-old(root) { animation: vtOut .22s ease-in both; }
::view-transition-new(root) { animation: vtIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
.view.enter { animation: vtIn .35s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .book-page, .catalog, .chat { grid-template-columns: minmax(0, 1fr); }
  .book-page .cover { max-width: 220px; }
  .filters { position: static; }
  .filters[data-collapsed="true"] .field, .filters[data-collapsed="true"] .check, .filters[data-collapsed="true"] .reset { display: none; }
  .filters-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  body { font-size: 15px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .topbar { grid-template-columns: auto 1fr; margin-bottom: 14px; }
  .topbar-mid { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: linear-gradient(to top, var(--canvas) 60%, transparent); }
  .nav { width: 100%; height: auto; justify-content: space-between; border-radius: 20px; }
  .nav-count { display: none; }
  .nav-link { flex: 1; flex-direction: column; gap: 2px; height: 52px; padding: 0 4px; font-size: 9.5px; letter-spacing: .4px; justify-content: center; }
  .nav-link .ico { display: block; width: 20px; height: 20px; }
  .topbar-end { justify-content: flex-end; padding-top: 14px; gap: 4px; }
  .logo { height: 52px; font-size: 22px; padding-right: 20px; }
  .sheet-body { padding: 20px 16px 32px; gap: 36px; }
  .band { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .continue { grid-template-columns: 56px 1fr; }
  .continue .cover { width: 56px; }
  .continue .btn { grid-column: 1 / -1; }
  .msg { max-width: 90%; }
  .chat-main { min-height: 480px; }
  .kids { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .book:hover .cover, .folder:hover, .postcard-teaser:hover .pc, .btn:hover { transform: none; }
  .book .cover { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Mağaza mövcudluğu və mənbələr */
.stores, .srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stores li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; }
.stock { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.stock.in { background: transparent; color: var(--focus-ring); box-shadow: inset 0 0 0 1.5px var(--focus-ring); }
.stock.out { background: var(--canvas); color: var(--ink-muted); border: 1px solid var(--line-strong); }
.srcs li { font-size: 13.5px; }
.badge-stock { position: absolute; bottom: 38px; right: 8px; background: var(--green); color: #1b2234; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 7px; border-radius: var(--radius-pill); }
.cover-credit { font-size: 12px; color: var(--ink-subtle); margin-top: -4px; }
.cover-credit a { color: inherit; }
.cover img { background: var(--canvas); }

/* ---------- SƏTİR6 söz nişanı ---------- */
.wm { position: relative; display: inline-grid; justify-items: start; padding: 18px 28px 26px 34px; margin: 4px 0 0 -6px; max-width: 100%; }
.wm-rules { position: absolute; inset: 0; pointer-events: none; }
.wm-rules i { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; animation: wmRule .9s cubic-bezier(.2,.8,.2,1) both; }
.wm-rules i:nth-child(1) { top: 26%; animation-delay: .05s; }
.wm-rules i:nth-child(2) { top: 58%; animation-delay: .12s; }
.wm-rules i:nth-child(3) { top: 90%; animation-delay: .19s; }
.wm-rules::before { content: ""; position: absolute; top: 0; bottom: 0; left: 16px; width: 2px; border-radius: 2px; background: var(--orange); opacity: .55; transform-origin: top; animation: wmMargin .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.hero { container-type: inline-size; }
.wm-word { position: relative; display: flex; align-items: flex-end; gap: .02em; font-size: clamp(60px, 13.5vw, 164px); line-height: .92; font-weight: 800; letter-spacing: .01em; }
/* SƏTİR hərfləri kursiv və "6"-dan bir az kiçik */
.wm-ch { position: relative; z-index: 0; display: inline-block; font-size: .84em; font-style: italic; font-synthesis: style; margin-right: .015em; animation: wmRise .75s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(.25s + var(--i) * 90ms); }
.wm-ink { display: inline-block; padding-top: .16em; margin-top: -.16em; color: transparent; -webkit-text-stroke: 2px var(--blue);
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%), linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat; background-size: 300% 100%, 100% 0%; background-position: 120% 0, left bottom;
  -webkit-background-clip: text; background-clip: text;
  animation: wmInk .7s cubic-bezier(.5,0,.2,1) calc(1.05s + var(--i) * 80ms) both, wmShine 7s ease-in-out calc(3.4s + var(--i) * 90ms) infinite; }
/* narıncı kontur "kölgə" — hər hərfin arxasında, çap plakatı kimi */
.wm-ch::before { content: attr(data-ch); position: absolute; left: 0; top: 0; z-index: -1; color: transparent; -webkit-text-stroke: 2px var(--orange);
  transform: translate(.06em, .06em); animation: wmEcho .6s cubic-bezier(.2,.8,.2,1) calc(1.35s + var(--i) * 80ms) both; }
/* "6" ətrafında səpələnən fiqurlar */
.wm-spark { position: absolute; left: 50%; top: 50%; width: .075em; height: .075em; margin: -.0375em 0 0 -.0375em; background: var(--c); pointer-events: none; opacity: 0;
  animation: wmSpark 1.1s cubic-bezier(.15,.8,.3,1) calc(1.75s + var(--k) * 30ms) forwards; }
.wm-spark-c { border-radius: 50%; } .wm-spark-s { border-radius: .02em; } .wm-spark-t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* "6" nişanı hərflərdən böyükdür və əsas xəttdən bir az aşağı düşür — qovluq kimi sözün sonunda "oturur". */
.wm-six { position: relative; display: inline-grid; place-items: center; align-self: flex-end; width: .8em; height: .9em; margin: 0 0 -.06em .12em; padding: 0; background: var(--orange); color: var(--on-color);
  border-radius: .12em; box-shadow: var(--shadow-highlight), var(--shadow-float); transform-origin: 50% 100%;
  animation: wmSix .8s cubic-bezier(.3,1.5,.5,1) 1.55s both, wmFloat 6s ease-in-out 2.6s infinite; }
.wm-six-tab { position: absolute; left: .12em; top: -.15em; width: .38em; height: .18em; background: var(--orange); border-radius: .07em .07em 0 0; }
.wm-six-n { display: block; font-size: .76em; line-height: 1; transform: translateY(.02em); }
.wm-caret { align-self: stretch; width: .06em; margin: .08em 0 .04em .12em; border-radius: 99px; background: var(--blue); animation: wmCaretIn .2s 2.1s both, wmBlink 1.06s steps(1) 2.3s infinite; }
.wm-line { position: absolute; left: 30px; right: 18px; bottom: 6px; width: calc(100% - 48px); height: 28px; overflow: visible; }
.wm-line path { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 720; stroke-dashoffset: 720; animation: wmDraw 1.1s cubic-bezier(.6,0,.2,1) 1.85s forwards; }
.wm-ink, .wm-six-n { transition: transform .35s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i, 5) * 45ms); }
.wm:hover .wm-ink { transform: translateY(-.09em) rotate(-3deg); }
.wm:hover .wm-six-n { transform: rotate(10deg) scale(1.08); }
@keyframes wmRule { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes wmMargin { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wmRise { from { opacity: 0; transform: translateY(.38em) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes wmInk { from { background-size: 300% 100%, 100% 0%; } to { background-size: 300% 100%, 100% 100%; } }
@keyframes wmShine { 0% { background-position: 120% 0, left bottom; } 16%, 100% { background-position: -20% 0, left bottom; } }
@keyframes wmEcho { from { opacity: 0; transform: none; } to { opacity: 1; transform: translate(.06em, .06em); } }
@keyframes wmSpark { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; } 70% { opacity: 1; transform: translate(calc(var(--x) * 1em), calc(var(--y) * 1em)) scale(1) rotate(160deg); }
  100% { opacity: .9; transform: translate(calc(var(--x) * 1em), calc(var(--y) * 1em)) scale(.85) rotate(200deg); } }
@keyframes wmSix { from { opacity: 0; transform: translateY(-.6em) rotate(-24deg) scale(.6); } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes wmFloat { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-.04em); } }
@keyframes wmCaretIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wmBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes wmDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 720px) { .wm { padding: 12px 14px 20px 22px; } .wm-rules::before { left: 8px; } .wm-line { left: 18px; width: calc(100% - 30px); } .wm-ink, .wm-ch::before { -webkit-text-stroke-width: 1.5px; } }
@media (prefers-reduced-motion: reduce) {
  .wm-ink { background-size: 300% 100%, 100% 100%; }
  .wm-ch::before { transform: translate(.06em, .06em); }
  .wm-line path { stroke-dashoffset: 0; }
  .wm-six { transform: rotate(-5deg); }
}

/* Loqo: SƏTİR + narıncı "6" */
.logo { gap: 4px; letter-spacing: 2px; }
.logo-word { font-style: italic; font-synthesis: style; padding-right: .06em; }
.logo-6 { display: inline-grid; place-items: center; min-width: 1.06em; height: 1.16em; margin: .06em 0 0 2px; padding: 0; border-radius: .16em; background: var(--orange); color: var(--on-color); font-weight: 700; font-size: .62em; line-height: 1; transform: rotate(-3deg); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-6 { transform: rotate(6deg) scale(1.08); }

/* ---------- Fikir açıqcası: krem kağız üzərində akvarel illüstrasiya + əl yazısı (assets/js/cards.js) ----------
   Ölçülər konteyner vahidi (cqw) ilədir ki, kiçik önizləmə ilə böyük açıqca eyni görünsün; 1cqw ≈ PNG-də 10.8px. */
.pc { --paper-ink: #3b2f25; position: relative; overflow: hidden; container-type: inline-size; width: min(400px, 84vw, calc((92vh - 96px) * .8)); aspect-ratio: 1080 / 1350; border-radius: 18px; background: #f6eedf; color: var(--paper-ink); box-shadow: 0 2px 0 rgba(255,255,255,.4) inset, 0 24px 60px rgba(20,14,6,.35); }
.pc-scene, .pc-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pc-top { position: absolute; top: 5.5cqw; left: 8cqw; right: 8cqw; display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.pc-brand { display: inline-flex; align-items: center; gap: .3em; font-weight: 800; letter-spacing: .12em; font-size: 3.3cqw; color: var(--paper-ink); }
.pc-brand b { display: inline-grid; place-items: center; min-width: 1.3em; height: 1.35em; border-radius: .3em; background: var(--pc-mark); color: #fff; transform: rotate(-6deg); }
.pc-mood { display: inline-flex; align-items: center; height: 5.2cqw; padding: 0 2.4cqw; border-radius: 99px; border: .3cqw solid var(--pc-mark); color: var(--pc-mark); background: rgba(246,238,223,.7); font-size: 2.2cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pc-body { position: absolute; top: 15cqw; left: 10cqw; right: 10cqw; display: grid; gap: 1.6cqw; }
.pc-label { font-size: 2.2cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pc-mark); }
.pc-text { margin: 0; font-family: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-weight: 600; font-size: var(--fs, 7cqw); line-height: 1.18; color: var(--paper-ink); overflow-wrap: anywhere; }
.pc-foot { margin: 0; font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-size: 3.9cqw; font-weight: 600; color: color-mix(in srgb, var(--paper-ink) 80%, transparent); }
.pc-foot i { font-style: normal; text-decoration: underline; text-decoration-color: var(--pc-mark); text-decoration-thickness: .3cqw; text-underline-offset: .5cqw; }
.pc-note { margin: 0; padding: .9cqw 1.8cqw; border-radius: 1.5cqw; background: rgba(246,238,223,.86); font-size: 2cqw; line-height: 1.35; color: var(--paper-ink); width: fit-content; }
.pc-bottom { position: absolute; left: 8cqw; bottom: 4.2cqw; padding: .8cqw 2cqw; border-radius: 99px; background: rgba(246,238,223,.86); font-size: 2.1cqw; font-weight: 700; letter-spacing: .08em; color: var(--paper-ink); }

.postcard-teaser { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 18px; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.postcard-teaser .pc { width: 100%; border-radius: 12px; box-shadow: 0 14px 34px rgba(20,14,6,.28); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform: rotate(-2deg); }
.postcard-teaser:hover .pc, .postcard-teaser:focus-visible .pc { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 22px 44px rgba(20,14,6,.32); }
.pt-cap { display: grid; gap: 8px; }
.pt-label { font-size: 11px; font-weight: 700; letter-spacing: 1.26px; text-transform: uppercase; color: var(--ink-muted); }
.pt-open { font-weight: 700; color: var(--blue); }
@media (max-width: 520px) { .postcard-teaser { grid-template-columns: minmax(0, 150px) 1fr; } }

/* Açılış animasiyası: kağız açılır, illüstrasiya aşağıdan "boyanır", mətn əl ilə yazılırmış kimi görünür */
dialog[open] .pc-scene .pc-art { animation: pcPaint 1.2s cubic-bezier(.3,.7,.2,1) .15s both; }
dialog[open] .pc-top, dialog[open] .pc-label { animation: pcIn .5s cubic-bezier(.2,.8,.2,1) .25s both; }
dialog[open] .pc-text { animation: pcWrite 1.1s cubic-bezier(.6,0,.2,1) .45s both; }
dialog[open] .pc-foot, dialog[open] .pc-note, dialog[open] .pc-bottom { animation: pcIn .5s cubic-bezier(.2,.8,.2,1) 1.2s both; }
dialog[open] .pc-brand b { animation: wmSix .7s cubic-bezier(.3,1.5,.5,1) .3s both; }
@keyframes pcPaint { from { clip-path: inset(100% 0 0 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes pcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pcWrite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Ana səhifənin başlığı ---------- */
.hero-title { margin: 0; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.06; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; max-width: 13ch; }
.hw { display: inline-block; }
.hw-in { display: inline-block; animation: hwIn .75s cubic-bezier(.2,.9,.25,1.12) both; animation-delay: calc(.35s + var(--i) * 85ms); }
.hl { display: inline-block; position: relative; }
.hl-mark { padding: 0 .06em; margin: 0 -.06em;
  background: linear-gradient(transparent 60%, var(--orange) 60%, var(--orange) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  animation: hlMark .6s cubic-bezier(.6,0,.2,1) 1.15s forwards, hlBob 6s ease-in-out 3.2s infinite; }
.hl-read { color: var(--blue); animation: hlBob 6s ease-in-out 3.45s infinite; }
.hl-read svg { position: absolute; left: 0; right: 0; bottom: -.1em; width: 100%; height: .22em; overflow: visible; }
.hl-read path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130; vector-effect: non-scaling-stroke; animation: wmDraw .7s cubic-bezier(.6,0,.2,1) 1.45s forwards; }
.hl-talk { padding: .02em .26em .08em; margin-left: .02em; border-radius: .3em; background: var(--green); color: #1b2234; transform-origin: 10% 100%;
  box-shadow: var(--shadow-highlight); animation: hlPop .65s cubic-bezier(.3,1.6,.5,1) 1.75s both, hlBob 6s ease-in-out 3.7s infinite; }
.hl-talk::after { content: ""; position: absolute; left: .22em; bottom: -.2em; width: .34em; height: .3em; background: var(--green); clip-path: polygon(0 0, 100% 0, 0 100%); }
@keyframes hwIn { from { opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hlMark { to { background-size: 100% 100%; } }
@keyframes hlPop { from { opacity: 0; transform: scale(.4) rotate(-10deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes hlBob { 0%, 9%, 100% { translate: 0 0; } 4.5% { translate: 0 -.09em; } }
.hero-title:hover .hl { translate: 0 -.06em; transition: translate .25s; }
@media (max-width: 960px) { .hero-title { max-width: none; } }

/* ---------- Kitab seçiləndə: kitab açılır, üz qabığı kitab səhifəsinə uçur ---------- */
.book.is-opening .cover { --ty: -12px; --ry: -32deg; --rx: 6deg; transition-duration: .22s; }
.book.is-opening h3 { color: var(--blue); }
::view-transition-group(book-cover) { animation-duration: .65s; animation-timing-function: cubic-bezier(.2,.85,.2,1); }
::view-transition-old(book-cover), ::view-transition-new(book-cover) { animation-duration: .65s; height: 100%; object-fit: cover; }

/* Kitab səhifəsi: məlumatlar ardıcıl daxil olur, üz qabığı yerinə oturanda yüngülcə yellənir */
.book-page .book-main > * { animation: bpIn .6s cubic-bezier(.2,.8,.2,1) both; }
.book-page .book-main > :nth-child(1) { animation-delay: .12s; } .book-page .book-main > :nth-child(2) { animation-delay: .18s; }
.book-page .book-main > :nth-child(3) { animation-delay: .24s; } .book-page .book-main > :nth-child(4) { animation-delay: .3s; }
.book-page .book-main > :nth-child(5) { animation-delay: .36s; } .book-page .book-main > :nth-child(6) { animation-delay: .42s; }
.book-page .book-main > :nth-child(7) { animation-delay: .48s; } .book-page .book-main > :nth-child(n+8) { animation-delay: .54s; }
.book-page h1 { animation: bpTitle .7s cubic-bezier(.2,.9,.25,1.1) .1s both; }
.book-page > div:first-child .cover { animation: bpSettle .9s cubic-bezier(.3,1.4,.5,1) .55s both; }
@keyframes bpIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bpTitle { from { opacity: 0; transform: translateY(.4em); letter-spacing: .08em; } to { opacity: 1; transform: none; } }
@keyframes bpSettle { 0% { rotate: 0deg; } 35% { rotate: -2.5deg; } 70% { rotate: 1deg; } 100% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) {
  .hl-mark { background-size: 100% 100%; }
  .hl-read path { stroke-dashoffset: 0; }
  ::view-transition-group(book-cover), ::view-transition-old(book-cover), ::view-transition-new(book-cover) { animation: none; }
}

/* ---------- Oxu siyahıları, istək siyahısı ---------- */
.lists { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg-status button { height: 34px; padding: 0 12px; }
.seg-status button[aria-pressed="true"] { background: var(--blue); color: var(--on-color); }
.wish-btn[aria-pressed="true"] { color: var(--orange); }
.wish-btn[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .18; }
.shelf-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.shelf-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--canvas); color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.shelf-tabs a:hover { background: color-mix(in srgb, var(--blue) 14%, var(--canvas)); }
.shelf-tabs a[aria-current="page"] { background: var(--blue); color: var(--on-color); }
.shelf-tabs .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; background: color-mix(in srgb, currentColor 14%, transparent); }
.stock-line { font-size: 12px; margin: 4px 0 2px; }
.shelf-notes li { align-items: center; }

/* ---------- Tövsiyələr və kolleksiyalar ---------- */
.rec { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rec-why { font-size: 12px; color: var(--ink-muted); line-height: 1.35; }
.similar { margin-top: 8px; }
.best { position: relative; padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-sheet, 28px); background: linear-gradient(135deg, color-mix(in srgb, var(--butter) 34%, var(--sheet)), color-mix(in srgb, var(--orange) 14%, var(--sheet))); border: 1.5px solid color-mix(in srgb, var(--orange) 35%, transparent); overflow: hidden; }
.best-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.best-list li { position: relative; min-width: 0; animation: rise .5s both; animation-delay: calc(var(--i) * 70ms); }
.best-n { position: absolute; z-index: 2; top: -10px; left: -6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--on-color); font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.18); transform: rotate(-8deg); }

/* ---------- Öz sitatını paylaşmaq ---------- */
.composer-wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 420px); gap: 22px; align-items: start; max-height: 92vh; overflow: auto; }
.pc-form { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius-tab); background: var(--sheet, var(--canvas)); color: var(--ink); }
.pc-form textarea { min-height: 96px; resize: vertical; }
.pc-form .count { font-size: 11px; justify-self: end; }
.swatches { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.swatches legend { font-size: 12px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.sw { position: relative; cursor: pointer; }
.sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sw span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 15px; font-size: 12px; font-weight: 600; background: var(--canvas); border: 2px solid transparent; }
.sw span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--sw) 55%, var(--sw2) 55%); }
.sw input:checked + span { border-color: var(--sw); }
.sw input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pc-live { animation: none !important; }
.pc-live * { animation: none !important; }
@media (max-width: 760px) { .composer-wrap { grid-template-columns: 1fr; } }

/* ---------- Paylaş menyusu ---------- */
.share-wrap { position: relative; display: inline-flex; }
.share-menu { position: absolute; z-index: 20; bottom: calc(100% + 8px); right: 0; min-width: 240px; max-height: 60vh; overflow: auto; display: grid; gap: 2px; padding: 6px; border-radius: 16px; background: var(--sheet); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.28); animation: smIn .18s ease-out both; }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--canvas); outline: none; }
.share-menu small { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.sm-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; font-weight: 800; }
@keyframes smIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .share-menu { animation: none; } }

/* ---------- Ana səhifə başlığı: imza kimi əl yazısı (Alex Brush) ----------
   Bir rəngli mürəkkəb (tema rəngi), yazıldıqdan sonra üstündən yumşaq işıq keçir; altında incə imza xətti və sonunda nöqtə. */
.hero .kicker { margin-bottom: -.2em; }
.hero-sign { --sig: var(--ink); font-family: "Alex Brush", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive; font-weight: 400; font-size: clamp(56px, 8.4vw, 118px); line-height: 1.2; letter-spacing: .005em; max-width: none; padding: 0 0 .3em; }
.sig { position: relative; display: inline-block; padding-right: .25em; cursor: pointer; animation: sigFloat 7s ease-in-out 3.8s infinite; }
.sig-ink { display: inline-block; padding: .12em .14em .22em .04em; margin: -.12em -.14em -.22em -.04em;
  background-image: linear-gradient(100deg, var(--sig) 0%, var(--sig) 42%, color-mix(in srgb, var(--sig) 55%, var(--green)) 50%, var(--sig) 58%, var(--sig) 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--sig);
  clip-path: inset(-20% 100% -30% 0); animation: sigWrite 2.4s cubic-bezier(.45,.05,.35,1) .35s forwards, sigShine 6s ease-in-out 3.2s infinite; }
.sig-flourish { position: absolute; left: 1%; bottom: .02em; width: 92%; height: .2em; overflow: visible; }
.sig-flourish path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 700; animation: wmDraw 1s cubic-bezier(.6,0,.2,1) 2.6s forwards; }
.sig-dot { position: absolute; left: calc(93% + .05em); bottom: .05em; width: .075em; height: .075em; border-radius: 50%; background: var(--green); transform: scale(0); animation: sigDot .45s cubic-bezier(.3,1.8,.5,1) 3.5s forwards, sigDotPulse 3s ease-in-out 4.2s infinite; }
.sig-nib { position: absolute; top: 22%; left: 0; width: .07em; height: .5em; border-radius: 0 0 50% 50%; background: var(--green); transform: rotate(28deg); opacity: 0; animation: sigNib 2.4s cubic-bezier(.45,.05,.35,1) .35s both; pointer-events: none; }
.sig.replay .sig-ink { clip-path: inset(-20% 100% -30% 0); animation: sigWrite 2.2s cubic-bezier(.45,.05,.35,1) forwards, sigShine 6s ease-in-out 2.6s infinite; }
.sig.replay .sig-nib { animation: sigNib 2.2s cubic-bezier(.45,.05,.35,1) both; }
.sig.replay .sig-flourish path { stroke-dashoffset: 700; animation: wmDraw .9s cubic-bezier(.6,0,.2,1) 2s forwards; }
.sig.replay .sig-dot { transform: scale(0); animation: sigDot .45s cubic-bezier(.3,1.8,.5,1) 2.9s forwards, sigDotPulse 3s ease-in-out 3.6s infinite; }
@keyframes sigWrite { to { clip-path: inset(-20% -5% -30% 0); } }
@keyframes sigNib { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes sigShine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }
@keyframes sigFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.03em); } }
@keyframes sigDot { to { transform: scale(1); } }
@keyframes sigDotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .sig, .sig-ink, .sig-flourish path, .sig-dot { animation: none !important; } .sig-ink { clip-path: none; } .sig-flourish path { stroke-dashoffset: 0; } .sig-dot { transform: none; } .sig-nib { display: none; } }

/* ---------- Dizayn sistemindən (Dizayn_Sistemi.docx) ----------
   Təsvir mətni 60–65 simvoldan uzun sətir yazmır; arxa planda solğun palma yarpağı (blue, ~8%). */
.lede, .book-main > .lede, .hero-side .lede, .section-head .muted { max-width: 62ch; }
.hero { position: relative; isolation: isolate; }
.hero-palm { position: absolute; z-index: -1; right: -2%; bottom: -6%; width: min(46%, 520px); height: auto; color: var(--blue); opacity: .09; pointer-events: none; transform-origin: 80% 100%; animation: palmSway 9s ease-in-out infinite; }
@keyframes palmSway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-palm { animation: none; } }

/* ---------- Rəqəmsal premium kitab saytı (2026-10-21) ---------- */
.kicker-premium { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 11.5px; }
.kicker-premium svg { fill: currentColor; }
.hero-proto { font-size: 12.5px; max-width: 52ch; }
.premium-on { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--butter); color: var(--on-butter); font-weight: 700; font-size: 14px; }
.premium-on svg { fill: currentColor; }
.tag-free { background: var(--green); color: #12321a; }
.k-free { color: #1f8a2d; }
.k-premium { color: var(--orange); }
:root[data-theme="dark"] .k-free { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .k-free { color: var(--green); } }

/* Abunə planları */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 760px; }
.plan { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius-folder); background: var(--sheet); border: 1px solid var(--line-strong); }
.plan-best { border: 2px solid var(--blue); box-shadow: var(--shadow-float); }
.plan-flag { position: absolute; top: -12px; right: 18px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--orange); color: var(--on-color); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.plan h3 { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.plan-price b { font-size: 38px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.plan-price span { color: var(--ink-muted); font-size: 15px; }
.plan-note { font-size: 13px; margin-top: -6px; }
.plan-feats { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.plan-feats li { display: flex; gap: 8px; }
.plan-feats li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan-on { cursor: default; background: var(--butter); color: var(--on-butter); border-color: transparent; }
.plan-on svg { fill: currentColor; }
.sub-teaser { display: grid; gap: 18px; padding: clamp(18px, 4vw, 32px); border-radius: var(--radius-sheet); background: var(--canvas); }
.sub-teaser .section-head { margin-bottom: 0; }
.sub-state { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius-folder); background: var(--butter); color: var(--on-butter); margin-bottom: 18px; }
.sub-state svg { width: 26px; height: 26px; fill: currentColor; }
.sub-state .muted { color: var(--on-butter-soft); font-size: 13px; }
.sub-state .btn { margin-left: auto; color: var(--on-butter); }
.gift { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-folder); background: var(--navy); color: var(--on-color); }
.gift svg { width: 28px; height: 28px; flex: none; color: var(--butter); }
.gift .meta, .gift .muted { color: var(--on-color-soft); }
.gift-now { font-size: 15px; margin: 4px 0; }
.gift-cal { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gift-cal li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-tab); background: var(--canvas); font-size: 14px; }
.gift-cal b { font-size: 12px; letter-spacing: .9px; text-transform: uppercase; color: var(--blue); }
.gift-cal li[aria-current="true"] { outline: 2px solid var(--orange); }
.checkout { max-width: 460px; }
.checkout .facts { margin: 6px 0; }
.pay-cards { font-weight: 700; letter-spacing: 1px; color: var(--ink-muted); }
.checkout .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Dünya kitab saytları */
.sites { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sites a { display: flex; gap: 12px; align-items: center; height: 100%; padding: 12px 14px; border-radius: var(--radius-tab); background: var(--sheet); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.sites a:hover { border-color: var(--blue); transform: translateY(-1px); }
.sites b { display: block; font-size: 14.5px; }
.sites small { display: block; font-size: 12.5px; color: var(--ink-muted); }
.site-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); color: var(--on-color); font-weight: 800; }
.buy-world { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.buy-world .btn { min-height: 34px; font-size: 13px; }

/* Söhbət: 10 hazır sual */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.qlist button { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); background: var(--sheet); border-radius: var(--radius-tab); font-size: 13.5px; color: var(--ink); cursor: pointer; }
.qlist button:hover:not([disabled]) { border-color: var(--blue); color: var(--blue); }
.qlist button[disabled] { opacity: .5; cursor: not-allowed; }
.qn { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas); color: var(--blue); font-size: 11.5px; font-weight: 800; }
.msg-save { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; border: 0; background: var(--sheet); color: var(--blue); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); cursor: pointer; }
.msg-save[disabled] { opacity: .5; cursor: default; }
.side-notes { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-strong); }

/* Qeydlərim */
.notes-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.note-new { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius-folder); background: var(--canvas); position: sticky; top: 16px; }
.note-new textarea, .note-edit { width: 100%; border-radius: var(--radius-link); border: 1px solid var(--line-strong); background: var(--sheet); padding: 10px; resize: vertical; font: inherit; color: inherit; }
.note-new select { height: 38px; border-radius: var(--radius-link); border: 1px solid var(--line-strong); background: var(--sheet); padding: 0 10px; width: 100%; }
.notes-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.notes-tools .field { min-width: min(320px, 100%); }
.notes-exp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notes-exp .btn { min-height: 36px; font-size: 13px; }
.notes-full li { grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line); }
.chat-side .notes-full li { grid-template-columns: 1fr; }
.notes-full.compact li { font-size: 13px; }
.note-body { display: grid; gap: 3px; min-width: 0; }
.note-book { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 14px; }
.note-book:hover { color: var(--blue); }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-text q, .note-list q { font-family: var(--font-read); font-style: italic; }
.note-acts { display: flex; gap: 2px; align-items: center; }
.note-acts .btn { min-height: 32px; padding: 0 8px; }
.notes-full.compact .note-acts span, .chat-side .note-acts span { display: none; }
.note-edit-acts { display: flex; gap: 8px; margin-top: 8px; }

/* Oxu: şeir, sitat düyməsi, çap qadağası */
.page-in.poem p { white-space: pre-line; text-indent: 0; }
.page-in.poem p + p { margin-top: 1.4em; }
.quote-btn { position: fixed; z-index: 30; min-height: 38px; box-shadow: var(--shadow-float); }
.quote-btn[hidden] { display: none; }
.buy { display: grid; }
@media print {
  .page-in, .msgs, .note-list { display: none !important; }
  .page::after { content: "SƏTİR6: kitablar yalnız saytda oxunur, çap olunmur."; font: 16px var(--font-sans); }
}

@media (max-width: 860px) {
  .notes-page { grid-template-columns: 1fr; }
  .note-new { position: static; }
}
@media (max-width: 520px) {
  .notes-full li { grid-template-columns: 1fr; }
  .note-acts span { display: none; }
}
/* Mobil alt menyu: 6 bənd ekrana sığsın */
@media (max-width: 720px) {
  .nav-link { min-width: 0; padding: 0 2px; font-size: 8.5px; letter-spacing: .2px; white-space: normal; text-align: center; line-height: 1.1; }
  .nav-link .ico { width: 19px; height: 19px; }
}

/* ---------- "6" sonradan gəlir (2026-10-21) ----------
   Əvvəl SƏTİR yazılır, qısa fasilədən sonra narıncı "6" yuxarıdan möhür kimi düşür,
   ətrafına dalğa yayılır, sonra arabir yüngülcə "dürtülür" ki, göz ona qayıtsın. */
.wm-six { animation: sixStamp 1s cubic-bezier(.2,.9,.3,1) 2.05s both, sixNudge 8s ease-in-out 4.2s infinite; }
.wm-six::after { content: ""; position: absolute; inset: -.04em; border-radius: .16em; border: .05em solid var(--orange); opacity: 0; pointer-events: none;
  animation: sixRing .9s ease-out 2.55s, sixRing 1.1s ease-out 12.2s; }
.wm-spark { animation-delay: calc(2.5s + var(--k) * 30ms); }
.wm-caret { animation: wmCaretIn .2s 2.9s both, wmBlink 1.06s steps(1) 3.1s infinite; }
@keyframes sixStamp {
  0% { opacity: 0; transform: translateY(-1.5em) rotate(-32deg) scale(.4); }
  50% { opacity: 1; transform: translateY(.07em) rotate(5deg) scale(1.18); }
  70% { transform: translateY(-.05em) rotate(-9deg) scale(.95); }
  86% { transform: translateY(0) rotate(-3deg) scale(1.03); }
  100% { opacity: 1; transform: rotate(-5deg); }
}
@keyframes sixNudge {
  0%, 86%, 100% { transform: rotate(-5deg); }
  89% { transform: rotate(9deg) scale(1.1); }
  92% { transform: rotate(-13deg) scale(1.04); }
  95% { transform: rotate(3deg); }
}
@keyframes sixRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* Yuxarıdakı loqo: SƏTİR görünür, "6" bir az sonra sıçrayaraq gəlir */
.logo-6 { animation: logoSixIn .8s cubic-bezier(.3,1.6,.5,1) .9s both, logoSixNudge 8s ease-in-out 5s infinite; }
@keyframes logoSixIn { 0% { opacity: 0; transform: translateY(-.9em) rotate(-30deg) scale(.3); } 60% { opacity: 1; transform: translateY(.05em) rotate(8deg) scale(1.25); } 100% { opacity: 1; transform: rotate(-3deg); } }
@keyframes logoSixNudge { 0%, 88%, 100% { transform: rotate(-3deg); } 91% { transform: rotate(10deg) scale(1.15); } 94% { transform: rotate(-10deg); } 97% { transform: rotate(0); } }
.logo:hover .logo-6 { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .wm-six, .logo-6, .wm-six::after { animation: none; }
}

/* Yuxarıdakı kiçik loqo çıxarıldı (2026-10-22): menyu ortada, dil və tema sağda */
.topbar { grid-template-columns: 1fr auto 1fr; }
.topbar-mid { grid-column: 2; }
.topbar-end { grid-column: 3; justify-content: flex-end; }
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr; }
  .topbar-end { grid-column: 1; }
}

/* ---------- Hero söz nişanı: ölçülər uyğunlaşdırıldı, "6" animasiyasız (2026-10-22) ---------- */
/* söz nişanı (xətlər və yaşıl xətt) yalnız sözün eni qədərdir */
.hero .wm { justify-self: start; width: max-content; max-width: 100%; }
/* "6" hərflərin böyük hərf hündürlüyündədir və sətrin üstündə dayanır; heç bir animasiya yoxdur */
.wm-six { width: .58em; height: .66em; margin: 0 0 .03em .1em; border-radius: .1em; animation: none; transform: rotate(-4deg); box-shadow: var(--shadow-highlight); }
.wm-six::after { content: none; animation: none; }
.wm-six-tab { left: .08em; top: -.1em; width: .26em; height: .12em; border-radius: .05em .05em 0 0; }
.wm-six-n { font-size: .52em; }
.wm:hover .wm-six-n { transform: none; }
.wm-spark { display: none; }
.wm-caret { animation: wmCaretIn .2s 1.2s both, wmBlink 1.06s steps(1) 1.4s infinite; }
/* imza: loqodan kiçik, tək rəngli (yaşıl parıltı yoxdur) */
.hero-sign { font-size: clamp(42px, 5.6vw, 80px); }
.sig-ink, .sig.replay .sig-ink { background-image: none; -webkit-text-fill-color: var(--sig); }
.sig-ink { animation: sigWrite 2.4s cubic-bezier(.45,.05,.35,1) .35s forwards; }
.sig.replay .sig-ink { animation: sigWrite 2.2s cubic-bezier(.45,.05,.35,1) forwards; }
/* "6" ayrıca effektsiz, son hərflə birlikdə sakitcə görünür (hərflərdən əvvəl tək qalmasın) */
.wm-six { animation: sixFade .5s ease .65s both; }
@keyframes sixFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wm-six { animation: none; } }

/* ---------- Hero: SƏTİR6, "Rəqəmsal premium kitab saytı" və "Kitablarla kəşf et" eyni ölçüdə (2026-10-22) ---------- */
.hero { --hero-size: clamp(26px, 3.4vw, 46px); }
/* hərflər .84em ilə çəkilir — söz ölçüsü elə seçilir ki, görünən hərf ölçüsü --hero-size olsun */
.hero .wm-word { font-size: calc(var(--hero-size) / .84); }
.hero .kicker-premium { font-size: var(--hero-size); line-height: 1.15; font-weight: 700; letter-spacing: 0; text-transform: none; gap: .25em; margin-bottom: 0; }
.hero .kicker-premium svg { width: .6em; height: .6em; }
.hero .hero-sign { font-size: var(--hero-size); }
.hero .kicker-premium { align-items: center; white-space: nowrap; }
@media (max-width: 420px) { .hero .kicker-premium { white-space: normal; } }
.hero-grid > div:first-child { align-self: start; }
@media (max-width: 420px) { .hero .kicker-premium { align-items: flex-start; } .hero .kicker-premium svg { flex: none; margin-top: .3em; } }

/* ---------- Ön səhifə (2026-10-22) — Apple Books səhifəsinin quruluşu: mərkəzdə ikon, ad, iri başlıq, təsvir, narıncı düymə ---------- */
.front { --front-orange: #ff7a1a; display: grid; gap: clamp(48px, 8vw, 96px); margin: -6px 0 24px; }
.front-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.front-bar strong { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.front-hero { display: grid; justify-items: center; text-align: center; gap: 0; padding-top: clamp(24px, 6vw, 72px); }
.front-icon { width: clamp(96px, 12vw, 152px); height: auto; border-radius: 22.5%; box-shadow: 0 18px 40px -22px rgba(27, 34, 52, .55); animation: frontUp .7s cubic-bezier(.2,.8,.2,1) both; }
.front-name { margin-top: 14px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; animation: frontUp .7s cubic-bezier(.2,.8,.2,1) .08s both; }
.front-title { margin-top: 18px; font-size: clamp(40px, 7.4vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; animation: frontUp .8s cubic-bezier(.2,.8,.2,1) .16s both; }
.front-title span { display: inline-block; }
.front-lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 2.1vw, 26px); line-height: 1.38; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; animation: frontUp .8s cubic-bezier(.2,.8,.2,1) .26s both; }
.front-ctas { margin-top: 34px; display: grid; justify-items: center; gap: 16px; animation: frontUp .8s cubic-bezier(.2,.8,.2,1) .36s both; }
.front-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border-radius: 999px; background: var(--front-orange); color: #fff; font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; text-decoration: none; transition: background-color .2s, transform .15s; }
.front-pill:hover { background: #f06a08; transform: translateY(-1px); }
.front-pill-sm { min-height: 36px; padding: 0 18px; font-size: 15px; }
.front-link { color: var(--blue); font-size: 17px; text-decoration: none; }
.front-link:hover { text-decoration: underline; }
.front-shelf { display: grid; justify-items: center; gap: 22px; }
.front-kicker { font-size: clamp(22px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; text-align: center; }
.front-covers { width: 100%; display: flex; gap: clamp(10px, 1.6vw, 20px); justify-content: center; flex-wrap: wrap; }
.front-covers a { width: clamp(96px, 10vw, 128px); flex: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); animation: frontUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.45s + var(--i) * 50ms); }
.front-covers a:hover { transform: translateY(-6px); }
.front-covers .cover { box-shadow: 0 16px 30px -18px rgba(27, 34, 52, .6); }
.front-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.front-feats > div { padding: 26px; border-radius: 22px; background: var(--canvas); }
.front-fi { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sheet); color: var(--front-orange); }
.front-fi svg { width: 24px; height: 24px; }
.front-feats h2 { margin-top: 14px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.front-feats p { margin-top: 6px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.5; }
@keyframes frontUp { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .front-icon, .front-name, .front-title, .front-lead, .front-ctas, .front-covers a { animation: none; } }
/* 9 klassika bir sırada: böyük ekranda hamısı görünür, telefonda yana sürüşdürülür */
.front-covers { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; padding: 8px 4px 18px; scrollbar-width: none; scroll-snap-type: x proximity; }
.front-covers::-webkit-scrollbar { display: none; }
.front-covers a { width: clamp(88px, 8.2vw, 116px); scroll-snap-align: start; }
/* Ana səhifə: söz nişanı və imza ön səhifəyə keçdi — üst hissə bir sütundur (2026-10-22) */
.hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.hero .search { max-width: 760px; }
.hero .hero-side .lede { max-width: 70ch; }

/* ---------- Ön səhifə: bir SƏTİR6 — "6" sonradan düşür, altından xətt çəkilir (2026-10-22) ---------- */
.front-bar { justify-content: flex-end; }
.fw { position: relative; display: inline-block; padding: 0 .12em .26em .04em; font: italic 800 clamp(58px, 9.4vw, 124px)/1 var(--font-sans); letter-spacing: .01em; }
.fw-word { display: inline-flex; align-items: flex-end; }
.fw-ch { position: relative; z-index: 0; display: inline-block; color: var(--blue); font-synthesis: style; animation: fwIn .6s cubic-bezier(.2,.9,.25,1.15) both; animation-delay: calc(.15s + var(--i) * 80ms); }
.fw-ch::before { content: attr(data-ch); position: absolute; inset: 0; z-index: -1; color: transparent; -webkit-text-stroke: .022em var(--orange); transform: translate(.045em, .045em); }
.fw-six { position: relative; display: inline-grid; place-items: center; width: .62em; height: .72em; margin: 0 0 .03em .12em; border-radius: .11em; background: var(--orange); color: #fff; font-style: normal; box-shadow: 0 14px 26px -16px rgba(255, 106, 61, .9); transform-origin: 50% 100%; transform: rotate(-5deg);
  animation: fwStamp .9s cubic-bezier(.2,.9,.3,1) 1.05s both; }
.fw-six span { font-size: .56em; line-height: 1; }
.fw-six::before { content: ""; position: absolute; left: .09em; top: -.11em; width: .28em; height: .13em; border-radius: .05em .05em 0 0; background: var(--orange); }
.fw-line { position: absolute; left: 0; bottom: 0; width: 100%; height: .2em; overflow: visible; }
.fw-line path { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: fwDraw .9s cubic-bezier(.6,0,.2,1) 1.75s forwards; }
@keyframes fwIn { from { opacity: 0; transform: translateY(.35em) rotate(-8deg); } }
@keyframes fwStamp {
  0% { opacity: 0; transform: translateY(-1.3em) rotate(-28deg) scale(.5); }
  55% { opacity: 1; transform: translateY(.05em) rotate(5deg) scale(1.1); }
  76% { transform: translateY(-.03em) rotate(-8deg) scale(.97); }
  100% { opacity: 1; transform: rotate(-5deg); }
}
@keyframes fwDraw { to { stroke-dashoffset: 0; } }
/* başlıq və mətn loqodan sonra gəlsin */
.front-title { margin-top: 26px; animation-delay: .5s; }
.front-lead { animation-delay: .6s; }
.front-ctas { animation-delay: .7s; }
@media (prefers-reduced-motion: reduce) { .fw-ch, .fw-six { animation: none; } .fw-line path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Məşhur müəlliflər (Amazon-dakı "Popular authors" zolağı nümunəsində, 2026-10-22) ---------- */
.authors { display: grid; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.authors-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.authors-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: stretch; }
.author-mark { display: grid; place-content: center; justify-items: center; min-height: 110px; padding: 12px 10px; border-radius: var(--radius-tab); color: var(--ink); text-decoration: none; text-align: center; line-height: 1.02; transition: background-color .2s, transform .2s; }
.author-mark:hover { background: var(--canvas); transform: translateY(-2px); }
.author-mark span { display: block; }
/* hər müəllif adı fərqli yazı üslubunda */
.am0 { font: 700 26px/1.05 ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif; letter-spacing: .04em; }
.am1 { font: 400 24px/1.1 ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.am2 { font: 800 15px/1.25 ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.am2 span:first-child { font-size: 19px; }
.am3 { font: 400 27px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .06em; text-transform: uppercase; }
.am4 { font: 700 30px/1.02 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.am5 { font: 900 34px/.92 Impact, "Haettenschweiler", "Arial Narrow Bold", "Helvetica Neue", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
@media (max-width: 520px) { .authors-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .author-mark { min-height: 92px; } }
@media (max-width: 520px) { .am0 { font-size: 22px; } .am1 { font-size: 20px; } .am3 { font-size: 20px; letter-spacing: .03em; } .am4 { font-size: 26px; } .am5 { font-size: 30px; } .author-mark { overflow-wrap: anywhere; } }

/* "Geri" düyməsi — yuxarı solda (2026-10-22) */
.back-btn { grid-column: 1; justify-self: start; align-self: start; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-float); transition: transform .15s, color .15s; }
.back-btn:hover { color: var(--blue); transform: translateX(-2px); }
.back-btn svg { width: 18px; height: 18px; }
.back-btn[hidden] { display: none; }
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto 1fr; }
  .back-btn { margin-top: 10px; }
  .topbar-end { grid-column: 2; }
}

/* Oxu məkanı: Qeydlərim və Kitabla söhbət bölmə zolağında öndə (2026-10-22) */
.shelf-tabs a svg { width: 16px; height: 16px; }
.shelf-tabs .shelf-tab-main { background: var(--sheet); border: 1.5px solid var(--blue); color: var(--blue); }
.shelf-tabs .shelf-tab-main[aria-current="page"] { background: var(--blue); color: var(--on-color); }
.shelf-tabs .shelf-tab-main + a:not(.shelf-tab-main) { margin-left: 10px; }
.section-head + .shelf-tabs { margin: -4px 0 22px; }
.kicker-link { color: inherit; text-decoration: none; }
.kicker-link:hover { color: var(--blue); }
