/* ECOYAR about page (eco-about.js), mounts only on #eco-about */
.eab { --g: #00753B; --g2: #005c2e; --cream: #f7f1e3; --ink: #1d1d1b; --mut: #5d625f; color: var(--ink); font-size: 16px; line-height: 1.6; max-width: 1100px; margin: 0 auto 30px; }
.eab h2 { font-size: 28px; line-height: 1.25; margin: 0 0 14px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; }
.eab p { margin: 0 0 12px; }
.eab a { color: var(--g); }
.eab img { display: block; max-width: 100%; height: auto; }
.eab-sec { margin: 0 0 56px; }
.eab-lead { font-size: 17px; color: #333; max-width: 860px; }
.eab-note { font-size: 13px; color: var(--mut); margin-top: 12px; }

/* hero */
.eab-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; background: var(--cream); border-radius: 18px; overflow: hidden; margin: 0 0 56px; min-height: 440px; }
.eab-hero-img { grid-column: 2; grid-row: 1; width: 100%; height: 100% !important; object-fit: cover; object-position: 60% 50%; }
.eab-hero-in { grid-column: 1; grid-row: 1; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.eab-hero h2 { font-size: 44px; line-height: 1.1; margin-bottom: 18px; }
.eab-hero p { font-size: 18px; color: #333; }
.eab-kicker { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g); border: 1px solid var(--g); border-radius: 999px; padding: 3px 12px; margin-bottom: 16px; }

/* buttons */
.eab-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.eab-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--g); background: var(--g); color: #fff !important; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s, transform .2s; }
.eab-btn:hover { background: var(--g2); border-color: var(--g2); transform: translateY(-1px); }
.eab-btn-o { background: transparent; color: var(--g) !important; }
.eab-btn-o:hover { background: var(--g); color: #fff !important; }
.eab-btn:focus-visible, .eab-jtbd button:focus-visible, .eab-car-b:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

/* split text + picture */
.eab-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eab-rev .eab-pic { order: -1; }
.eab-pic { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 10px 30px rgba(29, 29, 27, .12); }
.eab-pic img { width: 100%; height: 100% !important; object-fit: cover; }
.eab-wide { margin: 8px 0 20px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--cream); }
.eab-wide img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 50%; }

/* numbers */
.eab-nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.eab-num { background: var(--cream); border-radius: 14px; padding: 20px 14px; text-align: center; }
.eab-num b { display: block; font-size: 38px; line-height: 1.1; color: var(--g); font-weight: 800; font-variant-numeric: tabular-nums; }
.eab-num span { display: block; font-size: 14px; color: var(--mut); line-height: 1.35; margin-top: 6px; }

/* band */
.eab-band { background: var(--cream); border-radius: 18px; padding: 36px 40px; border-left: 6px solid var(--g); }

/* lists */
.eab-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 26px; }
.eab-list li { position: relative; padding-left: 26px; }
.eab-list li:before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px rgba(0, 117, 59, .18); }
.eab-checks li:before { border-radius: 3px; width: 14px; height: 8px; background: none; box-shadow: none; border-left: 3px solid var(--g); border-bottom: 3px solid var(--g); transform: rotate(-45deg); top: .4em; }

/* photo placeholders: replace with <img> keeping data-shot */
.eab-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.eab-shot { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #e8e4d8; }
.eab-shot:not(:has(img)) { border: 2px dashed rgba(0, 117, 59, .45); background: #f2efe6 no-repeat center 38% / 44px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300753B' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E"); }
.eab-shot img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.eab-shot img + figcaption { background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; }
.eab-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--g2); }

/* video */
.eab-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin: 0 0 56px; background: #000; }
.eab-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eab-video-hist { max-width: 640px; margin: 0 auto 48px; padding: 18px 20px 16px; border-radius: 14px; background: var(--cream, #f7f1e3); border: 1px solid rgba(0, 117, 59, .12); }
.eab-video-hist__note { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--mut, #5d625f); }
.eab-video-hist__date { margin: 0 0 14px; font-size: 13px; color: var(--mut, #5d625f); }
.eab-video-hist__date i { font-style: italic; }
.eab-video--compact { margin: 0; border-radius: 10px; aspect-ratio: 16 / 9; max-height: 280px; }
.eab-video--compact iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .eab-video-hist { margin-bottom: 36px; padding: 14px 14px 12px; }
  .eab-video--compact { max-height: none; }
}

/* infographic */
.eab-info-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; }
.eab-donut { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.eab-donut-svg { position: relative; width: 220px; height: 220px; }
.eab-donut-svg svg { width: 100%; height: 100%; }
.eab-donut-svg circle { transition: opacity .2s, stroke-width .2s; cursor: pointer; }
.eab-donut-c { position: absolute; inset: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.eab-donut-c b { font-size: 34px; line-height: 1; color: var(--g); font-weight: 800; }
.eab-donut-c span { font-size: 12px; color: var(--mut); line-height: 1.2; margin-top: 4px; }
.eab-legend { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.eab-legend li { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; transition: opacity .2s; }
.eab-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.eab-legend b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.eab .eab-dim { opacity: .25; }
.eab-map { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); }
.eab-map img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 52%; transform: scale(1.25); }
.eab-map figcaption { position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--g2); }

/* carousel */
.eab-car { position: relative; }
.eab-cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.eab-card { flex: 0 0 260px; scroll-snap-align: start; background: #fff; border: 1px solid #e3e0d6; border-radius: 14px; padding: 18px 18px 16px; display: flex; flex-direction: column; min-height: 170px; box-shadow: 0 4px 14px rgba(29, 29, 27, .06); }
.eab-card i { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g); padding-left: 22px; min-height: 18px; background: no-repeat left center / 16px; }
.eab-card[data-t=museum] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300753B' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-6 10 6zM4 9v10M9 9v10M15 9v10M20 9v10M2 21h20'/%3E%3C/svg%3E"); }
.eab-card[data-t=uni] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300753B' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M1 9l11-5 11 5-11 5zM5 11v6c4 3 10 3 14 0v-6M23 9v6'/%3E%3C/svg%3E"); }
.eab-card[data-t=college] i, .eab-card[data-t=art] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300753B' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 100 18c1.5 0 2-1 2-2s-1-2 0-3 3 0 4-1 3-2 3-4c0-4-4-8-9-8z'/%3E%3Ccircle cx='7.5' cy='11' r='1.2'/%3E%3Ccircle cx='11' cy='7' r='1.2'/%3E%3Ccircle cx='16' cy='8.5' r='1.2'/%3E%3C/svg%3E"); }
.eab-card[data-t=library] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300753B' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 5c4-1 7 0 10 2 3-2 6-3 10-2v14c-4-1-7 0-10 2-3-2-6-3-10-2zM12 7v14'/%3E%3C/svg%3E"); }
.eab-card b { display: block; font-size: 16px; line-height: 1.35; margin: 10px 0 auto; }
.eab-card span { display: block; font-size: 13px; color: var(--mut); margin-top: 12px; }
.eab-car-b { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -26px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .18); cursor: pointer; z-index: 2; }
.eab-car-b:after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--g); border-right: 2px solid var(--g); }
.eab-car-prev { left: -22px; }
.eab-car-prev:after { transform: translate(-30%, -50%) rotate(-135deg); }
.eab-car-next { right: -10px; }
.eab-car-next:after { transform: translate(-70%, -50%) rotate(45deg); }

/* final JTBD — выше специфичность, чем html.eco-new h2/a */
.eab-final { background: var(--g); color: #fff; border-radius: 18px; padding: 40px; }
html.eco-new .eab-final h2,
html.eco-new .eab-final p,
.eab .eab-final h2,
.eab .eab-final p,
.eab-final h2,
.eab-final p {
  color: #fff !important;
}
html.eco-new .eab-final a:not(.eab-btn),
.eab-final a:not(.eab-btn) {
  color: #fff;
  text-decoration: underline;
}

/* CTA на зелёном: белая заливка + тёмно-зелёный текст / контур + белый текст */
html.eco-new .eab-final a.eab-btn:not(.eab-btn-o),
.eab .eab-final a.eab-btn:not(.eab-btn-o),
.eab-final a.eab-btn:not(.eab-btn-o),
.eab-final .eab-btn:not(.eab-btn-o) {
  background: #fff !important;
  border-color: #fff !important;
  color: #005c2e !important;
  -webkit-text-fill-color: #005c2e !important;
  text-decoration: none !important;
}
html.eco-new .eab-final a.eab-btn:not(.eab-btn-o):hover,
.eab-final a.eab-btn:not(.eab-btn-o):hover,
.eab-final .eab-btn:not(.eab-btn-o):hover {
  background: #f7f1e3 !important;
  border-color: #f7f1e3 !important;
  color: #004d26 !important;
  -webkit-text-fill-color: #004d26 !important;
  transform: translateY(-1px);
}
html.eco-new .eab-final a.eab-btn-o,
.eab .eab-final a.eab-btn-o,
.eab-final a.eab-btn-o,
.eab-final .eab-btn-o {
  background: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}
html.eco-new .eab-final a.eab-btn-o:hover,
.eab-final a.eab-btn-o:hover,
.eab-final .eab-btn-o:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #005c2e !important;
  -webkit-text-fill-color: #005c2e !important;
}

.eab-jtbd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 18px; }
.eab-jtbd button { text-align: left; background: #fff; color: var(--ink); border: 0; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.eab-jtbd button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.eab-jtbd b { display: block; font-size: 16px; color: var(--g2); }
.eab-jtbd span { display: block; font-size: 13px; color: var(--mut); margin-top: 2px; }
.eab-contacts { font-size: 14px; color: var(--mut); margin-top: 14px; }
.eab-final .eab-contacts { color: rgba(255, 255, 255, .85); }

/* reveal */
.eab-fade { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.eab-fade.eab-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .eab-fade { opacity: 1; transform: none; transition: none; } }

@media (max-width: 991px) {
  .eab-nums { grid-template-columns: repeat(3, 1fr); }
  .eab-jtbd { grid-template-columns: repeat(2, 1fr); }
  .eab-info-grid { grid-template-columns: 1fr; }
  .eab-hero h2 { font-size: 36px; }
}
@media (max-width: 767px) {
  .eab { font-size: 15px; }
  .eab h2 { font-size: 22px; }
  .eab-sec, .eab-hero, .eab-video { margin-bottom: 38px; }
  .eab-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 14px; }
  .eab-hero-img { grid-column: 1; grid-row: 1; height: 240px !important; }
  .eab-hero-in { grid-column: 1; grid-row: 2; padding: 22px 18px 24px; }
  .eab-hero h2 { font-size: 30px; }
  .eab-hero p { font-size: 16px; }
  .eab-split { grid-template-columns: 1fr; gap: 18px; }
  .eab-rev .eab-pic { order: 0; }
  .eab-nums { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .eab-num b { font-size: 30px; }
  .eab-band, .eab-final { padding: 24px 18px; border-radius: 14px; }
  .eab-wide { aspect-ratio: 1 / 1; }
  .eab-shots { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .eab-shot figcaption { font-size: 12px; padding: 8px 10px; }
  .eab-donut { grid-template-columns: 1fr; justify-items: center; }
  .eab-legend { width: 100%; }
  .eab-card { flex-basis: 78%; }
  .eab-car-b { display: none; }
  .eab-jtbd { grid-template-columns: 1fr; }
  .eab-btn { flex: 1 1 auto; }
  .eab-list { grid-template-columns: 1fr; }
}
/* page chrome: hide duplicated H1 decoration spacing */
.eab-page .page-header + .grid.main-grid.page-list { display: block; }


/* --- информационные страницы: полная ширина, без «Это интересно» --- */
html.eco-page .left-content {
  display: none !important;
}
html.eco-page .center-block {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html.eco-page .main-block-content > .row > .d-flex.container {
  display: block !important;
}
html.eco-page .main-block-content > .row > .d-flex.container.align-items-start {
  display: block !important;
}
html.eco-page .content-product,
html.eco-page .spec.content-product {
  display: none !important;
}
/* контент страницы чуть шире и читаемее */
html.eco-page .center-block > .page,
html.eco-page .center-block .product-col.page,
html.eco-page .center-block .caption,
html.eco-page .center-block .description {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
html.eco-page #eco-about.eab,
html.eco-page .eab {
  max-width: 1100px;
}
@media (min-width: 1200px) {
  html.eco-page .center-block > .page,
  html.eco-page .center-block .product-col.page,
  html.eco-page #eco-about.eab {
    max-width: 1200px;
  }
}

/* hard-hide «Это интересно» / left page catalog on info pages */
html.eco-page .left-info-block > .block { display: none !important; }
