/* ============================================================
   Нутритрэк — дизайн-система сайта (premium, RU)
   Бренд: #1B4D35 primary · #2D6A4F accent · #52B788 light
          #2ecc8a mint · #F4C430 yellow · #E8736A coral · #F5F2ED bg
   Чистый HTML/CSS/JS. Без фреймворков. Core Web Vitals friendly.
   ============================================================ */

:root {
  --green:   #1B4D35;
  --green-2: #2D6A4F;
  --light:   #52B788;
  --mint:    #34b87a;        /* приглушённый изумруд (было неоновое #2ecc8a) */
  --yellow:  #E6B93C;        /* яркое золото (не бронза) */
  --gold-grad: linear-gradient(135deg, #F8DC84 0%, #DCAE36 100%);
  --coral:   #E8736A;
  --bg:      #F5F2ED;
  --card:    #FFFFFF;
  --sage:    #E3EEE6;
  --ink:     #19241D;
  --muted:   #51635A;
  --line:    #E7E1D6;
  --dark:    #14271D;

  --maxw: 1180px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Многослойные тени, единый источник света (сверху), зелёный тон — премиум-глубина */
  --shadow-sm: 0 1px 2px rgba(20,39,29,.04), 0 2px 5px rgba(20,39,29,.05), 0 4px 10px rgba(20,39,29,.045);
  --shadow:    0 2px 4px rgba(20,39,29,.04), 0 5px 12px rgba(20,39,29,.06), 0 12px 26px rgba(20,39,29,.08), 0 22px 46px -18px rgba(20,39,29,.14);
  --shadow-lg: 0 4px 8px rgba(20,39,29,.05), 0 12px 26px rgba(20,39,29,.09), 0 28px 60px -22px rgba(20,39,29,.24);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-top: 58px; /* компенсация fixed-шапки (на iOS sticky ломается из-за overflow-x:clip) */
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--green); text-decoration: none; transition: color .18s; }

h1,h2,h3,h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin: 0;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--light); margin-bottom: 14px;
}
.text-center { text-align: center; }

/* ──────────── КНОПКИ ──────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 14px; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .22s, background .2s, filter .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px -10px rgba(27,77,53,.6); }
.btn-primary:hover { background: var(--green-2); box-shadow: 0 16px 34px -10px rgba(27,77,53,.66); transform: translateY(-2px); }
.btn-yellow { background: var(--gold-grad); color: var(--green); box-shadow: 0 10px 28px -10px rgba(160,124,36,.55); }
.btn-yellow:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-sm { padding: 11px 20px; font-size: 14.5px; border-radius: 12px; }
.btn-lg { padding: 18px 38px; font-size: 18px; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }

.tick { color: var(--light); font-weight: 900; flex: none; }
.cross { color: var(--coral); font-weight: 900; flex: none; }
.stars { color: var(--yellow); letter-spacing: 2px; }

/* ──────────── ШАПКА (glass sticky) ──────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,242,237,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(27,77,53,.07);
  transition: transform .32s var(--ease), box-shadow .25s;
}
/* авто-скрытие шапки при листании вниз, появление при листании вверх (как les.vpcipe.com) */
.nav.nav--hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 24px; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--green); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14.5px; white-space: nowrap; padding: 8px 15px; border-radius: 11px; background: rgba(82,183,136,.08); transition: background .18s var(--ease), color .18s; }
.nav-links a:hover { color: var(--green-2); background: rgba(82,183,136,.22); }
.nav-links a.active { color: var(--green); background: rgba(82,183,136,.26); }
.nav-cta { color: #fff; white-space: nowrap; }
/* гамбургер (мобильное меню) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 38px; padding: 9px 8px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--green); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* затемнение фона под меню (создаётся в main.js, живёт на <body>) */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15,30,22,.46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.nav-backdrop.is-shown { opacity: 1; visibility: visible; pointer-events: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; order: 3; position: relative; z-index: 210; }
  .nav-cta { order: 2; }
  .nav-inner { gap: 12px; }
  /* шапка над затемнением, когда меню открыто */
  .nav.nav-open { z-index: 200; }
  /* выезжающая панель справа (drawer) */
  .nav-links {
    position: fixed; top: 0; right: 0; z-index: 180;
    height: 100dvh; width: min(82vw, 320px);
    flex-direction: column; align-items: stretch; gap: 7px;
    padding: 86px 20px 28px;
    background: var(--card);
    box-shadow: -24px 0 64px -20px rgba(20,39,29,.45);
    transform: translateX(106%);
    transition: transform .42s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-links a {
    padding: 14px 16px; border-radius: 13px; border: 0;
    background: rgba(82,183,136,.07); color: var(--green);
    font-size: 16px; font-weight: 600;
    transform: translateX(14px); opacity: 0;
    transition: background .18s var(--ease), color .18s, transform .4s var(--ease), opacity .35s;
  }
  .nav-open .nav-links a { transform: translateX(0); opacity: 1; }
  .nav-open .nav-links a:nth-child(1) { transition-delay: .08s; }
  .nav-open .nav-links a:nth-child(2) { transition-delay: .12s; }
  .nav-open .nav-links a:nth-child(3) { transition-delay: .16s; }
  .nav-open .nav-links a:nth-child(4) { transition-delay: .20s; }
  .nav-open .nav-links a:nth-child(5) { transition-delay: .24s; }
  .nav-links a:active { background: rgba(82,183,136,.16); }
  .nav-links a.active { background: rgba(82,183,136,.18); color: var(--green-2); }
  body.nav-locked { overflow: hidden; }
}

/* ════════════ HERO = ПОЛНОШИРИННЫЙ КВИЗ ════════════ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(46,204,138,.28), transparent 60%),
    radial-gradient(820px 480px at 6% 18%, rgba(244,196,48,.16), transparent 55%),
    linear-gradient(168deg, #173f2c 0%, #1B4D35 42%, #225C40 100%);
  color: #fff;
  overflow: hidden;
  padding: 18px 0 0;
}
.hero::after { /* мягкая граница к фону страницы */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-top { text-align: center; max-width: 960px; margin: 0 auto; padding: 14px 24px 18px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #eafff4; font-weight: 600; font-size: 13.5px; padding: 7px 15px; border-radius: 999px;
}
/* бейдж теперь живёт ПОД квизом */
.hero-badge-wrap { text-align: center; position: relative; z-index: 2; padding: 12px 24px 0; }
.hide-mobile { display: inline; }
.hero-badge .stars { font-size: 13px; }
.hero-badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46,204,138,.22); animation: badgePulse 2.4s var(--ease) infinite; }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 3px rgba(46,204,138,.22); } 50% { box-shadow: 0 0 0 6px rgba(46,204,138,.08); } }
.hero h1 {
  color: #fff; font-weight: 900; letter-spacing: -0.03em;
  font-size: clamp(27px, 4.3vw, 44px); line-height: 1.08; margin-bottom: 14px;
  overflow-wrap: break-word; hyphens: none;
}
.hero h1 .accent { color: var(--yellow); }
.hero-lead { color: rgba(255,255,255,.86); font-size: clamp(15px, 1.7vw, 17.5px); max-width: 600px; margin: 0 auto; }

/* Полноширинная карточка-превью квиза */
.hero-quiz-wrap { position: relative; z-index: 2; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.quiz-preview {
  background: var(--card); color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(27,77,53,.06); border-bottom: none;
  overflow: hidden;
}
.qp-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px 12px; }
.qp-logo { font-family: 'Montserrat'; font-weight: 800; font-size: 20px; color: var(--green); }
.qp-logo i { color: var(--mint); font-style: normal; }
.qp-step { font-size: 13px; font-weight: 600; color: #8A968F; }
.qp-progress { height: 5px; background: var(--line); }
.qp-progress span { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, var(--light), var(--mint)); border-radius: 0 5px 5px 0; }
.qp-body { padding: 28px 32px 30px; text-align: center; }
.qp-q-label { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--light); margin-bottom: 12px; }
.qp-question { font-family: 'Montserrat'; font-weight: 800; font-size: clamp(22px, 3.4vw, 30px); color: var(--green); margin-bottom: 8px; }
.qp-hint { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.qp-genders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 540px; margin: 0 auto; }
.qp-gender {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 18px; transition: all .2s var(--ease);
}
.qp-gender:hover { border-color: var(--mint); background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.qp-gender .g-ico {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
}
.qp-gender.male .g-ico   { background: linear-gradient(140deg, #3aa0e0, #2d6a9e); }
.qp-gender.female .g-ico { background: linear-gradient(140deg, #e98aa8, #d35d86); }
.qp-gender .g-label { font-family: 'Montserrat'; font-weight: 700; font-size: 18px; color: var(--green); }
.qp-gender .g-go { font-size: 13px; font-weight: 600; color: var(--light); }
.qp-foot { margin: 26px 0 0; font-size: 13.5px; color: var(--muted); }
.qp-foot b { color: var(--green); }

/* ── Hero CTA-карточка: тизер результата → клик ведёт в квиз (там выбор пола) ── */
.hero-cta-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: stretch; }
.hcc-text { padding: 40px 42px 36px; display: flex; flex-direction: column; min-width: 0; }
.hcc-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--light); background: rgba(82,183,136,.1); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hcc-badge .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--light); }
.hcc-title { font-family: 'Montserrat'; font-weight: 800; font-size: clamp(21px, 2.5vw, 29px); line-height: 1.16; color: var(--green); margin: 0 0 20px; }
.hcc-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.hcc-points li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: #2b3a31; line-height: 1.35; }
.hcc-ico { flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgba(82,183,136,.13); display: grid; place-items: center; font-size: 15px; }
.hcc-cta { align-self: flex-start; margin-top: auto; }
.hcc-foot { margin: 15px 0 0; font-size: 13px; color: var(--muted); }
.hcc-foot b { color: var(--green); }
.hcc-visual { position: relative; min-width: 0; background: radial-gradient(120% 120% at 70% 10%, #235338, #163a29 70%); display: grid; place-items: center; padding: 36px; }
.result-card { width: 100%; max-width: 318px; background: var(--card); border-radius: 22px; box-shadow: 0 22px 54px rgba(8,26,18,.34); padding: 22px 22px 18px; }
.rc-label { display: block; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.rc-ring { position: relative; width: 152px; height: 152px; margin: 0 auto 18px; }
.rc-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.rc-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rc-ring-center b { font-family: 'Montserrat'; font-weight: 800; font-size: 33px; color: var(--green); line-height: 1; letter-spacing: -.5px; }
.rc-ring-center span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rc-macros { display: grid; gap: 11px; margin-bottom: 15px; }
.rc-macro { display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 11px; font-size: 13.5px; color: #2b3a31; }
.rc-dot { width: 11px; height: 11px; border-radius: 50%; }
.rc-dot.p { background: #52b788; } .rc-dot.f { background: #e9a23b; } .rc-dot.c { background: #3aa0e0; }
.rc-macro b { font-weight: 700; color: var(--green); }
.rc-scan { display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: var(--bg); border-radius: 13px; font-size: 12.5px; color: var(--muted); }
.rc-scan img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.rc-scan b { color: var(--green); font-weight: 700; }
@media (max-width: 860px) {
  .hero-cta-card { grid-template-columns: 1fr; }
  .hcc-text { padding: 30px 24px 26px; }
  .hcc-visual { padding: 26px 24px 32px; }
  .hcc-cta { width: 100%; text-align: center; }
}
/* мини-чипы под квизом */
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; padding: 58px 24px 44px; position: relative; z-index: 2; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.92); font-size: 14.5px; font-weight: 500; }
.hero-chip .tick { color: var(--yellow); }
/* маскот в hero */
.hero-mascot { position: absolute; z-index: 1; pointer-events: none; opacity: .96; }
.hero-mascot.left  { left: max(8px, calc(50% - 640px)); bottom: 40px; width: 150px; }
.hero-mascot.right { right: max(8px, calc(50% - 640px)); top: 120px; width: 130px; transform: scaleX(-1); }

/* ──────────── METRIC STRIP ──────────── */
.metrics { background: transparent; border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; padding: 34px 14px; text-align: center; }
.metric { padding: 6px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }

/* Блок внутренней перелинковки «Полезное на сайте» */
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.explore-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; transition: transform .2s var(--ease), box-shadow .25s var(--ease); }
.explore-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.explore-ico { font-size: 30px; line-height: 1; }
.explore-card h3 { font-size: 18px; color: var(--green); margin: 4px 0 0; }
.explore-card p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; line-height: 1.5; }
.explore-go { font-size: 14px; font-weight: 700; color: var(--light); margin-top: 6px; }
@media (max-width: 940px) { .explore-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore-grid { grid-template-columns: 1fr; } }
.metric b { display: block; font-family: 'Montserrat'; font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); color: var(--green); letter-spacing: -.02em; }
.metric span { font-size: 14.5px; color: var(--muted); }
.metric b { line-height: 1; }

/* ──────────── СЕКЦИИ ──────────── */
.section { padding: 88px 0; }
.section-alt { background: transparent; }
/* Зелёные секции (чередование с кремовыми). Цвет НЕ ставим на саму секцию,
   иначе тёмный текст в белых карточках унаследует светлый и пропадёт — красим только заголовок. */
.section-green { background: radial-gradient(820px 400px at 50% -12%, rgba(46,204,138,.16), transparent 62%), linear-gradient(165deg, var(--green) 0%, var(--green-2) 100%); }
.section-green .eyebrow { color: var(--mint); }
.section-green .section-head h2 { color: #fff; }
.section-green .section-head p { color: rgba(255,255,255,.82); }
.section-green .bento-card.dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.section-green .calc-table-title { color: #fff; }
.section-green .calc-table-note { color: rgba(255,255,255,.78); }
/* Зелёный hero страницы блога (вместо белого .article-hero) */
.article-hero.blog-hero { background: radial-gradient(820px 400px at 50% -12%, rgba(46,204,138,.16), transparent 62%), linear-gradient(165deg, var(--green) 0%, var(--green-2) 100%); border-bottom: none; }
.blog-hero .breadcrumbs, .blog-hero .breadcrumbs a { color: rgba(255,255,255,.72); }
.blog-hero .breadcrumbs a:hover { color: #fff; }
.blog-hero .article-cat { color: var(--mint); }
.blog-hero h1 { color: #fff; }
.blog-hero p { color: rgba(255,255,255,.82); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(27px, 4vw, 40px); margin-bottom: 16px; }
.section-head p { font-size: clamp(16px,2vw,19px); color: var(--muted); margin: 0; }
.section-cta { text-align: center; margin-top: 48px; }

/* Сетка целей (bento-lite) */
.goals { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.goal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s, border-color .2s;
  display: flex; align-items: center; gap: 16px;
}
.section-alt .goal-card { background: var(--bg); }
.goal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint); }
.goal-emoji { font-size: 30px; width: 56px; height: 56px; border-radius: 16px; background: rgba(82,183,136,.14); display: flex; align-items: center; justify-content: center; flex: none; }
.goal-card h3 { font-size: 18px; margin-bottom: 3px; }
.goal-card p { margin: 0; font-size: 14px; color: var(--muted); }
.goal-card .go-arrow { margin-left: auto; color: var(--light); font-size: 22px; transition: transform .2s; }
.goal-card:hover .go-arrow { transform: translateX(4px); }

/* Как работает */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px; position: relative; }
.section-alt .step-card { background: var(--card); }
.step-num { width: 46px; height: 46px; border-radius: 13px; background: var(--green); color: var(--yellow); font-family: 'Montserrat'; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-card h3 { font-size: 19px; margin-bottom: 9px; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Bento фичи */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.bento-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; position: relative; overflow: hidden;
}
.section-alt .bento-card { background: var(--bg); }
.bento-card.span2 { grid-column: span 2; }
.bento-card.dark { background: linear-gradient(150deg, var(--green) 0%, var(--green-2) 100%); border-color: transparent; color: #fff; }
.bento-card.dark h3 { color: #fff; }
.bento-ico { font-size: 30px; width: 56px; height: 56px; border-radius: 15px; background: rgba(82,183,136,.16); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.bento-card.dark .bento-ico { background: rgba(255,255,255,.14); }
.bento-card h3 { font-size: 21px; margin: 18px 0 8px; }
.bento-card p { margin: 0; color: var(--muted); font-size: 15px; }
.bento-card.dark p { color: rgba(255,255,255,.84); }
.bento-card .bento-img { position: absolute; right: -10px; bottom: -10px; width: 150px; opacity: .9; }

/* ── Премиум-полировка мобильного: компактнее секции/блоки, аккуратная шапка-CTA ── */
@media (max-width: 768px) {
  .section { padding: 54px 0; }
  .section-head { margin: 0 auto 30px; }
  .bento { gap: 14px; }
  /* блоки по высоте контента + иконка вплотную к заголовку (убираем пустоту flex-end) */
  .bento-card { min-height: auto; padding: 22px 20px; justify-content: flex-start; }
  .bento-card.span2 { min-height: auto; }
  .bento-ico { width: 46px; height: 46px; font-size: 25px; border-radius: 13px; margin-bottom: 14px; }
  .bento-card h3 { font-size: 18.5px; margin: 0 0 6px; }
  .bento-card p { font-size: 14.5px; }
  .bento-card .bento-img { display: none; }
  .nav-cta { padding: 9px 15px; font-size: 13.5px; }
  /* воздух под фиксированной шапкой до первого заголовка */
  .hero-top { padding: 26px 18px 22px; }
}

/* ──────────── ТЁМНАЯ СЕКЦИЯ (отстройка РФ) ──────────── */
.dark-section {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(46,204,138,.18), transparent 60%),
    linear-gradient(160deg, var(--dark), #1B4D35);
  color: #fff; padding: 92px 0;
}
.dark-section .eyebrow { color: var(--mint); }
.dark-section h2 { color: #fff; }
.dark-section .section-head p { color: rgba(255,255,255,.8); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; }
.compare-card { border-radius: var(--r-lg); padding: 34px 30px; }
.compare-card.us { background: rgba(255,255,255,.07); border: 1.5px solid rgba(46,204,138,.4); backdrop-filter: blur(6px); }
.compare-card.them { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); }
.compare-logo { font-family: 'Montserrat'; font-weight: 800; font-size: 22px; margin-bottom: 22px; color: #fff; }
.compare-logo i { color: var(--mint); font-style: normal; }
.compare-them-title { color: rgba(255,255,255,.6); }
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.compare-card.us li { color: rgba(255,255,255,.95); }
.compare-card.us .tick { color: var(--mint); }
.compare-card.them li { color: rgba(255,255,255,.6); }

/* ──────────── СОЦ.ДОКАЗАТЕЛЬСТВО / ОТЗЫВЫ ──────────── */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.review .stars { font-size: 17px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 20px; font-size: 16px; color: var(--ink); line-height: 1.55; }
.review-author { display: flex; align-items: center; gap: 13px; }
.review-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg,var(--light),var(--green-2)); color: #fff; font-family: 'Montserrat'; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.review-meta { flex: 1; min-width: 0; }
.review-meta b { display: block; color: var(--green); font-size: 15px; line-height: 1.2; }
.review-meta span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.review-verified { flex: none; align-self: flex-start; white-space: nowrap; font-size: 11px; color: var(--green-2); font-weight: 700; background: rgba(82,183,136,.14); padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }

/* ──────────── БЛОГ-ТИЗЕР / ЛИСТИНГ ──────────── */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .25s; }
.section-alt .post-card { background: var(--bg); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--line); }
.post-cover-grad { aspect-ratio: 16/10; display: flex; align-items: flex-end; padding: 20px; color: #fff; font-family: 'Montserrat'; font-weight: 800; font-size: 19px; line-height: 1.2; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--light); margin-bottom: 10px; }
.post-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a { color: var(--green); }
.post-card h3 a:hover { color: var(--green-2); }
.post-excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.post-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.post-ava { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(140deg,var(--light),var(--green-2)); color:#fff; font-weight:800; font-family:'Montserrat'; display:flex; align-items:center; justify-content:center; font-size:13px; }
.post-foot .pa-meta b { display: block; font-size: 13.5px; color: var(--green); }
.post-foot .pa-meta span { font-size: 12px; color: var(--muted); }

/* фильтры категорий */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.blog-filters a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--muted); }
.blog-filters a.active, .blog-filters a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ──────────── ФИНАЛЬНЫЙ CTA ──────────── */
.final-cta { position: relative; overflow: hidden; background: radial-gradient(700px 360px at 50% -20%, rgba(46,204,138,.25), transparent 60%), linear-gradient(150deg, var(--green) 0%, var(--green-2) 100%); padding: 92px 0; text-align: center; color: #fff; }
.final-cta h2 { color: #fff; font-size: clamp(28px,4vw,42px); margin-bottom: 16px; }
.final-cta p { font-size: clamp(16px,2vw,19px); color: rgba(255,255,255,.86); margin: 0 auto 30px; max-width: 560px; }
.final-genders { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.final-mascot { width: 120px; margin: 0 auto 8px; }

/* ──────────── ФУТЕР ──────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.66); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-family: 'Montserrat'; font-weight: 800; font-size: 23px; margin-bottom: 14px; }
.footer-logo b { color: #fff; } .footer-logo i { color: var(--mint); font-style: normal; }
.footer-brand p { font-size: 15px; max-width: 330px; margin: 0 0 18px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.62); font-size: 14.5px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-legal { flex-basis: 100%; order: 9; margin-top: 6px; color: rgba(255,255,255,.4); font-size: 11.5px; line-height: 1.55; }
.footer-legal a { color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--yellow); }

/* ════════════ СТРАНИЦА СТАТЬИ ════════════ */
.article-hero { background: radial-gradient(820px 400px at 50% -12%, rgba(46,204,138,.16), transparent 62%), linear-gradient(165deg, var(--green) 0%, var(--green-2) 100%); padding: 40px 0 48px; }
.article-hero .breadcrumbs, .article-hero .breadcrumbs a { color: rgba(255,255,255,.72); }
.article-hero .breadcrumbs a:hover { color: #fff; }
.article-hero .article-cat { color: var(--mint); }
.article-hero h1 { color: #fff; }
.article-hero p { color: rgba(255,255,255,.82); }
.article-hero .byline-info b, .article-hero .byline-info b a { color: #fff; }
.article-hero .byline-info .role { color: rgba(255,255,255,.7); }
.article-hero .byline-meta { color: rgba(255,255,255,.72); }
.article-hero .byline-dot { color: rgba(255,255,255,.4); }
.article-hero .byline-reviewed { color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.article-hero .byline-reviewed b { color: #fff; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.article-cat { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--light); margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(24px, 3.2vw, 35px); line-height: 1.14; margin-bottom: 20px; max-width: 760px; }
.article-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.byline-ava { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(140deg,var(--light),var(--green-2)); color:#fff; font-weight:800; font-family:'Montserrat'; display:flex; align-items:center; justify-content:center; font-size:17px; }
.byline-info { display: inline-flex; flex-direction: column; line-height: 1.3; }
.byline-info b { color: var(--green); font-size: 15px; } .byline-info b a { color: var(--green); }
.byline-info .role { font-size: 13px; color: var(--muted); }
.byline-dot { color: var(--line); }
.byline-meta { font-size: 13.5px; color: var(--muted); }
.byline-reviewed { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.byline-reviewed b { color: var(--green); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 48px 0 70px; }
.article-body { max-width: 860px; margin: 0 auto; width: 100%; min-width: 0; padding: 0 20px; box-sizing: border-box; overflow-wrap: anywhere; }
.article-body img { max-width: 100%; height: auto; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-lead { font-size: 20px; line-height: 1.55; color: var(--ink); font-weight: 500; margin: 0 0 30px; padding: 20px 24px; background: rgba(82,183,136,.09); border-left: 4px solid var(--light); border-radius: 0 12px 12px 0; }
.article-figure { margin: 0 0 30px; }
.article-figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: var(--line); display: block; }
.article-figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
/* Вертикальный скриншот приложения внутри статьи */
.article-shot { margin: 28px auto; max-width: 300px; text-align: center; }
.article-shot img { width: 100%; border-radius: 26px; box-shadow: var(--shadow); display: block; border: 1px solid var(--line); }
.article-shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
/* Два скриншота рядом */
.article-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 30px 0; align-items: start; }
.article-shots .article-shot { margin: 0 auto; max-width: 280px; }
@media (max-width: 620px) { .article-shots { grid-template-columns: 1fr; gap: 30px; } }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin: 0 0 36px; }
.toc h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--green-2); font-weight: 500; font-size: 15.5px; }
.article-body h2 { font-size: clamp(24px,3vw,30px); margin: 44px 0 16px; scroll-margin-top: 80px; }
.article-body h3 { font-size: 21px; margin: 30px 0 12px; color: var(--green-2); }
.article-body p { font-size: 17.5px; line-height: 1.72; color: #2b3a31; margin: 0 0 18px; }
.article-body ul, .article-body ol.list { margin: 0 0 20px; padding-left: 24px; }
.article-body li { font-size: 17px; line-height: 1.65; margin-bottom: 9px; color: #2b3a31; }
.article-body strong { color: var(--green); }
.article-body a { color: var(--green-2); text-decoration: underline; text-underline-offset: 2px; }
.callout { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin: 26px 0; display: flex; gap: 16px; align-items: flex-start; }
.callout .c-ico { font-size: 26px; flex: none; }
.callout p { margin: 0; font-size: 16px; }
.table-wrap { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.table-wrap .data-table { margin: 0; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 15.5px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
/* overflow-wrap:normal отменяет унаследованный от .article-body 'anywhere',
   иначе одиночные слова в узких колонках рвутся ПОСИМВОЛЬНО («В\о\з\р\а\с\т») */
.data-table th { background: var(--green); color: #fff; text-align: left; padding: 13px 16px; font-family: 'Montserrat'; font-weight: 700; font-size: 14px; white-space: nowrap; overflow-wrap: normal; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); overflow-wrap: normal; word-break: normal; }
.data-table tr:last-child td { border-bottom: none; }
/* надёжное скругление всех 4 углов (overflow:hidden на <table> с collapse ненадёжен — низ оставался квадратным) */
.data-table thead tr:first-child th:first-child { border-top-left-radius: var(--r); }
.data-table thead tr:first-child th:last-child { border-top-right-radius: var(--r); }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r); }
.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--r); }
/* инлайн CTA в статье */
.inline-cta { background: linear-gradient(150deg, var(--green), var(--green-2)); color: #fff; border-radius: var(--r-lg); padding: 30px 32px; margin: 36px 0; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.inline-cta-img { width: 86px; flex: none; }
.inline-cta-text { flex: 1; min-width: 220px; }
.inline-cta h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.inline-cta p { color: rgba(255,255,255,.85); margin: 0; font-size: 15.5px; }
/* FAQ в статье + на главной */
.faq { display: grid; gap: 12px; max-width: 740px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2px 24px; }
.section-alt .faq-item { background: var(--bg); }
.article-body .faq-item { background: var(--bg); }
.faq-item summary { font-family: 'Montserrat'; font-weight: 700; font-size: 17px; color: var(--green); padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 26px; font-weight: 300; color: var(--light); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
/* подпись автора в конце статьи */
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin: 44px 0 0; max-width: 740px; margin-left: auto; margin-right: auto; }
.author-box .ab-ava { width: 64px; height: 64px; border-radius: 50%; flex: none; background: linear-gradient(140deg,var(--light),var(--green-2)); color:#fff; font-weight:800; font-family:'Montserrat'; display:flex; align-items:center; justify-content:center; font-size:22px; }
.author-box h4 { font-size: 18px; margin-bottom: 3px; }
.author-box .ab-role { font-size: 13.5px; color: var(--light); font-weight: 600; margin-bottom: 8px; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }
/* связанные статьи */
.related { max-width: 820px; margin: 60px auto 0; }
.related h3 { text-align: center; font-size: 24px; margin-bottom: 28px; }
.related .posts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related .post-card h3 { font-size: 16px; }
.article-body .post-card h3 a { text-decoration: none; }

/* страница авторов */
.authors-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.author-card { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.author-card .ac-ava { width: 76px; height: 76px; border-radius: 50%; flex: none; background: linear-gradient(140deg,var(--light),var(--green-2)); color:#fff; font-weight:800; font-family:'Montserrat'; display:flex; align-items:center; justify-content:center; font-size:26px; }
.author-card h3 { font-size: 19px; margin-bottom: 3px; }
.author-card .ac-role { color: var(--light); font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.author-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ──────────── ФОТО-АВАТАРЫ (заменяют монограммы) ──────────── */
img.review-ava, img.post-ava, img.byline-ava, img.ab-ava, img.ac-ava {
  object-fit: cover; object-position: center 30%;
}

/* ──────────── PRODUCT SHOWCASE (app-мокапы) ──────────── */
.showcase { background: transparent; }
.showcase-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.showcase-grid > * { min-width: 0; }
.showcase-grid.reverse .showcase-text { order: 2; }
.showcase-text h3 { font-size: clamp(23px,3vw,30px); margin-bottom: 14px; }
.showcase-text p { font-size: 17px; color: var(--muted); margin: 0 0 22px; }
.showcase-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.showcase-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.phone-stage {
  display: flex; justify-content: center; align-items: center; gap: 22px; position: relative;
  padding: 20px; border-radius: var(--r-xl);
  background: radial-gradient(420px 320px at 50% 30%, rgba(82,183,136,.16), transparent 70%);
}
.phone {
  width: 250px; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #12231a; background: #12231a;
  transition: transform .4s var(--ease);
}
.phone img { width: 100%; display: block; }
.phone.tilt-l { transform: rotate(-5deg) translateY(8px); }
.phone.tilt-r { transform: rotate(5deg) translateY(-8px); z-index: 2; }
.phone-stage:hover .phone.tilt-l { transform: rotate(-2deg); }
.phone-stage:hover .phone.tilt-r { transform: rotate(2deg); }
.showcase-single { max-width: 560px; margin: 0 auto; }
.showcase-photo { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* ──────────── ТЕЛЕФОН-КАРУСЕЛЬ (реальные экраны app) ──────────── */
.phone-stage { flex-direction: column; }
.phone-device {
  position: relative; width: 286px; aspect-ratio: 1179 / 2340;
  border-radius: 46px; padding: 11px; background: #11221a;
  border: 1px solid #0c1812; box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #0c1812; border-radius: 0 0 16px 16px; z-index: 4;
}
.phone-screens { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #1B4D35; }
.phone-screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); will-change: opacity;
}
.phone-screen.is-active { opacity: 1; transform: scale(1); }
.phone-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.phone-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(82,183,136,.32); transition: width .35s var(--ease), background .3s;
}
.phone-dot.is-active { width: 26px; background: var(--light); }

/* ──────────── ГАЛЕРЕЯ App Store (авто-прокрутка) ──────────── */
.store-section { overflow: hidden; }
.store-marquee {
  margin-top: 38px; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.store-track { display: flex; gap: 22px; width: max-content; animation: storeScroll 46s linear infinite; }
.store-marquee:hover .store-track { animation-play-state: paused; }
.store-shot { margin: 0 6px; flex: none; }
.store-shot img {
  display: block; height: 468px; width: auto; border-radius: 30px;
  box-shadow: var(--shadow-lg); background: var(--green);
  border: 5px solid #0f231a; transition: transform .35s var(--ease);
}
/* лёгкий 3D-наклон — premium device-mockup вид */
.store-shot:nth-child(2n) img   { transform: rotate(2.2deg) translateY(6px); }
.store-shot:nth-child(2n+1) img { transform: rotate(-2.2deg); }
.store-marquee:hover .store-shot img { transform: rotate(0) translateY(0); }
@keyframes storeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ──────────── СТРАНИЦА КАЛЬКУЛЯТОРА ──────────── */
.hero-eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.calc-hero .hero-top { padding-top: 30px; }
.calc-hero h1.calc-hero-h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(25px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.01em; color: #fff; margin-bottom: 16px; max-width: none; }
.calc-hero .hero-lead { max-width: 900px; }
.calc-photo-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.calc-photo { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.calc-photo-badge {
  position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-sm);
}
.calc-photo-badge b { font-family: 'Montserrat'; font-weight: 800; font-size: 20px; color: var(--green); line-height: 1.1; }
.calc-photo-badge span { font-size: 12px; color: var(--muted); }
.calc-table-wrap { max-width: 760px; margin: 48px auto 0; }
.calc-table-title { text-align: center; font-size: 20px; color: var(--green); margin-bottom: 18px; }
.calc-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.calc-table th, .calc-table td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.calc-table thead th { background: var(--green); color: #fff; font-weight: 700; font-size: 14px; }
.calc-table tbody tr:last-child td { border-bottom: none; }
.calc-table tbody td:first-child { color: var(--ink); font-weight: 600; }
.calc-table tbody td:not(:first-child) { color: var(--green-2); font-weight: 700; font-family: 'Montserrat'; }
.calc-table-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 14px auto 0; max-width: 560px; }

/* ──────────── PAGE-HERO (внутренние страницы) ──────────── */
.page-hero { background: linear-gradient(180deg, rgba(82,183,136,.13), rgba(245,242,237,0)); padding: 46px 0 6px; }
.page-hero .hero-eyebrow { color: var(--light); }
.page-hero h1 { font-family: 'Montserrat'; font-weight: 900; font-size: clamp(28px,4vw,42px); color: var(--green); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.page-hero-lead { font-size: clamp(15px,1.8vw,18px); color: var(--muted); max-width: 660px; line-height: 1.55; }
/* Центрированный вариант page-hero (страница продуктов) */
.page-hero.is-center .hero-eyebrow { display: block; text-align: center; }
.page-hero.is-center h1 { text-align: center; }
.page-hero.is-center .page-hero-lead { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }

/* ──────────── FOODS: поиск + категории + таблица ──────────── */
.food-search { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 22px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 4px 20px; box-shadow: var(--shadow); color: var(--light); transition: border-color .18s; }
.food-search:focus-within { border-color: var(--mint); }
.food-search input { flex: 1; border: 0; background: transparent; padding: 15px 0; font-size: 16px; font-family: inherit; color: var(--ink); outline: none; }
.food-cats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.food-cat { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px; min-height: 118px; padding: 18px; border-radius: var(--r); color: #fff; font-weight: 700; font-family: 'Montserrat'; background: linear-gradient(150deg, var(--c1,#52B788), var(--c2,#2D6A4F)); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s; }
.food-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; }
.food-cat-emoji { font-size: 30px; }
.food-cat span:last-child { font-size: 14.5px; line-height: 1.2; }
.food-table-wrap { max-width: 820px; margin: 0 auto; overflow-x: auto; }
.food-table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.food-table-head h2 { font-family: 'Montserrat'; font-weight: 800; font-size: clamp(20px,2.6vw,26px); color: var(--green); margin: 0; }
.food-table-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.food-cats-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--green); font-family: 'Montserrat'; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.food-cats-toggle:hover { border-color: var(--mint); }
.food-cats-toggle.has-filter { background: rgba(82,183,136,.16); border-color: transparent; }
.food-cats-toggle .fct-arrow { font-size: 12px; transition: transform .22s var(--ease); }
.food-cats-toggle.is-open .fct-arrow { transform: rotate(180deg); }
.food-filters { justify-content: flex-start; gap: 8px; margin: 4px 0 18px; }
.food-filters[hidden] { display: none; }
.food-filters .filter-chip { font-size: 13.5px; padding: 8px 14px; }
/* Блок «почему важно считать» */
.facts-band { background: linear-gradient(160deg, #1B4D35 0%, #2D6A4F 100%); }
.facts-band .section-head .eyebrow { color: var(--mint); }
.facts-band .section-head h2 { color: #fff; }
.facts-band .section-head p { color: rgba(255,255,255,.82); }
.facts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.fact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .25s; }
.fact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fact-emoji { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; font-size: 28px; background: rgba(82,183,136,.14); margin-bottom: 16px; }
.fact-card h3 { font-family: 'Montserrat'; font-weight: 800; font-size: 19px; color: var(--green); margin-bottom: 10px; }
.fact-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.food-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.food-table th, .food-table td { padding: 14px 16px; font-size: 15px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.food-table th:first-child, .food-table td:first-child { text-align: left; white-space: normal; }
.food-table thead th { background: var(--green); color: #fff; font-weight: 700; font-size: 13.5px; }
.food-table tbody tr:last-child td { border-bottom: none; }
.food-table tbody tr:hover { background: rgba(82,183,136,.06); }
.food-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.food-table tbody td:nth-child(2) { font-family: 'Montserrat'; font-weight: 800; color: var(--green); }
.food-empty { text-align: center; color: var(--muted); font-size: 15.5px; margin: 22px auto 0; max-width: 520px; }
.food-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
.food-count { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.food-more { padding: 13px 30px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--green); font-weight: 700; font-size: 15px; font-family: 'Montserrat'; cursor: pointer; transition: all .18s var(--ease); box-shadow: var(--shadow-sm); }
.food-more:hover { border-color: var(--mint); color: var(--green-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.food-more[hidden] { display: none; }

/* ──────────── SUCCESS: фильтры + истории ──────────── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--green); font-weight: 600; font-size: 14.5px; font-family: inherit; cursor: pointer; transition: all .18s var(--ease); }
.filter-chip:hover { border-color: var(--mint); }
.filter-chip.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.story-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .25s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Фото «до/после» (плейсхолдер под реальные снимки) */
.story-photos { position: relative; aspect-ratio: 16 / 11; background: var(--line); overflow: hidden; }
.story-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* тонкий разделитель «до | после» по центру диптиха */
.story-photos::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: rgba(255,255,255,.5); pointer-events: none; }
.story-photo-tag { position: absolute; top: 11px; left: 11px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.94); color: var(--green); padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(20,39,29,.18); }
.story-photo-tag--after { left: auto; right: 11px; background: var(--green); color: #fff; }
.story-badge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--yellow); color: var(--green); font-family: 'Montserrat'; font-weight: 900; font-size: 14.5px; padding: 7px 18px; border-radius: 999px; box-shadow: 0 8px 22px -8px rgba(20,39,29,.5); white-space: nowrap; z-index: 2; }
.story-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.story-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.story-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--c1,#52B788), var(--c2,#2D6A4F)); color: #fff; font-family: 'Montserrat'; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.story-meta { flex: 1; min-width: 0; }
.story-meta b { display: block; color: var(--green); font-size: 15px; }
.story-meta span { font-size: 12.5px; color: var(--muted); }
.story-stars { color: var(--yellow); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.story-card blockquote { margin: 0 0 18px; font-size: 15px; color: var(--ink); line-height: 1.55; }
.story-foot { margin-top: auto; }
.story-note { text-align: center; max-width: 640px; margin: 30px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.story-note a { color: var(--green); font-weight: 700; }

/* ──────────── HELP / FAQ ──────────── */
.help-topics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.help-topic { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 20px 18px; border-radius: var(--r); color: #fff; background: linear-gradient(150deg, var(--c1,#52B788), var(--c2,#2D6A4F)); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .25s; }
.help-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: #fff; }
.help-topic-emoji { font-size: 30px; margin-bottom: 8px; line-height: 1; }
.help-topic b { font-family: 'Montserrat'; font-weight: 800; font-size: 16px; }
.help-topic span { font-size: 13px; opacity: .9; }
.faq-group-title { font-family: 'Montserrat'; font-weight: 800; font-size: 20px; color: var(--green); margin: 38px 0 16px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 90px; }
.faq-group-title:first-child { margin-top: 0; }
.faq-emoji { font-size: 24px; line-height: 1; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-q { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2px 22px; box-shadow: var(--shadow-sm); }
.faq-q summary { font-family: 'Montserrat'; font-weight: 700; font-size: 16.5px; color: var(--green); padding: 17px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: '+'; font-size: 25px; font-weight: 300; color: var(--light); transition: transform .25s; flex: none; }
.faq-q[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 18px; }
.faq-a p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-a a { color: var(--green); font-weight: 600; }
.help-contact { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 28px; margin-top: 44px; box-shadow: var(--shadow-sm); }
.help-contact-icon { display: block; width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin: 0 auto 16px; }
.help-contact h3 { font-size: 22px; color: var(--green); margin-bottom: 8px; }
.help-contact p { color: var(--muted); margin-bottom: 22px; }
.help-contact-links { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ──────────── ВСПЛЫВАЮЩИЙ НИЖНИЙ БАННЕР ──────────── */
.app-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: linear-gradient(150deg, var(--green) 0%, var(--green-2) 100%); color: #fff; box-shadow: 0 -10px 34px -8px rgba(20,39,29,.4); transform: translateY(115%); transition: transform .46s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0); }
.app-banner.is-shown { transform: translateY(0); }
.app-banner-row { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.app-banner-icon { width: 54px; height: 54px; border-radius: 13px; flex: none; box-shadow: 0 5px 16px rgba(0,0,0,.28); }
.app-banner-text { flex: 1; min-width: 0; }
.app-banner-text b { display: block; font-family: 'Montserrat'; font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.app-banner-sub { display: block; font-size: 13px; color: rgba(255,255,255,.85); margin-top: 2px; }
.app-banner-stars { color: var(--yellow); letter-spacing: 1px; }
.app-banner-cta { flex: 1 1 auto; text-align: center; background: var(--gold-grad); color: var(--green); font-family: 'Montserrat'; font-weight: 800; font-size: 15px; padding: 13px 24px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 22px -8px rgba(160,124,36,.6); transition: transform .15s var(--ease), filter .2s; }
.app-banner-cta:hover { color: var(--green); transform: translateY(-2px); filter: brightness(1.04); }
.app-banner-close { flex: none; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s; }
.app-banner-close:hover { background: rgba(255,255,255,.28); }
@media (max-width: 600px) {
  .app-banner-row { gap: 12px; padding: 10px 14px; }
  .app-banner-icon { width: 46px; height: 46px; }
  .app-banner-text b { font-size: 14.5px; }
  .app-banner-sub { display: none; }
  .app-banner-cta { padding: 11px 18px; font-size: 14px; }
}

/* ──────────── SCROLL-REVEAL ──────────── */
/* скрытие только если JS активен (.reveal-js на <html>) — иначе контент всегда виден */
.reveal-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal-js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }

/* ──────────── АДАПТИВ ──────────── */
@media (max-width: 940px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); gap: 24px 8px; padding: 26px 14px; }
  .metric + .metric { border-left: none; }
  .metric:nth-child(odd) + .metric { border-left: 1px solid var(--line); }
  .goals, .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .compare, .reviews, .posts { grid-template-columns: 1fr; }
  .reviews, .posts { gap: 16px; }
  .food-cats { grid-template-columns: repeat(3,1fr); }
  .help-topics { grid-template-columns: repeat(2,1fr); }
  .facts-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .authors-grid { grid-template-columns: 1fr; }
  .hero-mascot { display: none; }
  .showcase-grid, .showcase-grid.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase-grid.reverse .showcase-text { order: 0; }
  .phone-stage { flex-wrap: wrap; gap: 14px; padding: 14px; }
  .phone { width: 165px; }
  .phone-device { width: 248px; }
  .store-shot img { height: 360px; }
}

/* Уважать системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  .store-track { animation: none; }
  .store-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero-badge .badge-dot { animation: none; }
  .phone-screen { transition: opacity .3s; transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero-top { padding: 24px 18px 22px; }
  .hero h1 { font-size: 29px; }
  .hide-mobile { display: none; }
  .hero-badge-wrap { padding: 18px 18px 0; }
  .hero-badge { font-size: 12.5px; }
  .qp-body { padding: 28px 18px 30px; }
  .qp-genders { grid-template-columns: 1fr 1fr; }
  .qp-genders { gap: 12px; }
  .goals, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }   /* 2 колонки + высота по контенту (убрать пустоту) */
  .bento-card.span2 { grid-column: span 2; }
  .bento-card.span2.dark { padding: 22px 22px 24px; }
  /* «Как это работает»: цифра слева, заголовок+текст справа на одном уровне */
  .step-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 20px; }
  .step-num { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; width: 42px; height: 42px; font-size: 18px; }
  .step-card h3 { grid-column: 2; margin-bottom: 4px; align-self: center; }
  .step-card p { grid-column: 2; }
  .food-cats { grid-template-columns: 1fr 1fr; }
  .help-topics { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .food-table th, .food-table td { padding: 12px 11px; font-size: 13.5px; }
  .metrics-grid { gap: 22px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .inline-cta { padding: 24px; }
  .article-body p, .article-body li { font-size: 16.5px; }
}

/* Таблицы в контенте: на узких экранах скроллятся внутри себя, не ломая ширину страницы */
@media (max-width: 768px) {
  /* .data-table обёрнута в .table-wrap (скролл-контейнер): даём таблице min-width,
     чтобы колонки оставались читаемыми и заголовки не рвались по буквам, а лишнее уезжало в горизонтальный скролл */
  .data-table { min-width: 500px; font-size: 14px; }
  .data-table th, .data-table td { padding: 10px 13px; }
  .calc-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .calc-table th, .calc-table td { padding: 10px 13px; }
}
/* Длинные кнопки не должны вылезать за экран — переносим текст (кроме шапки-CTA) */
@media (max-width: 600px) {
  .btn:not(.nav-cta) { max-width: 100%; white-space: normal; }
  .nav-cta { white-space: nowrap; }
  .btn-lg { padding: 15px 24px; font-size: 16px; }
}

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

/* ─── Программные страницы продуктов /foods/<slug>/ (v29) ─── */
.food-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 28px; }
.food-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.food-stat b { display: block; font-family: 'Montserrat'; font-weight: 800; font-size: 26px; color: var(--green); line-height: 1.1; }
.food-stat span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.food-stat--kcal { background: linear-gradient(160deg, #1B4D35, #2D6A4F); border-color: transparent; }
.food-stat--kcal b { color: #fff; font-size: 30px; }
.food-stat--kcal span { color: rgba(255,255,255,.82); }
@media (max-width: 560px) { .food-stat-grid { grid-template-columns: repeat(2, 1fr); } .food-stat b { font-size: 23px; } }

.food-cta-box { margin: 32px 0; padding: 30px 28px; border-radius: var(--r-lg); background: radial-gradient(700px 300px at 80% -20%, rgba(46,204,138,.22), transparent 70%), linear-gradient(155deg, #1B4D35, #14271D); color: #fff; box-shadow: var(--shadow); }
.food-cta-box h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.food-cta-box p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.food-cta-box .btn { margin: 0 10px 0 0; }
@media (max-width: 480px) { .food-cta-box .btn { display: block; width: 100%; margin: 0 0 10px; text-align: center; } }

.food-rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 16px 0 4px; }
.food-rel { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), border-color .18s; }
.food-rel:hover { transform: translateY(-2px); border-color: var(--light); }
.food-rel b { color: var(--green); font-family: 'Montserrat'; font-size: 14px; white-space: nowrap; }
@media (max-width: 480px) { .food-rel-grid { grid-template-columns: 1fr; } }

.food-link { color: inherit; text-decoration: none; font-weight: 600; }
.food-link:hover { color: var(--green); text-decoration: underline; }

/* ─── Полный индекс продуктов на хабе /foods/ (v29) ─── */
.food-index { columns: 3; column-gap: 28px; margin-top: 8px; }
.food-index-cat { break-inside: avoid; margin: 0 0 22px; display: inline-block; width: 100%; }
.food-index-cat h3 { font-size: 16px; margin: 0 0 8px; color: var(--green); }
.food-index-cat h3 span { color: var(--muted); font-weight: 500; font-size: 13px; }
.food-index-cat ul { list-style: none; margin: 0; padding: 0; }
.food-index-cat li { margin: 2px 0; }
.food-index-cat a { color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.5; }
.food-index-cat a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 860px) { .food-index { columns: 2; } }
@media (max-width: 520px) { .food-index { columns: 1; } }

/* ─── Уникальные факты + дисклеймер на foods-страницах (v30) ─── */
.food-facts { margin: 10px 0 6px; padding-left: 20px; }
.food-facts li { margin: 7px 0; line-height: 1.55; }
.food-facts b { color: var(--green); font-family: 'Montserrat'; }
.food-disclaimer { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; line-height: 1.5; }

/* ─── Страницы авторов + фильтр блога (v31) ─── */
.author-hero { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.author-hero-ava { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.25); box-shadow: var(--shadow); flex-shrink: 0; }
.author-hero h1 { margin: 6px 0 2px; }
.author-hero-role { color: var(--mint); font-family: 'Montserrat'; font-weight: 600; font-size: 15px; }
.author-hero-bio { color: rgba(255,255,255,.9); max-width: 680px; font-size: 16.5px; line-height: 1.55; margin: 16px 0 0; }
@media (max-width: 540px) { .author-hero { flex-direction: column; text-align: center; gap: 12px; } .author-hero-ava { width: 78px; height: 78px; } }

.btn-ghost-green { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost-green:hover { background: var(--green); color: #fff; }

.ac-link { display: inline-block; margin-top: 10px; color: var(--green); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.ac-link:hover { text-decoration: underline; }
.author-card h3 a, .author-card .ac-ava { text-decoration: none; color: inherit; }
.author-card h3 a:hover { color: var(--green); }

/* фильтр блога: активная категория + скрытие */
.blog-filters a { cursor: pointer; }
.blog-filters a.active { background: var(--green); color: #fff; }
.post-card.is-hidden { display: none; }

/* фикс: аватар-ссылка в карточке автора не сжимается (был овал 24×76) */
.author-card > a { flex: none; line-height: 0; display: block; }
.author-card > a .ac-ava { display: block; }
