/* talibov.az — статические стили (дизайн-токены + утилиты) */
:root {
  --background: #fbfaf6;
  --foreground: #1f2a44;
  --muted: #f1f0ea;
  --muted-foreground: #6b7589;
  --card: #ffffff;
  --border: #e6e8ee;
  --primary: #3a8ec5;
  --primary-foreground: #ffffff;
  --sky: #d6ecf6;
  --mint: #d6f1e4;
  --sand: #f4ecd0;
  --gradient-soft: linear-gradient(135deg, #e2effa, #e1f3e8 50%, #f6efd4);
  --shadow-soft: 0 10px 40px -15px rgba(58, 142, 197, 0.35);
  --shadow-card: 0 4px 20px -8px rgba(31, 42, 68, 0.18);
  --radius: 1rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea { font: inherit; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.items-center { align-items: center; } .items-end { align-items: flex-end; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; } .flex-col { flex-direction: column; } .flex-1 { flex: 1; }
.text-center { text-align: center; }
.hidden { display: none; }
.relative { position: relative; } .absolute { position: absolute; }

/* Header */
.header { background: var(--background); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-family: "Manrope", sans-serif; font-size: 1.125rem; }
.logo-mark { width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: var(--sky); display: grid; place-items: center; color: var(--primary); }
.nav { display: none; gap: .25rem; align-items: center; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a { padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; color: var(--muted-foreground); transition: background .15s, color .15s; }
.nav a:hover { background: var(--muted); color: var(--foreground); }
.nav a.active { background: var(--muted); color: var(--foreground); font-weight: 600; }
.menu-btn { display: inline-flex; padding: .5rem; border-radius: .5rem; }
.menu-btn:hover { background: var(--muted); }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: .75rem 1.25rem; flex-direction: column; gap: .25rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.mobile-nav a:hover { background: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: opacity .15s, transform .15s, background .15s; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: #fff; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); }
.btn-mint { background: var(--mint); color: var(--foreground); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.5rem; transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }

/* Sections */
section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
.h3 { font-size: 1.125rem; font-weight: 700; }
.lead { color: var(--muted-foreground); font-size: 1.05rem; max-width: 36rem; }
.muted { color: var(--muted-foreground); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; } .font-semibold { font-weight: 600; } .font-extrabold { font-weight: 800; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4rem 0 5rem; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--gradient-soft); z-index: -2; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; padding: 2rem 0; } }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--border); font-size: .75rem; font-weight: 500; color: var(--muted-foreground); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero p { margin-top: 1.25rem; color: var(--muted-foreground); font-size: 1.125rem; max-width: 34rem; }
.hero-cta { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; color: var(--muted-foreground); font-size: .875rem; }
.hero-stats > div > span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--foreground); }
.hero-stats .divider { width: 1px; height: 2.5rem; background: var(--border); }
.hero-image-wrap { position: relative; }
.hero-image-wrap::before { content: ""; position: absolute; inset: 0; background: #fff; border-radius: 2.5rem; transform: rotate(3deg); box-shadow: var(--shadow-soft); }
.hero-image { position: relative; background: #fff; border-radius: 2.5rem; padding: 1.5rem; box-shadow: var(--shadow-card); }
.hero-image img { border-radius: 1.25rem; }
.float-card { position: absolute; background: #fff; border-radius: 1rem; padding: .75rem 1.25rem; box-shadow: var(--shadow-card); border: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; }
.float-card .ico { width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: grid; place-items: center; }
.float-card.bl { bottom: -1.5rem; left: -1.5rem; }
.float-card.tr { top: -1.25rem; right: -1.25rem; }

/* Grids */
.grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Feature/category card */
.icon-tile { width: 3rem; height: 3rem; border-radius: .75rem; display: grid; place-items: center; margin-bottom: 1rem; }

/* Section header */
.section-head { text-align: center; max-width: 36rem; margin: 0 auto 3.5rem; }

/* Books */
.book-card { display: block; }
.book-cover { aspect-ratio: 3/4; border-radius: 4px 8px 8px 4px; overflow: hidden; position: relative; color: #fff; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 40px -20px rgba(15,23,42,.35), 0 8px 16px -8px rgba(15,23,42,.2); transition: transform .2s, box-shadow .2s; }
.book-card:hover .book-cover { transform: translateY(-4px); box-shadow: 0 30px 50px -20px rgba(15,23,42,.4); }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.2); }
.book-cover::after { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.3); }
.book-cat { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.book-cover h3 { font-size: 1.05rem; font-weight: 800; margin-top: .5rem; }
.book-meta-bottom { font-size: 10px; opacity: .8; display: flex; gap: .5rem; align-items: center; margin-top: .75rem; }
.book-meta-bottom span.tag { padding: 1px 6px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; }
.book-info { margin-top: 1rem; padding: 0 .25rem; }
.book-info-row { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.book-buy { font-size: .75rem; font-weight: 600; padding: .375rem .75rem; border: 1px solid var(--border); border-radius: .375rem; transition: all .15s; }
.book-buy:hover { background: var(--foreground); color: var(--background); }

/* Reviews */
.review-stars { color: #d4a017; letter-spacing: 2px; }

/* Video card */
.video-card { overflow: hidden; padding: 0; }
.video-thumb { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; }
.video-thumb .play { width: 4rem; height: 4rem; border-radius: 999px; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 1.5rem; color: var(--primary); transition: transform .2s; box-shadow: var(--shadow-card); }
.video-card:hover .play { transform: scale(1.1); }
.video-time { position: absolute; bottom: .75rem; right: .75rem; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.video-body { padding: 1.25rem; }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: 1.25rem; margin-bottom: .75rem; }
details.faq summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus { width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--muted); display: grid; place-items: center; transition: transform .2s; }
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq p { margin-top: .75rem; color: var(--muted-foreground); font-size: .875rem; }

/* CTA */
.cta-block { border-radius: 2rem; padding: 4rem 2rem; text-align: center; background: var(--gradient-soft); }

/* Footer */
footer { border-top: 1px solid var(--border); background: rgba(241,240,234,.5); margin-top: 5rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h4 { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-grid a:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem; text-align: center; font-size: .75rem; color: var(--muted-foreground); }

/* Forms */
.input { width: 100%; padding: .75rem 1rem; border-radius: .75rem; background: var(--background); border: 1px solid var(--border); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58,142,197,.15); }
label { font-size: .875rem; font-weight: 500; display: block; margin-bottom: .25rem; }

/* Pills/chips */
.chip { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--muted); }
.chip-mint { background: var(--mint); }
.chip-sky { background: var(--sky); }
.chip-sand { background: var(--sand); }

/* Progress */
.progress { height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* Aside layout */
.with-aside { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .with-aside { grid-template-columns: 260px 1fr; } }

/* Misc */
.divider-y > * + * { border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .75rem; }
.line-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }