/* ============================================================
   Английский с Аней — общая дизайн-система
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Onest:wght@400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

:root {
  /* — Цвет — */
  --cream:      #FCF8F4;
  --cream-2:    #F6F0E8;
  --paper:      #FFFDFA;
  --mint:       #BCE2DE;
  --mint-soft:  #DCEEEB;
  --mint-pill:  #D4EAE7;
  --teal:       #0B8F93;
  --teal-deep:  #0A7B7F;
  --teal-ink:   #0E6E72;
  --coral:      #FB433A;
  --coral-deep: #E8342B;
  --coral-soft: #FEE7E2;
  --coral-tint: #FBC9BE;
  --ink:        #15191B;
  --ink-2:      #3F4548;
  --ink-3:      #6A7073;
  --line:       rgba(21,25,27,.12);
  --line-soft:  rgba(21,25,27,.07);
  --black:      #101314;

  /* — Акцент (переключается в Tweaks) — */
  --accent:        var(--coral);
  --accent-deep:   var(--coral-deep);
  --accent-soft:   var(--coral-soft);
  --accent-on:     #fff;

  /* — Шрифты — */
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand:  'Caveat', 'Segoe Script', cursive;

  /* — Радиусы / тени — */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(21,25,27,.05), 0 2px 8px rgba(21,25,27,.04);
  --shadow-md: 0 4px 14px rgba(21,25,27,.07), 0 14px 40px rgba(21,25,27,.06);
  --shadow-lg: 0 10px 30px rgba(21,25,27,.10), 0 30px 70px rgba(21,25,27,.08);
  --shadow-sticker: 0 6px 16px rgba(21,25,27,.16);

  --maxw: 1240px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.04;
  margin: 0;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 200px; }

/* ============================================================
   Типографика-утилиты
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink);
  background: var(--mint-pill);
  padding: 7px 14px; border-radius: 999px;
}
.lead { font-size: 19px; color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-3); }
.accent-text { color: var(--accent); }
.hand { font-family: var(--hand); }

/* подчёркивание-маркер под заголовками (как в макете) */
.brush-underline { position: relative; display: inline-block; }
.brush-underline::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.16em;
  height: .14em; border-radius: 999px;
  background: var(--teal);
  transform: rotate(-.4deg);
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-md);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
.club-consent { display:flex; align-items:flex-start; gap:7px; margin-top:12px; max-width:480px; font-size:10px; line-height:1.4; color: color-mix(in srgb, var(--ink-3) 70%, #fff); cursor:pointer; user-select:none; }
.club-consent input { flex:none; width:13px; height:13px; margin-top:1px; accent-color: var(--teal); cursor:pointer; }
.club-consent a, .consent-check a, .streams-consent a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.club-consent a:hover, .consent-check a:hover, .streams-consent a:hover { color: var(--accent); }
.streams-consent { text-align:center; max-width:560px; margin:22px auto 0; font-size:10px; line-height:1.45; color: color-mix(in srgb, var(--ink-3) 70%, #fff); }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 42%, transparent); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(11,143,147,.32); }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11,143,147,.4); }
.btn-ghost { background: transparent; color: var(--teal-ink); border-color: var(--teal); }
.btn-ghost:hover { background: var(--mint-soft); transform: translateY(-2px); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   Поля ввода / форма
   ============================================================ */
.field {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field svg { flex: none; color: var(--ink-3); }
.field input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 15px 0;
}
.field input::placeholder { color: var(--ink-3); }
.field.invalid { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.form-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* ============================================================
   Карточки
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Стикеры (фишка бренда)
   ============================================================ */
.sticker {
  position: absolute;
  font-family: var(--hand);
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sticker);
  user-select: none;
  z-index: 3;
}
.sticker-bubble { /* речевой пузырь со скруглением */
  padding: 10px 18px 12px;
  border-radius: 18px 18px 18px 6px;
  font-size: 30px; line-height: 1;
}
.sticker-mint   { background: var(--mint); color: #0c3a3c; }
.sticker-coral  { background: var(--coral); color: #fff; }
.sticker-black  { background: #101314; color: #fff; }
.sticker-paper  { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.sticker-rot-l  { transform: rotate(-7deg); }
.sticker-rot-r  { transform: rotate(6deg); }

/* маленький хвостик у пузыря */
.sticker-bubble::after {
  content: ""; position: absolute; width: 0; height: 0;
}

/* мелкие нарисованные детали */
.spark { position: absolute; color: var(--ink); z-index: 2; }
.heart-mark { color: var(--coral); }

/* ============================================================
   Навигация
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--sans); font-weight: 800; font-size: 25px; letter-spacing: -.02em; color: var(--ink); position: relative; }
.brand .brand-underline { position: relative; }
.brand .brand-underline::after { content:""; position:absolute; left:0; right:0; bottom:-5px; height:3px; border-radius:999px; background: var(--teal); }
.brand .b-anh { color: var(--accent); }
.brand .brand-heart { color: var(--coral); font-size: 16px; align-self: flex-start; margin-left: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 14px; }
.nav-links a { font-weight: 600; font-size: 16px; color: var(--ink-2); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-social { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); transition: all .16s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.nav-burger { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding: 30px 0; margin-top: 90px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-handle { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-2); }
.footer-center { flex: 1; text-align: center; font-size: 14px; color: var(--ink-3); min-width: 240px; }
.footer .copy { color: var(--ink-3); font-size: 14px; }
.footer a.link { color: var(--teal-ink); border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.footer-legal { margin-top: 10px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
.footer-legal a { color: var(--ink-3); transition: color .15s ease; }
.footer-legal a:hover { color: var(--accent); }
.footer-legal span { color: var(--line); }

/* ============================================================
   Секции — общее
   ============================================================ */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.section-title { font-size: clamp(30px, 4vw, 44px); }

/* нумерованный кружок у заголовков */
.num-badge {
  flex: none; width: 34px; height: 34px; border-radius: 999px;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 17px;
}

/* анимация появления при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  .wrap { padding: 0 120px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links, .nav-social { display: none; }
  .nav-burger { display: grid; margin-left: auto; }
  .section { padding: 68px 0; }
  .wrap { padding: 0 40px; }
}

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--cream);
  display: none; flex-direction: column;
  padding: 24px 24px 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 30px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .mm-social { display: flex; gap: 12px; margin-top: 30px; }

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

/* ============================================================
   Cookie-уведомление
   ============================================================ */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 660px; margin: 0 auto;
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--ink); color: #fff;
  padding: 15px 20px; border-radius: 16px; box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.4;
}
.cookie-bar.show { display: flex; }
.cookie-bar span { flex: 1; min-width: 200px; }
.cookie-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar a:hover { color: var(--mint); }
.cookie-bar button {
  flex: none; margin-left: auto;
  background: var(--teal); color: #fff; border: none;
  border-radius: 11px; padding: 10px 22px;
  font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .16s ease;
}
.cookie-bar button:hover { background: var(--teal-deep); }
@media (max-width: 560px) {
  .cookie-bar button { margin-left: 0; width: 100%; }
}
