:root {
    --green-dark: #031b12;
    --green-deep: #05251a;
    --green: #0b3b27;
    --green-light: #125538;

    --gold: #c89b4b;
    --gold-light: #e5c477;
    --gold-dark: #8f682d;

    --text: #f1eadb;
    --text-muted: #a9aa9e;

    --border: rgba(200, 155, 75, 0.35);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}


body {
    margin: 0;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(21, 91, 56, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 60%,
            rgba(200, 155, 75, 0.06),
            transparent 35%
        ),
        var(--green-dark);

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


.site-background {
    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(3, 27, 18, 0.92),
            rgba(3, 27, 18, 0.96)
        );
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid var(--border);

    background: rgba(3, 27, 18, 0.82);

    backdrop-filter: blur(14px);
}


.site-logo img {
    width: 78px;
    height: 78px;

    object-fit: contain;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


.site-logo:hover img {
    transform: rotate(-4deg) scale(1.05);

    filter:
        drop-shadow(
            0 0 18px
            rgba(200, 155, 75, 0.45)
        );
}


.nav-link {
    position: relative;

    color: var(--text-muted) !important;

    font-size: 15px;

    transition:
        color 0.3s ease;
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 4px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transform: translateX(-50%);

    transition:
        width 0.3s ease;
}


.nav-link:hover {
    color: var(--gold-light) !important;
}


.nav-link:hover::after {
    width: 60%;
}


/* BUTTONS */

.btn-gold {
    color: var(--green-dark);

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold)
        );

    border: 1px solid var(--gold-light);

    box-shadow:
        0 5px 25px
        rgba(200, 155, 75, 0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.btn-gold:hover {
    color: var(--green-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 35px
        rgba(200, 155, 75, 0.3);
}


.btn-outline-gold {
    color: var(--gold-light);

    border: 1px solid var(--gold);

    background: transparent;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.btn-outline-gold:hover {
    color: var(--green-dark);

    background: var(--gold-light);

    transform: translateY(-2px);
}


/* HERO */

.hero-section {
    position: relative;

    min-height: 90vh;

    display: flex;

    align-items: center;

    overflow: hidden;
}


.hero-content {
    position: relative;

    z-index: 2;

    animation:
        heroContent 1s ease both;
}


@keyframes heroContent {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-kicker {
    margin-bottom: 20px;

    color: var(--gold);

    font-size: 12px;

    letter-spacing: 4px;
}


.hero-section h1 {
    margin: 0;

    color: var(--gold-light);

    font-size: clamp(
        4rem,
        8vw,
        8rem
    );

    line-height: 0.9;

    text-shadow:
        0 0 30px
        rgba(200, 155, 75, 0.12);
}


.hero-subtitle {
    margin-top: 25px;

    font-size: clamp(
        1.2rem,
        2vw,
        1.7rem
    );
}


.hero-text {
    max-width: 600px;

    color: var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    line-height: 1.8;
}


.hero-divider {
    width: 100px;

    height: 1px;

    margin: 30px 0;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 30px;
}


/* HERO LOGO */

.hero-logo-wrapper {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 600px;
}


.hero-image {
    position: relative;

    z-index: 2;

    width: min(
        90%,
        560px
    );

    filter:
        drop-shadow(
            0 25px 50px
            rgba(0, 0, 0, 0.5)
        );

    animation:
        logoFloat 7s ease-in-out infinite;
}


@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}


.hero-ring {
    position: absolute;

    width: 520px;
    height: 520px;

    border: 1px solid
        rgba(200, 155, 75, 0.2);

    border-radius: 50%;

    box-shadow:
        0 0 80px
        rgba(200, 155, 75, 0.08);

    animation:
        ringPulse 6s ease-in-out infinite;
}


@keyframes ringPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.8;
    }
}


/* GLOW */

.hero-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.15;

    pointer-events: none;
}


.hero-glow-one {
    top: -200px;
    left: -200px;

    background: #176b43;
}


.hero-glow-two {
    right: -200px;
    bottom: -200px;

    background: #c89b4b;
}


/* SECTIONS */

.section-dark,
.section-green {
    position: relative;

    padding: 120px 0;

    overflow: hidden;
}


.section-dark {
    background: var(--green-dark);
}


.section-green {
    background:
        linear-gradient(
            180deg,
            var(--green-dark),
            var(--green-deep)
        );
}


.section-heading {
    max-width: 700px;

    margin-bottom: 70px;
}


.section-heading > span {
    color: var(--gold);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;

    letter-spacing: 4px;
}


.section-heading h2 {
    margin-top: 15px;

    color: var(--gold-light);

    font-size: clamp(
        2.5rem,
        5vw,
        4.5rem
    );
}


.section-heading p {
    color: var(--text-muted);

    font-family:
        Arial,
        sans-serif;

    line-height: 1.8;
}


/* SERVICE DECK */

.card-deck {
    display: flex;

    justify-content: center;

    align-items: stretch;

    padding: 30px 0 60px;
}


.deck-card {
    position: relative;

    width: 31%;

    min-height: 470px;

    margin-left: -45px;

    overflow: hidden;

    border:
        1px solid
        rgba(200, 155, 75, 0.35);

    border-radius: 12px;

    background: var(--green);

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.35);

    transition:
        transform 0.5s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        box-shadow 0.5s ease;

    isolation: isolate;
}


.deck-card:first-child {
    margin-left: 0;
}


.deck-card:nth-child(1) {
    transform: rotate(-3deg);
}


.deck-card:nth-child(2) {
    transform: translateY(15px) rotate(1deg);

    z-index: 2;
}


.deck-card:nth-child(3) {
    transform: rotate(3deg);

    z-index: 1;
}


.deck-card:hover {
    transform:
        translateY(-25px)
        rotate(0deg)
        scale(1.04);

    z-index: 20;

    box-shadow:
        0 35px 80px
        rgba(0, 0, 0, 0.55),
        0 0 35px
        rgba(200, 155, 75, 0.12);
}


.deck-card-image {
    position: absolute;

    inset: 0;
}


.deck-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s ease;
}


.deck-card:hover img {
    transform: scale(1.08);
}


.deck-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 20%,
            rgba(3, 27, 18, 0.95) 100%
        );
}


.deck-card-content {
    position: absolute;

    z-index: 2;

    right: 30px;
    bottom: 30px;
    left: 30px;
}


.deck-number {
    color: var(--gold);

    font-family: Arial, sans-serif;

    font-size: 11px;

    letter-spacing: 3px;
}


.deck-card h3 {
    margin: 10px 0;

    color: var(--gold-light);

    font-size: 32px;
}


.deck-card p {
    color: var(--text-muted);

    font-family: Arial, sans-serif;

    line-height: 1.6;
}


.deck-link,
.game-link {
    color: var(--gold-light);

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 13px;

    letter-spacing: 1px;
}


.deck-link span {
    display: inline-block;

    margin-left: 8px;

    transition:
        transform 0.3s ease;
}


.deck-link:hover span {
    transform: translateX(6px);
}


/* GAMES */

.games-deck {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 0;
}


.game-card {
    position: relative;

    width: 260px;

    margin: -15px;

    overflow: hidden;

    border:
        1px solid
        rgba(200, 155, 75, 0.3);

    border-radius: 10px;

    background: var(--green);

    box-shadow:
        0 20px 40px
        rgba(0, 0, 0, 0.35);

    transition:
        transform 0.4s ease,
        z-index 0s,
        box-shadow 0.4s ease;
}


.game-card:nth-child(odd) {
    transform: rotate(-2deg);
}


.game-card:nth-child(even) {
    transform: rotate(2deg);
}


.game-card:hover {
    z-index: 20;

    transform:
        translateY(-20px)
        rotate(0deg)
        scale(1.05);

    box-shadow:
        0 30px 60px
        rgba(0, 0, 0, 0.5);
}


.game-card img {
    width: 100%;
    height: 260px;

    object-fit: cover;
}


.game-card-content {
    padding: 22px;
}


.game-card h3 {
    color: var(--gold-light);

    font-size: 22px;
}


.game-card p {
    min-height: 50px;

    color: var(--text-muted);

    font-family: Arial, sans-serif;

    font-size: 14px;

    line-height: 1.6;
}


/* FOOTER */

.site-footer {
    padding: 70px 0 30px;

    border-top:
        1px solid
        var(--border);

    background:
        #02150d;
}


.footer-logo {
    width: 100px;

    margin-bottom: 20px;
}


.footer-title {
    color: var(--gold-light);
}


.footer-link {
    color: var(--text-muted);

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.footer-link:hover {
    color: var(--gold-light);
}


/* MOBILE */

@media (max-width: 991.98px) {

    .hero-section {
        min-height: auto;

        padding: 80px 0;
    }


    .hero-logo-wrapper {
        min-height: auto;

        margin-top: 50px;
    }


    .hero-ring {
        width: 350px;
        height: 350px;
    }


    .card-deck {
        display: block;

        padding: 20px 30px;
    }


    .deck-card {
        width: 100%;

        min-height: 430px;

        margin: -35px 0 0;
    }


    .deck-card:first-child {
        margin-top: 0;
    }


    .deck-card:nth-child(1),
    .deck-card:nth-child(2),
    .deck-card:nth-child(3) {
        transform: none;
    }


    .deck-card:hover {
        transform:
            translateY(-10px)
            scale(1.02);
    }


    .game-card {
        width: 45%;

        margin: -10px;
    }

}


@media (max-width: 575.98px) {

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


    .hero-section h1 {
        font-size: 4rem;
    }


    .hero-actions {
        flex-direction: column;
    }


    .hero-actions .btn {
        width: 100%;
    }


    .game-card {
        width: 80%;

        margin: -10px auto;
    }

}


/* =========================================================
   HEADER (sticky) + actions + overlay menu + socials
   ========================================================= */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}

.header-actions-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.header-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(5, 37, 26, 0.55);
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.header-chip:hover {
    border-color: var(--gold);
    color: var(--text);
    background: rgba(200, 155, 75, 0.12);
}

.header-chip-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 16px;
    height: 14px;
}

.header-chip-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
}

.header-chip-icon {
    font-size: 15px;
    line-height: 1;
}

.header-socials {
    position: relative;
}

.header-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid var(--gold-light);
    border-radius: 4px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--green-dark);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-book-btn:hover {
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 155, 75, 0.3);
}

.header-book-btn span {
    font-size: 16px;
}

/* Полноэкранное меню */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px clamp(20px, 6vw, 80px) 40px;
    background: rgba(3, 27, 18, 0.98);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.menu-overlay-kicker {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
}

.menu-overlay-close {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.menu-overlay-close:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.menu-overlay-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.menu-overlay-nav a {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-overlay-nav a:hover {
    color: var(--gold-light);
    transform: translateX(8px);
}

.menu-overlay-nav a.menu-overlay-accent {
    color: var(--gold-light);
}

.menu-overlay-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.menu-overlay-sub a {
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-overlay-sub a:hover {
    color: var(--gold-light);
}

.menu-overlay-foot {
    margin-top: 24px;
}

.menu-overlay-foot a {
    color: var(--gold-light);
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-decoration: none;
}

/* Панель соцсетей */

.socials-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(5, 37, 26, 0.97);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.socials-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.socials-panel a {
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.socials-panel a:hover {
    background: rgba(200, 155, 75, 0.12);
    color: var(--gold-light);
}

@media (max-width: 575.98px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-actions {
        width: 100%;
        align-items: stretch;
    }

    .header-actions-top {
        justify-content: flex-end;
    }

    .header-book-btn {
        width: 100%;
        justify-content: center;
    }
}