[hidden] { display: none !important; }

:root {
  --mo-header-h: 72px;
  --mo-page-w: 1120px;
  --color-primary: #4a6418;
  --color-primary-hover: #3a4f12;
  --color-secondary: #9acd32;
  --color-accent: #d4af37;
  --color-bg: #f7faf3;
  --color-card: #ffffff;
  --color-text: #2d3a1a;
  --color-muted: #5a6a4a;
  --color-line: #d5e0c8;
  --color-on-primary: #ffffff;
  --space-lg: 1.5rem;
  --font-head: "Bitter", Georgia, serif;
  --font-body: "Cabin", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
html { scroll-padding-top: calc(var(--mo-header-h) + 36px); }
body {
  padding-top: var(--mo-header-h);
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 1rem/1.65 var(--font-body);
}
body.nav-open { overflow: hidden; }
body.mo-cookie-open { padding-bottom: 88px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
a:not(.moc-btn) { color: var(--color-primary); }
a:not(.moc-btn):hover { text-decoration: underline; text-underline-offset: 3px; }
ul { margin: 0; padding-left: 1.1rem; }
.min-w0 { min-width: 0; }

.moo-wrap {
  width: 100%;
  max-width: var(--mo-page-w);
  margin: 0 auto;
  padding-inline: 20px;
}
.moo-section { padding-block: 56px; position: relative; }
.moo-section--wave {
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(154,205,50,0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(107,142,35,0.08), transparent 50%),
    var(--color-bg);
}
.moo-section--soft { background: #eef5e4; }
.moo-measure { max-width: 760px; }
.moo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .moo-section { padding-block: 40px; }
  .moo-wrap { padding-inline: 16px; }
  .moo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .moo-grid { grid-template-columns: 1fr; }
}

.moc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  min-height: var(--mo-header-h);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(45, 58, 26, 0.08);
}
.moc-header__row {
  min-height: var(--mo-header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.moc-header__logo { display: flex; align-items: center; color: var(--color-text); text-decoration: none; flex-shrink: 0; min-height: 40px; }
.moc-header__logo svg { width: 180px; height: 40px; display: block; }
.moc-logo-short { display: none; }
.moc-nav { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; margin-left: auto; }
.moc-header a:not(.moc-btn),
.moc-header a:not(.moc-btn):visited { color: var(--color-text); text-decoration: none; font-weight: 500; }
.moc-header a:not(.moc-btn).is-active { color: var(--color-primary); }
.moc-header a:not(.moc-btn):hover { color: var(--color-primary); text-decoration: none; }
.moc-header a:not(.moc-btn)::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.moc-header a:not(.moc-btn):hover::after,
.moc-header a:not(.moc-btn).is-active::after { width: 100%; }
.moc-header a.moc-header__cta,
.moc-header a.moc-header__cta:visited {
  color: var(--color-on-primary);
  margin-left: 8px;
  flex-shrink: 0;
}
.moc-header a.moc-header__cta:hover,
.moc-header a.moc-header__cta:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
}

.moc-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  flex-shrink: 0;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
}
.moc-burger span {
  display: block;
  flex: 0 0 2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.moc-overlay,
.moc-drawer { display: none; }

.moc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
a.moc-btn--primary, a.moc-btn--primary:visited, button.moc-btn--primary {
  color: var(--color-on-primary);
  background: var(--color-primary);
}
a.moc-btn--primary:hover, a.moc-btn--primary:focus-visible, a.moc-btn--primary:active,
button.moc-btn--primary:hover, button.moc-btn--primary:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
}
a.moc-btn--ghost, a.moc-btn--ghost:visited, button.moc-btn--ghost {
  color: var(--color-text);
  background: transparent;
  border-color: currentColor;
}
a.moc-btn--ghost:hover, a.moc-btn--ghost:focus-visible,
button.moc-btn--ghost:hover {
  color: var(--color-on-primary);
  background: var(--color-text);
  border-color: var(--color-text);
}
.moc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  .moc-actions { flex-direction: column; align-items: stretch; }
  .moc-actions .moc-btn { white-space: normal; width: 100%; }
}

.moc-utility {
  background: #e8f0dc;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.85rem;
  color: var(--color-muted);
}
.moc-utility__inner {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding-block: 8px;
}
.moc-utility__sep { opacity: 0.5; }

.moc-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 22px;
  min-width: 0;
}
.moc-muted { color: var(--color-muted); }
.moc-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}
.moc-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  color: var(--color-text);
  margin: 0 0 1rem;
}
.moc-leaf {
  width: 48px; height: 64px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(140deg, var(--color-secondary), var(--color-primary));
  transform: rotate(-28deg);
  opacity: 0.35;
  pointer-events: none;
}

.moc-h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35em;
}
.moc-h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.55s ease;
}
.moc-h2.is-inview::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .moc-h2::after { width: 100%; transition: none; }
}

/* Timeline layout */
.moc-tl { position: relative; --rail: 28px; --gap: 32px; }
.moc-tl::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--rail) / 2);
  width: 2px;
  background: var(--color-line);
}
.moc-tl__node {
  position: relative;
  margin-left: calc(var(--rail) + var(--gap));
  padding-block: 18px;
}
.moc-tl__marker {
  position: absolute;
  top: 32px;
  left: calc(-1 * (var(--rail) / 2 + var(--gap)));
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (max-width: 768px) {
  .moc-tl { --rail: 20px; --gap: 18px; }
  .moc-tl__marker { width: 22px; height: 22px; font-size: 0.65rem; }
}

/* Hero device */
.moc-hero {
  padding-block: 48px 32px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(212,175,55,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(154,205,50,0.15), transparent 55%),
    var(--color-bg);
}
.moc-dv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title device" "text device";
  gap: 16px 48px;
  align-items: start;
}
.moc-dv__title { grid-area: title; }
.moc-dv__text { grid-area: text; }
.moc-dv__device { grid-area: device; }
.moc-dv__phone {
  background: #1a2214;
  padding: 12px;
  border-radius: 34px;
  box-shadow: 0 20px 40px rgba(45,58,26,0.2);
  width: 240px;
  aspect-ratio: 9 / 19;
}
.moc-dv__phone img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 24px;
  background: #000;
}
.moc-hero a.moc-btn--primary,
.moc-hero a.moc-btn--primary:visited { color: var(--color-on-primary); }
.moc-hero a.moc-btn--primary:hover { color: var(--color-on-primary); background: var(--color-primary-hover); }
@media (max-width: 768px) {
  .moc-dv {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "device" "text";
  }
  .moc-dv__phone { width: 200px; justify-self: center; }
}

/* App card */
.moc-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.moc-app__icon {
  width: 88px; height: 88px;
  border-radius: 22%;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-line);
}
.moc-app__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}
.moc-app__fact dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.moc-app__fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .moc-app { grid-template-columns: 1fr; }
  .moc-app__icon { width: 72px; height: 72px; }
}

/* Chapters */
.moc-ch {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s;
}
a.moc-ch:hover { border-color: var(--color-primary); text-decoration: none; }
.moc-ch__n {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.moc-ch__sum { display: block; font-size: 0.92rem; color: var(--color-muted); margin-top: 4px; }

/* Steps */
.moc-steps { counter-reset: step; display: grid; gap: 14px; }
.moc-steps__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.moc-steps__item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* Genre */
.moc-genre { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* CTA band */
.moc-cta {
  background: linear-gradient(135deg, #3f5615, #6b8e23 55%, #8ab82e);
  color: #f7faf3;
  padding-block: 56px;
}
.moc-cta a:not(.moc-btn),
.moc-cta a:not(.moc-btn):visited { color: #fff8d6; }
.moc-cta a.moc-btn--primary,
.moc-cta a.moc-btn--primary:visited {
  color: #2d3a1a;
  background: #f7faf3;
}
.moc-cta a.moc-btn--primary:hover {
  color: #2d3a1a;
  background: #ffffff;
}
.moc-cta a.moc-btn--ghost,
.moc-cta a.moc-btn--ghost:visited {
  color: #f7faf3;
  border-color: #f7faf3;
}
.moc-cta a.moc-btn--ghost:hover {
  color: #2d3a1a;
  background: #f7faf3;
  border-color: #f7faf3;
}

/* Journal / articles */
.moc-pins { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 28px; }
.moc-pin__band {
  height: 8px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: -22px -22px 16px;
}
.moc-article { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.moc-article__side { position: sticky; top: calc(var(--mo-header-h) + 16px); }
.moc-crumbs { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 12px; }
.moc-crumbs a { color: var(--color-muted); }
.moc-pn { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.moc-pn a { text-decoration: none; color: var(--color-text); max-width: 46%; }
.moc-interview dt {
  font-weight: 700;
  font-family: var(--font-head);
  margin-top: 1.2em;
  color: var(--color-primary);
}
.moc-interview dd { margin: 0.4em 0 0; }
@media (max-width: 900px) {
  .moc-article { grid-template-columns: 1fr; }
  .moc-article__side { position: static; }
}

/* Form */
.moc-form { display: grid; gap: 14px; max-width: 640px; }
.moc-form label { display: grid; gap: 6px; font-weight: 600; }
.moc-form input,
.moc-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  width: 100%;
}
.moc-form textarea { min-height: 140px; resize: vertical; }

/* Footer */
.moc-footer {
  background: #243018;
  color: #e9efe0;
  padding-block: 48px 28px;
}
.moc-footer a:not(.moc-btn),
.moc-footer a:not(.moc-btn):visited { color: #e9efe0; }
.moc-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.moc-footer__title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.moc-footer ul { list-style: none; padding: 0; }
.moc-footer li { margin-bottom: 0.45rem; }
.moc-footer__link {
  background: none; border: none; padding: 0;
  color: #e9efe0; font: inherit; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.moc-footer__addr { font-size: 0.9rem; color: #b7c4a8; margin-top: 12px; }
.moc-footer__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: #b7c4a8;
}
@media (max-width: 900px) {
  .moc-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .moc-footer__grid { grid-template-columns: 1fr; }
}

/* Cookie bar L10#1 */
.moc-cookie { display: none; }
.moc-cookie:not([hidden]) {
  display: flex;
  position: fixed;
  z-index: 110;
  left: 0; right: 0; bottom: 0;
  background: #1a2214;
  color: #f7faf3;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}
.moc-cookie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-block: 14px;
}
.moc-cookie a, .moc-cookie a:visited { color: #fff8d6; }
.moc-cookie .moc-btn { box-shadow: none; }
.moc-cookie button.moc-btn--primary {
  color: #1a2214;
  background: #f7faf3;
}
.moc-cookie button.moc-btn--primary:hover {
  color: #1a2214;
  background: #ffffff;
}
@media (max-width: 520px) {
  .moc-cookie__inner { flex-direction: column; align-items: stretch; }
  .moc-cookie .moc-btn { width: 100%; min-height: 44px; }
}

/* Mobile nav L9#3 — breakpoint 1100 for L3#4 with many links */
@media (max-width: 1100px) {
  :root { --mo-header-h: 56px; }
  .moc-nav,
  .moc-header a.moc-header__cta { display: none; }
  .moc-burger { display: flex; order: 99; margin-left: auto; }
  .moc-header__logo svg { width: 120px; height: 36px; max-width: calc(100vw - 150px); }
  .moc-logo-full { display: none; }
  .moc-logo-short { display: inline; }

  .moc-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .moc-drawer {
    display: block;
    position: fixed;
    z-index: 210;
    background: #ffffff;
    overflow-y: auto;
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .moc-drawer--narrow {
    top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: min(75vw, 320px);
    padding: 64px 0 20px;
    transform: translateX(100%);
  }
  .moc-drawer a:not(.moc-btn) {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
  }
  .moc-drawer a.moc-drawer__cta {
    margin: 16px 20px;
    display: inline-flex;
    width: calc(100% - 40px);
  }
  .moc-drawer__close {
    position: absolute;
    top: 12px; right: 16px;
    width: 44px; height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text);
  }
  body.nav-open .moc-overlay { opacity: 1; visibility: visible; }
  body.nav-open .moc-drawer--narrow { transform: translateX(0); visibility: visible; }
}
@media (min-width: 1101px) {
  .moc-overlay,
  .moc-drawer { display: none !important; }
}
@media (max-width: 480px) {
  :root { --mo-header-h: 52px; }
}
