/* Лендинги экосистемы: главная (/) и Архитектор контента (/content/) */
:root {
  --eco-accent: #2f8f7a;
  --eco-accent-dark: #267a68;
  --eco-ink: #1a2e2a;
  --eco-muted: rgba(26, 46, 42, 0.72);
  --eco-card: rgba(255, 255, 255, 0.9);
  --eco-radius: 20px;
  --eco-font: "Manrope", system-ui, sans-serif;
  --eco-display: "Fraunces", Georgia, serif;
  --eco-topbar-h: 64px;
}

.eco-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--eco-font);
  color: var(--eco-ink);
  background: #dfece6;
  position: relative;
  overflow-x: hidden;
  padding-top: var(--eco-topbar-h);
}

/* Sticky навигация */
.eco-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--eco-topbar-h);
  background: rgba(248, 252, 249, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 46, 42, 0.08);
  box-shadow: 0 4px 24px rgba(26, 46, 42, 0.04);
}

.eco-topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.eco-topbar__brand {
  font-family: var(--eco-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--eco-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.eco-topbar__brand:hover {
  color: var(--eco-accent);
}

.eco-topbar__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.eco-topbar__sep {
  width: 1px;
  height: 1rem;
  background: rgba(26, 46, 42, 0.18);
}

.eco-topbar__link {
  color: var(--eco-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.eco-topbar__link:hover,
.eco-topbar__link.is-active {
  color: var(--eco-accent);
  border-bottom-color: var(--eco-accent);
}

/* Глубокий текстурный фон главной */
.eco-body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(47, 143, 122, 0.38), transparent 58%),
    radial-gradient(ellipse 48% 40% at 82% 18%, rgba(70, 120, 160, 0.28), transparent 52%),
    radial-gradient(ellipse 42% 42% at 58% 82%, rgba(47, 143, 122, 0.26), transparent 55%),
    linear-gradient(155deg, #e6f1eb 0%, #d8e6f0 42%, #e8f0e4 100%);
  background-size: 130% 130%;
  animation: eco-drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.eco-body::after {
  content: "";
  position: fixed;
  width: 48vmin;
  height: 48vmin;
  border-radius: 40% 60% 55% 45%;
  background: rgba(47, 143, 122, 0.12);
  top: 10%;
  right: -10%;
  z-index: 0;
  animation: eco-blob 20s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Stripe-inspired лучи и орбы только на главной (не /content/) */
.eco-home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.eco-home-bg__ray {
  position: absolute;
  width: 140vmax;
  height: 18vmax;
  left: 50%;
  top: 35%;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(47, 143, 122, 0.22),
    rgba(47, 143, 122, 0.06) 42%,
    transparent 78%
  );
  filter: blur(2px);
  opacity: 0.85;
}

.eco-home-bg__ray--a {
  transform: translateX(-8%) rotate(-28deg);
  animation: eco-ray-a 26s ease-in-out infinite alternate;
}

.eco-home-bg__ray--b {
  top: 48%;
  height: 12vmax;
  background: linear-gradient(
    90deg,
    rgba(90, 140, 180, 0.18),
    rgba(47, 143, 122, 0.05) 50%,
    transparent 80%
  );
  transform: translateX(-12%) rotate(14deg);
  animation: eco-ray-b 22s ease-in-out infinite alternate;
}

.eco-home-bg__ray--c {
  top: 22%;
  height: 10vmax;
  opacity: 0.55;
  transform: translateX(-5%) rotate(-8deg);
  animation: eco-ray-c 30s ease-in-out infinite alternate;
}

.eco-home-bg__orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47, 143, 122, 0.28);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(47, 143, 122, 0.08));
}

.eco-home-bg__orb--a {
  width: 22vmin;
  height: 22vmin;
  top: 58%;
  left: 6%;
  animation: eco-orb-float 18s ease-in-out infinite alternate;
}

.eco-home-bg__orb--b {
  width: 14vmin;
  height: 14vmin;
  top: 16%;
  right: 14%;
  animation: eco-orb-float 14s ease-in-out infinite alternate-reverse;
}

.eco-home-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(47, 143, 122, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 143, 122, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: eco-grid-drift 40s linear infinite;
}

@keyframes eco-ray-a {
  from { transform: translateX(-8%) rotate(-28deg) scaleX(1); opacity: 0.7; }
  to { transform: translateX(-2%) rotate(-22deg) scaleX(1.06); opacity: 1; }
}

@keyframes eco-ray-b {
  from { transform: translateX(-12%) rotate(14deg); }
  to { transform: translateX(-6%) rotate(20deg); }
}

@keyframes eco-ray-c {
  from { transform: translateX(-5%) rotate(-8deg) translateY(0); }
  to { transform: translateX(2%) rotate(-4deg) translateY(4%); }
}

@keyframes eco-orb-float {
  from { transform: translate(0, 0); }
  to { transform: translate(8%, -10%); }
}

@keyframes eco-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 28px, 28px 56px; }
}

/*
 * /content/ — холодная зелёно-голубая гамма (без розового/персикового),
 * в духе прежнего техно-фона + интерактивный «агент».
 */
.eco-body--content {
  --eco-accent: #2f8f7a;
  --eco-accent-dark: #267a68;
  --eco-ink: #1a2e2a;
  --eco-muted: rgba(26, 46, 42, 0.72);
  --eco-card: rgba(255, 255, 255, 0.9);
  background: #e8eef5;
}

.eco-body--content::before {
  background:
    radial-gradient(ellipse 45% 35% at 15% 25%, rgba(47, 143, 122, 0.24), transparent 50%),
    radial-gradient(ellipse 40% 40% at 85% 70%, rgba(60, 100, 140, 0.2), transparent 55%),
    linear-gradient(160deg, #e8eef5 0%, #e6f3ee 50%, #edf2f8 100%);
}

.eco-body--content::after {
  background: rgba(47, 143, 122, 0.1);
  top: auto;
  bottom: 8%;
  left: -10%;
  right: auto;
  animation-duration: 24s;
}

.eco-body--content .eco-home-bg {
  display: none;
}

/* Glass-навигация на /content/ (зелёный тон) */
.eco-topbar--glass {
  background: rgba(240, 248, 246, 0.55);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(26, 46, 42, 0.08);
  box-shadow: 0 8px 32px rgba(47, 143, 122, 0.08);
}

.eco-neural {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(115deg, transparent 48%, rgba(47, 143, 122, 0.12) 49%, transparent 51%),
    linear-gradient(65deg, transparent 47%, rgba(47, 100, 140, 0.1) 50%, transparent 53%),
    radial-gradient(circle at 30% 40%, rgba(47, 143, 122, 0.15) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(47, 143, 122, 0.12) 0 1px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 64px 64px;
  animation: eco-neural-shift 28s linear infinite;
}

@keyframes eco-neural-shift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 80px 40px, -60px 30px, 24px 12px, -16px 20px; }
}

/* Геометрия на /content/ — в зелёной гамме */
.eco-geo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.eco-geo__circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 143, 122, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.eco-geo__circle--a {
  width: 28vmin;
  height: 28vmin;
  top: 18%;
  left: 8%;
  animation: eco-geo-float-a 20s ease-in-out infinite alternate;
}

.eco-geo__circle--b {
  width: 16vmin;
  height: 16vmin;
  top: 55%;
  right: 12%;
  border-color: rgba(60, 100, 140, 0.35);
  animation: eco-geo-float-b 16s ease-in-out infinite alternate;
}

.eco-geo__circle--c {
  width: 10vmin;
  height: 10vmin;
  bottom: 18%;
  left: 42%;
  background: rgba(47, 143, 122, 0.1);
  animation: eco-geo-float-c 22s ease-in-out infinite alternate;
}

.eco-geo__line {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(47, 143, 122, 0.4),
    transparent
  );
  transform-origin: center;
}

.eco-geo__line--a {
  width: 36vmin;
  top: 32%;
  right: 18%;
  transform: rotate(-18deg);
  animation: eco-geo-line 18s ease-in-out infinite alternate;
}

.eco-geo__line--b {
  width: 28vmin;
  bottom: 28%;
  left: 14%;
  transform: rotate(12deg);
  animation: eco-geo-line 14s ease-in-out infinite alternate-reverse;
}

@keyframes eco-geo-float-a {
  from { transform: translate(0, 0); }
  to { transform: translate(6%, 10%); }
}

@keyframes eco-geo-float-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, -6%) scale(1.08); }
}

@keyframes eco-geo-float-c {
  from { transform: translate(0, 0); }
  to { transform: translate(12%, -8%); }
}

@keyframes eco-geo-line {
  from { opacity: 0.45; transform: rotate(-18deg) translateX(0); }
  to { opacity: 0.85; transform: rotate(-12deg) translateX(4%); }
}

/* Интерактивный символ агентов */
.eco-agent {
  position: fixed;
  z-index: 40;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 5vh, 3rem);
  width: 64px;
  height: 64px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--eco-accent);
  box-shadow:
    0 10px 28px rgba(47, 143, 122, 0.22),
    inset 0 0 0 1px rgba(47, 143, 122, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  /* JS задаёт --ax/--ay; CSS — мягкий «парящий» сдвиг */
  --ax: 0px;
  --ay: 0px;
  transform: translate(var(--ax), var(--ay));
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.15s ease;
  will-change: transform;
}

.eco-agent__core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  animation: eco-agent-bob 5.5s ease-in-out infinite;
}

.eco-agent__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(47, 143, 122, 0.35);
  animation: eco-agent-spin 12s linear infinite;
}

.eco-agent__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(47, 143, 122, 0.2);
  animation: eco-agent-pulse 2.4s ease-out infinite;
  z-index: 1;
}

.eco-agent:hover,
.eco-agent.is-active {
  background: #fff;
  box-shadow: 0 16px 36px rgba(47, 143, 122, 0.32);
  transform: translate(var(--ax), var(--ay)) scale(1.08);
}

.eco-agent:hover .eco-agent__core,
.eco-agent.is-active .eco-agent__core {
  animation-play-state: paused;
}

.eco-agent:hover .eco-agent__ring,
.eco-agent.is-active .eco-agent__ring {
  animation-duration: 4s;
  border-color: rgba(47, 143, 122, 0.55);
}

.eco-agent:focus-visible {
  outline: 2px solid var(--eco-accent);
  outline-offset: 3px;
}

@keyframes eco-agent-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes eco-agent-spin {
  to { transform: rotate(360deg); }
}

@keyframes eco-agent-pulse {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eco-home-bg__ray,
  .eco-home-bg__orb,
  .eco-home-bg__grid,
  .eco-agent,
  .eco-agent__core,
  .eco-agent__ring,
  .eco-agent__pulse,
  .eco-geo__circle,
  .eco-geo__line,
  .eco-neural,
  .eco-body::before,
  .eco-body::after {
    animation: none !important;
  }
}

@keyframes eco-drift {
  from { background-position: 0% 20%; transform: scale(1); }
  to { background-position: 80% 60%; transform: scale(1.05); }
}

@keyframes eco-blob {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-8%, 12%) rotate(18deg); }
}

.eco-wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Hero: бренд первым */
.eco-hero {
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 0 3rem;
  max-width: 38rem;
}

.eco-hero__brand {
  font-family: var(--eco-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--eco-ink);
}

.eco-hero__headline {
  font-family: var(--eco-font);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  color: var(--eco-ink);
}

.eco-hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--eco-muted);
  max-width: 32rem;
}

.eco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--eco-font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.eco-btn--primary {
  background: var(--eco-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 143, 122, 0.25);
}

.eco-btn--primary:hover {
  background: var(--eco-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 143, 122, 0.32);
}

.eco-btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1.1rem;
}

.eco-btn--ghost {
  background: transparent;
  color: var(--eco-ink);
  border: 1px solid rgba(26, 46, 42, 0.2);
}

.eco-btn--ghost:hover {
  border-color: var(--eco-accent);
  color: var(--eco-accent);
}

/* Fade-in: загрузка + скролл */
.eco-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.eco-reveal.is-visible,
.eco-reveal--auto {
  opacity: 1;
  transform: translateY(0);
}

.eco-reveal--auto { animation: eco-fade-up 0.75s ease forwards; }
.eco-reveal--d1 { transition-delay: 0.08s; animation-delay: 0.08s; }
.eco-reveal--d2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.eco-reveal--d3 { transition-delay: 0.32s; animation-delay: 0.32s; }
.eco-reveal--d4 { transition-delay: 0.44s; animation-delay: 0.44s; }

@keyframes eco-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.eco-section {
  padding: 1rem 0 3rem;
}

.eco-section__title {
  font-family: var(--eco-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
}

.eco-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .eco-products { grid-template-columns: 1fr; }
  .eco-topbar__brand { font-size: 0.95rem; }
  .eco-topbar__link { font-size: 0.85rem; }
}

.eco-product,
.eco-community,
.eco-feature {
  background: var(--eco-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 46, 42, 0.08);
  border-radius: var(--eco-radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 32px rgba(26, 46, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eco-product:hover,
.eco-community:hover,
.eco-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 46, 42, 0.12);
}

.eco-product h3,
.eco-community h3 {
  font-family: var(--eco-display);
  font-size: 1.35rem;
  margin: 0;
}

.eco-product p,
.eco-community p {
  margin: 0;
  flex: 1;
  line-height: 1.55;
  color: var(--eco-muted);
  font-size: 0.98rem;
}

.eco-community p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eco-product__cta,
.eco-community__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.eco-soon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  opacity: 0.72;
}

@media (max-width: 720px) {
  .eco-soon { grid-template-columns: 1fr; }
}

.eco-soon__card {
  border: 1px dashed rgba(26, 46, 42, 0.2);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.45);
}

.eco-soon__card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.eco-soon__card p { margin: 0; font-size: 0.88rem; color: var(--eco-muted); }
.eco-soon__badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eco-muted);
}

.eco-communities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.eco-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

@media (max-width: 800px) {
  .eco-features { grid-template-columns: 1fr; }
}

.eco-feature h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.eco-feature p {
  margin: 0;
  color: var(--eco-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.eco-cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--eco-radius);
  background: linear-gradient(135deg, rgba(47, 143, 122, 0.14), rgba(47, 143, 122, 0.04));
  border: 1px solid rgba(47, 143, 122, 0.22);
  margin: 1rem 0 2rem;
}

.eco-cta-band p {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.eco-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  font-size: 0.85rem;
  color: var(--eco-muted);
}

.eco-footer a {
  color: var(--eco-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Sticky topbar на страницах блога (поверх landing-bg) */
.blog-page .eco-topbar {
  background: rgba(255, 255, 255, 0.88);
}

.blog-page.landing-bg {
  padding-top: calc(var(--eco-topbar-h) + 0.5rem);
}

.blog-page .sk-nav { display: none !important; }
.blog-page .blog-breadcrumbs { display: none !important; }
