/* ============================================================
   Dr. Zaya landing — styles.css
   Palette: teal #29B6D8 · yellow #FFD23F · pink #F76C8A
            purple #8E7CC3 · navy #16324F · light blue #EAF6FB
   Type: Baloo 2 (headings) / Nunito (body)
   ============================================================ */

:root {
  --teal: #29B6D8;
  --teal-dark: #1E96B3;
  --yellow: #FFD23F;
  --pink: #F76C8A;
  --purple: #8E7CC3;
  --purple-tint: #EFEBF8;
  --navy: #16324F;
  --blue-tint: #EAF6FB;
  --white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 6px 18px rgba(22, 50, 79, .10);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

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

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; margin-bottom: .6em; }
h3.row-title { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 1rem; }
.row-note {
  font-size: .8rem; font-weight: 700; color: var(--white);
  background: var(--pink); border-radius: 999px; padding: .2em .8em;
  vertical-align: middle; margin-left: .4em; letter-spacing: .03em;
}

.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-tint { background: var(--blue-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .7em 1.6em;
  border-radius: 999px; border: 2.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: scale(1.04); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22,50,79,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--navy); text-decoration: none;
}
.btn-header { min-height: 44px; font-size: .95rem; padding: .4em 1.2em; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(41,182,216,.10) 0 60px, transparent 61px),
    radial-gradient(circle at 88% 12%, rgba(255,210,63,.20) 0 46px, transparent 47px),
    radial-gradient(circle at 78% 82%, rgba(247,108,138,.12) 0 54px, transparent 55px),
    var(--blue-tint);
  padding: clamp(40px, 7vw, 80px) 0;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy h1 em { color: var(--teal); font-style: normal; }
.hero-sub { margin: 1em 0 1.4em; font-size: 1.1rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Social proof ---------- */
.proof { background: var(--white); border-bottom: 1px solid rgba(22,50,79,.08); }
.proof-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 10px; padding: 18px 0; text-align: center;
  font-weight: 600; font-size: .95rem;
}
.proof-hero { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--teal-dark); }
.proof-dot { color: var(--pink); font-weight: 800; }

/* ---------- Sticker cards ---------- */
.sticker-card {
  background: var(--white);
  border: 3px solid var(--white);
  outline: 2px solid rgba(22,50,79,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.cards-3 { display: grid; gap: 18px; }
.cards-2 { display: grid; gap: 18px; }
.stat {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: var(--pink); margin-bottom: .2em;
}
.why .sticker-card:nth-child(2) .stat { color: var(--purple); }
.why .sticker-card:nth-child(3) .stat { color: var(--teal); }

/* ---------- Books ---------- */
.book-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.book-card img { width: 100%; }
.book-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.book-info h4 { font-size: 1.25rem; }
.age-badge {
  background: var(--yellow); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  border-radius: 999px; padding: .15em .9em;
}
.book-info .btn { margin-top: auto; }

.coloring-note { margin: 0 0 20px; font-weight: 600; }
.coloring-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.color-card {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch; text-align: center;
}
.color-card img { width: 100%; }
.color-card h4 { font-size: 1.05rem; padding: 14px 12px 8px; }
.color-card .btn { margin: 0 12px 14px; }
.btn-sm { min-height: 44px; font-size: .95rem; padding: .4em 1em; }
.color-card.is-soon { opacity: .85; }
.soon-badge {
  display: inline-block; margin: 0 12px 16px;
  background: var(--purple); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  border-radius: 999px; padding: .35em 1em;
}

/* ---------- Signup ---------- */
.signup { background: var(--yellow); }
.signup-inner { text-align: center; max-width: 640px; }
.signup-sub { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.4em; }
.signup-form {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.signup-form form { display: flex; flex-direction: column; gap: 12px; }
.signup-form input, .signup-form select {
  min-height: 52px; padding: 0 16px;
  border: 2px solid rgba(22,50,79,.2); border-radius: 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  background: var(--white); width: 100%;
}
.signup-form input:focus-visible, .signup-form select:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}
.signup-msg { margin-top: 12px; font-weight: 700; color: var(--teal-dark); }
.fine-print { margin-top: 14px; font-size: .85rem; opacity: .8; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-photo {
  display: flex; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(41,182,216,.14), transparent 62%);
}
.about-photo img { max-height: 420px; width: auto; border-radius: 0; box-shadow: none; }
.about-copy p { font-size: 1.1rem; max-width: 36em; }

/* ---------- B2B ---------- */
.b2b { background: var(--purple-tint); }
.b2b-inner { text-align: center; max-width: 620px; }
.b2b-inner p { margin-bottom: 1.4em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: 40px 0 96px; /* нижний отступ — чтобы sticky-кнопка не закрывала текст */
  font-size: .9rem; text-align: center;
}
.footer-inner p { margin-bottom: .5em; }
.footer-links { margin: 14px 0; display: flex; gap: 18px; justify-content: center; }
.footer-links a { color: var(--white); }
.social-row { display: flex; gap: 14px; justify-content: center; margin-top: 10px; }
.social-row a {
  color: var(--navy); background: var(--white);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; text-decoration: none;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(22,50,79,.12);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta[hidden] { display: none; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .coloring-grid { grid-template-columns: repeat(3, 1fr); }
  .signup-form form { flex-direction: row; }
  .signup-form input { flex: 2 1 200px; }
  .signup-form select { flex: 1 1 160px; }
  .signup-form button { flex: 1 0 auto; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1.6fr; }
  .coloring-grid { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { display: none; } /* только мобайл */
  .site-footer { padding-bottom: 40px; }
}
