@import url('/fonts/inter.css');

:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #e7e3dc;
  --paper: #fbfaf8;
  --accent: #b4472f;
  --accent-dark: #8f3523;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 17px; }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { color: #475467; text-decoration: none; font-weight: 500; font-size: 14px; }
nav a:hover { color: var(--accent); }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.search input { border: 0; outline: 0; padding: 9px 12px; width: 176px; font: inherit; font-size: 13px; color: var(--ink); }
.search button { border: 0; background: var(--accent); color: #fff; padding: 9px 14px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }

.hero { padding: 70px 0 46px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: #fbeee9; padding: 6px 12px; border-radius: 100px; margin-bottom: 18px; }
h1 { font-size: 46px; line-height: 1.12; letter-spacing: -1.6px; margin: 0 0 18px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 28px; line-height: 1.65; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hero-art { height: 280px; border-radius: 20px; background: linear-gradient(145deg, #2f3b4c, #1d2733); position: relative; overflow: hidden; box-shadow: 0 18px 40px rgba(23,33,43,.15); }
.hero-art::before { content: 'КНИГИ'; position: absolute; left: 28px; top: 24px; color: rgba(255,255,255,.16); font-size: 64px; font-weight: 800; letter-spacing: 6px; }
.hero-art span { position: absolute; bottom: 26px; left: 28px; color: #fff; font-size: 15px; opacity: .85; }
.hero-art i { position: absolute; display: block; width: 74px; height: 104px; border-radius: 4px 8px 8px 4px; transform: rotate(-12deg); box-shadow: 4px 8px 18px rgba(0,0,0,.25); }
.hero-art i:nth-of-type(1) { background: #d98462; right: 70px; bottom: 40px; }
.hero-art i:nth-of-type(2) { background: #c9b58c; right: 130px; bottom: 34px; transform: rotate(6deg); }
.hero-art i:nth-of-type(3) { background: #7f9c8f; right: 190px; bottom: 42px; transform: rotate(-4deg); }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); padding: 22px 0; margin-bottom: 56px; }
.stat strong { display: block; font-size: 24px; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 13px; }

section.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { font-size: 30px; letter-spacing: -1px; margin: 0; }
.section-note { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-bottom: 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,33,43,.08); }
.cover { height: 112px; border-radius: 8px; margin-bottom: 18px; position: relative; display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.cover small { display: block; font-weight: 500; font-size: 11px; opacity: .8; }
.c1 { background: linear-gradient(135deg,#5b6f8a,#2f3b4c); }
.c2 { background: linear-gradient(135deg,#b06a4f,#7a3527); }
.c3 { background: linear-gradient(135deg,#6f9c8f,#3d6b60); }
.c4 { background: linear-gradient(135deg,#a68852,#6b542c); }
.c5 { background: linear-gradient(135deg,#8a6ca8,#533f70); }
.c6 { background: linear-gradient(135deg,#5f83a8,#2f5573); }
.card h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.3px; }
.meta { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.card p { margin: 0; font-size: 14px; color: #475467; }
.tag { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 600; color: var(--accent-dark); background: #fbeee9; border-radius: 6px; padding: 3px 8px; }

.tips { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 0 0 70px; }
.tip { border-top: 3px solid var(--accent); padding-top: 18px; }
.tip b { display: block; margin-bottom: 6px; }
.tip p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { background: #1d2733; color: #d7dee7; padding: 40px 0; font-size: 13px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.site-footer a { color: #d7dee7; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; opacity: .7; }

.text-page { padding: 46px 0 70px; max-width: 860px; }
.text-page h1 { font-size: 38px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.auto-note { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--accent); background: #fff; color: var(--muted); font-size: 13px; border-radius: 0 8px 8px 0; }
.text-page p { color: #475467; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid, .tips, .site-footer .cols { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
}
@media (max-width: 600px) {
  .grid, .tips, .stats, .site-footer .cols { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
