/* ==========================================================================
   Лендинг бесплатной регистрации (index.html). Подключается ПОСЛЕ общего styles.css
   и использует только его токены — цвета, шрифт, радиусы, тени, кнопки, градиенты.
   На страницу материалов (materials.html) этот файл не влияет.
   ========================================================================== */

/* Крупная основная кнопка — тот же стиль .btn--primary, только размер больше */
.btn--xl { height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- 1. Первый экран: название, ценность материалов, бесплатная регистрация ---------- */
.hero--landing { padding: 76px 0 76px; text-align: center; }
.hero--landing .hero__dots {
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 64%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 64%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero--landing .hero__title { margin: 24px auto 0; max-width: 980px; font-size: clamp(38px, 5.4vw, 70px); }
.hero__message {
  margin: 24px auto 0; max-width: 820px;
  font-size: clamp(22px, 2.5vw, 33px); line-height: 1.25; font-weight: 800; letter-spacing: -.016em;
  color: var(--ink); text-wrap: balance;
}
.hero__message .accent { color: var(--st-green-text); }
.hero--landing .hero__lead { margin: 16px auto 0; max-width: 660px; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.hero__cta-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.hero__cta-note .icon { width: 18px; height: 18px; color: var(--st-green); }
@media (max-width: 1023px) {
  .hero--landing { padding: 56px 0 68px; }
}
@media (max-width: 560px) {
  .hero--landing { padding: 30px 0 40px; }
  .hero--landing .hero__kicker { font-size: 10.5px; letter-spacing: .03em; text-wrap: balance; }
  .hero--landing .hero__title { margin-top: 18px; font-size: clamp(31px, 9.4vw, 40px); }
  .hero__message { margin-top: 18px; font-size: clamp(20px, 6vw, 24px); }
  .hero--landing .hero__lead { font-size: 17px; }
  .hero__cta { margin-top: 26px; align-self: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__cta-note { font-size: 14.5px; }
}

/* ---------- Разделы лендинга ---------- */
.l-section { padding: 88px 0; }
.l-section .section-head { max-width: 900px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .l-section { padding: 60px 0; }
  .l-section .section-head { margin-bottom: 26px; }
}

/* ---------- 2. Что внутри: три направления ---------- */
.directions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.direction {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 26px 28px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.direction::before { content: ""; position: absolute; left: 26px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--st-green); }
.direction:hover { border-color: #A7F3D0; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.direction__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px;
  border-radius: 14px; background: var(--st-green-bg); color: var(--st-green-text);
}
.direction__label { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--st-green-text); }
.direction__title { margin: 0; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.3; font-weight: 800; letter-spacing: -.012em; }
.direction__text { margin: 4px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 960px) { .directions { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 560px) {
  .direction { padding: 22px 20px 24px; }
  .direction::before { left: 20px; }
}

/* ---------- 3. Бесплатная регистрация: тёмно-синий блок, белая контрастная форма ---------- */
.register--landing { margin-top: 0; padding: 96px 0 104px; background: var(--grad-navy); border-top: 0; color: #E5E7EB; }
.register--landing::before { background: radial-gradient(circle, rgba(0, 166, 81, .26), transparent 65%); }
.register--landing::after {
  content: ""; position: absolute; right: -180px; top: -200px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 236, 82, .12), transparent 65%); pointer-events: none;
}
.register--landing .register__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; }
.register--landing .kicker { color: var(--st-lime); }
.register--landing .kicker::before { background: var(--st-lime); }
.register--landing .register__intro h2 { margin-top: 16px; color: #fff; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; text-wrap: balance; }
.register--landing .register__intro .register__lead { margin: 20px 0 0; max-width: 500px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: #CBD5E1; }
.register--landing .register__intro .demo-badge { margin-top: 26px; max-width: none; font-size: 14px; color: var(--st-gold-text); }
.register--landing .form-card { position: relative; z-index: 1; padding: 34px 34px 32px; border: 0; box-shadow: 0 24px 60px rgba(4, 12, 28, .35); }
.req-note { display: flex; align-items: center; gap: 4px; margin: 0 0 20px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.req-note .req { margin: 0 2px 0 0; font-size: 16px; font-weight: 700; }
.form-status--ok { background: var(--st-green-bg); border-color: #A7F3D0; color: var(--st-green-text); }
.form-status--info { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }

/* Отправка: кнопка неактивна, рядом с подписью — индикатор (подпись кнопки не меняется) */
.btn.is-loading { cursor: progress; }
.btn.is-loading::after {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: btn-spin .8s linear infinite;
}
.btn--primary.is-loading[disabled] { background: var(--st-green-active); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Поле-ловушка для ботов: людям не видно и недоступно с клавиатуры */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) {
  .register--landing { padding: 64px 0 72px; }
  .register--landing .register__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .register--landing { padding: 52px 0 60px; }
  .register--landing .form-card { padding: 22px 18px 22px; }
  .register--landing .btn--xl { height: 54px; padding: 0 18px; }
}

/* ---------- 4. Организаторы ---------- */
.l-section--orgs { padding-bottom: 72px; }
.orgs { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.org {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 34px 28px 28px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
/* Логотипы только масштабируются пропорционально: без фильтров, обрезки и искажений */
.org__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 112px; margin-bottom: 6px; }
.org__logo img { display: block; object-fit: contain; }
.org__logo--imperia img { width: auto; height: auto; max-width: 100%; max-height: 104px; }
.org__logo--expo img { width: min(100%, 300px); height: auto; }
.org__name { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.orgs__note { max-width: 780px; margin: 28px auto 0; text-align: center; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 640px) {
  .orgs { grid-template-columns: 1fr; gap: 14px; }
  .org { padding: 26px 20px 22px; }
  .org__logo { height: 92px; }
  .org__logo--imperia img { max-height: 84px; }
  .org__logo--expo img { width: min(100%, 250px); }
  .orgs__note { text-align: left; font-size: 15.5px; }
}

@media print {
  .hero__cta { display: none !important; }
}
