:root {
  --bg: #f6fbff;
  --bg-soft: #edf6fd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #183247;
  --text-soft: #5c7487;
  --heading: #10293d;
  --line: rgba(108, 154, 187, 0.18);
  --primary: #88b8dd;
  --primary-strong: #5f9fcf;
  --primary-dark: #3d6f98;
  --shadow: 0 18px 50px rgba(110, 158, 197, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(164, 209, 243, 0.22), transparent 28%),
    radial-gradient(circle at right center, rgba(145, 198, 236, 0.24), transparent 24%),
    linear-gradient(180deg, #fbfeff 0%, #f3f9fd 100%);
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 251, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--primary-strong);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-dark);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--heading);
  margin: 6px 0;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 140px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.hero h1,
.subhero h1 {
  margin: 0 0 20px;
  color: var(--heading);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  max-width: 760px;
}

.hero-text,
.subhero-text,
.section-heading p {
  max-width: 720px;
  font-size: 1.06rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(96, 150, 194, 0.28);
}

.btn-secondary {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(116, 167, 204, 0.2);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.author-card {
  width: min(420px, 100%);
  padding: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(130, 181, 218, 0.2);
  box-shadow: var(--shadow);
}

.author-card-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(136, 184, 221, 0.16);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.author-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: var(--heading);
}

.author-card p {
  margin: 0;
  color: var(--text-soft);
}

.hero-shape {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50% 0 0 50%;
}

.hero-shape-1 {
  width: 820px;
  height: 820px;
  background: linear-gradient(135deg, rgba(110, 176, 223, 0.18), rgba(91, 154, 201, 0.34));
}

.hero-shape-2 {
  width: 680px;
  height: 680px;
  right: -110px;
  background: linear-gradient(135deg, rgba(135, 196, 236, 0.2), rgba(95, 159, 207, 0.42));
}

.hero-shape-3 {
  width: 540px;
  height: 540px;
  right: -70px;
  background: linear-gradient(135deg, rgba(182, 224, 249, 0.54), rgba(126, 189, 230, 0.68));
}

.subhero {
  padding: 82px 0 28px;
}

.subhero h1 {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
}

.section {
  padding: 44px 0 84px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(232, 244, 252, 0.44), rgba(246, 251, 255, 0));
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading.left {
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  color: var(--heading);
}

.cards-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.book-card,
.contact-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(128, 180, 216, 0.18);
  box-shadow: var(--shadow);
}

.book-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-card-top {
  margin-bottom: 14px;
}

.book-card h3,
.book-panel-content h3,
.contact-box h2 {
  margin: 0 0 12px;
  color: var(--heading);
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(136, 184, 221, 0.14);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}

.card-link:hover {
  text-decoration: underline;
}

.promo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(221, 238, 249, 0.78), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(128, 180, 216, 0.18);
  box-shadow: var(--shadow);
}

.books-list {
  display: grid;
  gap: 26px;
}

.book-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(128, 180, 216, 0.18);
  box-shadow: var(--shadow);
}

.book-panel-cover {
  width: 280px;
  min-width: 280px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #bad9ef, #87bcdf);
  overflow: hidden;
  margin: 0 auto;
}

.book-panel-cover img {
  display: block;
  max-width: 160px;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(16, 45, 74, 0.18);
}

.event-meta {
  padding-left: 18px;
  color: var(--text-soft);
}

.book-panel-content {
  min-width: 0;
}

.book-panel-content h3 {
  margin-top: 12px;
  margin-bottom: 16px;
}

.book-panel-content h4 {
  margin: 22px 0 10px;
  color: var(--heading);
  font-size: 1.05rem;
}

.book-panel-content ul {
  margin-top: 0;
  margin-bottom: 18px;
}

.book-panel-content p:last-of-type {
  margin-bottom: 24px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 112px;
}

.photo-placeholder {
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(190, 223, 245, 0.75), rgba(141, 192, 227, 0.88));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.about-content {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(128, 180, 216, 0.18);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: var(--text-soft);
}

.footer-nav a:hover {
  color: var(--primary-dark);
}

.contact-form-section {
  margin-top: 60px;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
  margin-bottom: 20px;
}

.contact-form .form-row {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.btn-submit {
  background: #3b82f6;
  color: #fff;
  padding: 14px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-submit:hover {
  background: #2563eb;
}

.form-success {
  background: #22c55e;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

@media (max-width: 1100px) {
  .book-panel {
    grid-template-columns: 1fr;
  }

  .book-panel-cover {
    width: 240px;
    min-width: 240px;
    height: 280px;
    margin: 0 auto;
  }

  .book-panel-cover img {
    max-width: 145px;
    max-height: 210px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-photo {
    position: static;
  }

  .book-panel-cover {
    max-width: 240px;
    margin: 0 auto;
  }

  .book-panel-cover img {
    max-width: 150px;
    max-height: 220px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(128, 180, 216, 0.18);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .promo-box,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .book-panel-cover {
    width: 220px;
    min-width: 220px;
    height: 260px;
    padding: 20px;
  }

  .book-panel-cover img {
    max-width: 135px;
    max-height: 190px;
  }
}