/* ============================================================
   ЛапаХаб · общий стиль трёх страниц
   Палитра и шрифты — строго по брендбуку v2.
   ============================================================ */

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

:root {
  --orange: #F5830A;
  --orange-dark: #C4650A;
  --orange-800: #8A4206;
  --orange-bg: #FFF0DC;
  --orange-100: #FAD5A0;
  --green: #1B5E3A;
  --green-400: #2E7D55;
  --green-800: #0D3D24;
  --green-bg: #E8F4EE;
  --green-100: #A3CCBB;
  --peach: #FFF8F0;
  --ink: #2C2C2A;
  --muted: #888780;
  --gray-mid: #D3D1C7;
  --gray-light: #F1EFE8;
  --white: #FFFFFF;
  --brand: 'Nunito', sans-serif;
  --body: 'Nunito Sans', sans-serif;
  --shadow-soft: 0 18px 44px -20px rgba(138, 66, 6, .28);
  --radius-blob: 32px 46px 36px 50px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--peach);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--orange-100); color: var(--orange-800); }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- лёгкое зерно поверх всего (еле заметное) --- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
  z-index: 999;
  opacity: .5;
}

/* --- кастомный курсор: только десктоп с мышью --- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor {
    display: block;
    width: 12px; height: 12px;
    background: var(--orange);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, background .25s, opacity .25s;
  }
  .cursor.big { width: 42px; height: 42px; background: var(--green); opacity: .35; }
}

/* ============ ШАПКА ============ */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(20px, 4vw, 52px);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.top.scrolled {
  background: rgba(255, 248, 240, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(44,44,42,.07);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--brand);
  font-weight: 900;
  font-size: 22px;
  flex-shrink: 0;
}
.logo img {
  width: 40px; height: 40px;
  object-fit: contain;
  transform: rotate(-8deg);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover img { transform: rotate(8deg) scale(1.12); }
.logo b { color: var(--orange); }
.logo i { color: var(--green); font-style: normal; }

.top-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  background: rgba(44,44,42,.05);
  border: 1.5px solid rgba(44,44,42,.1);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--green); color: var(--peach); }
.lang-btn:hover:not(.active) { color: var(--ink); }

.tg-mini {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: var(--orange);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 22px -10px var(--orange);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.tg-mini:hover { transform: translateY(-2px) rotate(-1deg) scale(1.03); }

/* ============ ОБЩИЕ БЛОКИ ============ */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { position: relative; }

.sec-kicker {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 14px;
  display: block;
}
.sec-title {
  font-family: var(--brand);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.sec-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(14px, 1.9vw, 17px);
  max-width: 560px;
  margin-top: 16px;
}
.sec-sub b { color: var(--ink); }

/* появление с каскадом */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

.lang-fade { transition: opacity .25s ease; }
.lang-fade.switching { opacity: 0; }

/* орбы фона */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  pointer-events: none;
  z-index: 0;
}
.orb.o-orange { background: var(--orange-100); }
.orb.o-green { background: var(--green-100); }
.orb.o-peach { background: #FFE3C2; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-34px,30px) scale(1.07)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-24px) scale(.95)} }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50% { transform: translateY(-16px) rotate(2.5deg); }
}
@keyframes fadeUp { from{opacity:0; transform:translateY(28px)} to{opacity:1; transform:translateY(0)} }

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 34px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.btn:active { transform: scale(.96); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 14px 34px -14px var(--orange); }
.btn-orange:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 20px 44px -14px var(--orange); }
.btn-ghost { background: transparent; color: var(--green-800); border: 2.5px solid var(--green-100); }
.btn-ghost:hover { transform: translateY(-4px) rotate(1deg); background: var(--green-bg); }
.btn-peach { background: var(--peach); color: var(--green-800); }
.btn-peach:hover { transform: translateY(-4px) rotate(-1deg); }

/* ============ ГЕРОЙ (главная) ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}
.hero .wrap {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-copy { flex: 1.25; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--green-bg);
  border: 1.5px solid var(--green-100);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 26px;
  animation: fadeUp .8s ease both;
}
.hero-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.45; transform:scale(1.35)} }

.hero h1 {
  font-family: var(--brand);
  font-weight: 900;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: .99;
  letter-spacing: -.025em;
  animation: fadeUp .85s ease .1s both;
}
.hero h1 .squiggle { color: var(--orange); position: relative; display: inline-block; }
.hero h1 .squiggle svg {
  position: absolute; left: 0; right: 0; bottom: -.1em;
  width: 100%; height: .2em; overflow: visible;
}
.hero h1 .squiggle path {
  stroke: var(--orange);
  stroke-width: 7; fill: none; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw 1s .9s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  font-weight: 600;
  max-width: 520px;
  margin-top: 24px;
  animation: fadeUp .85s ease .22s both;
}
.hero-sub b { color: var(--ink); }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
  animation: fadeUp .85s ease .34s both;
}

.hero-art {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp .9s ease .3s both;
}
.hero-art img {
  width: clamp(240px, 30vw, 400px);
  animation: floaty 6.5s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(138,66,6,.18));
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--brand);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeUp .8s .8s both;
  z-index: 2;
}
.scroll-hint::after {
  content: '↓';
  display: block;
  text-align: center;
  font-size: 16px;
  margin-top: 3px;
  animation: floaty 2.2s ease-in-out infinite;
}

/* ============ MARQUEE ============ */
.marquee-wrap {
  background: var(--green);
  padding: 15px 0;
  overflow: hidden;
  transform: rotate(-1.3deg) scale(1.02);
  position: relative;
  z-index: 5;
}
.marquee-inner { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-inner span {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--peach);
  white-space: nowrap;
  padding: 0 16px;
}
.marquee-inner span.dot { color: var(--orange-100); padding: 0 6px; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============ ТИЗЕРЫ (игра / калькулятор) ============ */
.teaser { padding: clamp(70px, 10vw, 120px) 0; overflow: hidden; }
.teaser .wrap {
  display: flex;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  position: relative;
  z-index: 2;
}
.teaser.flip .wrap { flex-direction: row-reverse; }
.teaser-copy { flex: 1.2; }
.teaser-art { flex: .8; display: flex; justify-content: center; }
.teaser-art img {
  width: clamp(200px, 24vw, 320px);
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 26px 36px rgba(44,44,42,.16));
}
.teaser-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* мини-демо квиза внутри тизера игры */
.mini-quiz {
  margin-top: 30px;
  background: var(--white);
  border-radius: var(--radius-blob);
  padding: 26px 28px 24px;
  max-width: 470px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.2deg);
  position: relative;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.mini-quiz:hover { transform: rotate(0deg) scale(1.015); }
.mini-quiz .mq-badge {
  position: absolute;
  top: -14px; left: 24px;
  background: var(--green);
  color: #fff;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  transform: rotate(-2.5deg);
}
.mini-quiz .mq-q {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.3;
  margin-bottom: 18px;
}
.mq-btns { display: flex; gap: 10px; }
.mq-btn {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 100px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.mq-btn:hover { transform: translateY(-3px); }
.mq-btn:active { transform: scale(.94); }
.mq-btn.m { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -9px var(--orange); }
.mq-btn.f { background: var(--green-bg); color: var(--green-800); border: 2px solid var(--green-100); }
.mq-result { display: none; }
.mini-quiz.answered .mq-q, .mini-quiz.answered .mq-btns { display: none; }
.mini-quiz.answered .mq-result { display: block; animation: fadeUp .5s both; }
.mq-verdict { font-family: var(--brand); font-weight: 900; font-size: 21px; margin-bottom: 8px; }
.mq-verdict.win { color: var(--green); }
.mq-verdict.lose { color: var(--orange-dark); }
.mq-expl { font-size: 14px; font-weight: 600; }
.mq-src {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-800);
  background: var(--green-bg);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============ ГАЙДЫ ============ */
.guides { padding: clamp(70px, 10vw, 110px) 0; background: var(--white); border-radius: 60px; margin: 0 clamp(8px, 2vw, 24px); overflow: hidden; }
.guides-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.guide-card {
  background: var(--peach);
  border: 1.5px solid var(--orange-border, #F5D5B0);
  border-radius: 26px 34px 28px 38px;
  padding: 26px 24px 22px;
  position: relative;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.guide-card:nth-child(odd) { transform: rotate(-.8deg); }
.guide-card:nth-child(even) { transform: rotate(.8deg); }
.guide-card:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-soft); }
.guide-card img { width: 78px; height: 78px; object-fit: contain; margin-bottom: 14px; }
.guide-card h3 { font-family: var(--brand); font-weight: 800; font-size: 17px; line-height: 1.25; }
.guide-card p { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.guide-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 100px;
}
.guide-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.guide-status.soon { background: var(--orange-bg); color: var(--orange-800); }
.guide-status.soon::before { background: var(--orange); }
.guide-status.live { background: var(--green-bg); color: var(--green-800); }
.guide-status.live::before { background: var(--green-400); animation: pulse 2s infinite; }
.guides-note { margin-top: 32px; font-size: 14px; font-weight: 600; color: var(--muted); }
.guides-note a { color: var(--orange-dark); font-weight: 800; }

/* ============ МИФЫ ============ */
.myths {
  background: var(--green);
  color: var(--peach);
  border-radius: 60px;
  margin: clamp(50px, 8vw, 90px) clamp(8px, 2vw, 24px);
  padding: clamp(70px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.myths .sec-kicker { color: var(--orange-100); }
.myths .sec-sub { color: var(--green-100); }
.myths-head {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  justify-content: space-between;
}
.myths-head img {
  width: clamp(120px, 15vw, 190px);
  animation: floaty 7s ease-in-out infinite;
  flex-shrink: 0;
}
.myth-list { margin-top: 52px; }
.myth {
  border-top: 1.5px solid rgba(232,244,238,.18);
  padding: 26px 0;
  cursor: pointer;
  transition: padding-left .3s;
}
.myth:last-child { border-bottom: 1.5px solid rgba(232,244,238,.18); }
.myth:hover { padding-left: 14px; }
.myth-line { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.myth-q {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(19px, 3.2vw, 30px);
  line-height: 1.2;
  position: relative;
  transition: opacity .4s;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 0% .1em;
  transition: background-size .55s cubic-bezier(.7,0,.3,1), opacity .45s;
}
.myth.open .myth-q { background-size: 100% .1em; opacity: .55; }
.myth-toggle {
  flex-shrink: 0;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-100);
  border: 2px solid rgba(250,213,160,.4);
  border-radius: 100px;
  padding: 8px 18px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, opacity .3s;
}
.myth:hover .myth-toggle { background: var(--orange); border-color: var(--orange); color: #fff; }
.myth.open .myth-toggle { opacity: 0; }
.myth-body { max-height: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.4,0,.2,1), margin .4s; }
.myth.open .myth-body { max-height: 460px; margin-top: 18px; }
.myth-card {
  background: var(--peach);
  color: var(--ink);
  border-radius: 22px 32px 24px 36px;
  padding: 22px 26px;
  max-width: 660px;
}
.myth-card .stamp {
  display: inline-block;
  font-family: var(--brand);
  font-weight: 900;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--green-bg);
  border: 1.5px dashed var(--green-100);
  padding: 5px 14px;
  border-radius: 100px;
  transform: rotate(-2deg);
  margin-bottom: 12px;
}
.myth-card p { font-size: 14.5px; font-weight: 600; }
.myth-card .src { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.myth-share {
  margin-top: 14px;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--orange-800);
  background: var(--orange-bg);
  padding: 9px 20px;
  border-radius: 100px;
  transition: transform .18s;
}
.myth-share:hover { transform: rotate(-1.5deg) scale(1.05); }
.myths-cta { margin-top: 46px; }

/* ============ ДОВЕРИЕ ============ */
.trust { padding: clamp(60px, 9vw, 100px) 0; overflow: hidden; }
.trust .wrap { display: flex; gap: clamp(30px, 6vw, 80px); align-items: center; position: relative; z-index: 2; }
.trust-art { flex: .7; display: flex; justify-content: center; }
.trust-art img { width: clamp(160px, 18vw, 240px); animation: floaty 7.5s ease-in-out infinite; }
.trust-copy { flex: 1.4; }
.trust-copy .body-text { font-size: clamp(15px, 2vw, 17px); font-weight: 600; color: var(--ink); margin-top: 18px; max-width: 620px; }
.trust-copy .body-text + .body-text { margin-top: 12px; }
.trust-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust-pill {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 13px;
  color: var(--green-800);
  background: var(--green-bg);
  border: 1.5px solid var(--green-100);
  padding: 10px 20px;
  border-radius: 100px;
  transition: transform .2s;
}
.trust-pill:hover { transform: translateY(-3px) rotate(-1deg); }

/* ============ ФИНАЛ · TELEGRAM ============ */
.tg-final { padding: clamp(30px, 5vw, 60px) 0 clamp(70px, 9vw, 110px); }
.tg-stage {
  background: var(--orange);
  border-radius: 54px 44px 58px 46px;
  padding: clamp(46px, 7vw, 80px) clamp(26px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tg-stage::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.1);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  top: -170px; right: -130px;
}
.tg-stage > * { position: relative; z-index: 1; }
.tg-stage img.tg-paws {
  width: clamp(110px, 13vw, 160px);
  margin: 0 auto 22px;
  animation: floaty 6s ease-in-out infinite;
}
.tg-stage h2 {
  font-family: var(--brand);
  font-weight: 900;
  font-size: clamp(28px, 4.6vw, 48px);
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.tg-stage .tg-sub {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 17px);
  max-width: 470px;
  margin: 16px auto 0;
}
.bubbles { display: flex; flex-direction: column; gap: 11px; max-width: 440px; margin: 34px auto 0; }
.bubble {
  background: var(--peach);
  color: var(--ink);
  padding: 12px 19px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  max-width: 86%;
  box-shadow: 0 8px 22px -12px rgba(138,66,6,.5);
}
.bubble.b1 { border-radius: 20px 20px 20px 6px; align-self: flex-start; transform: rotate(-1deg); }
.bubble.b2 { border-radius: 20px 20px 6px 20px; align-self: flex-end; transform: rotate(1deg); background: var(--green); color: var(--peach); }
.bubble.b3 { border-radius: 20px 20px 20px 6px; align-self: flex-start; transform: rotate(-.5deg); }
.tg-actions { margin-top: 36px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tg-note { margin-top: 15px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.75); }
.tg-socials { display: flex; justify-content: center; gap: 18px; margin-top: 20px; }
.tg-socials a {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.3);
  transition: color .2s, border-color .2s;
}
.tg-socials a:hover { color: #fff; border-color: #fff; }

/* ============ ФУТЕР ============ */
footer {
  padding: 36px clamp(20px, 5vw, 56px) 46px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer .f-logo { display: flex; align-items: center; gap: 8px; font-family: var(--brand); font-weight: 900; font-size: 17px; }
footer .f-logo img { width: 30px; height: 30px; object-fit: contain; }
footer .f-logo b { color: var(--orange); }
footer .f-logo i { color: var(--green); font-style: normal; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
footer nav a:hover { color: var(--orange-dark); }
footer .f-copy { font-size: 11.5px; color: var(--muted); width: 100%; margin-top: 4px; }

/* ============ ВНУТРЕННИЕ СТРАНИЦЫ (игра / калькулятор) ============ */
.page-hero {
  padding: 150px 0 50px;
  overflow: hidden;
  position: relative;
}
.page-hero .wrap {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  position: relative;
  z-index: 2;
}
.page-hero-copy { flex: 1.4; }
.page-hero-art { flex: .6; display: flex; justify-content: center; }
.page-hero-art img {
  width: clamp(150px, 18vw, 250px);
  animation: floaty 6.5s ease-in-out infinite;
  filter: drop-shadow(0 22px 32px rgba(138,66,6,.16));
}
.crumbs {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--orange-dark); }
.crumbs span { color: var(--orange-dark); }

/* слот под встраиваемое приложение (игра / калькулятор) */
.app-section { padding: 30px 0 60px; }
.app-shell {
  background: var(--white);
  border-radius: var(--radius-blob);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 44px);
  position: relative;
  z-index: 2;
}
.app-placeholder {
  border: 2.5px dashed var(--orange-100);
  border-radius: 24px;
  padding: clamp(40px, 7vw, 80px) 24px;
  text-align: center;
  background: var(--orange-bg);
}
.app-placeholder .ph-emoji { font-size: 44px; margin-bottom: 14px; }
.app-placeholder h3 { font-family: var(--brand); font-weight: 800; font-size: clamp(19px, 2.6vw, 24px); color: var(--orange-800); }
.app-placeholder p { font-size: 14px; font-weight: 600; color: var(--orange-800); opacity: .8; max-width: 460px; margin: 10px auto 0; }
.app-placeholder code {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  background: var(--ink);
  color: var(--orange-100);
  padding: 8px 16px;
  border-radius: 10px;
}

/* фильтры (страница игры) */
.filters-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.filter-btn {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  border: 1.5px solid rgba(44,44,42,.12);
  padding: 9px 20px;
  border-radius: 100px;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--green-100); color: var(--green-800); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--peach); }

/* блок «почему так считаем» / после игры */
.explain { padding: 20px 0 70px; }
.explain-card {
  background: var(--green-bg);
  border: 1.5px solid var(--green-100);
  border-radius: 26px 36px 28px 40px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.explain-card img { width: clamp(80px, 10vw, 130px); flex-shrink: 0; animation: floaty 7s ease-in-out infinite; }
.explain-card h3 { font-family: var(--brand); font-weight: 800; font-size: clamp(19px, 2.6vw, 25px); color: var(--green-800); }
.explain-card p { font-size: 14.5px; font-weight: 600; color: var(--green-800); opacity: .85; margin-top: 8px; }

/* крестовая навигация между страницами */
.cross-nav { padding: 0 0 90px; }
.cross-nav .wrap { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }

/* ============ АДАПТИВ ============ */
@media (max-width: 900px) {
  .hero .wrap, .teaser .wrap, .teaser.flip .wrap, .trust .wrap, .page-hero .wrap {
    flex-direction: column;
    text-align: center;
  }
  .hero-art { order: -1; }
  .hero-art img { width: clamp(180px, 44vw, 260px); }
  .hero { padding-top: 110px; }
  .hero-actions, .teaser-actions { justify-content: center; }
  .mini-quiz { margin-left: auto; margin-right: auto; }
  .myths-head { flex-direction: column; text-align: center; }
  .trust-pills { justify-content: center; }
  .page-hero { padding-top: 120px; }
  .page-hero-art { order: -1; }
  .explain-card { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .top { padding: 12px 16px; }
  .logo span.logo-text { display: none; }
  .tg-mini { padding: 9px 16px; font-size: 12px; }
  .myth-line { flex-direction: column; align-items: flex-start; gap: 10px; }
  .guides { border-radius: 36px; }
  .myths { border-radius: 36px; }
}

/* ============ ДВИЖЕНИЕ: УВАЖАЕМ НАСТРОЙКИ ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .orb, .marquee-inner { animation: none !important; }
  .hero-tag, .hero h1, .hero-sub, .hero-actions, .hero-art, .scroll-hint { opacity: 1 !important; }
}

/* ============================================================
   КАЛЬКУЛЯТОР КОРМА
   ============================================================ */
.calc { max-width: 820px; margin: 0 auto; }

.calc-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 24px;
  padding: 28px clamp(20px, 4vw, 32px);
  margin-bottom: 22px;
}
.calc-card h3 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--ink);
}
.calc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .calc-grid2 { grid-template-columns: 1fr; } }

.calc-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.calc-label.sm { font-size: 12px; font-weight: 600; margin: 10px 0 4px; }

.calc-input,
.calc-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: 14px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s;
}
.calc-input:focus, .calc-select:focus { outline: none; border-color: var(--green-400); }
.calc-input.invalid { border-color: #E24B4A; background: #FCEBEB; }
.calc-input.sm { padding: 10px 14px; font-size: 15px; font-weight: 600; border-width: 1.5px; }
.calc-select { font-weight: 600; font-size: 15px; }

.calc-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink);
  background: var(--gray-light);
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.55;
}
.calc-hint strong { color: var(--green-800); }

.calc-note-warm {
  background: var(--peach);
  border: 1.5px solid var(--orange-100);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--orange-800);
  font-weight: 600;
  line-height: 1.5;
}
.calc-note-warm + .calc-note-warm { margin-top: 12px; }

.calc-btn-primary {
  margin-top: 24px;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 17px;
  padding: 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px -15px var(--orange);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.calc-btn-primary:hover { transform: translateY(-2px); }
.calc-btn-primary:active { transform: scale(.98); }

/* режим кормления */
.mode-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-btn {
  flex: 1;
  min-width: 120px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  font-family: var(--brand);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.mode-btn.active-green { border-color: var(--green); background: var(--green-bg); color: var(--green-800); }
.mode-btn.active-orange { border-color: var(--orange); background: var(--orange-bg); color: var(--orange-800); }

/* результаты */
.calc-results {
  background: var(--green-bg);
  border: 1.5px solid var(--green-100);
  border-radius: 24px;
  padding: 28px clamp(20px, 4vw, 32px);
}
.calc-results h3 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 20px;
  color: var(--green-800);
  margin-bottom: 18px;
}
.result-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.result-stat {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
}
.result-stat .rs-label { font-size: 12px; color: var(--green-800); font-weight: 700; }
.result-stat .rs-value { font-family: var(--brand); font-size: 30px; font-weight: 900; color: var(--green-800); line-height: 1.1; margin-top: 4px; }
.result-stat .rs-unit { font-size: 12px; color: var(--muted); }

.food-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px 18px;
}
.food-card .fc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.food-card .fc-sub { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.food-card .fc-grams { font-family: var(--brand); font-size: 24px; font-weight: 800; color: var(--orange); margin-top: 8px; }
.food-card .fc-unit { font-size: 12px; color: var(--muted); }

.result-block-label { font-size: 13px; font-weight: 700; color: var(--green-800); margin-bottom: 10px; }
.water-box { background: var(--white); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.water-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .water-grid { grid-template-columns: 1fr; gap: 10px; } }
.water-grid .w-label { font-size: 13px; color: var(--muted); }
.water-grid .w-value { font-family: var(--brand); font-size: 24px; font-weight: 800; color: var(--green-800); }
.water-grid .w-value.accent { color: var(--orange); }

.calc-disclaimer {
  font-size: 13px;
  color: var(--green-800);
  background: var(--green-bg);
  border: 1px solid var(--green-100);
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  line-height: 1.55;
}
.calc-share-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 15px;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: transform .2s;
}
.calc-share-btn:hover { transform: translateY(-2px); }

.calc-explain-box {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 18px;
  padding: 20px 22px;
}
.calc-explain-box .ceb-title { font-family: var(--brand); font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.calc-explain-box .ceb-item { margin-bottom: 14px; }
.calc-explain-box .ceb-item:last-child { margin-bottom: 0; }
.calc-explain-box strong { color: var(--green-800); }
.calc-explain-box .ceb-item span { font-size: 13px; color: var(--ink); }

.calc-source {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.calc-slider-wrap { margin-top: 16px; }
.calc-slider-wrap input[type=range] { width: 100%; accent-color: var(--orange); }

/* ============================================================
   РАМКА ВСТРОЕННОЙ ИГРЫ (iframe)
   ============================================================ */
.game-frame {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  background: var(--peach);
  box-shadow: var(--shadow-soft), 0 0 0 1.5px var(--gray-mid);
}
.game-frame iframe {
  display: block;
  width: 100%;
  height: min(760px, 88svh);
  min-height: 560px;
  border: 0;
  background: var(--peach);
}
@media (max-width: 560px) {
  .game-frame { border-radius: 22px; }
  .game-frame iframe { height: 86svh; min-height: 520px; }
}

/* ============================================================
   СТРАНИЦА ГАЙДА (статья)
   ============================================================ */
.guide-article { padding: 110px 0 70px; }
.guide-article .wrap { max-width: 760px; } /* узкая колонка = комфортное чтение */

.guide-article .crumbs { margin-bottom: 26px; }

.guide-h1 {
  font-family: var(--brand);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.guide-lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--peach);
  border-left: 4px solid var(--orange);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.guide-lead b { color: var(--orange-dark); }
.guide-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.guide-article h2 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--green-800);
}
.guide-article h3 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 26px 0 10px;
}
.guide-article p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 16px;
}
.guide-article p b { color: var(--ink); font-weight: 800; }

.guide-sources {
  background: var(--green-bg);
  border: 1.5px solid var(--green-100);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 44px 0 36px;
}
.guide-sources h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--green-800);
}
.guide-sources ul { list-style: none; padding: 0; }
.guide-sources li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--green-800);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.guide-sources li::before { content: '🔬'; position: absolute; left: 0; font-size: 12px; }

.guide-cta {
  background: var(--orange-bg);
  border: 1.5px solid var(--orange-100);
  border-radius: 24px;
  padding: 28px 30px;
  text-align: center;
  margin-bottom: 30px;
}
.guide-cta p { font-family: var(--brand); font-weight: 700; font-size: 17px; color: var(--orange-800); margin-bottom: 18px; }
.guide-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.guide-back { text-align: center; }
.guide-back a {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 15px;
  color: var(--green-800);
  text-decoration: none;
  transition: color .2s;
}
.guide-back a:hover { color: var(--orange-dark); }

/* ============================================================
   COOKIE-БАННЕР (152-ФЗ)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 20px;
  box-shadow: 0 20px 50px -18px rgba(44,44,42,.35);
  padding: 20px 22px;
  display: none;
}
.cookie-banner.show { display: block; animation: cookieUp .4s cubic-bezier(.22,.61,.36,1) both; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 14px;
}
.cookie-banner a { color: var(--orange-dark); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .18s;
}
.cookie-btn:active { transform: scale(.96); }
.cookie-btn.accept { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -9px var(--orange); }
.cookie-btn.accept:hover { transform: translateY(-2px); }
.cookie-btn.decline { background: var(--gray-light); color: var(--ink); }
.cookie-btn.decline:hover { background: var(--gray-mid); }
@media (max-width: 480px) {
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; }
}

/* Юридические страницы (политика) */
.legal { padding: 110px 0 70px; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-family: var(--brand);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal .legal-meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 32px; }
.legal h2 {
  font-family: var(--brand);
  font-weight: 800;
  font-size: clamp(19px, 2.8vw, 25px);
  color: var(--green-800);
  margin: 32px 0 12px;
}
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }
.legal .fill { background: var(--orange-bg); color: var(--orange-800); padding: 1px 8px; border-radius: 6px; font-weight: 700; }
.legal a { color: var(--orange-dark); font-weight: 700; }
