/* ==========================================
   ПИВНОЙ САНАТОРИЙ
   Основные стили сайта
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(230, 145, 35, 0.10),
            transparent 40%
        ),
        #0b0a08;

    color: #f4efe7;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.6;
}

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

button {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================
   NAVIGATION
========================================== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 40px;

    background: rgba(11, 10, 8, 0.88);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 17px;
    font-weight: 700;

    color: #f5eee4;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;

    color: #aaa39a;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: #e49a2e;

    transition:
        width 0.2s ease;
}

.nav-links a:hover {
    color: #f5eee4;
}

.nav-links a:hover::after {
    width: 100%;
}


/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding: 100px 0 120px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: -320px;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(230, 145, 35, 0.07);

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    color: #b7afa4;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.04em;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #65c466;

    box-shadow:
        0 0 0 4px rgba(101, 196, 102, 0.10),
        0 0 14px rgba(101, 196, 102, 0.5);
}

.hero h1 {
    margin-bottom: 28px;

    font-size: clamp(58px, 9vw, 112px);

    line-height: 0.91;

    letter-spacing: -0.055em;

    font-weight: 800;

    color: #f7f1e8;
}

.hero-subtitle {
    max-width: 650px;

    margin-bottom: 32px;

    color: #aaa39a;

    font-size: 18px;

    line-height: 1.75;
}

.hero-subtitle strong {
    color: #ddd5ca;
}


/* ==========================================
   BUTTONS
========================================== */

.buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #d88922;

    color: #171009;

    box-shadow:
        0 8px 25px rgba(216, 137, 34, 0.16);
}

.button-primary:hover {
    background: #eca13a;

    box-shadow:
        0 10px 30px rgba(216, 137, 34, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.035);

    color: #ddd5ca;

    border: 1px solid rgba(255, 255, 255, 0.09);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.065);

    border-color: rgba(255, 255, 255, 0.15);
}


/* ==========================================
   SERVER CARD
========================================== */

.server-card {
    width: min(620px, 100%);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 16px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 15px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.15);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
}

.server-icon {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    border-radius: 11px;

    background: rgba(216, 137, 34, 0.12);

    font-size: 21px;
}

.server-label {
    margin-bottom: 2px;

    color: #8f887f;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.server-address {
    color: #eee7dd;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 14px;

    overflow-wrap: anywhere;
}

.copy-button {
    flex-shrink: 0;

    padding: 9px 12px;

    background: rgba(255, 255, 255, 0.05);

    color: #cfc7bc;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.09);

    color: #fff;
}


/* ==========================================
   GENERAL SECTIONS
========================================== */

section {
    position: relative;

    padding: 110px 0;
}

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

    margin-bottom: 50px;
}

.section-heading > span {
    display: block;

    margin-bottom: 10px;

    color: #d88922;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.14em;
}

.section-heading h2 {
    margin-bottom: 16px;

    color: #f3ede4;

    font-size: clamp(34px, 5vw, 56px);

    line-height: 1.05;

    letter-spacing: -0.035em;
}

.section-heading p {
    color: #9e978e;

    font-size: 16px;

    line-height: 1.75;
}


/* ==========================================
   ABOUT CARDS
========================================== */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.card {
    min-height: 250px;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);

    border-color: rgba(216, 137, 34, 0.25);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02)
        );
}

.card-icon {
    width: 48px;
    height: 48px;

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

    margin-bottom: 22px;

    border-radius: 13px;

    background: rgba(216, 137, 34, 0.10);

    font-size: 23px;
}

.card h3 {
    margin-bottom: 10px;

    color: #eee7dd;

    font-size: 20px;
}

.card p {
    color: #989188;

    font-size: 14px;

    line-height: 1.75;
}


/* ==========================================
   MINECRAFT
========================================== */

#minecraft {
    overflow: hidden;
}

.minecraft {
    position: relative;

    overflow: hidden;

    min-height: 390px;

    display: flex;
    align-items: center;

    padding: 55px;

    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(216, 137, 34, 0.12),
            transparent 42%
        ),
        rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;
}

.minecraft-content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.minecraft .section-heading {
    margin-bottom: 20px;
}

.minecraft .section-heading h2 {
    margin-bottom: 0;
}

.minecraft-content > p {
    max-width: 620px;

    margin-bottom: 25px;

    color: #a39b91;

    font-size: 16px;

    line-height: 1.75;
}


/* ==========================================
   TAGS
========================================== */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 28px;
}

.tag {
    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding: 0 12px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 999px;

    color: #aaa299;

    font-size: 12px;
}


/* ==========================================
   DYnamic MAP / DYMAP
========================================== */

.map-card {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    gap: 35px;

    margin-top: 24px;

    padding: 40px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(216, 137, 34, 0.13),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.16);
}

.map-card::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    bottom: -140px;

    border-radius: 50%;

    background: rgba(216, 137, 34, 0.08);

    filter: blur(30px);

    pointer-events: none;
}

.map-icon {
    position: relative;
    z-index: 1;

    width: 92px;
    height: 92px;

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

    flex-shrink: 0;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(216, 137, 34, 0.17),
            rgba(216, 137, 34, 0.06)
        );

    border: 1px solid rgba(216, 137, 34, 0.18);

    font-size: 44px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 15px 35px rgba(0, 0, 0, 0.15);
}

.map-content {
    position: relative;
    z-index: 1;

    max-width: 720px;
}

.map-content .section-heading {
    margin-bottom: 14px;
}

.map-content .section-heading h2 {
    margin-bottom: 0;

    font-size: clamp(30px, 4vw, 46px);
}

.map-content > p {
    max-width: 680px;

    margin-bottom: 24px;

    color: #9e978e;

    font-size: 15px;

    line-height: 1.75;
}


/* ==========================================
   TELEGRAM
========================================== */

.telegram {
    padding-top: 70px;
}

.telegram-box {
    position: relative;

    overflow: hidden;

    padding: 70px 30px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(216, 137, 34, 0.10),
            transparent 55%
        ),
        rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 24px;
}

.telegram-icon {
    width: 58px;
    height: 58px;

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

    margin: 0 auto 22px;

    background: rgba(216, 137, 34, 0.11);

    border-radius: 17px;

    font-size: 27px;
}

.telegram-box h2 {
    margin-bottom: 14px;

    color: #f3ede4;

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -0.035em;
}

.telegram-box p {
    max-width: 570px;

    margin: 0 auto 28px;

    color: #9e978e;

    font-size: 15px;

    line-height: 1.75;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    padding: 50px 0 35px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-text {
    color: #777169;

    font-size: 12px;

    line-height: 1.8;
}

.footer-text strong {
    color: #a49c92;

    font-size: 13px;
}

.admin {
    color: #777169;

    font-size: 12px;

    transition:
        color 0.2s ease;
}

.admin:hover {
    color: #d88922;
}


/* ==========================================
   TOAST
========================================== */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 9999;

    transform:
        translate(-50%, 20px);

    opacity: 0;

    pointer-events: none;

    padding: 12px 18px;

    background: rgba(25, 22, 18, 0.96);

    border: 1px solid rgba(216, 137, 34, 0.22);

    border-radius: 12px;

    color: #eee7dd;

    font-size: 13px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.3);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 800px) {

    nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        min-height: auto;

        padding: 80px 0 90px;
    }

    .hero h1 {
        font-size: clamp(54px, 15vw, 86px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .minecraft {
        padding: 35px 25px;
    }

    .map-card {
        flex-direction: column;

        align-items: flex-start;

        padding: 30px 25px;

        gap: 25px;
    }

    .map-icon {
        width: 70px;
        height: 70px;

        border-radius: 18px;

        font-size: 32px;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 520px) {

    .container {
        width: min(100% - 28px, 1120px);
    }

    nav {
        padding: 14px;
    }

    .brand {
        font-size: 14px;
    }

    .brand-icon {
        font-size: 19px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .hero {
        padding-top: 65px;
    }

    .hero h1 {
        font-size: 58px;

        letter-spacing: -0.06em;
    }

    .buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .server-card {
        flex-direction: column;

        align-items: stretch;

        gap: 13px;
    }

    .copy-button {
        width: 100%;
    }

    section {
        padding: 80px 0;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .minecraft {
        padding: 30px 20px;
    }

    .map-card {
        padding: 25px 20px;
    }

    .map-content .section-heading h2 {
        font-size: 32px;
    }

    .telegram-box {
        padding: 55px 20px;
    }
}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}