/* =========================================================================
   Дневник питания с Алисой — лендинг
   Светлая тема (по требованию), праздничная палитра, БЕЗ анимаций и скриптов.
   Один акцент для всех призывов — фирменный красный. Праздничные цвета
   (жёлтый/зелёный/голубой/персик) используются только как фон плиток и декор.
   Скругления: кнопки — pill, карточки — 24px, мелкое — 14px.
   ========================================================================= */

:root {
  /* Фон и текст */
  --bg:        #FFF9F2;   /* тёплый кремовый, не чисто белый */
  --bg-soft:   #FFF1E2;
  --ink:       #2B1A12;   /* тёплый тёмный, не чёрный */
  --ink-soft:  #6E574B;

  /* Единственный акцент (фирменный красный логотипа) */
  --accent:        #DC3528;
  --accent-press:  #BE2A1F;
  --accent-tint:   #FCE3DF;

  /* Праздничные цвета — только для фонов плиток и декора */
  --sky:   #DCEFF8;  --sky-ink:   #1C4E63;
  --sun:   #FFEFBE;  --sun-ink:   #6B4E12;
  --leaf:  #E2F2D6;  --leaf-ink:  #2F5524;
  --peach: #FFE2CE;  --peach-ink: #7A3F1E;

  /* Скругления */
  --r-card: 24px;
  --r-sm:   14px;
  --r-pill: 999px;

  /* Тень, тонированная под тёплый фон (не чёрная) */
  --shadow: 0 18px 40px rgba(120, 60, 30, 0.10);
  --shadow-sm: 0 8px 20px rgba(120, 60, 30, 0.08);

  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Golos Text', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Unbounded', system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

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

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

/* ---------- Кнопки (единый акцент, форма pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 17px;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  /* короткая обратная связь только по цвету/тени — не движущийся элемент */
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn--lg { font-size: 18px; padding: 16px 32px; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-press); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(43, 26, 18, 0.18); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); }

.btn--light { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.btn--light:hover { background: var(--sun); color: var(--ink); }

/* ---------- Шапка ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 32px; height: 32px; object-fit: contain; }
.brand__name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 19px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-weight: 500; color: var(--ink-soft); }
.nav__links a:hover { color: var(--accent); }
.nav__cta { padding: 10px 22px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero__title {
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero__title .hl { color: var(--accent); }
.hero__sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Цена под кнопками первого экрана: видна на всех устройствах */
.hero__price { margin-top: 16px; font-size: 16px; color: var(--ink-soft); }
.hero__price-amount { font-weight: 600; color: var(--ink); }

/* Пометка о платформе: скрыта на десктопе, показывается на узком экране */
.platform-note { display: none; margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.hero__visual { position: relative; }
.foodcard {
  background: #fff;
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--shadow);
  rotate: 2deg; /* статичный наклон для живости, без движения */
}
.foodcard img { border-radius: 16px; }

/* Декоративные кружки-конфетти (простые статичные формы) */
.confetti { position: absolute; border-radius: 50%; pointer-events: none; }
.confetti--sun  { width: 56px; height: 56px; background: var(--sun);  top: -22px; right: 36px; }
.confetti--leaf { width: 38px; height: 38px; background: var(--leaf); bottom: -16px; right: -10px; }
.confetti--sky  { width: 30px; height: 30px; background: var(--sky);  bottom: 40px; left: -18px; }

/* ---------- Как это работает ---------- */
.how {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: var(--r-card);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  width: 66px; height: 66px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step__num--accent { background: var(--accent); }
.step__num--sun    { background: #F2B43C; }
.step__num--leaf   { background: #6FB85A; }
.step__title { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.step__body p { color: var(--ink-soft); }

/* ---------- Возможности (bento) ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile {
  border-radius: var(--r-card);
  padding: 30px;
  grid-column: span 2;
}
.tile--wide { grid-column: span 4; }
.tile__emoji { font-size: 38px; line-height: 1; display: block; margin-bottom: 16px; }
.tile__title { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.tile p { font-size: 17px; }

.tile--sky   { background: var(--sky);   color: var(--sky-ink); }
.tile--sun   { background: var(--sun);   color: var(--sun-ink); }
.tile--leaf  { background: var(--leaf);  color: var(--leaf-ink); }
.tile--peach { background: var(--peach); color: var(--peach-ink); }
.tile--accent{ background: var(--accent-tint); color: var(--accent-press); }
.tile--sky p, .tile--sun p, .tile--leaf p, .tile--peach p, .tile--accent p { opacity: 0.9; }

/* ---------- Пример ---------- */
.example {
  background: var(--bg-soft);
  padding: 72px 24px;
}
.example__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.example__label {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.bubble {
  background: #fff;
  border-radius: var(--r-card);
  border-bottom-left-radius: 6px;
  padding: 20px 26px;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.example__arrow { font-size: 30px; color: var(--accent); font-weight: 700; }

/* Реальные снимки программы в аккуратной рамке */
.shot { margin: 0; width: 100%; display: grid; justify-items: center; }
.shot img {
  width: 100%;
  max-width: 980px;
  border-radius: 16px;
  border: 1px solid rgba(43, 26, 18, 0.12);
  box-shadow: var(--shadow);
}
.shot--card img { max-width: 660px; }            /* крупная карточка одного приёма — текст читаем */
.example__label--more { margin-top: 14px; }      /* отступ перед общим видом дневника */

/* ---------- Финальный призыв ---------- */
.cta {
  max-width: var(--maxw);
  margin: 72px auto;
  padding: 64px 32px;
  background: var(--accent);
  border-radius: 32px;
  text-align: center;
  color: #fff;
}
.cta__title { font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; margin-bottom: 14px; }
.cta__sub { font-size: 20px; opacity: 0.92; margin-bottom: 24px; }
.cta__price { display: grid; justify-items: center; gap: 4px; margin-bottom: 26px; }
.cta__amount { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(26px, 4.4vw, 48px); line-height: 1.12; }
.cta__terms { font-size: 15px; opacity: 0.9; }
.cta__feedback { margin-top: 18px; font-size: 15px; opacity: 0.9; }
.cta__feedback a { text-decoration: underline; text-underline-offset: 3px; }
.cta__feedback a:hover { opacity: 0.8; }

/* ---------- Важное условие работы ---------- */
.room-note {
  max-width: var(--maxw);
  margin: -36px auto 72px;
  padding: 24px 28px;
  border-left: 4px solid var(--sun);
  border-radius: 0 18px 18px 0;
  background: var(--bg-soft);
}
.room-note h2 { font-family: 'Unbounded', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.room-note p { color: var(--ink-soft); }
.room-note p + p { margin-top: 16px; }

/* ---------- Подвал ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(43, 26, 18, 0.10);
  color: var(--ink-soft);
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: 'Unbounded', sans-serif; font-weight: 600; color: var(--ink); }
.footer__logo { width: 26px; height: 26px; object-fit: contain; }
.footer__note { margin-left: auto; font-size: 15px; }

/* =========================================================================
   Юридические страницы (оферта, политика, контакты) — единый стиль с лендингом
   ========================================================================= */
.legal-head {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.legal-head .brand { margin-right: auto; }
.legal-back { font-weight: 500; color: var(--accent); }
.legal-back:hover { text-decoration: underline; }

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.legal h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 8px;
}
.legal .legal-date { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.legal h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 30px 0 12px;
}
.legal p, .legal li { font-size: 17px; color: #3a2a20; line-height: 1.65; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .req {
  background: var(--bg-soft);
  border-radius: var(--r-card);
  padding: 20px 24px;
  margin-top: 8px;
}
.legal .req p { margin-bottom: 6px; }

/* Ссылки на документы в подвале */
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; width: 100%; margin-top: 4px; }
.footer__legal a { color: var(--ink-soft); font-size: 14px; }
.footer__legal a:hover { color: var(--accent); }

/* =========================================================================
   Адаптив (это не анимация, а просто перестроение под узкий экран)
   ========================================================================= */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    gap: 36px;
    text-align: center;
  }
  .hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 460px; margin: 0 auto; }

  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; }

  .nav__links { display: none; } /* на узком экране оставляем логотип и призыв */
  .platform-note { display: block; } /* пометку про Windows показываем на телефоне */

  .step { grid-template-columns: auto 1fr; padding: 22px; }
  .nav__cta { font-size: 15px; padding: 9px 16px; }
  .room-note { margin: -36px 20px 56px; padding: 22px; }
}

@media (max-width: 460px) {
  body { font-size: 17px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__note { margin-left: 0; }
  .macros { gap: 18px; }
}
