/* Единый шаблон страницы группы (дизайн по картинке владельца, 2026-12-01). Одинаков для всех групп. */
.eg-body { margin: 0; background: #fff; font-family: var(--el-font); color: #1c1c1e; -webkit-font-smoothing: antialiased; }
.eg-main { padding-top: 64px; }
.eg-wrap { max-width: 1440px; margin: 0 auto; padding: 0 30px; box-sizing: border-box; }
.eg-sec { padding: 34px 0; }
.eg-sec_dirs { padding: 18px 0 6px; }
/* Текст и фото во всех секциях начинаются с одного уровня (решение владельца). */
.eg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.eg-label { font-size: 15px; letter-spacing: .4px; text-transform: uppercase; color: #866226; margin-bottom: 8px; }
.eg-h2 { font-size: 36px; line-height: 1.12; font-weight: 700; color: #000; margin: 0 0 16px; }
.eg-text { font-size: 16px; line-height: 1.45; margin: 0; color: #272729; }
.eg-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }

/* Баннер */
.eg-hero { position: relative; min-height: 400px; display: flex; align-items: center; overflow: hidden; background: #2a2118; }
.eg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.eg-hero:not(.eg-hero_baked)::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(42,30,18,.92) 0%, rgba(42,30,18,.75) 35%, rgba(42,30,18,0) 70%); }
.eg-hero_baked .eg-hero__img { object-position: right center; }
.eg-hero_baked::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(42,30,18,.55) 0%, rgba(42,30,18,0) 45%); }
.eg-hero__body { position: relative; z-index: 2; width: 100%; color: #fff; padding-top: 40px; padding-bottom: 40px; }
.eg-tag { display: inline-block; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; padding: 4px 12px; font-size: 14px; margin-bottom: 14px; }
.eg-hero__title { font-size: 44px; line-height: 1.08; font-weight: 700; margin: 0 0 14px; color: #fff; }
.eg-hero__text { font-size: 18px; line-height: 1.4; max-width: 560px; margin: 0; color: #fff; }

/* 4 направления */
.eg-dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eg-dirs li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.3; color: #2b2b2b; }
.eg-dirs img { width: 48px; height: 48px; flex: 0 0 auto; }
.eg-dirs_small { margin-top: 26px; }
.eg-dirs_small li { font-size: 13px; gap: 10px; }
.eg-dirs_small img { width: 40px; height: 40px; }

/* О группе: текст + фото с цифрами поверх; заголовок начинается вровень с верхом фото */
#about .eg-two { align-items: start; }
#about .eg-about__title { margin-top: -6px; }
.eg-about__title { font-size: 40px; line-height: 1.12; font-weight: 800; color: #000; margin: 0 0 18px; }
.eg-about__title span { display: block; font-size: 30px; font-weight: 600; color: #866226; margin-top: 4px; }
.eg-about__media { position: relative; }
.eg-about__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.eg-about__stats { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 6px 16px;
  background: rgba(29,41,53,.72); border-radius: 8px; color: #fff; width: min(56%, 330px); box-sizing: border-box; }
.eg-about__stats li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.eg-about__stats li:last-child { border-bottom: 0; }
.eg-about__stats b { font-size: 22px; font-weight: 700; }
.eg-about__stats span { font-size: 14px; line-height: 1.25; }

/* Короткие факты под текстом «О группе» (без иконок) */
.eg-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.eg-facts li { border-top: 1px solid #e3e3e3; padding-top: 10px; font-size: 14px; line-height: 1.4; color: #3a3a3c; }
.eg-facts b { display: block; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: #866226; margin-bottom: 4px; font-weight: 700; }
@media screen and (max-width: 520px) { .eg-facts { grid-template-columns: 1fr; } }

/* Инвестиции: фон с монетами */
.eg-invest { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 190px; padding: 30px 40px;
  border-radius: 10px; color: #fff; background-color: #1d2935; background-size: cover; background-position: center; box-sizing: border-box; }
.eg-invest h2 { font-size: 38px; font-weight: 700; margin: 0 0 10px; color: #fff; }
.eg-invest p { font-size: 17px; line-height: 1.35; margin: 0; max-width: 460px; color: #fff; }
.eg-invest__btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px; background: #fff; color: #000 !important;
  border-radius: 5px; font-weight: 600; font-size: 15px; text-decoration: none; }
.eg-invest__btn:hover { background: #f0f0f0; }

/* Баннер-текст (например «Возможности для специалистов») */
.eg-banner { background: #1d2935; color: #fff; border-radius: 10px; padding: 34px 40px; }
.eg-banner h2 { font-size: 32px; margin: 0 0 12px; color: #fff; }
.eg-banner p { font-size: 16px; line-height: 1.45; margin: 0; max-width: 900px; color: #fff; }

.eg-main .el-news, .eg-main .el-rates { padding: 34px 0; }
.eg-one > div { max-width: 1040px; }
/* Узкое окно браузера на компьютере (телефоны получают ширину ноутбука и сюда не попадают). */
@media screen and (max-width: 900px) {
  .eg-wrap { padding: 0 16px; }
  .eg-two { grid-template-columns: 1fr; gap: 20px; }
  .eg-dirs { grid-template-columns: 1fr 1fr; }
  .eg-hero { min-height: 320px; }
  .eg-hero__title { font-size: 32px; }
  .eg-about__title { font-size: 30px; }
  .eg-about__title span { font-size: 22px; }
  .eg-h2, .eg-invest h2, .eg-banner h2 { font-size: 26px; }
  .eg-invest { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .eg-banner { padding: 24px 20px; }
}
@media screen and (max-width: 520px) {
  .eg-dirs { grid-template-columns: 1fr; }
  .eg-about__stats { position: static; transform: none; width: 100%; margin-top: 8px; background: #1d2935; }
}
/* «О группе» с фактами: фото растягивается на высоту текста — низ текста и низ фото совпадают. */
#about .eg-two:has(.eg-facts) { align-items: stretch; }
#about .eg-two:has(.eg-facts) .eg-about__media { display: flex; }
#about .eg-two:has(.eg-facts) .eg-about__media img { height: 100%; min-height: 320px; aspect-ratio: auto; }
@media screen and (max-width: 900px) { #about .eg-two:has(.eg-facts) .eg-about__media { display: block; } #about .eg-two:has(.eg-facts) .eg-about__media img { aspect-ratio: 16 / 9; height: auto; min-height: 0; } }

/* Свёрнутый текст с кнопкой «Подробнее» (высоту по фото ставит /site/elaman.js) */
.eg-more__body { position: relative; overflow: hidden; transition: max-height .6s ease; }
.eg-more__body .eg-text + .eg-text { margin-top: 10px; }
.eg-more:not(.is-open) .eg-more__body::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.eg-more__btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 20px;
  border: 1px solid #b68b43; border-radius: 5px; background: #fff; color: #866226; font: 600 14px var(--el-font); cursor: pointer; }
.eg-more__btn:hover { background: #b68b43; color: #fff; }
.eg-more__btn::after { content: '↓'; transition: transform .3s; }
.eg-more.is-open .eg-more__btn::after { transform: rotate(180deg); }
.eg-about__name { display: block; }
.eg-about__title .eg-about__name + span { display: block; }
.eg-about__title .eg-about__name { font-size: inherit; font-weight: inherit; color: inherit; margin-top: 0; }
