/* Кинематографическая страница деймонов: крупные формы, умеренный кегль, минимум мелкого декора. */
.page--daemon {
  background: #05070a;
  color: var(--color-text);
}
.daemon-section { scroll-margin-top: calc(var(--site-nav-sticky-height, var(--nav-height)) + 92px); }
.hero-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d7ad49;
  border-radius: 50%;
  color: #fff0c7;
  background: rgba(4, 12, 18, .9);
  box-shadow: 0 0 22px rgba(100, 196, 235, .18);
  text-decoration: none;
}
.hero-back-top:hover,
.hero-back-top:focus-visible { background: #17384a; outline: 2px solid #fff0c7; outline-offset: 2px; }
.daemon-page {
  --daemon-panel: rgba(4, 9, 14, .9);
  --daemon-line: rgba(196, 153, 65, .34);
  --daemon-cyan: #75d9f5;
  width: min(100%, 1920px);
  margin-inline: auto;
  overflow-x: clip;
  overflow-y: visible;
  background: #05080c;
}
.daemon-page h1,
.daemon-page h2,
.daemon-page h3,
.daemon-page h4,
.daemon-page p { margin: 0; }
.daemon-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, 76vh, 820px);
  display: grid;
  align-content: center;
  padding: clamp(130px, 13vw, 190px) clamp(24px, 7vw, 124px) 80px;
  background:
    linear-gradient(90deg, rgba(2, 6, 10, .96) 0%, rgba(2, 6, 10, .72) 36%, rgba(2, 6, 10, .08) 70%),
    linear-gradient(0deg, #05080c 0%, transparent 30%),
    url('../../assets/img/daemon/daemon-hero-v2.webp') center / cover no-repeat;
}
.daemon-hero__copy { position: relative; z-index: 3; width: min(690px, 100%); }
.daemon-kicker {
  display: block;
  margin-bottom: 12px;
  color: #e4bb67;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.daemon-hero h1 {
  max-width: 590px;
  color: #fff2d2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: .98;
  text-wrap: balance;
}
.daemon-hero__copy > p {
  max-width: 570px;
  margin-top: 24px;
  color: #d6d6d1;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}
.daemon-button {
  --daemon-ring-angle: 0deg;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 0 28px;
  border: 1px solid #e7bd57;
  color: #160f04;
  background: linear-gradient(#ffe783, #d89a24);
  box-shadow: 0 8px 32px rgba(225, 164, 40, .22);
  font-weight: 700;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.daemon-hero__feature-panel { position: relative; width: 100%; margin-top: 26px; padding: 12px; border: 1px solid rgba(226, 182, 72, .62); background: linear-gradient(90deg, rgba(3, 9, 13, .97), rgba(7, 25, 30, .9)); box-shadow: 0 16px 42px rgba(0, 0, 0, .42), inset 0 0 36px rgba(95, 170, 185, .08); backdrop-filter: blur(10px); }
.daemon-hero__feature-panel::after { content: ''; position: absolute; z-index: 0; left: 8%; right: 8%; top: 104px; height: 1px; background: linear-gradient(90deg, transparent, #b88d35 12%, #65bfd5 50%, #b88d35 88%, transparent); box-shadow: 0 0 12px rgba(101, 191, 213, .35); }
.daemon-hero__feature-panel > header { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 2px 8px 10px; border-bottom: 1px solid rgba(226, 182, 72, .2); }
.daemon-hero__feature-panel > header strong { color: #f5dc9a; font-family: var(--font-accent); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.daemon-hero__feature-panel > header span { color: #7fa9b2; font-size: .75rem; }
.daemon-hero__features { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 0; padding: 10px 0 0; list-style: none; }
.daemon-hero__features li { --feature-accent: #68c4d9; display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 176px; padding: 10px 8px 12px; border: 1px solid color-mix(in srgb, var(--feature-accent) 24%, transparent); color: #ffe4a0; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--feature-accent) 22%, transparent), rgba(3, 8, 12, .48) 68%); text-align: center; }
.daemon-feature--fights { --feature-accent: #d48b47; }
.daemon-feature--buffs { --feature-accent: #55c99d; }
.daemon-feature--talents { --feature-accent: #bc8cdf; }
.daemon-feature--auras { --feature-accent: #4eb8ed; }
.daemon-feature--skills { --feature-accent: #d4b75a; }
.daemon-hero__features img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .68)); }
.daemon-hero__features strong { color: #ffe4a0; font-family: var(--font-accent); font-size: .9rem; letter-spacing: .03em; }
.daemon-hero__features small { color: #aebbc0; font-size: .67rem; line-height: 1.35; }
.daemon-section {
  position: relative;
  scroll-margin-top: 62px;
  padding: clamp(72px, 9vw, 130px) clamp(20px, 6vw, 100px);
  border-bottom: 1px solid rgba(197, 156, 73, .22);
}
.daemon-section__head { max-width: 760px; margin-bottom: 42px; }
.daemon-section__head--right { margin-left: auto; }
.daemon-section__head--compact { margin-bottom: 24px; }
.daemon-section__head h2 {
  color: #fff0cf;
  font-family: var(--font-display);
  font-size: var(--section-title-size);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}
.daemon-section__head p {
  margin-top: 16px;
  color: #b9c1c5;
  font-size: 1rem;
  line-height: 1.65;
}
.daemon-section--forms {
  background:
    linear-gradient(rgba(3, 8, 13, .56), #05090d 690px),
    url('../../assets/img/daemon/daemon-transformation-v2.webp') top center / 100% auto no-repeat;
}
.daemon-selector {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--daemon-line);
  background: rgba(2, 6, 10, .76);
}
.daemon-selector-hint { display: none; }
.daemon-selector__item {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 0;
  border-right: 1px solid rgba(197, 156, 73, .18);
  color: #e4e5e2;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.daemon-selector__item:last-child { border-right: 0; }
.daemon-selector__item:hover { background: rgba(33, 89, 108, .18); }
.daemon-selector__item:focus-visible,
.daemon-button:focus-visible { outline: 2px solid #f2cd6a; outline-offset: 3px; }
.daemon-selector__item[aria-selected="true"] {
  color: #fff0bd;
  background: linear-gradient(180deg, rgba(23, 108, 130, .34), rgba(10, 28, 38, .75));
  box-shadow: inset 0 -3px #dcb64e;
}
.daemon-selector__native,
.daemon-selector__form {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(220, 180, 83, .55);
  border-radius: 50%;
  object-fit: cover;
}
.daemon-selector__copy { min-width: 0; display: grid; gap: 2px; }
.daemon-selector__copy small { color: #7ed9ef; font-size: .68rem; text-transform: uppercase; }
.daemon-selector__copy strong,
.daemon-selector__copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daemon-selector__copy span { color: #a9b3b7; font-size: .82rem; }
@media (max-width: 1150px) {
  .daemon-selector { grid-template-columns: repeat(2, 1fr); }
  .daemon-selector__item { border-bottom: 1px solid rgba(197, 156, 73, .18); }
  .daemon-selector__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .daemon-hero { min-height: 820px; align-content: end; padding: 110px 20px 34px; background-position: 62% center; }
  .daemon-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #05080c 8%, rgba(3, 7, 11, .72) 58%, transparent); }
  .daemon-hero__copy { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: 100%; }
  .daemon-hero__feature-panel { margin-top: 20px; padding: 10px 0; }
  .daemon-hero__feature-panel > header { padding-inline: 12px; }
  .daemon-hero__feature-panel > header span,
  .daemon-hero__feature-panel::after { display: none; }
  .daemon-hero__features { display: flex; gap: 8px; overflow-x: auto; padding: 10px 10px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .daemon-hero__features::-webkit-scrollbar { display: none; }
  .daemon-hero__features li { flex: 0 0 154px; min-height: 166px; padding: 8px; scroll-snap-align: center; }
  .daemon-hero__features img { width: 78px; height: 78px; }
  .daemon-section { padding-inline: 16px; }
  .daemon-section { scroll-margin-top: 54px; }
  .daemon-selector-hint { display: block; margin: -24px 0 12px; color: #86cfe0; font-size: .78rem; }
  .daemon-selector {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .daemon-selector::-webkit-scrollbar { display: none; }
  .daemon-selector__native,
  .daemon-selector__form { width: 52px; height: 52px; }
  .daemon-selector__item {
    flex: 0 0 min(82vw, 310px);
    grid-template-columns: 52px 1fr 52px;
    min-height: 100px;
    border: 1px solid rgba(197, 156, 73, .18);
    scroll-snap-align: center;
  }
  .daemon-selector__item:last-child { border-right: 1px solid rgba(197, 156, 73, .18); }
}
