/* BABYLOGIA — Комфортное грудное вскармливание */

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

:root {
  --bg:            #f9f6f2;
  --white:         #ffffff;
  --lavender:      #c4a8d8;
  --lavender-light:#ede5f5;
  --pink:          #e0a8b2;
  --pink-light:    #f7e8eb;
  --mint:          #8fbaA0;
  --mint-light:    #d4ece0;
  --peach:         #ecc4a0;
  --peach-light:   #faebd8;
  --text:          #3d3530;
  --text-muted:    #8a7e7a;
  --card-radius:   20px;
  --max-w:         1100px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

img { display: block; max-width: 100%; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--lavender-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

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

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}

.logo-heart {
  color: var(--pink);
  font-size: 14px;
}

.logo-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  letter-spacing: 5px;
  color: var(--text);
  font-weight: normal;
}

.logo-tagline {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: lowercase;
}

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

.site-nav a {
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--lavender);
  border-bottom-color: var(--lavender);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

.btn-primary {
  background: var(--lavender);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--lavender);
  border: 2px solid var(--lavender);
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 90px 0 110px;
  text-align: center;
  overflow: hidden;
}

/* watercolor blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(196,168,216,.45) 0%, transparent 65%);
  top: -140px; right: -120px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(236,196,160,.45) 0%, transparent 65%);
  bottom: -80px; left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob-mint {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(143,186,160,.35) 0%, transparent 65%);
  bottom: 60px; right: 10%;
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: normal;
  line-height: 1.2;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

/* ── SECTIONS ── */
section { padding: 80px 0; }

.section-title {
  font-family: Georgia, serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: normal;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 52px;
  font-size: 16px;
}

/* ── ABOUT COURSE ── */
.about-course { background: var(--white); }

.about-card {
  border-radius: var(--card-radius);
  padding: 44px 48px;
  max-width: 820px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.85;
}

.about-card p + p { margin-top: 18px; }

.about-card-intro {
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--peach-light) 100%);
}

.about-card-outro {
  background: linear-gradient(135deg, var(--mint-light) 0%, var(--lavender-light) 100%);
  text-align: center;
}

/* ── CURRICULUM ── */
.curriculum { background: var(--bg); }

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.block-card {
  border-radius: var(--card-radius);
  padding: 32px 28px;
  position: relative;
}

.block-card:nth-child(1) { background: var(--pink-light); }
.block-card:nth-child(2) { background: var(--peach-light); }
.block-card:nth-child(3) { background: var(--mint-light); }
.block-card:nth-child(4) { background: var(--lavender-light); }

.block-num {
  font-family: Georgia, serif;
  font-size: 56px;
  color: rgba(61,53,48,.08);
  position: absolute;
  top: 12px; right: 20px;
  line-height: 1;
  pointer-events: none;
}

.block-card h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.35;
}

.lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lesson-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.lesson-list li::before {
  content: '·';
  position: absolute;
  left: 0;
}

/* ── AUTHORS ── */
.authors { background: var(--white); }

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
}

.author-card {
  background: var(--bg);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  text-align: center;
}

.author-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--lavender-light);
}

.author-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.author-card h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 4px;
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.tag {
  background: var(--lavender-light);
  color: var(--text);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
}

.author-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.author-edu {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--peach-light) 60%, var(--mint-light) 100%);
  text-align: center;
}

.cta-section h2 {
  font-family: Georgia, serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: normal;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 17px;
}

.cta-section .btn {
  font-size: 17px;
  padding: 18px 52px;
}

/* ── FOOTER ── */
.site-footer {
  background: #2e2926;
  color: rgba(255,255,255,.65);
  padding: 44px 0 32px;
  text-align: center;
}

.footer-logo {
  font-family: Georgia, serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--peach-light) 100%);
  padding: 64px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(196,168,216,.4) 0%, transparent 70%);
  top: -100px; right: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: normal;
  position: relative;
  z-index: 1;
}

.page-hero .page-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* ── PAGE CONTENT ── */
.page-content {
  background: var(--white);
  padding: 64px 0 80px;
}

.page-content .container {
  max-width: 820px;
}

.page-content h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: normal;
  margin: 48px 0 16px;
  color: var(--text);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.contact-item {
  background: var(--bg);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  text-align: center;
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-item h3 {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 8px;
}

.contact-item a {
  color: var(--lavender);
  font-size: 15px;
  transition: opacity .2s;
}

.contact-item a:hover { opacity: .7; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--lavender-light);
    padding-top: 12px;
    margin-top: 8px;
  }

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

  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--lavender-light);
    border-left: none;
    border-right: none;
  }

  .header-inner { flex-wrap: wrap; }

  .hero { padding: 64px 0 80px; }

  .about-card { padding: 28px 24px; }

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

  section { padding: 56px 0; }

  .cta-section .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
  }
}

@media (max-width: 480px) {
  .authors-grid { grid-template-columns: 1fr; }
  .footer-nav { gap: 16px; }
}
