:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #f97316;
  --accent-soft: #fee7d2;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark,
.footer-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.brand strong,
.footer-brand strong {
  font-size: 1.1rem;
}

.brand small,
.footer-brand small {
  color: var(--accent);
  font-size: 0.85rem;
}

.topnav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.topbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: #111827;
  color: white;
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
}

.hero-left {
  max-width: 640px;
}

.pretitle {
  display: inline-flex;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  color: #ffedd5;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero p {
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.95rem 1.5rem;
}

.btn-secondary {
  background: #ffffff;
  color: #1f2937;
  padding: 0.95rem 1.5rem;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.book-card {
  width: min(340px, 100%);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.8));
  padding: 1.5rem;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
}

.book-image {
  height: 420px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fef3c7 0%, #fb923c 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.book-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.8), transparent 40%);
  pointer-events: none;
}

.book-meta {
  margin-top: 1.4rem;
}

.book-meta span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.book-meta strong {
  font-size: 1.05rem;
}

.value-grid,
.book-list,
.course-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.value-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1.8rem;
}

.value-card {
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}


.books,
.courses,
.testimonials,
.contacts,
.promo {
  margin-bottom: 1.8rem;
}

.book-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.book-card-alt,
.course-card,
.testimonial-card,
.contact-card {
  border-radius: 22px;
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.book-card-alt h3,
.course-card h3,
.testimonial-card p,
.contact-card h3 {
  margin-top: 0;
}

.book-card-alt p,
.course-card p,
.testimonial-card p,
.contact-card p {
  color: var(--muted);
}

.price {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.course-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.course-card h3 {
  margin-bottom: 0.75rem;
}

.promo {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--surface);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.promo-text {
  max-width: 560px;
}

.label {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  margin-bottom: 1rem;
}

.promo h2 {
  margin: 0 0 1rem;
}

.promo-image {
  min-height: 320px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 24px 65px rgba(249, 115, 22, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.testimonials .testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  color: rgba(249, 115, 22, 0.15);
}

.testimonial-card span {
  display: block;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contacts {
  background: var(--surface);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery {
  margin-bottom: 1.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: var(--surface);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.gallery-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero,
  .promo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .promo,
  .footer-top {
    gap: 1rem;
  }

  .topnav,
  .footer-links {
    justify-content: center;
  }
}
