/*
Theme Name: MashaGPT Ru
Theme URI: https://mashagpt-ru.click
Author: MashaGPT Ru
Description: Русскоязычный сайт-агрегатор о нейросетевом сервисе MashaGPT: 50+ нейросетей в одной подписке, тарифы в рублях, отзывы, альтернативы. Тёмная редакционная тема, лаймовый акцент, Inter Tight.
Version: 1.0.0
Text Domain: mashagpt-theme
*/

/* ============================================================
   MASHAGPT RU — design system
   Айдентика снята с офсайта mashagpt.ru:
   bg #06060A · surface #101013 · glass rgba(255,255,255,.03)
   accent lime #D4FF00 · Inter Tight (дисплей) + Inter (текст)
   Стиль — редакционный «журнал»: моно-лейблы, нумерация секций,
   крупная типографика с курсивным акцентным словом.
   ============================================================ */

:root {
  /* — surfaces (dark) — */
  --bg:            #06060a;
  --bg-1:          #0a0a0e;
  --surface:       #0f0f13;
  --surface-2:     #16161b;
  --surface-3:     #1c1e22;
  --glass:         rgba(255, 255, 255, 0.035);
  --glass-strong:  rgba(255, 255, 255, 0.065);
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.15);

  /* — ink — */
  --ink:           #ffffff;
  --ink-soft:      #c9cace;   /* subheads */
  --ink-muted:     #8b8d95;   /* meta / body-muted */
  --ink-faint:     #5b5d66;   /* decorative only */

  /* — brand accent (lime) — */
  --lime:          #d4ff00;
  --lime-2:        #c8ff3a;
  --lime-deep:     #b6e000;
  --lime-ink:      #0a0e00;   /* text on lime fill */
  --lime-glow:     rgba(212, 255, 0, 0.30);
  --lime-wash:     rgba(212, 255, 0, 0.10);
  --lime-line:     rgba(212, 255, 0, 0.35);
  --grad-lime:     linear-gradient(135deg, #e6ff4d 0%, #d4ff00 55%, #b6e000 100%);
  --grad-hero:     radial-gradient(1150px 640px at 22% -10%, rgba(212,255,0,0.10), transparent 60%),
                   radial-gradient(900px 520px at 100% 0%, rgba(120,130,255,0.06), transparent 62%);

  /* — support — */
  --violet:        #8b7dff;   /* очень редкий вторичный (видео/аудио-модели на офсайте) */

  /* — type — */
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Inter', ui-monospace, 'SF Mono', monospace;

  /* — radii — */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* — spacing rhythm — */
  --space-section: clamp(4.5rem, 9vw, 8.5rem);
  --container: 1200px;

  /* — shadow / glow — */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 70px -40px rgba(0,0,0,0.9);
  --shadow-pop:  0 40px 90px -50px rgba(0,0,0,0.95);
  --ring-lime:   0 0 0 1px var(--lime-line), 0 24px 60px -26px var(--lime-glow);

  /* — z-scale — */
  --z-sticky: 100;
  --z-backdrop: 200;
  --z-modal: 300;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center top;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--lime-ink); }

/* ── typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.28rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
h4 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p  { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

/* акцентное курсивное слово в заголовках (как «Одна» на офсайте) */
.mg-ital { font-style: italic; font-weight: 300; color: var(--ink-muted); letter-spacing: -0.01em; }
.mg-lime-text { color: var(--lime); }

.mg-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

/* editorial kicker / eyebrow */
.mg-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-muted);
}
.mg-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 12px var(--lime-glow);
}
.mg-kicker--plain::before { display: none; }

.mg-lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 64ch; line-height: 1.6; }
.mg-muted { color: var(--ink-muted); }
.mg-center { text-align: center; }
.mg-center .mg-lead { margin-inline: auto; }
.mg-flex { display: flex; align-items: center; }
.mg-gap-8 { gap: .5rem; }

/* hairline rule */
.mg-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── buttons ───────────────────────────────────────────── */
.mg-btn {
  --btn-py: .85rem; --btn-px: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.mg-btn__ic { width: 1.1em; height: 1.1em; }
.mg-btn--primary {
  background: var(--lime); color: var(--lime-ink);
  box-shadow: 0 14px 34px -14px var(--lime-glow);
}
.mg-btn--primary:hover { background: var(--lime-2); transform: translateY(-2px); box-shadow: 0 20px 44px -16px var(--lime-glow); }
.mg-btn--light { background: var(--ink); color: #0a0a0a; }
.mg-btn--light:hover { background: #eef0ee; transform: translateY(-2px); }
.mg-btn--ghost {
  background: var(--glass); color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.mg-btn--ghost:hover { background: var(--glass-strong); border-color: var(--lime-line); transform: translateY(-2px); }
.mg-btn--lg { --btn-py: 1.05rem; --btn-px: 2rem; font-size: 1.05rem; }
.mg-btn--sm { --btn-py: .62rem; --btn-px: 1.1rem; font-size: .9rem; }
.mg-btn--block { width: 100%; }

/* ── header ────────────────────────────────────────────── */
.mg-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(6,6,10,0.72);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.mg-header__inner { display: flex; align-items: center; gap: 1.2rem; height: 68px; }

.mg-logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.mg-logo__icon {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--lime);
}
.mg-logo__icon svg { width: 22px; height: 22px; }
.mg-logo__text { font-weight: 700; font-size: 1.24rem; letter-spacing: -0.03em; color: var(--ink); }
.mg-logo__text b { font-weight: 800; }

.mg-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.mg-nav__link {
  font-size: .93rem; font-weight: 500; color: var(--ink-muted);
  padding: .5rem .7rem; border-radius: var(--r-xs);
  transition: color .18s ease, background .18s ease;
}
.mg-nav__link:hover { color: var(--ink); background: var(--glass); }
.mg-nav__cta { margin-left: .5rem; }

.mg-cta-mobile { display: none; }

.mg-burger { display: none; width: 42px; height: 42px; border-radius: var(--r-xs); flex-direction: column; gap: 5px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.mg-burger__line { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s ease; }

.mg-mobile-nav { display: none; flex-direction: column; gap: .2rem; padding: .6rem 0 1rem; border-top: 1px solid var(--line); }
.mg-mobile-nav.is-open { display: flex; }
.mg-mobile-nav .mg-nav__link { padding: .8rem .6rem; font-size: 1rem; border-radius: var(--r-sm); }
.mg-mobile-nav .mg-nav__cta { margin: .5rem 0 0; }
.mg-mobile-nav .mg-btn { width: 100%; }

/* editorial ticker sub-bar */
.mg-ticker { border-bottom: 1px solid var(--line); background: var(--bg); }
.mg-ticker__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 34px; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-faint); font-weight: 500; overflow: hidden; white-space: nowrap;
}
.mg-ticker__inner b { color: var(--ink-muted); font-weight: 600; }
.mg-ticker__dot { color: var(--lime); }
.mg-ticker__r { display: flex; gap: 1.2rem; }

/* ── sections ──────────────────────────────────────────── */
.mg-section { padding-block: var(--space-section); position: relative; }
.mg-section--alt { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-block: 1px solid var(--line); }
.mg-section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.mg-section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.mg-section__head.mg-center { margin-inline: auto; }
.mg-section__head h2 { margin-top: .7rem; }
.mg-section__head .mg-lead { margin-top: 1rem; }

/* editorial section index */
.mg-index { display: flex; align-items: center; gap: .8rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 1.4rem; }
.mg-index__num { color: var(--lime); font-weight: 600; }
.mg-index__line { flex: 1; height: 1px; background: var(--line); }

/* ── hero ──────────────────────────────────────────────── */
.mg-hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); background: var(--grad-hero); }
.mg-hero__grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(1.2rem, 2.5vw, 2rem); align-items: stretch; }
.mg-hero__main {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-1) 100%);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mg-hero__label { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 1.6rem; }
.mg-hero__live { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-muted); }
.mg-hero__live::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); animation: mg-pulse 2s infinite; }
@keyframes mg-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@media (prefers-reduced-motion: reduce){ .mg-hero__live::before{ animation:none } }

.mg-hero h1 { margin-bottom: 1.4rem; }
.mg-hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 44ch; margin-bottom: 1.8rem; }
.mg-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; }
.mg-hero__note { margin-top: 1.1rem; font-size: .86rem; color: var(--ink-muted); }
.mg-hero__note strong { color: var(--lime); }

.mg-hero__aside { display: flex; flex-direction: column; gap: clamp(1.2rem, 2.5vw, 2rem); }
.mg-hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
}
.mg-hero__card--stat { flex-direction: row; align-items: baseline; justify-content: space-between; }
.mg-hero__stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); }
.mg-hero__stat-val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--ink); letter-spacing: -0.03em; }
.mg-hero__stat-val .star { color: var(--lime); }
.mg-hero__promo { flex: 1; min-height: 200px; position: relative; overflow: hidden; }
.mg-hero__promo-badge { display:inline-flex; align-items:center; gap:.4rem; font-size:.68rem; text-transform:uppercase; letter-spacing:.14em; color: var(--lime-ink); background: var(--lime); padding: .28rem .6rem; border-radius: var(--r-pill); font-weight: 700; align-self: flex-start; }
.mg-hero__promo h3 { margin: .9rem 0 .4rem; font-size: 1.5rem; }
.mg-hero__promo p { font-size: .92rem; color: var(--ink-muted); }
.mg-hero__promo-glow { position: absolute; inset: auto -30% -50% auto; width: 320px; height: 320px; background: radial-gradient(circle, var(--lime-glow), transparent 70%); pointer-events: none; }

/* video-фон промо-карточки */
.mg-hero__promo--video { min-height: 230px; justify-content: space-between; }
.mg-hero__promo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mg-hero__promo--video::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6,6,10,.30) 0%, rgba(6,6,10,.12) 42%, rgba(6,6,10,.88) 100%); pointer-events: none; }
.mg-hero__promo--video .mg-hero__promo-badge,
.mg-hero__promo--video .mg-hero__promo-body { position: relative; z-index: 2; }
.mg-hero__promo-body h3 { margin: 0 0 .3rem; font-size: 1.5rem; }
.mg-hero__promo-body p { font-size: .9rem; color: var(--ink-soft); }

/* ── model chips (лого-стрип нейросетей) ───────────────── */
.mg-models { display: flex; flex-wrap: wrap; gap: .6rem; }
.mg-model {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease;
}
.mg-model:hover { border-color: var(--lime-line); color: var(--ink); }
.mg-model__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* ── grids & cards ─────────────────────────────────────── */
.mg-grid { display: grid; gap: 1.1rem; }
.mg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mg-grid--4 { grid-template-columns: repeat(4, 1fr); }

.mg-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem;
  transition: transform .22s var(--ease-out), border-color .22s ease, background .22s ease;
  position: relative;
}
.mg-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.mg-card__icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--lime-wash); border: 1px solid var(--lime-line); color: var(--lime);
}
.mg-card__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.mg-card h3 { margin-bottom: .55rem; }
.mg-card p { color: var(--ink-muted); font-size: .96rem; }
.mg-card__tag { position: absolute; top: 1.1rem; right: 1.1rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lime); background: var(--lime-wash); border: 1px solid var(--lime-line); padding: .2rem .5rem; border-radius: var(--r-pill); font-weight: 700; }

/* provider card (нейросети по разработчикам) */
.mg-prov {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.4rem 1.5rem;
  transition: transform .22s var(--ease-out), border-color .22s ease;
}
.mg-prov:hover { transform: translateY(-4px); border-color: var(--lime-line); }
.mg-prov__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .8rem; letter-spacing: -0.01em; }
.mg-prov__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.mg-prov__item { font-size: .82rem; color: var(--ink-muted); padding: .3rem .6rem; background: var(--glass); border-radius: var(--r-xs); border: 1px solid var(--line); }

/* ── pricing plans ─────────────────────────────────────── */
.mg-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.mg-plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; position: relative;
}
.mg-plan--pop { border-color: var(--lime-line); box-shadow: var(--ring-lime); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.mg-plan__tag { position: absolute; top: -1px; right: 1.3rem; transform: translateY(-50%); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--lime-ink); background: var(--lime); padding: .3rem .7rem; border-radius: var(--r-pill); }
.mg-plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; }
.mg-plan__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--ink); letter-spacing: -0.04em; margin: .5rem 0 .2rem; }
.mg-plan__price span { font-size: .9rem; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.mg-plan__note { font-size: .82rem; color: var(--ink-muted); margin-bottom: 1.1rem; min-height: 1.2em; }
.mg-plan__list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.4rem; flex: 1; }
.mg-plan__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.mg-plan__list svg { width: 17px; height: 17px; color: var(--lime); flex-shrink: 0; margin-top: .18rem; }

/* comparison table */
.mg-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.mg-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
.mg-table th, .mg-table td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.mg-table thead th { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .95rem; background: var(--surface); position: sticky; top: 0; }
.mg-table tbody th { font-weight: 500; color: var(--ink-soft); }
.mg-table td { color: var(--ink-muted); }
.mg-table tr:last-child th, .mg-table tr:last-child td { border-bottom: 0; }
.mg-table .is-hi { color: var(--lime); font-weight: 600; }
.mg-table__yes { color: var(--lime); }
.mg-table__no { color: var(--ink-faint); }

/* ── reviews ───────────────────────────────────────────── */
.mg-review {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.mg-review__head { display: flex; align-items: center; gap: .8rem; }
.mg-review__ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--lime-ink); background: var(--grad-lime); flex-shrink: 0; }
.mg-review__name { font-weight: 600; color: var(--ink); font-size: .98rem; }
.mg-review__meta { font-size: .8rem; color: var(--ink-muted); }
.mg-review p { color: var(--ink-soft); font-size: .95rem; }
.mg-review__date { font-size: .78rem; color: var(--ink-faint); margin-top: -.2rem; }

/* star rating (percent fill) */
.mg-stars { position: relative; display: inline-flex; width: max-content; line-height: 0; }
.mg-stars__row { display: inline-flex; gap: 2px; }
.mg-stars__row svg { width: 16px; height: 16px; flex: 0 0 auto; }
.mg-stars__bg svg { fill: var(--line-strong); }
.mg-stars__fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.mg-stars__fill .mg-stars__row { width: max-content; }
.mg-stars__fill svg { fill: var(--lime); }

/* big rating badge */
.mg-rating-hero { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.6rem 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mg-rating-hero__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.2rem); color: var(--lime); line-height: 1; letter-spacing: -0.04em; }
.mg-rating-hero__of { font-size: 1rem; color: var(--ink-muted); }

/* ── FAQ ───────────────────────────────────────────────── */
.mg-faq { display: flex; flex-direction: column; gap: .7rem; max-width: 820px; margin-inline: auto; }
.mg-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s ease; }
.mg-faq__item.is-open { border-color: var(--line-strong); }
.mg-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; text-align: left; font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em;
}
.mg-faq__q svg { width: 20px; height: 20px; color: var(--lime); flex-shrink: 0; transition: transform .3s var(--ease-out); }
.mg-faq__item.is-open .mg-faq__q svg { transform: rotate(45deg); }
.mg-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out); }
.mg-faq__item.is-open .mg-faq__a { grid-template-rows: 1fr; }
.mg-faq__a > div { overflow: hidden; }
.mg-faq__a > div > div { padding: 0 1.4rem 1.25rem; color: var(--ink-muted); font-size: .96rem; }

/* ── CTA band ──────────────────────────────────────────── */
.mg-ctaband {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl); border: 1px solid var(--lime-line);
  background: radial-gradient(700px 340px at 50% 0%, rgba(212,255,0,0.10), transparent 65%), var(--surface);
}
.mg-ctaband__spark { color: var(--lime); margin-bottom: 1rem; display: inline-flex; }
.mg-ctaband__spark svg { width: 34px; height: 34px; }
.mg-ctaband h2 { margin-bottom: .9rem; }
.mg-ctaband .mg-lead { margin: 0 auto 1.8rem; }

/* ── inner page ────────────────────────────────────────── */
.mg-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-muted); padding-top: 1.6rem; }
.mg-breadcrumb a { color: var(--ink-muted); transition: color .18s ease; }
.mg-breadcrumb a:hover { color: var(--lime); }
.mg-breadcrumb__sep { color: var(--ink-faint); }
.mg-breadcrumb [aria-current] { color: var(--ink-soft); }

.mg-pagehero { padding-top: clamp(1.8rem, 4vw, 2.8rem); padding-bottom: clamp(2rem, 5vw, 3.4rem); background: var(--grad-hero); }
.mg-pagehero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin: 1.2rem 0 1rem; }
.mg-pagehero .mg-lead { max-width: 68ch; }

/* TL;DR block */
.mg-tldr { background: linear-gradient(180deg, var(--lime-wash), transparent 140%), var(--surface); border: 1px solid var(--lime-line); border-radius: var(--r-md); padding: 1.25rem 1.4rem; margin: 1.6rem 0; }
.mg-tldr__label { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--lime); margin-bottom: .5rem; }
.mg-tldr__label svg { width: 14px; height: 14px; }
.mg-tldr strong { color: var(--ink); }

/* prose */
.mg-prose { max-width: 760px; }
.mg-prose > * + * { margin-top: 1.1rem; }
.mg-prose h2 { margin-top: 2.6rem; }
.mg-prose h3 { margin-top: 1.8rem; }
.mg-prose p, .mg-prose li { color: var(--ink-soft); }
.mg-prose ul, .mg-prose ol { display: flex; flex-direction: column; gap: .6rem; padding-left: 0; }
.mg-prose ul li { display: flex; gap: .6rem; }
.mg-prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-top: .62rem; flex-shrink: 0; }
.mg-prose ol { counter-reset: mg; }
.mg-prose ol li { display: flex; gap: .7rem; counter-increment: mg; }
.mg-prose ol li::before { content: counter(mg); font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: .95rem; min-width: 1.4em; }
.mg-prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime-line); }
.mg-prose strong { color: var(--ink); }

/* steps (how-to) */
.mg-steps { display: flex; flex-direction: column; gap: 1rem; counter-reset: step; }
.mg-step { display: flex; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.3rem 1.4rem; counter-increment: step; }
.mg-step__num { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--lime-ink); background: var(--grad-lime); font-size: 1.05rem; }
.mg-step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.mg-step p { color: var(--ink-muted); font-size: .95rem; }

/* badges & pills */
.mg-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .32rem .7rem; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); color: var(--ink-soft); }
.mg-badge--lime { background: var(--lime-wash); border-color: var(--lime-line); color: var(--lime); }

/* callout / criteria bars */
.mg-crit { display: flex; flex-direction: column; gap: 1rem; }
.mg-crit__row { display: grid; grid-template-columns: 180px 1fr 44px; gap: 1rem; align-items: center; }
.mg-crit__label { font-size: .92rem; color: var(--ink-soft); }
.mg-crit__bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.mg-crit__fill { display: block; height: 100%; min-width: 8px; border-radius: var(--r-pill); background: var(--grad-lime); }
.mg-crit__val { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .95rem; text-align: right; }

/* two-column feature rows */
.mg-featrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 3rem); align-items: center; }
.mg-featrow--flip .mg-featrow__media { order: -1; }
.mg-featrow__media { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4/3; overflow: hidden; position: relative; display: grid; place-items: center; }
.mg-featrow__media img { width: 100%; height: 100%; object-fit: cover; }
.mg-featrow__ph { color: var(--ink-faint); text-align: center; font-size: .82rem; padding: 1rem; }
.mg-featrow__ph svg { width: 40px; height: 40px; margin: 0 auto .5rem; color: var(--lime); opacity: .5; }

/* ── footer ────────────────────────────────────────────── */
.mg-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-top: clamp(3rem, 6vw, 4.5rem); }
.mg-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.mg-footer__brand p { color: var(--ink-muted); font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 38ch; }
.mg-footer__col-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 1rem; font-weight: 600; }
.mg-footer__links { display: flex; flex-direction: column; gap: .6rem; }
.mg-footer__links a { color: var(--ink-muted); font-size: .93rem; transition: color .18s ease; }
.mg-footer__links a:hover { color: var(--lime); }
.mg-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.mg-footer__copy { font-size: .82rem; color: var(--ink-faint); max-width: 80ch; line-height: 1.6; }
.mg-footer__legal { display: flex; gap: 1.2rem; }
.mg-footer__legal a { font-size: .82rem; color: var(--ink-muted); }
.mg-footer__legal a:hover { color: var(--lime); }

/* SEO hidden caption */
.mg-hidden-seo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── reveal motion ─────────────────────────────────────── */
.js .mg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .mg-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .mg-reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mg-hero__grid { grid-template-columns: 1fr; }
  .mg-hero__aside { flex-direction: row; flex-wrap: wrap; }
  .mg-hero__card { flex: 1; min-width: 220px; }
  .mg-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .mg-plans { grid-template-columns: repeat(2, 1fr); }
  .mg-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .mg-nav { display: none; }
  .mg-burger { display: flex; margin-left: auto; }
  .mg-cta-mobile { display: inline-flex; }
  .mg-featrow, .mg-featrow--flip { grid-template-columns: 1fr; }
  .mg-featrow--flip .mg-featrow__media { order: 0; }
  .mg-crit__row { grid-template-columns: 120px 1fr 40px; }
}
@media (max-width: 640px) {
  .mg-grid--2, .mg-grid--3, .mg-grid--4 { grid-template-columns: 1fr; }
  .mg-plans { grid-template-columns: 1fr; }
  .mg-footer__grid { grid-template-columns: 1fr 1fr; }
  .mg-hero__aside { flex-direction: column; }
  .mg-ticker__r { gap: .8rem; }
  .mg-ticker__inner { font-size: .6rem; letter-spacing: .1em; }
  .mg-crit__row { grid-template-columns: 100px 1fr 38px; }
}
@media (max-width: 400px) {
  .mg-logo__text { display: none; }
  .mg-header__inner { gap: .5rem; }
  .mg-cta-mobile { --btn-px: .9rem; }
  .mg-footer__grid { grid-template-columns: 1fr; }
  .mg-footer__bottom { flex-direction: column; align-items: flex-start; }
}
