:root {
  --ec-header-h: 72px;
  --ec-page-w: 1120px;
  --color-bg: #f0fdf4;
  --color-surface: #ffffff;
  --color-ink: #143528;
  --color-muted: #4a6b58;
  --color-line: #c8e6d4;
  --color-primary: #1a6b3c;
  --color-primary-hover: #145230;
  --color-on-primary: #ffffff;
  --color-brand: #27ae60;
  --color-secondary: #52be80;
  --color-accent: #ffd700;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 56px;
}

@media (max-width: 1100px) {
  :root { --ec-header-h: 56px; }
}

@media (max-width: 480px) {
  :root { --ec-header-h: 48px; }
}

[hidden] { display: none !important; }

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

html, body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
}

html { scroll-padding-top: var(--ec-header-h); }

body {
  padding-top: var(--ec-header-h);
  background: var(--color-bg);
  color: var(--color-ink);
  font: 16px/1.65 var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a:not(.ec-btn) { color: var(--color-brand); }
a:not(.ec-btn):hover { color: var(--color-primary); }

.ec-u-text-center { text-align: center; }
.ec-u-mb-sm { margin-bottom: var(--space-sm); }
.ec-u-mb-md { margin-bottom: var(--space-md); }
.ec-u-mb-lg { margin-bottom: var(--space-lg); }
.ec-u-mt-lg { margin-top: var(--space-lg); }
.ec-u-muted { color: var(--color-muted); }
.ec-u-big-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-brand);
  letter-spacing: -0.03em;
}

.ec-container {
  width: 100%;
  max-width: var(--ec-page-w);
  margin: 0 auto;
  padding-inline: 20px;
}

@media (max-width: 768px) {
  .ec-container { padding-inline: 16px; }
}

.ec-section {
  padding-block: var(--space-xl);
  position: relative;
}

@media (max-width: 768px) {
  .ec-section { padding-block: 40px; }
}

.ec-section--ink::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%;
  background: radial-gradient(circle at 30% 30%, rgba(82, 190, 128, 0.35), rgba(39, 174, 96, 0.08) 70%, transparent 75%);
  filter: blur(18px);
  top: -40px;
  right: 8%;
  pointer-events: none;
  z-index: 0;
}

.ec-section--ink > * { position: relative; z-index: 1; }

.ec-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--ec-header-h);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(20, 53, 40, 0.08);
}

.ec-header__row {
  height: var(--ec-header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.ec-header__logo {
  display: flex;
  align-items: center;
  color: var(--color-ink);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 1;
  min-width: 0;
}

.ec-header__logo svg {
  width: 180px;
  height: auto;
  display: block;
}

.ec-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ec-header a:not(.ec-btn),
.ec-header a:not(.ec-btn):visited {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
}

.ec-nav__link.is-active { color: var(--color-primary); }

.ec-burger {
  display: flex;
  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: 10px;
  background: #ffffff;
  color: var(--color-ink);
  cursor: pointer;
  order: 99;
  margin-left: 0;
}

.ec-burger span {
  display: block;
  flex: 0 0 2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--color-ink);
}

a.ec-btn--primary,
a.ec-btn--primary:visited,
button.ec-btn--primary {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

a.ec-btn--primary:hover,
a.ec-btn--primary:focus-visible,
a.ec-btn--primary:active,
button.ec-btn--primary:hover,
button.ec-btn--primary:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
}

a.ec-btn--ghost,
a.ec-btn--ghost:visited,
button.ec-btn--ghost {
  color: #143528;
  background: transparent;
  border-color: #143528;
}

a.ec-btn--ghost:hover,
a.ec-btn--ghost:focus-visible,
a.ec-btn--ghost:active,
a.ec-btn--ghost:visited:hover,
button.ec-btn--ghost:hover,
button.ec-btn--ghost:focus-visible {
  color: #ffffff;
  background: #143528;
  border-color: #143528;
}

.ec-header a.ec-btn--primary,
.ec-header a.ec-btn--primary:visited {
  color: var(--color-on-primary);
}

.ec-header a.ec-btn--primary:hover,
.ec-header a.ec-btn--primary:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
}

.ec-hero a.ec-btn--primary,
.ec-hero a.ec-btn--primary:visited,
.ec-cta a.ec-btn--primary,
.ec-cta a.ec-btn--primary:visited {
  color: var(--color-on-primary);
}

.ec-hero a.ec-btn--ghost,
.ec-hero a.ec-btn--ghost:visited {
  color: #143528;
  background: transparent;
  border-color: #143528;
}

.ec-hero a.ec-btn--ghost:hover,
.ec-hero a.ec-btn--ghost:focus-visible,
.ec-hero a.ec-btn--ghost:active,
.ec-hero a.ec-btn--ghost:visited:hover {
  color: #ffffff;
  background: #143528;
  border-color: #143528;
}

.ec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 520px) {
  .ec-actions { flex-direction: column; align-items: stretch; }
  .ec-actions .ec-btn { white-space: normal; }
}

.ec-overlay {
  display: block;
  position: fixed;
  top: var(--ec-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.ec-drawer {
  display: block;
  position: fixed;
  z-index: 210;
  background: #ffffff;
  overflow-y: auto;
  visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}

.ec-drawer a:not(.ec-btn) {
  display: block;
  padding: 14px 20px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
}

.ec-drawer .ec-btn {
  margin: 12px 20px 20px;
  width: calc(100% - 40px);
}

.ec-drawer__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink);
}

.ec-drawer--top {
  top: var(--ec-header-h);
  left: auto;
  right: 0;
  width: min(22rem, 90vw);
  max-height: calc(100dvh - var(--ec-header-h));
  padding: 56px 0 16px;
  transform: translateY(-12px);
  opacity: 0;
  border-left: 1px solid var(--color-line);
  box-shadow: -8px 12px 28px rgba(20, 53, 40, 0.12);
}

body.nav-open { overflow: hidden; }
body.nav-open .ec-overlay { opacity: 1; visibility: visible; }
body.nav-open .ec-drawer {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .ec-nav,
  .ec-header a.ec-header__cta { display: none; }
  .ec-burger { margin-left: auto; }
  .ec-header__logo { margin-right: 0; }
  .ec-header__logo svg {
    width: 120px;
    max-width: calc(100vw - 150px);
  }
  .ec-drawer--top {
    left: 0;
    right: 0;
    width: 100%;
    border-left: 0;
    box-shadow: 0 12px 28px rgba(20, 53, 40, 0.12);
  }
  .ec-drawer__dup { display: block; }
}

@media (min-width: 901px) {
  .ec-drawer__dup { display: none !important; }
}

.ec-cookie { display: none; }

.ec-cookie:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 110;
  bottom: 16px;
  right: 16px;
  left: auto;
  max-width: 360px;
  gap: 12px;
  padding: 16px;
  align-items: flex-start;
  background: #143528;
  color: #f5f5f5;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ec-cookie p { margin: 0; font-size: 0.95rem; }
.ec-cookie a,
.ec-cookie a:visited { color: #f5f5f5; }
.ec-cookie .ec-btn { min-height: 44px; box-shadow: none; }
.ec-cookie button.ec-btn--primary {
  color: #143528;
  background: #ffd700;
}
.ec-cookie button.ec-btn--primary:hover,
.ec-cookie button.ec-btn--primary:focus-visible {
  color: #143528;
  background: #ffe566;
}

@media (max-width: 520px) {
  .ec-cookie:not([hidden]) {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

.ec-hero {
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(200, 230, 212, 0.9)),
    radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.25), transparent 55%);
  padding-block: clamp(40px, 7vw, 72px);
  overflow: clip;
}

.ec-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.ec-hero__quote {
  margin: 20px 0 28px;
  padding-left: 20px;
  border-left: 4px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-ink);
}

.ec-hero__still {
  max-height: 250px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 53, 40, 0.15);
}

@media (max-width: 768px) {
  .ec-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ec-hero__still { justify-self: start; max-height: 220px; }
}

.ec-mag {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

.ec-mag--flip { grid-template-columns: 1fr 1.35fr; }

.ec-mag > * { min-width: 0; }

@media (max-width: 900px) {
  .ec-mag,
  .ec-mag--flip { grid-template-columns: 1fr; }
}

.ec-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.ec-qa {
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
  margin-bottom: 10px;
}

.ec-qa summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ec-qa summary::-webkit-details-marker { display: none; }
.ec-qa summary::after { content: "+"; font-size: 1.3rem; color: var(--color-brand); }
.ec-qa[open] summary::after { content: "–"; }
.ec-qa p { margin: 0; padding: 0 16px 16px; }

.ec-theme-group { margin-bottom: 28px; }

.ec-theme-group__title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.ec-app__badges {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.ec-app__head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.ec-app__icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .ec-app__head { flex-direction: column; align-items: flex-start; }
  .ec-app__icon { width: 72px; height: 72px; }
}

.ec-app__dev {
  color: var(--color-muted);
  overflow-wrap: anywhere;
  margin: 0;
}

.ec-app__facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
}

.ec-app__facts li {
  padding: 10px 12px;
  background: rgba(39, 174, 96, 0.08);
  border-radius: 10px;
  min-width: 0;
}

.ec-app__note,
.ec-app__checked {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.ec-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ec-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.ec-feature__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--color-brand);
}

.ec-feature__icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.ec-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ec-checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}

.ec-checklist svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-brand);
  fill: none;
  stroke-width: 1.5;
}

.ec-article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.ec-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.ec-article-card__band {
  height: 72px;
  background: linear-gradient(135deg, #27ae60, #145230 60%, #ffd700);
}

.ec-article-card__band--2 { background: linear-gradient(135deg, #52be80, #1a6b3c); }
.ec-article-card__band--3 { background: linear-gradient(120deg, #145230, #27ae60 50%, #c8e6d4); }
.ec-article-card__band--4 { background: linear-gradient(160deg, #ffd700, #52be80 55%, #1a6b3c); }

.ec-article-card__body { padding: 16px 18px 20px; }
.ec-article-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ec-article-card p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }

.ec-cta {
  background: #143528;
  color: #f5f5f5;
  padding-block: var(--space-xl);
}

.ec-cta a:not(.ec-btn),
.ec-cta a:not(.ec-btn):visited { color: #ffd700; }

.ec-cta a.ec-btn--primary,
.ec-cta a.ec-btn--primary:visited {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

.ec-cta a.ec-btn--primary:hover,
.ec-cta a.ec-btn--primary:focus-visible {
  color: var(--color-on-primary);
  background: var(--color-primary-hover);
}

.ec-cta a.ec-btn--ghost,
.ec-cta a.ec-btn--ghost:visited {
  color: #f5f5f5;
  border-color: #f5f5f5;
}

.ec-cta a.ec-btn--ghost:hover,
.ec-cta a.ec-btn--ghost:focus-visible {
  color: #143528;
  background: #f5f5f5;
  border-color: #f5f5f5;
}

.ec-footer {
  background: #0f2419;
  color: #e4f5eb;
  padding-block: 48px 28px;
}

.ec-footer a:not(.ec-btn),
.ec-footer a:not(.ec-btn):visited { color: #e4f5eb; }

.ec-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .ec-footer__grid { grid-template-columns: 1fr; }
}

.ec-footer__heading {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #ffd700;
}

.ec-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-footer__list li { margin-bottom: 8px; }

.ec-footer__link {
  background: none;
  border: 0;
  padding: 0;
  color: #e4f5eb;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.ec-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.92rem;
  color: #b7d4c3;
}

.ec-footer__legal p { margin-bottom: 0.6em; }

.ec-prose {
  max-width: 760px;
}

.ec-prose h2 { margin-top: 1.6em; }

.ec-breadcrumbs {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.ec-breadcrumbs a { color: var(--color-muted); }

.ec-related {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
}

.ec-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.ec-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.ec-form input,
.ec-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--color-ink);
}

.ec-form textarea { min-height: 140px; resize: vertical; }

.ec-collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ec-collections ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ec-collections li { margin-bottom: 8px; }

.ec-reveal {
  clip-path: none;
  opacity: 1;
}

.js .ec-reveal {
  clip-path: inset(0 0 100% 0);
  opacity: 0.35;
  transition: clip-path 0.7s ease, opacity 0.7s ease;
}

.js .ec-reveal.is-in {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js .ec-reveal {
    clip-path: none;
    opacity: 1;
    transition: none;
  }
}

.ec-interview h2 {
  font-size: 1.2rem;
  color: var(--color-primary);
}

.ec-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-muted);
}

.ec-measure { max-width: 760px; }
