/* ===========================================================
   BabyDay landing - тёплый nursery-editorial
   Палитра бренда: коралл, абрикос, шалфей, крем, тёмный.
   Шрифты: Cormorant (display) + Golos Text (body, кириллица).
   =========================================================== */

:root {
  --cream: #FBF5EF;
  --cream-2: #F5EBDF;
  --paper: #FFFCF8;
  --ink: #241C16;
  --ink-soft: #6E6056;
  --coral: #E79A82;
  --coral-deep: #CF785C;
  --apricot: #EBC59E;
  --sage: #9DBBA0;
  --sage-deep: #6E9173;
  --line: rgba(36, 28, 22, 0.10);
  --line-soft: rgba(36, 28, 22, 0.06);

  --shadow-sm: 0 1px 2px rgba(54, 38, 28, 0.05), 0 4px 14px rgba(54, 38, 28, 0.06);
  --shadow-md: 0 8px 30px rgba(54, 38, 28, 0.10), 0 2px 8px rgba(54, 38, 28, 0.05);
  --shadow-lg: 0 30px 70px rgba(54, 38, 28, 0.16);

  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 22px;
  --radius-lg: 34px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* фоновая текстура-зерно поверх всего */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 16ch;
}

.section { padding: clamp(70px, 9vw, 130px) 0; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 239, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { color: var(--coral); display: inline-flex; }
.brand-mark.big { color: var(--coral); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.site-nav { display: flex; gap: 30px; margin-left: 14px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--coral); background: rgba(231, 154, 130, 0.08); }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--coral-deep);
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pill:hover { transform: translateY(-1px); background: #c46d51; box-shadow: var(--shadow-md); }

/* =================== HERO =================== */
.hero { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }

.hero-glow {
  position: absolute;
  top: -18%; left: 50%;
  width: 1100px; height: 780px;
  transform: translateX(-50%);
  z-index: 0;
  background:
    radial-gradient(40% 50% at 28% 32%, rgba(231, 154, 130, 0.42), transparent 70%),
    radial-gradient(38% 46% at 74% 30%, rgba(235, 197, 158, 0.45), transparent 70%),
    radial-gradient(42% 50% at 60% 72%, rgba(157, 187, 160, 0.34), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--paper);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  animation: twinkle 4s ease-in-out infinite;
}
.star.s1 { top: 14%; left: 12%; width: 14px; height: 14px; animation-delay: 0s; }
.star.s2 { top: 24%; left: 84%; width: 9px; height: 9px; animation-delay: 0.8s; }
.star.s3 { top: 58%; left: 8%; width: 8px; height: 8px; animation-delay: 1.6s; }
.star.s4 { top: 70%; left: 90%; width: 12px; height: 12px; animation-delay: 1.1s; }
.star.s5 { top: 8%; left: 52%; width: 7px; height: 7px; animation-delay: 2.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.95; transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title .accent {
  font-style: italic;
  color: var(--coral-deep);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 32ch;
  margin-bottom: 34px;
}

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px 11px 17px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  cursor: default;
  position: relative;
  transition: transform 0.2s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-ico { flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-text small { font-size: 11px; font-weight: 500; opacity: 0.7; letter-spacing: 0.02em; }
.store-text strong { font-size: 17px; font-weight: 600; }

.hero-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }

/* ----- phone glimpse ----- */
.hero-art { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 290px;
  background: linear-gradient(160deg, #fff, var(--paper));
  border-radius: 38px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-9deg) rotateX(3deg) translateY(-12px); }
}
.phone-screen {
  background: var(--cream);
  border-radius: 26px;
  padding: 22px 20px;
  border: 1px solid var(--line-soft);
}
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.app-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.app-baby { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.app-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(145deg, var(--apricot), var(--coral));
}

.app-timeline { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.app-timeline li {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}
.app-timeline li.running { border-color: rgba(231, 154, 130, 0.5); background: rgba(231, 154, 130, 0.08); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot-feed { background: var(--coral); }
.dot-sleep { background: var(--sage); }
.dot-diaper { background: var(--apricot); }
.t-label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.t-time { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.t-time.live { color: var(--coral-deep); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.app-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.app-stat { display: flex; flex-direction: column; align-items: center; }
.app-stat b { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--coral-deep); }
.app-stat i { font-style: normal; font-size: 11px; color: var(--ink-soft); }

/* =================== TRUST STRIP =================== */
.trust { background: var(--ink); color: var(--cream); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 22px;
  padding: 20px 28px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
}
.trust-inner i { color: var(--coral); font-style: normal; }

/* =================== FEATURES =================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(231, 154, 130, 0.35); }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 18px 0 10px;
  color: var(--ink);
}
.feature-card p { font-size: 15.5px; color: var(--ink-soft); }

.fc-ico {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(235, 197, 158, 0.55), rgba(231, 154, 130, 0.30));
  color: var(--coral-deep);
}
.feature-card:nth-child(3n+2) .fc-ico { background: linear-gradient(150deg, rgba(157, 187, 160, 0.5), rgba(157, 187, 160, 0.22)); color: var(--sage-deep); }
.feature-card:nth-child(3n) .fc-ico { background: linear-gradient(150deg, rgba(235, 197, 158, 0.7), rgba(235, 197, 158, 0.3)); color: #b5803f; }
.fc-ico svg { width: 26px; height: 26px; }

/* =================== HOW IT WORKS =================== */
.how { background: var(--cream-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  padding: 36px 28px 30px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: var(--coral);
  opacity: 0.55;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 14px 0 9px; color: var(--ink); }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* =================== FINAL CTA =================== */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 70% at 50% 30%, rgba(231, 154, 130, 0.20), transparent 70%);
}
.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final .brand-mark.big { margin-bottom: 22px; animation: floaty-soft 6s ease-in-out infinite; }
@keyframes floaty-soft { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.final-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 18ch;
}
.final-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; margin: 18px auto 32px; }

.socials { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.socials-label { font-size: 14px; color: var(--ink-soft); }
.social {
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.social:hover { border-color: var(--coral); color: var(--coral-deep); background: rgba(231, 154, 130, 0.08); transform: translateY(-1px); }

/* =================== FAQ =================== */
.faq { background: var(--cream-2); }
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(231, 154, 130, 0.35); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--coral-deep);
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }

/* =================== FOOTER =================== */
.site-footer { background: var(--ink); color: var(--cream); padding: 60px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-mark { color: var(--coral); }
.footer-tagline { margin-top: 12px; font-size: 15px; color: rgba(251, 245, 239, 0.6); max-width: 26ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer-links a { font-size: 14.5px; color: rgba(251, 245, 239, 0.72); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13.5px; color: rgba(251, 245, 239, 0.5); }
.footer-domain { letter-spacing: 0.05em; }

/* =================== REVEAL ANIMATION =================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal.in:nth-child(2) { transition-delay: 0.06s; }
.feature-grid .reveal.in:nth-child(3) { transition-delay: 0.12s; }
.feature-grid .reveal.in:nth-child(4) { transition-delay: 0.04s; }
.feature-grid .reveal.in:nth-child(5) { transition-delay: 0.10s; }
.feature-grid .reveal.in:nth-child(6) { transition-delay: 0.16s; }
.steps .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal.in:nth-child(3) { transition-delay: 0.16s; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; margin-bottom: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Доступность: видимый фокус только для клавиатуры (мышь/тач не показывают рамку). */
:focus-visible {
  outline: 2px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.social:focus-visible,
.lang-toggle:focus-visible,
.pill:focus-visible {
  outline: 2px solid var(--coral-deep);
  outline-offset: 3px;
}
/* Скрытая ссылка «к содержимому» - появляется при табе с клавиатуры. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }
