/*------------------------------------------------------- CSS Reset START*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: opacity 0.2s ease; 
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}
img, svg {
    width: 100%;
}
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}
button {
    background: none;
    border: none;
    outline: none;
}
button,
[role="button"] {
    cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #FFA328;
    outline-offset: 2px;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
button, 
a, 
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, 
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

ul, ol {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
[hidden] {
    display: none !important;
}
/*------------------------------------------------------- CSS Reset END*/
.dfsbaic {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dfcaic {
    display: flex;
    align-items: center;
    justify-content: center;
}
:root {
    /* Основные цвета */
    --red: #D34F34;
    --yellow: #FFA328;
    --green: #8BC63F;
    --gray: #E5E5E5;
    --black: #2A2A2A;
    /* Hover цвета */
    --red-hover: #DA6049;
    --yellow-hover: #FFAC48;
    --green-hover: #A2D270;
    --gray-hover: #F5F5F5;
    --black-hover: #484848;
    /* Active цвета */
    --red-active: #C3462F;
    --yellow-active: #F6992A;
    --green-active: #7CB640;
    --gray-active: #DCDCDC;
    --black-active: #222222;
}
h1 {
    font-size: clamp(48px, 4vw, 75px);
}
h2 {
    font-size: clamp(40px, 3.6vw, 64px);
}
h3 {
    font-size: clamp(20px, 2vw, 32px);
}
h4 {
    font-size: clamp(18px, 1.4vw, 20%);
}
body {
    background-color: var(--black);
    color: var(--gray);
}
section, header, footer {
    max-width: 2560px;
    margin: 0 auto;
}
.container {
    max-width: 1315px;
    width: 90%;
    margin: 0 auto;
}
.green_btn {
    max-width: max-content;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--green);
    color: var(--black);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 128%;
    border-radius: 8px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1), inset 0 -4px 0 0 rgba(0, 0, 0, 0.1);
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.green_btn img {
    width: 32px;
    height: 32px;
}
/* --------------------------------------------------- HERO START */
body {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero {
    background-image: url("../img/hero-img.png");
    background-size: cover;
    background-size: 100%;
    background-repeat: no-repeat;
    width: 100%;
    flex-grow: 1;
    padding-bottom: 70px;
    background-size: cover;
    background-position-x: center;

}
.hero .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 33px;
}
.hero_text-wrapper {
    max-width: 925px;
    background: linear-gradient(90deg, rgba(42, 42, 42, 0.05) 0%, #270000 50%, rgba(42, 42, 42, 0.05) 100%);
    padding: 10px;
    border-radius: 30px;
}
.hero_title {
    color: var(--red);
    margin-bottom: 20px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    -webkit-text-stroke: 6px var(--black);
    paint-order: stroke; 
    text-align: center;
}
.hero_text {
    line-height: 140%;
    font-size: 20px;
    font-size: clamp(16px, 1.2vw, 20px);
    text-align: center;
    /* max-width: 520px; */
}
.hero_text:last-child {
    margin-top: 20px;
}
/* --------------------------------------------------- HERO END */
/* --------------------------------------------------- FOOTER START */
.footer {
    padding-top: 45px;
    padding-bottom: 45px;
    z-index: 100;
    position: relative;
    width: 100%;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(25px);
    background: linear-gradient(90deg, rgba(42, 42, 42, 0.4) 0%, rgba(42, 42, 42, 0.7) 50%, rgba(42, 42, 42, 0.4) 100%);
    z-index: -1;
    pointer-events: none;
}
.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.footer_logo {
    max-width: 61px;
}
.footer_socials {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer_social-link {
    display: block;
    width: 100%;
    max-width: 26px;
}
.footer_social-link svg {
    stroke: #E5E5E5;
    transition: all 0.2s ease;
}
.footer_copyright {
    font-weight: 400;
    font-size: 14px;
    line-height: 121%;
    opacity: 0.5;
    text-align: center;
}


/* --------------------------------------------------- FOOTER END */
.error-section {
    background-image: url(../img/2560-3988.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 30px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Nozhik;
    box-sizing: border-box;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.error-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.error-text {
    font-size: clamp(40px, 3.6vw, 64px);
    color: var(--yellow);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
}
.error-number {
    font-size: clamp(50px, 10vw, 228px);
    color: var(--red);
    text-align: center;
}
.to-main-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
    margin-top: 90px;
    max-width: max-content;
    color: var(--gray);
    fill: var(--gray);
    padding: 5px;
    transition: all 0.3s ease;
}
.to-main-btn svg {
    width: 22px;
    height: 10px;
    fill: inherit;
}
.to-main-btn-text {
    font-family: Stetica;
    color: inherit;
}
/* --------------------------------------------------- ANIMATIONS START */
@media(hover:hover) {
    .green_btn:hover {
        background-color: var(--green-hover);
        transition: all 0.3s ease;
    }
    .footer_social-link:hover svg {
        stroke: var(--green-hover);
    }
    .to-main-btn:hover {
        color: var(--green-hover);
        fill: var(--green-hover);
    }
}


*:active {
    transition: all 0s ease;
}
.green_btn:active {
    background-color: var(--green-active);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
}
.footer_social-link:active svg {
    stroke: var(--green-active);
}
.to-main-btn:active {
    color: var(--green-active);
    fill: var(--green-active);
}
/* ----------------------------------------------------------------------------------- ANIMATIONS END */
@media(min-width:2400px) {
    .hero {
        padding-bottom: 3vw;
    }
    .hero .container {
        max-width: 55vw;
        gap: 2.5vw;
    }
    .hero_text-wrapper {
        max-width: 100%;
    }
    .hero_title {
        font-size: 3.5vw;
        -webkit-text-stroke: 0.1em var(--black);
        margin-bottom: 1.5vw;
    }
    .hero_text {
        font-size: 1vw;
    }
    .green_btn {
        font-size: 1vw;
        padding: 0.5em 1em;
        border-radius: 0.4em;
        box-shadow: 0 0.3em 0.3em 0 rgba(0, 0, 0, 0.1), inset 0 -0.3em 0 0 rgba(0, 0, 0, 0.1);
    }
    .footer {
        padding-top: 1vw;
        padding-bottom: 1vw;
    }
    .footer_logo {
        max-width: 4vw;
        width: 100%;
    }
    .footer_socials {
        gap: 0.6vw;
    }
    .footer_social-link {
        display: block;
        width: 100%;
        max-width: 1.5vw;
    }
    .footer .container {
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 3vw;
        row-gap: 1vw;
    }
    .footer_copyright {
        font-size: 0.8vw;
        display: block;
        width: 100%;
    }
}
@media(max-width:1024px) {
    .error-section {
        min-height: 95svh;
    }
    .container {
        width: 100%;
        padding: 0 15px;
    }
    .hero {
        padding-bottom: 20px;
    }
    .hero .container {
        gap: 15px;
    }
    .hero_title {
        margin-bottom: 10px;
    }
    .green_btn, .games_game-description, .social_tag {
        font-size: 16px;
    }
    .green_btn {
        padding: 8px 16px;
        gap: 5px;
    }
    .green_btn img {
        width: 22px;
        height: 22px;
    }
    .footer {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .footer .container {
        gap: 15px;
        flex-direction: column;
    }
    .hero_text-wrapper {
        width: 100%;
        margin: 0 auto;
    }
    .to-main-btn {
        margin-top: 20px;
    }

}
/* ---------------------------------------------------------------------------------------------- 768 */
@media(max-width:768px) {
    .hero_title {
        font-size: clamp(40px, 4vw, 75px);
    }
    .footer_logo {
        max-width: clamp(85px, 20vw, 150px);
    }
}