@font-face {
    font-family: "Age Warning Montserrat";
    src: url("../fonts/montserrat-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: "Age Warning Montserrat";
    src: url("../fonts/montserrat-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: fallback;
}

html.age-warning-open,
html.age-warning-open body {
    overflow: hidden;
}

.age-warning {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #000;
    font-family: "Age Warning Montserrat", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    scrollbar-width: none;
}

.age-warning[hidden] {
    display: none;
}

.age-warning::-webkit-scrollbar {
    display: none;
}

.age-warning *,
.age-warning *::before,
.age-warning *::after {
    box-sizing: border-box;
}

.age-warning img {
    display: block;
    max-width: 100%;
    height: auto;
}

.age-warning__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.age-warning__logo {
    position: relative;
    z-index: 2;
    align-self: center;
    margin: 8px 0;
}

.age-warning__decoration {
    position: relative;
}

.age-warning__decoration img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.age-warning__container {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 30px;
}

.age-warning .age-warning__image {
    width: 550px;
    margin-top: 100px;
}

.age-warning__answer {
    min-height: 90px;
}

.age-warning__title {
    max-width: 950px;
    margin: 0 0 32px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.age-warning__description {
    max-width: 530px;
    margin: 0 0 32px;
    color: #595959;
    font-size: 20px;
    text-align: center;
}

.age-warning__actions {
    display: flex;
    gap: 8px;
}

.age-warning__button {
    display: block;
    width: 146px;
    padding: 14px 16px;
    border: 1px solid #CD1022;
    border-radius: 8px;
    background: #CD1022;
    color: #fff;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.age-warning__button--no {
    border-color: #BEBEBE;
    background: #BEBEBE;
    color: #000;
}

.age-warning__button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

@media (hover: hover) {
    .age-warning__button:hover {
        background: #BC0E1F;
        opacity: 1;
    }

    .age-warning__button--no:hover {
        border-color: #A0A0A0;
        background: #A0A0A0;
    }
}

.age-warning .age-warning__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 1279px) {
    .age-warning__title {
        font-size: 24px;
    }
}

@media (max-width: 1023px) {
    .age-warning__container {
        min-height: calc(100vh - 76px);
        padding: 0 24px;
    }

    .age-warning .age-warning__image {
        margin-top: 104px;
    }

    .age-warning__answer {
        margin-bottom: 54px;
    }
}

@media (max-width: 767px) {
    .age-warning .age-warning__image {
        margin-top: 60px;
    }

    .age-warning__answer {
        margin-bottom: 32px;
    }
}

@media (max-width: 575px) {
    .age-warning__container {
        padding: 0 16px;
    }

    .age-warning .age-warning__image {
        margin-top: 94px;
    }

    .age-warning__title {
        font-size: 16px;
    }

    .age-warning__description {
        font-size: 14px;
    }
}
