:root {
    --color: #CD5C5C;
    --hover-color: #B22222;
    --text: #ffebeb;
    --danger: #ff5454;
    --warning: #ff9800;
    --success: #4caf50;
    --hover-danger: #f24141;
    --hover-warning: #c9831b;
    --hover-success: #387d3b;
    --white: #ffffff;
    --black: #080707;
    --cyan: #71dff5;
    --light_red: #F57171FF;
    --blue: #2178d3;
    --dark: #180909;
    --dark-white-mixed: rgba(255, 255, 255, 0.05);
    --dark-black-mixed: rgba(0, 0, 0, 0.1);
    --dark-grey: #2f3136;
    --grey: #555555;
    --opacity-grey: #4a4b4c;
    --canary: #ffff99;
    --yellow: #ffff00;
    --opacity-black: rgb(140 140 140 / 10%);
    --bg: var(--dark);
    --bg-navbar: rgba(77, 48, 48, 0.35);
    --radius-xs: 2px;
    --radius-base: 5px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-circle: 50%;
    --font-family-base: "Futura Round";
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-base: 18px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-1xl: 22px;
    --font-size-2xl: 24px;
    --font-size-3xl: 48px;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --default-time: 0.3s;
    --viewport-height: 100vh;
    --color-server-name: var(--third-text);
    --color-server-name-hover: var(--color);
    --color-server-btn: var(--success);
    --color-server-btn-hover: var(--hover-success)
}

@supports (height:100dvh) {
    :root {
        --viewport-height: 100dvh
    }
}

*, *::before, *::after {
    box-sizing: border-box
}

a, a:link, a:visited {
    text-decoration: none
}

a:hover {
    text-decoration: none
}

h1, h3, p {
    font-size: inherit;
    font-weight: inherit;
    color: var(--text)
}

img {
    width: 100%;
    vertical-align: top;
    user-select: none;
    height: auto
}

::-webkit-scrollbar {
    overflow-y: scroll;
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-thumb {
    background: var(--color);
    height: 150px;
    border-radius: var(--radius-base)
}

::selection {
    background: var(--light_red);
    color: var(--white);
    text-shadow: none
}

p {
    color: var(--text)
}

a {
    color: var(--text);
    font-size: calc(var(--font-size-2xl) - 2px);
    outline-style: none;
}

a:hover {
    color: var(--color)
}

.ready {
    transition: var(--default-time)
}

.ready:hover {
    transition: var(--default-time)
}

.ready::after {
    transition: var(--default-time)
}

.ready::before {
    transition: var(--default-time)
}

.ready:checked {
    transition: var(--default-time)
}

h1, h3 {
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-transform: uppercase;
    font-family: "Cunia";
}

h1 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-1xl)
}

button:focus:not(:focus-visible) {
    outline: 0
}

main {
    display: flex;
    flex-flow: column;
    position: relative;
    max-width: calc(100% - 500px);
    width: calc(100% - 60px);
    margin: 0 auto;
    min-height: calc(var(--viewport-height) - 200px);
    padding-top: 80px
}

header {
    max-height: 80px;
    min-height: 80px;
    height: 80px;
    z-index: 999;
    /*background-color: var(--bg-navbar);*/
    background: linear-gradient(rgb(20 14 14 / 52%), rgba(39, 23, 23, 0.2));
    box-shadow: 0 0 20px 1px rgb(0 0 0/10%);
    position: relative;
    font-family: "Cunia";
    font-size: var(--font-size-base);
}

header::after {
    top: 0;
    content: "";
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    display: flex;
    position: absolute;
    height: 80px;
    z-index: 998
}

header > nav {
    display: flex;
    height: 80px;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 999;
    position: relative
}

header > nav > .logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: "Cunia";
}

header > nav > .logo {
    font-size: 32px;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    white-space: nowrap
}

header > nav > .logo:hover {
    color: var(--color)
}

header > nav > .main-menu {
    display: flex;
    align-items: center;
    width: 100%
}

header > nav > .main-menu > .left-menu {
    display: flex;
    gap: 25px;
    margin-left: auto;
    align-items: center
}

header > nav > .main-menu > .left-menu > a {
    display: flex;
    gap: 3px;
    align-items: end;
    white-space: nowrap
}

header > nav > .main-menu > .right-menu {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px
}

header > nav > .main-menu > .right-menu > .lang > .dropdown-name > .locale, header > nav > .main-menu > .right-menu > .lang > .dropdown-content > .dropdown-item > .locale {
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    background-color: rgb(205 92 92/50%);
    padding: 5px;
    border-radius: 2px;
    font-size: var(--font-size-sm);
    color: var(--text)
}

header > nav > .main-menu > .right-menu > .lang > .dropdown-name {
    padding: 0 20px
}

header > nav > .main-menu > .right-menu > .lang > .dropdown-content {
    width: auto
}

header > nav > .main-menu > .right-menu > .lang > .dropdown-content > .active {
    background-color: var(--dark-white-mixed);
    color: var(--text);
    transition: background-color var(--default-time);
    cursor: default
}

.dropdown {
    position: relative;
    cursor: pointer;
    color: var(--text);
    -webkit-tap-highlight-color: transparent
}

.dropdown:hover {
    color: var(--color)
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--default-time) ease-out
}

.dropdown:hover::after {
    content: "";
    display: block;
    height: 20px;
    width: 100%;
    position: absolute;
    left: 0;
    cursor: default
}

.dropdown > .dropdown-name {
    font-size: calc(var(--font-size-2xl) - 2px);
    display: flex;
    align-items: center;
    height: 79.5px;
    gap: 10px
}

.dropdown-content {
    left: 0;
    position: absolute;
    top: 100%;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 16px 0 var(--dark-black-mixed);
    z-index: 999;
    border-radius: 0 0 var(--radius-base) var(--radius-base);
    transition: opacity var(--default-time) ease-out;
    opacity: 0;
    visibility: hidden;
    width: 100%
}

.dropdown-content > .title {
    color: var(--text);
    padding: 10px 15px;
    font-weight: var(--font-weight-bold);
    cursor: default
}

.dropdown-content > .dropdown-item {
    padding: 10px 20px;
    transition: background-color var(--default-time)
}

.dropdown-content > .dropdown-item {
    fill: var(--text);
    display: flex;
    gap: 10px;
    align-items: center
}

.dropdown-content > .dropdown-item:hover {
    background-color: var(--dark-white-mixed);
    color: var(--text);
    transition: background-color var(--default-time)
}

footer {
    display: flex;
    align-items: center;
    width: calc(100% - 60px);
    margin: 0 auto;
    height: 120px;
    padding-top: 2%;
    padding-left: 10%;
    padding-right: 10%;
}

footer > .info {
    display: flex;
    flex-direction: column
}

footer > .info > .logo {
    display: flex;
    align-items: baseline;
    gap: 5px
}

footer > .info > .logo > a {
    display: flex;
    align-items: center;
    gap: 5px
}

footer > .info > .logo > a {
    font-family: "Cunia";
    font-size: var(--font-size-3xl);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    color: var(--third-text)
}

footer > .info .logo > a:hover {
    color: var(--color)
}

footer > .main-menu {
    display: flex;
    margin-left: auto;
    gap: 30px
}

footer > .main-menu > .col {
    display: flex;
    flex-direction: column
}

footer > .main-menu > .col > a {
    color: var(--third-text)
}

footer > .main-menu > .col > a:hover {
    color: var(--color)
}

dialog:modal {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: slidein .5s forwards;
    margin: auto
}

dialog.close:modal {
    animation: slideout .5s forwards
}

dialog::backdrop {
    background: rgb(0 0 0/55%);
    animation: fadein .5s forwards
}

dialog.close::backdrop {
    animation: fadeout .5s forwards
}

@keyframes fadein {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes fadeout {
    from {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

@keyframes slidein {
    from {
        transform: translateY(-5px);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes slideout {
    from {
        transform: translateY(0);
        opacity: 1
    }
    to {
        transform: translateY(-5px);
        opacity: 0
    }
}

.background + main {
    margin-top: -315px
}

.background {
    display: flex;
    align-items: center;
    -webkit-align-items: center;
    position: relative;
    overflow: hidden;
    height: 680px;
    margin-top: -80px
}

.background > img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.background:after {
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    margin-bottom: -1px;
    background: linear-gradient(rgba(39, 23, 23, 0), #180909)
}

main > .server {
    display: flex;
    flex-direction: column
}

main > .server > div {
    padding: 30px 0
}

.server > .description {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    white-space: break-spaces;
    overflow: hidden;
    gap: 20px
}

.description > .text {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    white-space: break-spaces;
    overflow: hidden
}

.description > .text p {
    margin-bottom: 15px;
    width: 100%;
    color: var(--markdown-text)
}

@property --number {
    inherits: false;
    syntax: "<integer>";
    initial-value: 0;
}

#main_header {
    text-align: center;
    font-size: 100px;
}

#main_p {
    text-align: center;
    font-size: 36px;
}

.split_horizontal {
    margin-top: 6%;
    display: flex;
}

.left-column, .right-column {
    padding: 20px;
}

.left-column {
    max-width: 50%;
    padding-right: 3em;
}

.right-column {
    max-width: 50%;
    padding-left: 3em;
}

.card {
    gap: 3%;
    margin-top: 3%;
    display: flex;
    background-color: rgba(205, 92, 92, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.about_p {
    margin-top: 3%;
    font-size: var(--font-size-2xl)
}

#about {
    padding: 20px;
    margin-top: 10%;
}

.about_emoji {
    width: 96px;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.about_h {
    font-size: 32px;
}

.about {
    padding: 20px;
}

#offers {
    margin-top: 6%;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    grid-column-gap: 4%;
    grid-row-gap: 8%;
}

#extra_footer {
    display: block;
    border-top: 1px solid #595959;
    text-align: center;
    padding-top: 1%;
    margin-bottom: 1%;
    margin-left: 260px;
    margin-right: 260px;
}

.back_rect {
    background-color: rgba(205, 92, 92, 0.2);
    border-radius: 10px;
    padding: 5px;
    white-space: pre;
}

@media screen and (max-width: 1100px) {
    main {
        max-width: 1040px;
        width: calc(100% - 50px)
    }

    footer {
        max-width: 1040px;
        width: calc(100% - 50px)
    }

    .back_rect {
        text-wrap: auto;
        overflow-wrap: break-word;
    }
}

@media screen and (max-width: 992px) {
    main {
        max-width: 940px;
        width: calc(100% - 40px)
    }
}

@media screen and (max-width: 768px) {
    main {
        max-width: 720px;
        width: calc(100% - 30px);
        padding-top: 40px;
        min-height: calc(var(--viewport-height) - 300px)
    }

    #extra_footer {
        display: block;
        border-top: 1px solid #595959;
        text-align: center;
        padding-top: 1%;
        margin-bottom: 1%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 576px) {
    main {
        max-width: 530px;
        width: calc(100% - 30px)
    }
}


@media screen and (max-width: 450px) {
    header > nav {
        gap: 0
    }

    #too_long {
        font-size: calc(var(--font-size-3xl) - 15px);
    }
}

@media screen and (max-width: 375px) {
    main {
        max-width: 330px;
        width: calc(100% - 30px)
    }

    #too_long {
        font-size: calc(var(--font-size-3xl) - 25px);
    }
}

@media screen and (max-width: 992px) {
    footer {
        max-width: 940px;
        width: calc(100% - 40px)
    }
}

@media screen and (max-width: 576px) {
    footer {
        max-width: 530px;
        width: calc(100% - 30px)
    }
}

@media screen and (max-width: 375px) {
    footer {
        max-width: 330px;
        width: calc(100% - 30px)
    }

    footer > .info > .logo {
        flex-direction: column
    }
}

@media screen and (max-width: 700px) {
    .background {
        height: 60vh
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: calc(var(--font-size-3xl) - 10px);
    }

    .about_p {
        font-size: calc(var(--font-size-2xl) - 2px);
    }

    .background + main {
        margin-top: -230px;
    }

    #main_header {
        font-size: 60px;
    }

    .grid {
        display: block;
    }

    .about_emoji {
        width: 64px;
    }

    .about_h {
        font-size: var(--font-size-2xl);
    }

    footer > .info > .logo > a {
        font-size: var(--font-size-2xl);
    }

    footer {
        padding-top: 80px;
        max-width: 720px;
        width: calc(100% - 30px);
        height: 200px;
        justify-content: center;
        -webkit-justify-content: center;
        gap: 50px;
    }

    footer > .main-menu {
        margin-left: 0
    }
}


/* Общие стили для скрытия меню на мобильных устройствах */
.hamburger {
    visibility: hidden;
    position: absolute;
    right: 3%;
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--text);
}


@media screen and (max-width: 1025px) {
    header > nav > .main-menu > .left-menu {
        display: none
    }

    header > nav > .main-menu > .left-menu > a {
        width: 100%;
        padding: 5px 10px;
        text-align: center;
        justify-content: center;
        align-items: center;
        -webkit-justify-content: center
    }

    .main-menu {
        display: none; /* Скрываем меню по умолчанию на мобильных */
    }

    header > nav > .main-menu > .right-menu {
        display: none
    }

    .main-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-navbar);
        z-index: 999;
    }

    .left-menu a, .right-menu .dropdown {
        padding: 15px;
        text-align: center;
        width: 100%;
    }

    .hamburger {
        visibility: visible;
        display: block; /* Отображаем кнопку на мобильных устройствах */
        cursor: pointer;
    }

    header > nav > .main-menu.open {
        display: flex;
        flex-direction: column;
        top: 100%;
        left: 0;
        padding: 20px 0;
        position: absolute;
        width: 100%;
        overflow: hidden;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        background-color: var(--bg-navbar);
        box-shadow: 0 8px 10px 0 rgba(0, 0, 0, .3);
        border-radius: 0 0 var(--radius-base) var(--radius-base);
        z-index: 999;
    }

    header > nav > .main-menu.open > .left-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    header > nav > .main-menu > .left-menu > a {
        width: 100%;
        padding: 5px 10px;
        text-align: center;
        justify-content: center;
        align-items: center;
        -webkit-justify-content: center;
    }

    header > nav > .main-menu.open > .right-menu {
        display: flex;
        margin-left: 0;
        flex-direction: column;
        gap: 15px;
        padding-top: 25px;
        width: 100%;
    }

    header > nav > .main-menu.open > div > .dropdown {
        width: 100%;
    }

    header > nav > .main-menu.open > .right-menu > .user {
        background-color: transparent;
    }

    header > nav > .main-menu.open > div > .dropdown > .dropdown-name {
        height: auto;
        padding: 5px 10px;
        text-align: center;
        justify-content: center;
        -webkit-justify-content: center;
    }

    header > nav > .main-menu.open > div > .dropdown > .dropdown-content {
        background-color: transparent;
        backdrop-filter: none;
        box-shadow: unset;
        border-radius: 0;
        align-items: center;
    }

    header > nav > .main-menu.open > div > .dropdown > .dropdown-content > .dropdown-item {
        width: 100%;
        justify-content: center;
        -webkit-justify-content: center;
    }

    header > nav > .main-menu.open > div > .dropdown:hover .dropdown-content {
        display: flex;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        transition: opacity var(--default-time) ease-out;
        position: relative;
    }
}