/* Сайт Scions (D344): лендинг, вопросы об игре и документы по макету «17 · Лендинг Scions». Без сборки. */

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/site/fonts/CormorantGaramond-Variable.ttf") format("truetype");
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Golos Text";
    src: url("/site/fonts/GolosText-Variable.ttf") format("truetype");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #101511;
    --surface: #19211b;
    --surface-raised: #243027;
    --border: #465342;
    --accent: #c6a66b;
    --text: #f0ebdf;
    --muted: #acb5a8;
    --danger: #dc9584;
    --health: #91b489;
    --scene-panel: rgba(16, 21, 17, 0.84);
    --scene-border: rgba(198, 166, 107, 0.5);
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(24px, 5.56vw, 80px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wrap {
    width: min(1280px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Типографика */

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    line-height: 17px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.display {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--text);
    text-wrap: balance;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 27px;
}

.muted {
    color: var(--muted);
}

/* Кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    transition: filter 0.15s, border-color 0.15s, background-color 0.15s;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    filter: brightness(1.08);
}

.btn--primary:disabled {
    cursor: default;
    filter: saturate(0.4) brightness(0.8);
}

.btn--secondary {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.btn--secondary:hover {
    border-color: var(--accent);
}

.btn--small {
    height: 44px;
}

.btn--block {
    width: 100%;
}

/* Шапка */

.site-header {
    position: relative;
    z-index: 3;
    padding-top: 24px;
}

.site-header--over {
    position: absolute;
    inset: 0 0 auto;
}

.site-header--page {
    padding-bottom: 24px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 56px;
}

.logo {
    flex: none;
    color: var(--text);
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 600;
    line-height: 41px;
    letter-spacing: 4px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 500px;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
}

.site-nav--short {
    justify-content: space-between;
    width: 248px;
}

.site-nav a:hover,
.site-nav [aria-current="page"] {
    color: var(--accent);
}

.site-header__cta {
    flex: none;
    width: 240px;
}

.site-header__menu {
    display: none;
    width: 88px;
}

/* Мобильное меню */

.sheet {
    width: min(342px, 100% - 48px);
    max-height: calc(100% - 48px);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
}

.sheet::backdrop {
    background: rgba(16, 21, 17, 0.72);
}

.sheet__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sheet__top .logo {
    font-size: 32px;
    line-height: 33px;
    letter-spacing: 1px;
}

.close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -10px -10px -10px 0;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
}

.close:hover {
    color: var(--text);
}

.sheet__nav {
    display: grid;
    gap: 16px;
}

.sheet__nav .btn {
    height: 48px;
}

/* Первый экран */

.hero {
    position: relative;
    height: 860px;
    overflow: hidden;
}

.hero__atmosphere,
.hero__art,
.hero__shade {
    position: absolute;
    pointer-events: none;
}

.hero__atmosphere {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.23;
}

/* Мягкие края портрета — маски «Главный арт · мягкие края» из макета: верхний край и боковые. */
.hero__art {
    top: 80px;
    right: 0;
    width: min(780px, 54.2vw);
    aspect-ratio: 1;
    object-fit: cover;
    -webkit-mask-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.07) 1.2%, rgba(0, 0, 0, 0.55) 4%, #000 8%, #000 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 3%, rgba(0, 0, 0, 0.24) 7%, rgba(0, 0, 0, 0.68) 13%, rgba(0, 0, 0, 0.97) 20%, #000 24%, #000 84%, rgba(0, 0, 0, 0.9) 90%, rgba(0, 0, 0, 0.5) 95%, rgba(0, 0, 0, 0.08) 98.5%, rgba(0, 0, 0, 0) 100%);
    mask-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.07) 1.2%, rgba(0, 0, 0, 0.55) 4%, #000 8%, #000 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 3%, rgba(0, 0, 0, 0.24) 7%, rgba(0, 0, 0, 0.68) 13%, rgba(0, 0, 0, 0.97) 20%, #000 24%, #000 84%, rgba(0, 0, 0, 0.9) 90%, rgba(0, 0, 0, 0.5) 95%, rgba(0, 0, 0, 0.08) 98.5%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero__shade {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 21, 17, 0) 0%, rgba(16, 21, 17, 0) 46%, rgba(16, 21, 17, 0.1) 61%, rgba(16, 21, 17, 0.34) 73%, rgba(16, 21, 17, 0.66) 84%, rgba(16, 21, 17, 0.91) 93%, #101511 99%, #101511 100%),
        linear-gradient(90deg, #101511 0%, #101511 37%, rgba(16, 21, 17, 0.56) 56%, rgba(16, 21, 17, 0) 78%);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(620px, 100%);
    padding-top: 180px;
}

.hero__title {
    font-size: 88px;
    line-height: 90px;
}

.hero__lead {
    max-width: 510px;
}

.hero__actions {
    display: flex;
    gap: 16px;
}

.hero__actions .btn--primary {
    width: 300px;
}

.hero__actions .btn--secondary {
    width: 214px;
}

.hero__note {
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

/* Цифры */

.stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    padding: 14px 0 13px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 96px;
}

.stat__value {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 600;
    line-height: 48px;
}

.stat__value--infinity {
    font-family: var(--sans);
    font-weight: 400;
}

.stat__label {
    color: var(--muted);
    font-size: 16px;
    line-height: 22px;
}

/* Общие секции */

.section-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-size: 62px;
    line-height: 63px;
}

.slider-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-nav__button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent);
    font-size: 11px;
    line-height: 14px;
}

.slider-nav__button[aria-current="true"],
.slider-nav__button:hover {
    border-color: var(--accent);
}

.slider-nav__hint {
    color: var(--muted);
    font-size: 11px;
    line-height: 14px;
    align-self: flex-start;
}

.slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider > * {
    flex: none;
    scroll-snap-align: start;
}

/* Фракции */

.factions {
    padding: 80px 0 60px;
}

.factions__gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.faction-card {
    display: flex;
    flex-direction: column;
    height: 408px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-align: center;
}

.faction-card__emblem {
    display: grid;
    place-items: center;
    height: 248px;
    padding-bottom: 12px;
}

.faction-card__emblem img {
    width: 218px;
    height: 218px;
    object-fit: contain;
}

.faction-card__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}

.faction-card__name {
    font-size: 32px;
    line-height: 33px;
}

.faction-card__tagline {
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
}

.factions__nav {
    display: none;
}

/* Бой */

.battle {
    padding: 82px 0 78px;
}

.battle__layout {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    column-gap: 50px;
}

.battle__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
}

.battle__title {
    font-size: 64px;
    line-height: 65px;
}

.battle__lead {
    max-width: 510px;
}

.principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 510px;
    padding: 0;
    list-style: none;
}

.principle {
    display: flex;
    gap: 20px;
}

.principle__number {
    flex: none;
    width: 32px;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
}

.principle__title {
    font-size: 18px;
    line-height: 27px;
}

.principle__text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
}

.battle__slides {
    min-width: 0;
}

.battle__slider {
    width: 654px;
    max-width: 100%;
}

.battle__nav {
    margin-top: 24px;
}

/* Пример боя: экран телефона 430 × 932 из макета, уменьшенный до 310 px */

.phone-slide {
    width: 310px;
    height: 672px;
    overflow: hidden;
}

.phone {
    position: relative;
    width: 430px;
    height: 932px;
    overflow: hidden;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, #243027 0%, #1a231c 50%, #101511 100%);
    transform: scale(0.72093);
    transform-origin: 0 0;
    font-family: var(--sans);
}

.phone__head {
    position: absolute;
    top: 18px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 390px;
    height: 44px;
}

.phone__round {
    display: block;
    color: var(--accent);
    font-size: 10px;
    line-height: 13px;
}

.phone__title {
    display: block;
    color: var(--text);
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 600;
    line-height: 34px;
}

.phone__heading {
    flex: 1;
}

.phone__menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--scene-border);
    border-radius: 8px;
    background: var(--scene-panel);
    color: var(--accent);
}

.phone__owner {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 390px;
    height: 52px;
}

.phone__owner--enemy {
    top: 78px;
}

.phone__owner--own {
    top: 848px;
}

.phone__avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
}

.phone__owner--own .phone__avatar {
    border-color: var(--accent);
}

.phone__who {
    flex: 1;
    min-width: 0;
}

.phone__name {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.phone__owner--own .phone__name {
    color: var(--accent);
}

.phone__squad {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 14px;
}

.phone__items {
    display: flex;
    gap: 8px;
}

.phone__item {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-raised);
    overflow: hidden;
}

.phone__owner--own .phone__item {
    border-color: var(--accent);
}

.phone--waiting .phone__owner--own .phone__item {
    border-color: var(--border);
    opacity: 0.45;
}

.phone__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone__field {
    position: absolute;
    left: 41px;
    display: grid;
    grid-template-columns: repeat(3, 108px);
    grid-template-rows: repeat(2, 134px);
    gap: 8px 12px;
    width: 348px;
    height: 276px;
}

.phone__field--enemy {
    top: 140px;
}

.phone__field--own {
    top: 500px;
}

.fighter {
    position: relative;
    width: 108px;
    height: 134px;
}

.fighter--big {
    grid-row: span 2;
    height: 276px;
}

/* Тень, круг позиции и мягкий край портрета — по SVG из макета «Пример 01–03». */
.fighter__shadow {
    position: absolute;
    top: 68px;
    left: -4px;
    width: 116px;
    height: 38px;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(70, 83, 66, 0.1) 0%, rgba(70, 83, 66, 0) 100%);
}

.fighter--active .fighter__shadow {
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(198, 166, 107, 0.3) 0%, rgba(198, 166, 107, 0) 100%);
}

.fighter__ring {
    position: absolute;
    top: 78px;
    left: 9px;
    width: 90px;
    height: 18px;
    border: 1px solid rgba(70, 83, 66, 0.62);
    border-radius: 50%;
}

.fighter--front .fighter__ring {
    left: 2px;
    width: 104px;
}

.fighter--active .fighter__ring {
    border: 2px solid var(--accent);
}

.fighter--active .fighter__ring::after {
    content: "";
    position: absolute;
    inset: 2px 5px;
    border: 1px solid rgba(198, 166, 107, 0.52);
    border-radius: 50%;
}

.fighter--target .fighter__ring {
    border: 2px solid rgba(220, 149, 132, 0.62);
}

.fighter__portrait {
    position: absolute;
    top: 0;
    left: 4px;
    width: 100px;
    height: 96px;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 56%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 56%, transparent 100%);
}

.fighter--front .fighter__portrait {
    top: -5px;
    left: -2px;
    width: 112px;
    height: 101px;
}

.fighter--big .fighter__shadow {
    top: 62px;
    left: -9px;
    width: 126px;
    height: 182px;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(70, 83, 66, 0.2) 0%, rgba(70, 83, 66, 0) 100%);
}

.fighter--big .fighter__ring {
    top: 220px;
    left: 2px;
    width: 104px;
}

.fighter--big .fighter__portrait {
    top: 20px;
    left: -17px;
    width: 142px;
    height: 212px;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}

.fighter__flag {
    position: absolute;
    top: 0;
    left: 82px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--bg);
    color: var(--accent);
}

.fighter__size {
    position: absolute;
    top: 0;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 76px;
    height: 20px;
    background: var(--scene-panel);
    color: var(--muted);
    font-size: 10px;
    line-height: 13px;
}

.fighter__info {
    position: absolute;
    top: 97px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 108px;
}

.fighter--big .fighter__info {
    top: 239px;
}

.fighter__name {
    width: 108px;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
}

.fighter__name--long {
    font-size: 11px;
}

.fighter__name--longer {
    font-size: 10px;
}

.fighter--hero .fighter__name {
    color: var(--accent);
}

.fighter__hp {
    position: relative;
    width: 86px;
    height: 3px;
    background: var(--border);
}

.fighter__hp span {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--health);
}

.phone__field--enemy .fighter__hp span {
    background: var(--danger);
}

.fighter__hp-text {
    color: var(--muted);
    font-size: 10px;
    line-height: 12px;
}

.phone__divider {
    position: absolute;
    top: 440px;
    left: 47px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 336px;
    height: 20px;
    color: var(--accent);
}

.phone__divider::before,
.phone__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

.phone__turn {
    position: absolute;
    top: 464px;
    left: 20px;
    width: 390px;
    color: var(--accent);
    font-size: 11px;
    line-height: 14px;
    text-align: center;
}

.phone__turn strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.phone__turn span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.phone__actions {
    position: absolute;
    top: 778px;
    left: 141px;
    width: 148px;
    height: 60px;
}

.phone__action {
    position: absolute;
    top: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--scene-border);
    border-radius: 50%;
    background: var(--scene-panel);
    color: var(--accent);
}

.phone__action:nth-child(2) {
    top: 16px;
    left: 52px;
}

.phone__action:nth-child(3) {
    left: 104px;
    color: var(--muted);
}

.phone__hint {
    position: absolute;
    top: 904px;
    left: 20px;
    width: 390px;
    color: var(--muted);
    font-size: 11px;
    line-height: 14px;
    text-align: center;
}

.phone__indicator {
    position: absolute;
    top: 922px;
    left: 155px;
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: var(--text);
    opacity: 0.4;
}

/* Столица */

.capital {
    padding: 84px 0 166px;
    background: var(--surface);
}

.capital__layout {
    display: grid;
    grid-template-columns: minmax(0, 624px) minmax(0, 1fr);
    column-gap: 100px;
    align-items: start;
}

.capital__scenes {
    display: flex;
    gap: 24px;
}

.capital-card {
    width: 300px;
}

.capital-card img {
    width: 100%;
    aspect-ratio: 300 / 650;
    object-fit: cover;
    border: 1px solid var(--border);
}

.capital-card__caption {
    display: none;
}

.capital__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 510px;
    padding-top: 76px;
}

.capital__title {
    font-size: 64px;
    line-height: 65px;
}

.capital__lead {
    max-width: 480px;
}

.capital__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 476px;
    margin-top: 8px;
    padding: 31px 0 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 15px;
    line-height: 23px;
    list-style: none;
}

.capital__nav {
    display: none;
}

/* Арена */

.arena {
    padding: 72px 0 118px;
}

.arena__layout {
    display: grid;
    grid-template-columns: minmax(0, 590px) minmax(0, 1fr);
    column-gap: 138px;
    align-items: start;
}

.arena__text {
    display: flex;
    flex-direction: column;
}

.arena__title {
    margin-top: 24px;
    font-size: 60px;
    line-height: 61px;
}

.arena__lead {
    max-width: 520px;
    margin-top: 24px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
}

.step {
    display: flex;
    gap: 16px;
}

.step__number {
    flex: none;
    width: 28px;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
}

.step__title {
    font-size: 17px;
    line-height: 21px;
}

.step__text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 18px;
}

.arena__cta {
    grid-column: 1;
    width: 272px;
    margin-top: 28px;
}

.duel {
    position: relative;
    grid-row: 1 / span 2;
    grid-column: 2;
    max-width: 536px;
    height: 434px;
    margin-top: 76px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
}

.duel__label {
    position: absolute;
    top: 25px;
    left: 16px;
    right: 16px;
}

.duel__hero {
    position: absolute;
    top: 81px;
    width: 204px;
}

.duel__hero--left {
    left: 23px;
}

.duel__hero--right {
    right: 23px;
}

.duel__portrait {
    position: relative;
    height: 210px;
}

.duel__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duel__portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(16, 21, 17, 0) 0%, #101511 100%);
}

.duel__name {
    margin-top: 12px;
    font-size: 31px;
    line-height: 32px;
}

.duel__faction {
    margin-top: 4px;
    color: var(--accent);
    font-size: 11px;
    line-height: 14px;
    text-transform: uppercase;
}

.duel__sign {
    position: absolute;
    top: 162px;
    left: calc(50% - 24px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--surface);
    color: var(--accent);
}

.duel__caption {
    position: absolute;
    top: 395px;
    left: 16px;
    right: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 16px;
}

/* Вопросы и ответы */

.faq {
    padding: 68px 0 80px;
}

.faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 820px);
    justify-content: space-between;
    column-gap: 80px;
}

.faq__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.faq__title {
    font-size: 60px;
    line-height: 61px;
}

.faq__more {
    width: 280px;
    margin-top: 24px;
}

.answers {
    display: flex;
    flex-direction: column;
}

.answer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.answer__question {
    font-size: 30px;
    line-height: 31px;
}

.answer__text,
.prose {
    color: var(--muted);
    font-size: 16px;
    line-height: 24px;
}

.answer__text > * + *,
.prose > * + * {
    margin-top: 12px;
}

.answer__text a,
.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.answer__text ul,
.answer__text ol,
.prose ul,
.prose ol {
    padding-left: 22px;
}

/* Развитие бойцов: блок под ответом */

.evolution {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

.evolution__title {
    color: var(--accent);
    font-size: 14px;
    line-height: 21px;
}

.evolution__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.evolution-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.evolution-card__faction {
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
    text-align: center;
}

.evolution-card__chain {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.evolution-card__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
    font-size: 14px;
    line-height: 21px;
}

.evolution-card__unit img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.evolution-card__arrow {
    width: 24px;
    padding-top: 26px;
    color: var(--accent);
}

.evolution__note {
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

/* Запись на бета-тест */

.beta {
    position: relative;
    padding: 124px 0 172px;
    overflow: hidden;
}

.beta__atmosphere,
.beta__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.beta__atmosphere {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.beta__shade {
    background: linear-gradient(180deg, #101511 0%, rgba(16, 21, 17, 0.4) 18%, rgba(16, 21, 17, 0.4) 80%, #101511 100%);
}

.beta__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 618px) minmax(0, 430px);
    justify-content: space-between;
    column-gap: 64px;
    align-items: start;
}

.beta__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.beta__title {
    font-size: 76px;
    line-height: 78px;
}

.beta__lead {
    max-width: 518px;
}

.beta__form {
    padding-top: 32px;
}

/* Форма записи */

.signup {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: text;
}

.field:focus-within {
    border-color: var(--accent);
}

.field--error,
.field--error:focus-within {
    border-color: var(--danger);
}

.field__label {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.field__input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    line-height: 24px;
}

.field__input::placeholder {
    color: var(--text);
    opacity: 1;
}

.field__input:focus::placeholder {
    color: var(--muted);
}

.field__hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.field--error .field__hint {
    color: var(--danger);
}

.consent {
    display: flex;
    gap: 12px;
    min-height: 64px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent__box {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: transparent;
    font-size: 14px;
    line-height: 1;
}

.consent input:checked + .consent__box {
    background: var(--accent);
    color: var(--bg);
}

.consent input:focus-visible + .consent__box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.consent a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent__error {
    display: block;
    margin-top: 4px;
    color: var(--danger);
}

.signup__note {
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.signup__status {
    color: var(--danger);
    font-size: 12px;
    line-height: 18px;
}

.signup__status:empty {
    display: none;
}

.signup__status--done {
    color: var(--health);
}

/* Окно записи */

.modal {
    width: min(550px, 100% - 32px);
    max-height: calc(100% - 32px);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
}

.modal::backdrop {
    background: rgba(16, 21, 17, 0.72);
}

.modal .close {
    position: absolute;
    top: 11px;
    right: 11px;
    margin: 0;
}

.modal__pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal__pane[hidden] {
    display: none;
}

.modal__title {
    font-size: 38px;
    line-height: 39px;
}

.modal__title--done {
    font-size: 52px;
    line-height: 56px;
}

.modal__text {
    color: var(--muted);
    font-size: 16px;
    line-height: 26px;
}

/* Подвал */

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    margin: 32px auto 24px;
}

.site-footer .logo {
    width: 200px;
    font-size: 32px;
    line-height: 33px;
    letter-spacing: 3.2px;
}

.site-footer__tagline {
    width: 520px;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 280px;
    color: var(--accent);
    font-size: 13px;
    line-height: 20px;
}

.site-footer__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.site-footer__links a:first-child {
    width: 136px;
}

.site-footer__links a:hover {
    color: var(--text);
}

/* Страницы вопросов и документов */

.page-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 0 48px;
}

.page-intro__title {
    font-size: 68px;
    line-height: 69px;
}

.page-intro__lead {
    max-width: 820px;
}

.page-intro__jump {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.page-intro__jump .btn {
    min-width: 212px;
}

.topic {
    padding: 48px 0;
    scroll-margin-top: 24px;
}

.topic__layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 820px);
    justify-content: space-between;
    column-gap: 80px;
}

.topic__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic__title {
    max-width: 5.8em;
    font-size: 46px;
    line-height: 47px;
}

.topic__description {
    max-width: 330px;
    color: var(--muted);
    font-size: 15px;
    line-height: 23px;
}

.doc-group {
    padding-bottom: 48px;
}

.doc-group__layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 896px);
    justify-content: space-between;
    column-gap: 64px;
}

.doc-group__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-group__title {
    font-size: 40px;
    line-height: 41px;
}

.doc-group__description {
    color: var(--muted);
    font-size: 16px;
    line-height: 24px;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.doc-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 48px;
    color: var(--accent);
}

.doc-card__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.doc-card__title {
    font-size: 30px;
    line-height: 31px;
}

.doc-card__summary {
    color: var(--muted);
    font-size: 16px;
    line-height: 24px;
}

.doc-card .btn {
    flex: none;
    width: 120px;
}

.docs-empty {
    padding-bottom: 48px;
    color: var(--muted);
}

.game-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 64px;
}

.game-questions__title {
    font-size: 30px;
    line-height: 31px;
}

.game-questions .btn {
    width: 240px;
}

.document {
    max-width: 820px;
    padding-bottom: 64px;
}

.document__meta {
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
}

.prose {
    padding-top: 8px;
}

.prose h2,
.prose h3 {
    color: var(--text);
    font-family: var(--serif);
    font-weight: 600;
}

.prose h2 {
    margin-top: 32px;
    font-size: 32px;
    line-height: 34px;
}

.prose h3 {
    margin-top: 24px;
    font-size: 24px;
    line-height: 27px;
}

.prose strong {
    color: var(--text);
}

.document__back {
    width: 240px;
    margin-top: 40px;
}

/* Телефоны и планшеты */

@media (max-width: 1023px) {
    .logo {
        font-size: 32px;
        line-height: 33px;
        letter-spacing: 3.2px;
    }

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .site-header--over {
        padding-top: 20px;
    }

    .site-header__menu {
        display: inline-flex;
    }

    .lead {
        font-size: 15px;
        line-height: 23px;
    }

    .hero {
        height: 824px;
    }

    .hero__atmosphere {
        height: 620px;
        opacity: 0.35;
    }

    .hero__art {
        top: 62px;
        right: auto;
        left: 50%;
        width: 470px;
        max-width: none;
        transform: translateX(-50%);
        -webkit-mask-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.07) 1.2%, rgba(0, 0, 0, 0.55) 4%, #000 8%, #000 100%),
            linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 7%, rgba(0, 0, 0, 0.78) 14%, #000 20%, #000 80%, rgba(0, 0, 0, 0.78) 86%, rgba(0, 0, 0, 0.22) 93%, rgba(0, 0, 0, 0) 100%);
        mask-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.07) 1.2%, rgba(0, 0, 0, 0.55) 4%, #000 8%, #000 100%),
            linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 7%, rgba(0, 0, 0, 0.78) 14%, #000 20%, #000 80%, rgba(0, 0, 0, 0.78) 86%, rgba(0, 0, 0, 0.22) 93%, rgba(0, 0, 0, 0) 100%);
    }

    .hero__shade {
        background: linear-gradient(180deg, rgba(16, 21, 17, 0.08) 0%, rgba(16, 21, 17, 0.08) 27%, rgba(16, 21, 17, 0.25) 36%, rgba(16, 21, 17, 0.64) 45%, rgba(16, 21, 17, 0.96) 56%, #101511 64%, #101511 100%);
    }

    .hero__content {
        gap: 20px;
        padding-top: 430px;
    }

    .hero__title {
        font-size: 52px;
        line-height: 53px;
    }

    .hero__actions .btn--primary {
        width: 100%;
    }

    .hero__actions .btn--secondary {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding: 14px 0 15px;
    }

    .stat {
        min-height: 86px;
    }

    .stat__value {
        font-size: 36px;
        line-height: 42px;
    }

    .stat__value--infinity {
        font-size: 40px;
    }

    .stat__label {
        font-size: 12px;
        line-height: 18px;
    }

    .factions {
        padding: 48px 0 40px;
    }

    .section-title {
        font-size: 31px;
        line-height: 35px;
    }

    .factions__gallery,
    .capital__scenes {
        display: flex;
        gap: 16px;
        width: calc(100% + var(--gutter));
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .factions__gallery::-webkit-scrollbar,
    .capital__scenes::-webkit-scrollbar {
        display: none;
    }

    .factions__gallery > *,
    .capital__scenes > * {
        flex: none;
        scroll-snap-align: start;
    }

    .factions__gallery {
        margin-top: 32px;
        padding-right: 64px;
    }

    .faction-card {
        width: 302px;
    }

    .factions__nav,
    .capital__nav {
        display: flex;
        margin-top: 24px;
    }

    .factions__nav .slider-nav__button,
    .factions__nav .slider-nav__hint {
        font-size: 12px;
        line-height: 18px;
    }

    .battle {
        padding: 44px 0 48px;
    }

    .battle__layout,
    .capital__layout,
    .arena__layout,
    .faq__layout,
    .beta__layout,
    .topic__layout,
    .doc-group__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .battle__text {
        gap: 20px;
        padding-top: 0;
    }

    .battle__title,
    .capital__title,
    .arena__title {
        font-size: 44px;
        line-height: 45px;
    }

    .principles {
        display: none;
    }

    .battle__slides {
        margin-top: 40px;
    }

    .battle__slider {
        width: calc(100% + var(--gutter));
        max-width: none;
    }

    .capital {
        padding: 48px 0;
        background: var(--bg);
    }

    .capital__text {
        order: -1;
        gap: 20px;
        padding-top: 0;
    }

    .capital__features {
        display: none;
    }

    .capital__scenes {
        margin-top: 40px;
        padding-right: 64px;
    }

    .capital-card {
        width: 302px;
        border: 1px solid var(--border);
        background: var(--bg);
    }

    .capital-card img {
        aspect-ratio: 302 / 654;
        border: 0;
    }

    .capital-card__caption {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px 16px;
    }

    .capital-card__name {
        font-size: 22px;
        line-height: 23px;
    }

    .capital-card__subtitle {
        color: var(--muted);
        font-size: 10px;
        line-height: 13px;
    }

    .arena {
        padding: 48px 0;
    }

    .arena__title {
        margin-top: 20px;
    }

    .arena__lead {
        margin-top: 20px;
    }

    .steps {
        gap: 10px;
        margin-top: 24px;
    }

    .step__title {
        font-size: 15px;
        line-height: 19px;
    }

    .step__text {
        font-size: 12px;
        line-height: 15px;
    }

    .arena__cta {
        order: 3;
        width: 100%;
    }

    .duel {
        max-width: 342px;
        height: 350px;
        margin: 28px 0 0;
    }

    .duel__label {
        top: 25px;
    }

    .duel__hero {
        top: 69px;
        width: 138px;
    }

    .duel__hero--left {
        left: 13px;
    }

    .duel__hero--right {
        right: 13px;
    }

    .duel__portrait {
        height: 154px;
    }

    .duel__name {
        font-size: 25px;
        line-height: 26px;
    }

    .duel__faction {
        font-size: 10px;
        line-height: 13px;
    }

    .duel__sign {
        top: 129px;
        left: calc(50% - 17px);
        width: 34px;
        height: 34px;
    }

    .duel__sign svg {
        width: 24px;
        height: 24px;
    }

    .duel__caption {
        top: 311px;
        font-size: 11px;
        line-height: 14px;
    }

    .arena__layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .duel {
        width: 100%;
    }

    .faq {
        padding: 42px 0 48px;
    }

    .faq__head {
        padding: 0 0 24px;
    }

    .faq__title,
    .topic__title {
        font-size: 40px;
        line-height: 42px;
    }

    .answer {
        padding: 20px 0;
    }

    .answer__question {
        font-size: 24px;
        line-height: 26px;
    }

    .answer__text,
    .prose {
        font-size: 15px;
        line-height: 23px;
    }

    .faq__more {
        width: 100%;
    }

    .evolution__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .beta {
        padding: 56px 0 64px;
    }

    .beta__title {
        font-size: 48px;
        line-height: 50px;
    }

    .beta__form {
        padding-top: 32px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin: 32px auto 24px;
    }

    .site-footer .logo,
    .site-footer__tagline {
        width: auto;
    }

    .site-footer__links {
        justify-content: space-between;
        width: 100%;
    }

    .page-intro {
        gap: 20px;
        padding: 32px 0 32px;
    }

    .page-intro__title {
        font-size: 44px;
        line-height: 46px;
    }

    .page-intro__jump .btn {
        flex: 1 1 100%;
    }

    .topic {
        padding: 32px 0;
    }

    .topic__head {
        padding-bottom: 20px;
    }

    .doc-group {
        padding-bottom: 32px;
    }

    .doc-group__head {
        padding-bottom: 20px;
    }

    .doc-group__title {
        font-size: 32px;
        line-height: 34px;
    }

    .doc-card {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .doc-card__text {
        flex-basis: calc(100% - 56px);
    }

    .doc-card__title {
        font-size: 24px;
        line-height: 26px;
    }

    .doc-card__summary {
        font-size: 15px;
        line-height: 23px;
    }

    .doc-card .btn {
        width: 100%;
    }

    .game-questions .btn,
    .document__back {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .modal {
        padding: 32px 24px 24px;
    }

    .modal__title--done {
        font-size: 44px;
        line-height: 48px;
    }
}
