/* ==========================================================================
   Esperanto. Главная страница, шаблон 1 ТЗ.
   ========================================================================== */

/* --- Первый экран ------------------------------------------------------------
   Слева заголовок, действия и строка цифр. Справа колонка преимуществ,
   отделенная вертикальной линейкой: газетный прием, без карточек и теней.
   ----------------------------------------------------------------------------- */

.e-hero {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-gap-lg);
  align-items: center;
  padding-top: clamp(40px, 6vw, 84px);
  padding-bottom: clamp(10px, 1.5vw, 20px);
}

.e-hero__main { flex: 1 1 520px; min-width: 0; }

.e-hero h1 {
  font-size: var(--e-fs-h1);
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.e-hero__sub {
  font-family: var(--e-serif);
  font-size: var(--e-fs-lead);
  line-height: 1.5;
  color: var(--e-ink-body);
  max-width: 56ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.e-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Строка цифр без верхней линейки: действия уже отделяют ее от текста */
.e-hero__stats { padding-top: clamp(20px, 2.6vw, 30px); }

.e-hero__side {
  flex: 0 1 340px;
  min-width: 270px;
  border-left: var(--e-rule-w) solid var(--e-rule);
  padding-left: clamp(20px, 2.4vw, 34px);
}
.e-hero__side-rule { border-top: var(--e-rule-w-strong) solid var(--e-rule-strong); margin-top: 12px; }
.e-hero__side-list { overflow: hidden; margin-bottom: -1px; }

.e-hero__adv { padding-block: clamp(14px, 1.6vw, 20px); border-bottom: var(--e-rule-w) solid var(--e-rule); }
.e-hero__adv-title { font-family: var(--e-serif); font-size: var(--e-fs-h3); line-height: var(--e-lh-head); letter-spacing: var(--e-ls-head); margin-bottom: 7px; }
.e-hero__adv-text  { font-family: var(--e-serif); font-size: var(--e-fs-xsmall); line-height: var(--e-lh-text); color: var(--e-ink-muted); }

/* --- Действие под секцией ------------------------------------------------------ */

.e-section__action { display: flex; justify-content: flex-end; margin-top: clamp(22px, 2.6vw, 34px); }

/* Плитка-переход: заголовок сверху, указатель прижат к низу */
.e-cell--cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.e-cell--cta .e-cell__title { margin: 0; }
.e-cell__go { color: inherit; }

/* Ячейка без ссылки: не подсвечивается и не двигается */
.e-cell--static { cursor: default; }
.e-cell--static::before,
.e-cell--static::after { display: none; }

/* --- Юрисдикции ----------------------------------------------------------------- */

.e-jur { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--e-gap-md); }

/* --- Кто мы ---------------------------------------------------------------------- */

.e-about { display: flex; flex-wrap: wrap; gap: var(--e-gap-lg); }
.e-about__lead { flex: 1 1 380px; }
.e-about__body { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.e-about__facts {
  flex: 0 1 190px;
  min-width: 160px;
  border-left: var(--e-rule-w) solid var(--e-rule);
  padding-left: clamp(18px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 34px);
}
.e-about__fact + .e-about__fact { border-top: var(--e-rule-w) solid var(--e-rule); padding-top: clamp(18px, 2.2vw, 28px); }
.e-about__fact .e-stat__num { font-size: var(--e-fs-stat-lg); letter-spacing: -0.03em; }
.e-about__fact .e-stat__cap { display: block; margin-top: 9px; line-height: 1.5; }

/* --- Почему «Эсперанто» ------------------------------------------------------------ */

.e-why__lead { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(16px, 2vw, 26px); }
.e-why__lead-text {
  font-family: var(--e-serif);
  font-size: clamp(27px, 2.9vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.e-why__lead-text em { font-style: italic; color: var(--e-accent); }
.e-why__lead .e-label { line-height: 1.7; }

/* --- Новости и события ---------------------------------------------------------------
   Один крупный материал слева, три перечнем справа. Разная величина заголовков
   задает иерархию выпуска, как на газетной полосе.
   ------------------------------------------------------------------------------------- */

.e-news { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 860px) { .e-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.e-news__lead {
  display: block;
  padding: clamp(26px, 3vw, 40px) clamp(24px, 3vw, 44px) clamp(30px, 3.5vw, 44px) 0;
  min-width: 0;
}
.e-news__meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(14px, 1.8vw, 22px); }
.e-news__title {
  display: block;
  font-family: var(--e-serif);
  font-weight: var(--e-fw-semi);
  font-size: var(--e-fs-display);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.e-news__excerpt { display: block; font-family: var(--e-serif); font-size: var(--e-fs-body); line-height: var(--e-lh-prose); color: var(--e-ink-muted); max-width: 52ch; margin-bottom: 20px; }
.e-news__go { color: var(--e-accent); }

.e-news__rest { border-left: var(--e-rule-w) solid var(--e-rule); padding-left: clamp(24px, 3vw, 44px); min-width: 0; align-self: center; }
@media (max-width: 859px) { .e-news__rest { border-left: 0; padding-left: 0; } }

.e-news__item { display: block; padding-block: clamp(22px, 2.6vw, 30px); border-bottom: var(--e-rule-w) solid var(--e-rule); }
.e-news__item:last-of-type { border-bottom: 0; }
.e-news__item-title { display: block; font-family: var(--e-serif); font-weight: var(--e-fw-semi); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.3; letter-spacing: var(--e-ls-head); }

/* Концевой знак: один раз на всю страницу, перед подвалом */
.e-news__end { display: flex; justify-content: flex-end; padding-top: clamp(16px, 2vw, 22px); }

/* --- Движение на главной --------------------------------------------------------------- */

.e-news__lead,
.e-news__item { position: relative; isolation: isolate; }
.e-news__lead::before,
.e-news__item::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  background: var(--e-paper-warm);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--e-dur-base) var(--e-ease-settle);
}
.e-news__lead:hover::before,
.e-news__item:hover::before { transform: scaleY(1); }

.e-news__title,
.e-news__item-title { transition: transform var(--e-dur-base) var(--e-ease-elastic); }
.e-news__lead:hover .e-news__title,
.e-news__item:hover .e-news__item-title { transform: translateX(var(--e-shift)); }

.e-news__go { transition: transform var(--e-dur-slow) var(--e-ease-settle) var(--e-delay-layer); display: inline-block; }
.e-news__lead:hover .e-news__go { transform: translateX(calc(var(--e-shift) * 2)); }
