
:root{
  --bg:#f4f6f8;
  --card:#ffffff;
  --ink:#111827;
  --muted:#687386;
  --line:#e5e7eb;
  --accent:#d4a017;
  --accent2:#f0c94f;
  --dark:#101722;
  --radius:22px;
  --shadow:0 10px 30px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
}
button,input{font:inherit}
button{cursor:pointer}

.shell{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.hero{
  background:
    radial-gradient(circle at 85% 15%, rgba(240,201,79,.22), transparent 28%),
    linear-gradient(135deg,#0b1018 0%,#171f2c 70%,#111827 100%);
  color:white;
  padding:28px 0 64px;
  border-radius:0 0 34px 34px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  width:48px;height:48px;
  display:grid;place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  color:#111;
  font-size:28px;
  box-shadow:0 8px 22px rgba(212,160,23,.25);
}
.brand-name{font-weight:800;letter-spacing:-.02em}
.brand-sub{font-size:12px;color:#b9c0cb;margin-top:2px}

.hero-copy{max-width:720px;margin-top:70px}
.eyebrow{
  display:inline-flex;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  border-radius:999px;
  font-size:12px;
  color:#f6d56a;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
h1{
  margin:18px 0 14px;
  font-size:clamp(34px,6vw,64px);
  line-height:1.02;
  letter-spacing:-.055em;
}
.hero-copy p{
  margin:0;
  max-width:650px;
  color:#c7ced8;
  font-size:clamp(15px,2vw,18px);
  line-height:1.65;
}

.toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:30px 0 20px;
}
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  min-height:46px;
}
.crumb{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:7px 0;
  font-weight:600;
}
.crumb.active{color:var(--ink)}
.crumb-sep{color:#b6bdc8}

.search{
  min-width:290px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 14px;
  box-shadow:0 4px 14px rgba(17,24,39,.04);
}
.search span{font-size:22px;color:#8a93a1}
.search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:13px 0;
  color:var(--ink);
}

.section-title{
  margin:22px 0 14px;
  font-size:22px;
  letter-spacing:-.03em;
}
.category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.category-card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  padding:22px;
  text-align:left;
  min-height:150px;
  box-shadow:var(--shadow);
  transition:.2s ease;
  position:relative;
  overflow:hidden;
}
.category-card:hover{transform:translateY(-2px);border-color:#d7dce3}
.category-card:after{
  content:"";
  position:absolute;
  width:90px;height:90px;
  right:-30px;bottom:-36px;
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  border-radius:50%;
  opacity:.14;
}
.category-icon{
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#fff8dc;
  font-size:22px;
  margin-bottom:18px;
}
.category-title{font-weight:800;font-size:18px}
.category-count{color:var(--muted);font-size:13px;margin-top:6px}

.books-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-bottom:42px;
}
.book-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}
.book-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.book-title{
  margin:0;
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.03em;
}
.badge{
  flex:0 0 auto;
  background:#fff8dc;
  color:#755500;
  border:1px solid #f1df99;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  font-weight:800;
}
.book-author{margin-top:7px;color:var(--muted);font-size:14px}
.book-desc{margin:18px 0 0;color:#434b59;line-height:1.65;font-size:14px}
.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.meta span{
  background:#f6f7f9;
  color:#5d6675;
  border-radius:10px;
  padding:7px 9px;
  font-size:12px;
  font-weight:600;
}

.empty{
  text-align:center;
  padding:70px 20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  margin-bottom:40px;
}
.empty-icon{font-size:40px}
.empty h2{margin:10px 0 6px}
.empty p{margin:0;color:var(--muted)}
.hidden{display:none!important}

footer{
  margin-top:24px;
  background:#0f1620;
  color:#9fa8b5;
}
.footer-inner{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size:13px;
}

@media (max-width:800px){
  .hero{padding-bottom:44px}
  .hero-copy{margin-top:50px}
  .toolbar{align-items:stretch;flex-direction:column}
  .search{min-width:0;width:100%}
  .category-grid{grid-template-columns:1fr 1fr}
  .books-grid{grid-template-columns:1fr}
}
@media (max-width:520px){
  .shell{width:min(100% - 22px,1120px)}
  .hero{border-radius:0 0 24px 24px}
  .category-grid{grid-template-columns:1fr}
  .category-card{min-height:128px}
  .footer-inner{flex-direction:column;align-items:flex-start;justify-content:center}
}


/* Каталог PGN */
.books-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.book-card{padding:0;overflow:hidden;display:grid;grid-template-columns:170px 1fr;min-height:270px;}
.book-cover-wrap{background:#eef1f4;min-height:270px;overflow:hidden;}
.book-cover{width:100%;height:100%;min-height:270px;object-fit:cover;display:block;}
.book-body{padding:22px;display:flex;flex-direction:column;}
.book-desc{flex:1;}
.purchase-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line);}
.format-pill{display:inline-flex;padding:7px 10px;border-radius:10px;background:#111827;color:#fff;font-weight:800;font-size:12px;letter-spacing:.04em;}
.book-price{font-size:20px;letter-spacing:-.03em;white-space:nowrap;}
@media(max-width:900px){.books-grid{grid-template-columns:1fr}.book-card{grid-template-columns:145px 1fr}}
@media(max-width:560px){.book-card{display:block}.book-cover-wrap{height:310px;min-height:0}.book-cover{height:310px;min-height:0;object-fit:contain;background:#f2f4f6}.book-body{padding:18px}.purchase-row{align-items:center}.book-price{font-size:19px}}
