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

html {
    scroll-behavior: smooth;
}

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

.scroll-top-link {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    background: rgba(10, 12, 16, 0.86);
    border: 2px solid rgba(197, 160, 89, 0.92);
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(52, 39, 16, 0.95),
        inset 0 0 0 1px rgba(255, 232, 166, 0.12),
        0 0 14px rgba(197, 160, 89, 0.28),
        0 5px 14px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

.scroll-top-link::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-left: 3px solid #d8b968;
    border-top: 3px solid #d8b968;
    transform: translate(-50%, -30%) rotate(45deg);
}

.scroll-top-link:hover {
    background: rgba(18, 22, 30, 0.94);
    border-color: #d8b968;
    box-shadow:
        0 0 0 1px rgba(64, 46, 15, 0.95),
        inset 0 0 0 1px rgba(255, 232, 165, 0.18),
        0 0 20px rgba(216, 185, 104, 0.46),
        0 5px 14px rgba(0, 0, 0, 0.48);
}

.scroll-top-link:focus-visible {
    outline: 2px solid #d8b968;
    outline-offset: 3px;
}

.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;
    width: 100%;
    max-width: 860px;

    margin-top: 1.6rem;
}

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

.reg-cta-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    margin: 0.68rem 0 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.84rem;
    line-height: 1.25;
    color: #d6d0c4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.reg-cta-note-icon {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 17px;
    flex: 0 0 auto;
    color: #e2be61;
}

.reg-cta-note-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    clip-path: polygon(48% 0, 100% 0, 62% 43%, 100% 43%, 35% 100%, 47% 57%, 0 57%);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75));
}

.reg-bonus-panel {
    max-width: 840px;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem 0.9rem;
    background: rgba(13, 16, 23, 0.88);
    border: 2px solid rgba(197, 160, 89, 0.78);
    border-radius: 4px;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 234, 170, 0.08);
}

.reg-bonus-title {
    margin: 0 0 0.8rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.reg-bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
}

.reg-bonus-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 0.65rem;
    align-items: start;
    height: 100%;
    min-width: 0;
    padding: 0 0.85rem;
    text-align: left;
}

.reg-bonus-card+.reg-bonus-card {
    border-left: 1px solid rgba(197, 160, 89, 0.45);
}

.reg-bonus-icon {
    grid-row: 1 / 3;
    align-self: center;
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}

.reg-bonus-card strong {
    display: block;
    margin-bottom: 0.12rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f0e6d2;
    line-height: 1.18;
}

.reg-bonus-card small {
    display: block;
    align-self: start;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #b9b4aa;
}

.reg-bonus-badge {
    grid-column: 1 / 3;
    align-self: end;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 215px;
    min-height: 26px;
    margin-top: 0.75rem;
    padding: 0.22rem 0.55rem;
    box-sizing: border-box;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    line-height: 1.15;
    color: #f3e2aa;
    background: rgb(45 37 23 / 82%);
    border-radius: 2px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 229, 160, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.35);
    text-align: center;
    white-space: nowrap;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.35rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 860px;
    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.45rem;
}

@media (max-width: 640px) {
    .reg-bonus-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .reg-bonus-card {
        padding: 0;
    }

    .reg-bonus-card+.reg-bonus-card {
        padding-top: 0.75rem;
        border-left: 0;
        border-top: 1px solid rgba(197, 160, 89, 0.45);
    }
}

.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://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;
    width: min(100%, 1180px);
    box-sizing: border-box;
}

.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-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.9rem 1rem;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.05rem auto 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(0.9rem, 2.4vw, 1.05rem);
    font-weight: 600;
    line-height: 1.3;
    color: #e7d19a;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.75),
        0 0 12px rgba(197, 160, 89, 0.22);
}

.hero-subtitle-icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 14px;
    color: var(--gold);
    border: 2px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

.hero-subtitle-icon::before,
.hero-subtitle-icon::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
}

.hero-subtitle-icon::before {
    left: 50%;
    top: -6px;
    width: 8px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    transform: translateX(-50%);
}

.hero-subtitle-icon::after {
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: currentColor;
    transform: translateX(-50%);
    box-shadow: -9px 4px 0 -1px currentColor, 9px 4px 0 -1px currentColor;
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 160px;
    text-align: left;
    color: #eee7da;
    text-shadow:
        0 1px 3px rgba(14, 20, 32, 0.48),
        0 2px 10px rgba(12, 18, 28, 0.34);
}

.hero-highlight strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.15;
    color: #f3ead8;
    white-space: nowrap;
}

.hero-highlight small {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.15;
    color: #c6c1b8;
}

.hero-highlight-icon {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--gold);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.hero-highlight-icon::before,
.hero-highlight-icon::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
}

.hero-highlight-icon--online::before {
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='12' fill='%231a1a1a' fill-opacity='.18' stroke='%23d6b45d' stroke-width='2.1'/%3E%3Cpath d='M4.2 15H25.8' fill='none' stroke='%23d6b45d' stroke-width='1.45' stroke-linecap='round'/%3E%3Cpath d='M15 3C18 6.3 19.3 10.3 19.3 15C19.3 19.7 18 23.7 15 27M15 3C12 6.3 10.7 10.3 10.7 15C10.7 19.7 12 23.7 15 27' fill='none' stroke='%23d6b45d' stroke-width='1.35' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero-highlight-icon--online::after {
    display: none;
}

.hero-highlight-icon--browser::before {
    left: 2px;
    top: 5px;
    width: 26px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.hero-highlight-icon--browser::after {
    left: 9px;
    bottom: 4px;
    width: 12px;
    height: 5px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.hero-highlight-icon--fair::before {
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 2.5L24.5 6.2V14.2C24.5 20.5 20.2 25 15 27.6C9.8 25 5.5 20.5 5.5 14.2V6.2L15 2.5Z' fill='%23c5a059' fill-opacity='.22' stroke='%23c5a059' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M15 5.4L21.7 8V14.1C21.7 18.9 18.8 22.3 15 24.6C11.2 22.3 8.3 18.9 8.3 14.1V8L15 5.4Z' fill='%231a1a1a' fill-opacity='.58' stroke='%23c5a059' stroke-opacity='.55' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M15 5.4V24.6' stroke='%23c5a059' stroke-opacity='.9' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M10.5 10.2L15 8.5L19.5 10.2' stroke='%23c5a059' stroke-opacity='.55' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero-highlight-icon--fair::after {
    display: none;
}

.hero-highlight-icon--season::before {
    left: 4px;
    top: 5px;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.hero-highlight-icon--season::after {
    left: 8px;
    right: 8px;
    top: 11px;
    border-top: 2px solid currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.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 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    min-height: 58px;
    padding: 12px 58px 12px 28px;
    box-sizing: border-box;
    color: #f2eee7;
    background: rgba(7, 9, 13, 0.72);
    border: 2px solid #c8a257;
    border-radius: 3px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(255, 239, 196, 0.22);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(52, 39, 16, 0.95),
        inset 0 0 0 1px rgba(255, 232, 166, 0.18),
        inset 0 0 20px rgba(197, 160, 89, 0.18),
        0 0 10px rgba(197, 160, 89, 0.42),
        0 0 22px rgba(197, 160, 89, 0.3),
        0 8px 18px rgba(0, 0, 0, 0.42);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-cta--secondary::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    width: 150px;
    height: 44px;
    background: radial-gradient(ellipse at center, rgba(255, 214, 105, 0.34) 0%, rgba(255, 214, 105, 0.12) 42%, transparent 72%);
    transform: translateX(-50%);
    opacity: 0.9;
    pointer-events: none;
}

.btn-cta--secondary::after {
    content: '';
    position: absolute;
    right: 32px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-top: 3px solid #d8b968;
    border-right: 3px solid #d8b968;
    transform: rotate(45deg);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.btn-cta--secondary:hover {
    transform: none;
    filter: none;
    background: rgba(10, 12, 16, 0.78);
    border-color: #dfbd6b;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(60, 45, 18, 0.95),
        inset 0 0 0 1px rgba(255, 236, 178, 0.22),
        inset 0 0 22px rgba(216, 185, 104, 0.22),
        0 0 14px rgba(216, 185, 104, 0.58),
        0 0 28px rgba(216, 185, 104, 0.36),
        0 8px 18px rgba(0, 0, 0, 0.46);
}

.btn-cta--secondary:active {
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(34, 32, 28, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(58, 42, 18, 0.95),
        inset 0 3px 10px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(197, 160, 89, 0.28);
}

.btn-cta--secondary:focus-visible {
    outline: 2px solid #d8b968;
    outline-offset: 4px;
}

.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://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;
}

.bottom-cta-section {
    padding: 44px 4% 48px;
    background: #0d0d0d;
    border-top: 1px solid rgba(197, 160, 89, 0.28);
    border-bottom: 1px solid #222;
}

.bottom-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.35rem;
    max-width: 820px;
    margin: 0 auto;
}

.bottom-cta-actions .btn-cta--primary {
    flex: 1 1 320px;
    max-width: 480px;
}

.bottom-cta-actions .btn-cta--secondary {
    flex: 0 0 auto;
}

.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;
}
