:root {
    --gold: #c5a059;
    --red-dark: #8b0000;
    --bg-dark: #1a1a1a;
    --text-gray: #ccc;
}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    color: white;
    text-align: center;
    background-color: var(--bg-dark);
}

.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--gold);
}

.main-header nav {
    grid-column: 2;
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.main-header .btn-login {
    grid-column: 3;
    justify-self: end;
}

.reg-cta-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 560px;

    margin-top: 3rem;
}

.reg-cta-wrap>.btn-cta--primary {
    width: 100%;
    max-width: 480px;
}

.reg-bonus-tooltip.class-tooltip {
    max-width: 560px;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.35rem;
}

.reg-bonus-title {
    margin: 0 0 0.7rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
}

.reg-bonus-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: #dcdcdc;
    line-height: 1.55;
    text-align: center;
}

.reg-bonus-list li {
    margin-bottom: 0.4rem;
}

.reg-bonus-list li:last-child {
    margin-bottom: 0;
}

.reg-bonus-value {
    font-weight: 700;
    color: #f0e6d2;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.class-cta-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-width: 400px;
    width: 100%;
}

.class-cta-wrap--secondary {
    margin-top: 0.25rem;
}

.class-cta-hint {
    max-width: 360px;
    margin: 0;
    padding: 0;
    text-align: center;
}


.class-cta-hint-sub {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: normal;
    color: #8a9199;
    line-height: 1.35;
}

.class-tooltip {
    position: relative;
    max-width: 320px;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #e8e8e8;
    background: rgba(12, 18, 28, 0.95);
    border: 1px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    text-align: center;
    z-index: 3;
}

.class-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -7px;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--gold);
}

.class-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -5px;
    margin-left: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(12, 18, 28, 0.95);
}

.main-header nav a {
    color: var(--text-gray);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.main-header nav a:hover {
    color: #b8cfe8;
    text-shadow: 0 0 12px rgba(135, 175, 220, 0.45);
}

.main-header nav a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .main-header nav a {
        transition: none;
    }

    .main-header nav a:hover {
        text-shadow: none;
    }
}

.btn-login {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.15;
    color: #0d0d0d;
    background: #d4af37;
    border: 1px solid #0d0d0d;
    padding: 5px 14px;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: none;
}

a.btn-login {
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}

a.btn-login:hover {
    color: #000;
}

.btn-login:hover {
    background: #e8c84a;
    color: #000;
}

.btn-login:active {
    background: #b8922a;
}

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://cdn.utopie-game.ru/assets/i/temple/back.jpg');
    overflow: hidden;
}

/* Фон hero: один скрин, лёгкое размытие; scale чуть больше 100%, чтобы не было светлых кромок после blur */
.hero-backdrop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.07);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    filter: blur(4px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.65) 45%, rgba(26, 26, 26, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
}

.hero-content h1 {
    margin: 0.5rem auto 0.85rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #f5f2eb;
    text-shadow:
        0 1px 4px rgba(14, 20, 32, 0.45),
        0 2px 14px rgba(12, 18, 28, 0.35),
        0 4px 28px rgba(10, 16, 26, 0.28);
}

.hero-content .hero-lead {
    text-shadow:
        0 1px 3px rgba(14, 20, 32, 0.38),
        0 2px 10px rgba(12, 18, 28, 0.28);
}

.hero-online-block--hidden {
    display: none !important;
}

.btn-cta {
    background: linear-gradient(#bf0000, #8b0000);
    color: white;
    padding: 20px 40px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: normal;
    border: 3px solid var(--gold);
    cursor: pointer;
    text-shadow: 1px 1px 2px black;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

a.btn-cta {
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}

a.btn-cta,
a.btn-cta:visited {
    color: #fff;
}

.btn-cta:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-cta--primary {
    width: 100%;
    max-width: 480px;
    padding: 22px 24px;
    font-size: 1.45rem;
    font-weight: 600;
    box-sizing: border-box;
}

a.btn-cta--primary {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

.btn-cta--secondary {
    background: transparent;
    background-image: none;
    color: #dcd8d0;
    border-width: 2px;
    border-color: rgba(197, 160, 89, 0.65);
    padding: 12px 26px;
    font-size: 1.05rem;
    font-weight: normal;
    text-shadow: none;
    box-shadow: none;
}

.btn-cta--secondary:hover {
    transform: none;
    filter: none;
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold);
    color: #fff;
}

.btn-cta--secondary:active {
    background: rgba(197, 160, 89, 0.2);
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.75rem;
    padding: 50px 8%;
    background: #0d0d0d;
}

.feature-card {
    flex: 1 1 220px;
    max-width: 280px;
    min-width: 200px;
    text-align: center;
}

.feature-card h3 {
    color: var(--gold);
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

.land-video-section {
    padding: 48px 4% 36px;
    background: #0e1218;
    border-bottom: 1px solid #2a3038;
}

.land-video-heading {
    margin: 0 0 1.25rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.land-video-frame {
    position: relative;
    width: 100%;
    max-width: min(96vw, 960px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #05070a;
    border: 3px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.land-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
    background: #000;
}

.land-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 16, 0.45);
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2;
}

.land-video-overlay--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.land-video-play-btn {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1408;
    padding: 14px 28px;
    cursor: pointer;
    border: 2px solid var(--gold);
    border-radius: 4px;
    background: linear-gradient(180deg, #f0d060 0%, #c9a020 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: filter 0.2s ease, transform 0.15s ease;
}

.land-video-play-btn:hover {
    filter: brightness(1.08);
}

.land-video-play-btn:active {
    transform: scale(0.98);
}

.land-video-play-btn:focus-visible {
    outline: 2px solid #9eb4c8;
    outline-offset: 3px;
}

.screenshots {
    padding: 50px 0;
    background-color: #111;
    background-image: url("https://cdn.utopie-game.ru/main_page/images/bg5-min.jpg");
    background-repeat: repeat;
    background-size: 25%;
}

.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: min(96vw, 1000px);
    max-height: 85vh;
    border: 5px solid #333;
    vertical-align: middle;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.slider-nav button {
    font-family: inherit;
    font-size: 1.35rem;
    line-height: 1;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    color: #e8e4dc;
    background: rgba(18, 22, 30, 0.95);
    border: 1px solid var(--gold);
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.slider-nav button:hover {
    color: #fff;
    background: rgba(28, 36, 48, 1);
    border-color: #d4b86a;
}

.slider-nav button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.slider-nav button:focus-visible {
    outline: 2px solid #9eb4c8;
    outline-offset: 2px;
}

.footer {
    padding: 30px 5% 40px;
    border-top: 1px solid #333;
    background: #0a0a0a;
}

.footer-tagline {
    margin: 0.75rem 0 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.online-counter {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-legal {
    max-width: 920px;
    margin: 0 auto 2rem;
    text-align: left;
}

.footer-legal-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.footer-legal-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem 2.5rem;
}

.footer-legal-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    line-height: 1.55;
    flex: 1 1 240px;
    max-width: 420px;
}

.footer-legal-list li {
    margin-bottom: 0.4rem;
}

.footer-legal-list--left {
    text-align: right;
}

.footer-legal-list--right {
    text-align: left;
}

@media (max-width: 560px) {
    .footer-legal-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-legal-list--left,
    .footer-legal-list--right {
        text-align: center;
        max-width: 100%;
    }
}

.footer-legal-list a {
    color: #9eb4c8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal-list a:hover {
    color: #c5d4e0;
}

.footer-requisites {
    margin: 1.25rem 0 0;
    text-align: center;
    color: #888;
    line-height: 1.45;
}

.footer-requisites a {
    color: #9eb4c8;
}

.footer-requisites a:hover {
    color: #c5d4e0;
}

.footer-age {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-age-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    background: #c5a059;
    border: 1px solid #0d0d0d;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.footer-age-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}




:root {
    --shine-bg: rgb(22, 19, 19);
    --shine-bg-subtle: rgb(28, 23, 23);
    --shine-bg: rgb(25, 14, 14);
    --shine-bg-subtle: rgb(35, 14, 14);
    --shine-fg: #fff;
    --shine-highlight: rgb(219, 15, 15);
    --shine-highlight-subtle: rgb(181, 3, 3);
    --brand: rgb(219, 15, 15);
    --brand-h: 153;
    --brand-s: 87%;
    --brand-l: 46%;
    --brand-hsl: 153, 87%, 46%;
    --brand-l-dark: 6%;
    --brand-bg: hsl(var(--brand-h), var(--brand-s), var(--brand-l-dark))
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 5%;
    inherits: false
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: #fff;
    inherits: false
}

@keyframes rotate-gradient {
    to {
        --gradient-angle: 360deg
    }
}

.reg-animation {
    --animation: gradient-angle linear infinite;
    --duration: 3s;
    --shadow-size: 2px;
    background: linear-gradient(rgb(229 46 46), rgb(119 0 0)) padding-box, conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent, #ffc85f var(--gradient-percent), #ffa800 calc(var(--gradient-percent) * 2), #c5a059 calc(var(--gradient-percent) * 3), transparent calc(var(--gradient-percent) * 4)) border-box;
    border: 5px solid transparent;
    border-radius: .5em;
    box-shadow: inset 0 0 0 1px var(--shine-bg-subtle);

    cursor: pointer;
    display: block;

    isolation: isolate;

    outline-offset: 4px;
    overflow: hidden;
    position: relative;
}

.reg-animation span:before,
.reg-animation:after,
.reg-animation:before {
    content: "";
    inset-block-start: 50%;
    inset-inline-start: 50%;
    pointer-events: none;
    position: absolute;
    translate: -50% -50%;
    z-index: -1
}

.reg-animation:active {
    translate: 0 1px
}

.reg-animation:after {
    --animation: shimmer linear infinite;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--shine-highlight), transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, #000);
    opacity: .2;
    width: 100%
}

.reg-animation span {
    z-index: 1
}

.reg-animation span:before {
    --size: calc(100% + 1rem);
    box-shadow: inset 0 -1ex 2rem 4px var(--shine-highlight);
    height: var(--size);
    opacity: 0;
    width: var(--size)
}

.reg-animation {
    --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
    transition: var(--transition);
    transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine
}

.reg-animation,
.reg-animation:after,
.reg-animation:before {
    animation: var(--animation) var(--duration), var(--animation) calc(var(--duration)/.4) reverse paused;
    animation-composition: add
}

.reg-animation span:before {
    animation: calc(var(--duration)*1.5) breathe linear infinite;
    transition: opacity var(--transition)
}

.reg-animation:is(:hover, :focus-visible) {
    --gradient-percent: 20%;
    --gradient-angle-offset: 95deg;
    --gradient-shine: var(--shine-highlight-subtle)
}

.reg-animation:is(:hover, :focus-visible),
.reg-animation:is(:hover, :focus-visible):after,
.reg-animation:is(:hover, :focus-visible):before {
    animation-play-state: running
}

.reg-animation:is(:hover, :focus-visible) span:before {
    opacity: 1
}

@keyframes gradient-angle {
    to {
        --gradient-angle: 360deg
    }
}

@keyframes shimmer {
    to {
        rotate: 1turn
    }
}

@keyframes breathe {

    0%,
    to {
        scale: 1
    }

    50% {
        scale: 1.2
    }
}

/* --- Тест «Узнать свой класс» --- */
.class-quiz-modal[hidden] {
    display: none !important;
}

.class-quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(8, 10, 14, 0.78);
}

.class-quiz-dialog {
    position: relative;
    width: 100%;
    max-width: 32rem;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    padding: 1.5rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #151a22 0%, #0d1016 100%);
    border: 2px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.class-quiz-close {
    position: absolute;
    top: 0.5rem;
    right: 0.55rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #b8c0c8;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.class-quiz-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.class-quiz-modal-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
}

.class-quiz-body {
    text-align: left;
}

.class-quiz-progress {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: #8a9199;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.class-quiz-progress--tie {
    color: #c5a059;
}

.class-quiz-question {
    margin: 0 0 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #e8e6e2;
}

.class-quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.class-quiz-answers--cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .class-quiz-answers--cols {
        grid-template-columns: 1fr 1fr;
    }
}

.class-quiz-answer {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: left;
    padding: 0.75rem 0.9rem;
    color: #e4e2de;
    background: rgba(30, 38, 48, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.class-quiz-answer:hover {
    background: rgba(40, 50, 62, 0.95);
    border-color: rgba(197, 160, 89, 0.75);
}

.class-quiz-answer:focus-visible {
    outline: 2px solid #9eb4c8;
    outline-offset: 2px;
}

.class-quiz-result {
    text-align: center;
}

.class-quiz-result-label {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    color: #9aa5b0;
}

.class-quiz-result-weapon {
    margin: 0 0 0.75rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
}

.class-quiz-result-pair {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: #b8c0c8;
    line-height: 1.4;
}

.class-quiz-result-cta {
    margin: 0 0 1rem;
}

.class-quiz-result-link {
    display: inline-block;
    padding: 12px 22px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1408;
    text-decoration: none;
    background: linear-gradient(180deg, #f0d060 0%, #c9a020 100%);
    border: 2px solid var(--gold);
    border-radius: 4px;
}

.class-quiz-result-link:hover {
    filter: brightness(1.06);
}

.class-quiz-again {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.88rem;
    color: #9eb4c8;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem;
}

.class-quiz-again:hover {
    color: #c5d4e0;
}
