/* ============================================
   ЗУЕС-БГ — Практическият наръчник за всеки собственик
   Design: Editorial/Magazine meets Legal Authority
   Palette: Deep navy + warm amber accent + clean whites
   Typography: Playfair Display (headings) + Source Sans 3 (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #1a2744;
  --navy-light: #2a3d5c;
  --navy-dark: #0f1a2e;
  --amber: #e8a838;
  --amber-light: #f5c76b;
  --amber-dark: #c48a1e;
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-lighter: #999999;
  --success: #2d8a4e;
  --border: #e2ddd5;
  --shadow-sm: 0 1px 3px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 12px rgba(26,39,68,0.1);
  --shadow-lg: 0 8px 30px rgba(26,39,68,0.12);
  --radius: 6px;
  --max-width: 1140px;
  --article-width: 740px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-dark); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--amber) !important;
  color: var(--navy-dark) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--amber-light) !important;
}

.nav-login {
  border: 1px solid rgba(255,255,255,0.6) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius) !important;
}

.nav-login:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #fff !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,168,56,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-text { color: var(--white); }

.hero-badge {
  display: inline-block;
  background: rgba(232,168,56,0.15);
  color: var(--amber);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(232,168,56,0.25);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* 3D Book Mockup */
.hero-book {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-3d {
  position: relative;
  width: 280px;
  height: 400px;
  transform: rotateY(-20deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.book-3d:hover {
  transform: rotateY(-10deg) rotateX(3deg);
}

/* Spine */
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 45px;
  height: 100%;
  background: linear-gradient(90deg,
    #0a111d 0%,
    #12203a 25%,
    #1a2d4d 50%,
    #12203a 75%,
    #0a111d 100%);
  transform: rotateY(-90deg) translateX(-22.5px);
  transform-origin: right center;
  border-radius: 4px 0 0 4px;
  /* Leather texture simulation */
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.4),
    inset 2px 0 4px rgba(255,255,255,0.05);
}

/* Spine decorative lines */
.book-spine::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
  box-shadow:
    0 8px 0 0 rgba(201,169,97,0.3),
    0 355px 0 0 linear-gradient(90deg, transparent, #c9a961, transparent);
}

/* Spine text (vertical) */
.book-spine::after {
  content: 'ЗУЕС НАРЪЧНИК';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
  background: linear-gradient(90deg, #a8893d 0%, #d4b860 30%, #f0d890 50%, #d4b860 70%, #a8893d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Front cover - Navy leather look */
.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg,
    #1e3354 0%,
    #1a2d4d 30%,
    #152540 60%,
    #0f1c33 100%);
  border-radius: 2px 6px 6px 2px;
  transform-style: preserve-3d;
  box-shadow:
    /* Main shadow */
    15px 20px 40px rgba(0,0,0,0.4),
    5px 10px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  /* Subtle leather texture */
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    linear-gradient(145deg, #1e3354 0%, #1a2d4d 30%, #152540 60%, #0f1c33 100%);
}

/* Hardcover edge effect - top */
.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to bottom,
    #0d1624 0%,
    #152540 100%);
  border-radius: 2px 6px 0 0;
}

/* Hardcover edge effect - bottom */
.book-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to top,
    #080e18 0%,
    #0f1c33 100%);
  border-radius: 0 0 6px 2px;
}

.book-cover-inner {
  position: absolute;
  top: 6px;
  left: 4px;
  right: 0;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* Decorative gold border - outer */
.book-border-outer {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1.5px solid;
  border-image: linear-gradient(135deg, #8b6914, #d4b860, #f0d890, #d4b860, #8b6914) 1;
  opacity: 0.5;
  pointer-events: none;
}

/* Decorative gold border - inner */
.book-border-inner {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border: 1px solid;
  border-image: linear-gradient(135deg, #8b6914, #c9a961, #8b6914) 1;
  opacity: 0.35;
  pointer-events: none;
}

/* Emblem/Seal */
.book-emblem {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  color: #c9a961;
  opacity: 0.9;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.book-emblem svg {
  width: 100%;
  height: 100%;
}

.book-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Small label above title */
.book-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8893d;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

/* Gold foil title effect */
.book-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg,
    #8b6914 0%,
    #c9a961 15%,
    #e8d48b 30%,
    #f5e8a8 45%,
    #e8d48b 55%,
    #c9a961 75%,
    #8b6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.4));
}

.book-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: #c9a961;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.7;
}

/* Gold foil divider */
.book-divider {
  width: 70px;
  height: 2px;
  margin: 0.75rem auto;
  background: linear-gradient(90deg,
    transparent 0%,
    #8b6914 10%,
    #c9a961 25%,
    #e8d48b 50%,
    #c9a961 75%,
    #8b6914 90%,
    transparent 100%);
  border-radius: 2px;
}

/* Edition text */
.book-edition {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a8893d;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201,169,97,0.2);
  opacity: 0.7;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(232,168,56,0.35);
}

.btn-primary:hover {
  background: var(--amber-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,168,56,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-light);
  color: var(--white);
}

/* ============================================
   FEATURES / TRUST SECTION
   ============================================ */

.features {
  padding: 4rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.section {
  padding: 4.5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   ARTICLES GRID (Blog / Статии)
   ============================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-body {
  padding: 1.5rem;
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dark);
  background: rgba(232,168,56,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--amber-dark);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* ============================================
   ARTICLE PAGE (Single article layout)
   ============================================ */

.article-header {
  background: var(--navy);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}

.article-header .article-tag {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  max-width: var(--article-width);
  margin: 0 auto 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-header .article-meta {
  color: rgba(255,255,255,0.5);
}

.article-content {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-light);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--amber);
  background: var(--cream);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content .law-ref {
  background: rgba(26,39,68,0.04);
  border: 1px solid rgba(26,39,68,0.1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-content .law-ref strong {
  color: var(--navy);
}

/* CTA Box inside articles */
.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 10px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: var(--white);
}

.article-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.article-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ============================================
   BOOK PAGE (Sales page)
   ============================================ */

.book-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 4rem 2rem;
}

.book-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-details h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.book-details .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.book-details .price-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.book-details .book-desc {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.book-toc {
  background: var(--white);
  padding: 4rem 2rem;
}

.toc-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.toc-item:hover { background: var(--cream); }

/* Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.highlight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--amber);
}

.highlight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    padding: 1.25rem;
  }
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 3px solid var(--amber);
}

.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.faq-more {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--navy);
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.toc-num {
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 0.85rem;
  min-width: 2rem;
}

.toc-title {
  font-size: 0.95rem;
  color: var(--text);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--amber); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  html { font-size: 16px; }

  .hero { padding: 3rem 1.5rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    max-width: 400px;
  }

  .hero-cta-group {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  /* Mobile book - larger and prominent */
  .hero-book {
    display: flex;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-book .book-3d {
    width: 200px;
    height: 290px;
    transform: rotateY(-12deg) rotateX(3deg);
  }

  .hero-book .book-spine {
    width: 32px;
    transform: rotateY(-90deg) translateX(-16px);
  }

  .hero-book .book-emblem {
    width: 50px;
    height: 50px;
    margin-bottom: 0.6rem;
  }

  .hero-book .book-label {
    font-size: 0.42rem;
    margin-bottom: 0.5rem;
  }

  .hero-book .book-title {
    font-size: 1.5rem;
  }

  .hero-book .book-subtitle {
    font-size: 0.72rem;
  }

  .hero-book .book-divider {
    width: 45px;
    margin: 0.6rem auto;
  }

  .hero-book .book-edition {
    font-size: 0.52rem;
    margin-top: 0.9rem;
    padding-top: 0.6rem;
  }

  .hero-book .book-border-outer {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .hero-book .book-border-inner {
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .hero-book .book-cover-inner {
    padding: 1.25rem 1rem;
  }

  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }

  .book-hero-inner { grid-template-columns: 1fr; }
  .book-hero .hero-book { display: flex; margin-bottom: 2rem; }
  .toc-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  .hero { padding: 2rem 1.25rem; }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section { padding: 2.5rem 1.25rem; }
  .article-header h1 { font-size: 1.6rem; }
  .article-content { padding: 1.5rem 1.25rem 2.5rem; }
  .features-inner { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.5rem; }
  .book-details h1 { font-size: 1.6rem; }
  .book-details .price { font-size: 1.8rem; }

  /* Slightly smaller book on small phones but still prominent */
  .hero-book .book-3d {
    width: 180px;
    height: 260px;
  }

  .hero-book .book-spine {
    width: 28px;
    transform: rotateY(-90deg) translateX(-14px);
  }

  .hero-book .book-emblem {
    width: 42px;
    height: 42px;
  }

  .hero-book .book-title {
    font-size: 1.3rem;
  }

  .hero-book .book-subtitle {
    font-size: 0.65rem;
  }

  .hero-book .book-label {
    font-size: 0.38rem;
  }

  .hero-book .book-edition {
    font-size: 0.48rem;
  }

  .hero-book .book-cover-inner {
    padding: 1rem 0.75rem;
  }
}
