/* ============================================================
   hoenir — внутренние страницы: о сервисе, применимость,
   личный кабинет, 404
   ============================================================ */

/* ---------- шапка страницы ---------- */

.page-hero {
  position: relative;
  padding: 190px 0 70px;
  overflow: hidden;
}

.page-hero__decor {
  position: absolute;
  top: -210px;
  right: -150px;
  width: 520px;
  opacity: .32;
  pointer-events: none;
}

.page-hero__decor img { width: 100%; height: auto; display: block; }

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page-hero h1 {
  font-size: clamp(38px, 6.4vw, 88px);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.page-hero__lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: 24px;
  line-height: 1.35;
  opacity: .92;
}

.crumbs {
  margin-bottom: 24px;
  font-size: 14px;
  opacity: .55;
}

.crumbs a:hover { opacity: 1; }

.crumbs span { opacity: .5; }

/* ---------- секции контента ---------- */

.section {
  position: relative;
  padding: 90px 0;
}

.section--tight { padding: 60px 0; }

.section__inner {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  max-width: 900px;
}

.section__lead {
  max-width: 760px;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.45;
  opacity: .85;
}

.prose { max-width: 760px; margin-top: 28px; }
.prose p { font-size: 20px; line-height: 1.45; }
.prose p + p { margin-top: 16px; }
.prose strong { font-weight: 500; color: #fff; }

/* ---------- тезисы ---------- */

.theses {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.thesis {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.thesis__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.04em;
  opacity: .45;
  padding-top: 4px;
}

.thesis h3 {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.thesis p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
  opacity: .8;
  max-width: 780px;
}

/* ---------- сетка карточек ---------- */

.blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.block {
  padding: 26px 24px 28px;
  background: rgba(226, 241, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.block:hover {
  background: rgba(226, 241, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .18);
  transform: translateY(-3px);
}

.block__num {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: -.02em;
  opacity: .45;
}

.block h3 {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.block p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.45;
  opacity: .8;
}

/* ---------- аудитории ---------- */

.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.aud {
  padding: 30px 28px 32px;
  background: rgba(226, 241, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.aud:hover {
  background: rgba(226, 241, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .18);
}

.aud h3 {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.aud__task {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  opacity: .6;
}

.aud p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.5;
  opacity: .88;
}

/* ---------- заметка ---------- */

.note {
  max-width: 820px;
  margin-top: 40px;
  padding: 24px 26px;
  border-left: 1px solid rgba(226, 241, 255, .3);
  background: rgba(226, 241, 255, .03);
}

.note p { font-size: 17px; line-height: 1.5; opacity: .85; }
.note p + p { margin-top: 10px; }

/* ---------- призыв ---------- */

.cta-band {
  padding: 90px 0 110px;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.cta-band h2 {
  max-width: 620px;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.15;
}

/* ---------- личный кабинет ---------- */

.auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--slate);
}

.auth__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth__decor img {
  position: absolute;
  height: auto;
}

.auth__glow { left: 50%; top: 50%; width: 1100px; margin: -620px 0 0 -550px; }
.auth__eye { left: 50%; top: 50%; width: 620px; margin: -310px 0 0 -310px; opacity: .55; }
.auth__runes { left: 50%; top: 50%; width: 760px; margin: -380px 0 0 -380px; opacity: .5; animation: orbit 60s linear infinite; }

.auth__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 34px;
  background: rgba(30, 34, 44, .82);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .12);
}

.auth__logo {
  display: block;
  width: 190px;
  margin-bottom: 28px;
}

.auth h1 {
  font-size: 28px;
  line-height: 1.2;
}

.auth__hint {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  opacity: .6;
}

.field { margin-top: 22px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: .6;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--light);
  background: rgba(226, 241, 255, .06);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .16);
  outline: none;
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}

.field input:focus {
  background: rgba(226, 241, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(226, 241, 255, .5);
}

.auth__submit {
  width: 100%;
  margin-top: 28px;
  height: 52px;
  font: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--light);
  cursor: pointer;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transition: background .25s var(--ease);
}

.auth__submit:hover { background: #fff; }

.auth__error {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #ffd9d9;
  background: rgba(180, 60, 60, .18);
  box-shadow: inset 0 0 0 1px rgba(220, 120, 120, .35);
}

.auth__error.is-visible { display: block; }

.auth__foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 241, 255, .12);
  font-size: 14px;
  line-height: 1.45;
  opacity: .6;
}

.auth__foot a { border-bottom: 1px solid rgba(226, 241, 255, .35); }
.auth__foot a:hover { opacity: 1; color: #fff; }

/* ---------- 404 ---------- */

.e404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 140px 0 100px;
}

.e404__code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(80px, 18vw, 220px);
  line-height: .85;
  letter-spacing: -.06em;
  opacity: .18;
}

.e404 h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.e404 p {
  max-width: 560px;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.45;
  opacity: .75;
}

.e404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  font-size: 16px;
}

.e404__links a { border-bottom: 1px solid rgba(226, 241, 255, .35); }
.e404__links a:hover { color: #fff; }

/* ---------- адаптив ---------- */

@media (max-width: 1200px) {
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .page-hero__decor { width: 420px; right: -160px; }
}

@media (max-width: 760px) {
  .page-hero { padding: 120px 0 40px; }
  .page-hero__decor { width: 300px; right: -140px; top: -60px; opacity: .35; }
  .page-hero h1 { font-size: 30px; line-height: 1.15; }
  .page-hero__lead { font-size: 17px; margin-top: 16px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 26px; }
  .section__lead { font-size: 16px; }
  .prose p { font-size: 16px; }
  .thesis { grid-template-columns: 40px 1fr; gap: 14px; padding: 24px 0; }
  .thesis h3 { font-size: 20px; }
  .thesis p { font-size: 15px; }
  .blocks { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .block { padding: 22px 20px; }
  .aud { padding: 22px 20px; }
  .aud h3 { font-size: 20px; }
  .aud p { font-size: 15px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .auth { padding-top: 90px; }
  .auth__card { padding: 28px 22px; }
  .auth__eye { width: 420px; margin: -210px 0 0 -210px; }
  .auth__runes { width: 520px; margin: -260px 0 0 -260px; }
  .e404 { padding-top: 110px; }
  .e404 p { font-size: 17px; }
}

/* ---------- тряска формы при ошибке ---------- */

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  80% { transform: translateX(-2px); }
}

#authForm.is-shake { animation: auth-shake .38s ease-in-out; }
