@font-face {
    src: url("/components/font/berkshireswash-regular.woff2") format("truetype");
    font-family: "berkshireswash-regular";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    src: url("/components/font/helvetica-regular.woff2") format("truetype");
    font-family: "helvetica-regular";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-title: "berkshireswash-regular", sans-serif;
    --font-text: "helvetica-regular", sans-serif;
}

*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

ul,
ol,
li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #ffffff;
}

body {
    background: linear-gradient(
        180deg,
        #e8836b 27.06%,
        #c9a7ff 43.77%,
        #9bd0b8 60.48%
    );

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

main,
footer {
    width: 100%;
    color: rgba(3, 3, 3, 1);
}

img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    vertical-align: top;
}

.bestgoaltt--container__main {
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
}

.bestgoaltt__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
}

/* Header */
.bestgoaltt--header {
    width: 100%;

    background-image: linear-gradient(
            180deg,
            rgba(58, 160, 155, 0.29) 0,
            rgba(232, 131, 107, 0.7) 100%
        ),
        url("/components/picture/header/header-seabed.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bestgoaltt--header__container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bestgoaltt--header__top {
    background-color: #00000099;
    padding: 1rem 0;
    width: 100%;
}

.bestgoaltt--menu {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bestgoaltt--menu__list {
    gap: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bestgoaltt--menu__list-item a {
    color: #fff;
    font-size: 0.85rem;
    line-height: 100%;
    font-family: var(--font-text);
    font-weight: 400;
    padding-bottom: 5px;
    position: relative;
}

.bestgoaltt--menu__links {
    display: flex;
    align-items: center;
    gap: 3.1rem;
}

.bestgoaltt--menu__list-item.active a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #e8f298;
}

.bestgoaltt__welcome--box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.bestgoaltt--header___info {
    max-width: 671px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bestgoaltt--header___image {
    background-image: url(/components/picture/header/header-mermaid.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 639px;
    max-width: 639px;
    width: 100%;
}

.bestgoaltt--header--title_bg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.bestgoaltt--header__title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 0rem;
}

.bestgoaltt--header__title-welcome {
    font-family: var(--font-title);
    font-size: 4rem;
    line-height: 60px;
    color: #fff;
    font-weight: 400;
}

.bestgoaltt--header__text-welcome {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 130%;
    color: #fff;
    font-weight: 400;
}

.bestgoaltt__welcome--btn {
    max-width: 280px;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(90deg, #8d4af9 0%, #e8f398 100%);
    font-family: var(--font-text);
    font-size: 1.25rem;
    line-height: 100%;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 100px;
    position: relative;
    background: linear-gradient(90deg, #8d4af9 0%, #e8f398 100%) padding-box,
        linear-gradient(90deg, #e8f298 0%, #8d4bf9 100%) border-box;
    border: 1px solid transparent;
}

/* About */
.bestgoaltt--about-box {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.bestgoaltt--about--bg_image {
    background-image: url(/components/picture/about/about-bg-coral.webp);
    background-repeat: no-repeat;
    background-position: 120% 100%;
    background-size: contain;
    max-width: 892px;
    width: 100%;
    height: 892px;
    position: absolute;
    z-index: -1;
    right: -10%;
}

.bestgoaltt--about--container {
    display: flex;
    align-items: center;
    gap: 1.875rem;
}

.bestgoaltt--about---description {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bestgoaltt--about----title {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 45px;
    color: #fff;
    text-transform: uppercase;
}

.bestgoaltt--about----subtitle {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 110%;
    color: #fff;
}

.bestgoaltt--about----lists_items {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 130%;
    color: #fff;
    list-style-type: disc;
    margin-left: 2rem;
}

.bestgoaltt--about---image {
    background-image: url(/components/picture/about/about-mermaid.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 707px;
    max-width: 471px;
    width: 100%;
    transform: rotate(-0deg);
    -webkit-transform: rotate(-0deg);
    -moz-transform: rotate(-0deg);
    -ms-transform: rotate(-0deg);
    -o-transform: rotate(-0deg);
}

/* Our Games */
.bestgoaltt__games-box {
    position: relative;
    background-image: linear-gradient(
            rgba(155, 208, 184, 1),
            rgba(114, 186, 154, 0)
        ),
        url(/components/picture/games/game-bg-seabed.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 6.25rem 0;
}

.bestgoaltt__center {
    text-align: center;
}

.bestgoaltt__games--container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bestgoaltt__games---lists {
    display: flex;

    justify-content: center;
    gap: 0.7rem;
}

.bestgoaltt__games---items {
    padding: 1.25rem;
    box-shadow: 0px 5px 25px 0px #00000029;
    border: 1px solid #ffffff40;
    background: #a372e26b;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;

    max-width: 383px;
    width: 100%;
}

.bestgoaltt__games---items_link {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bestgoaltt__games----image {
    max-width: 343px;
    width: 100%;
    height: 240px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.bestgoaltt__games----name {
    color: #fff;
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 100%;
    text-align: center;
}

/* Contact */
.bestgoaltt__contact--box {
    padding: 3rem 0;
}

.bestgoaltt__contact--container {
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    width: 100%;

    border-radius: 20px;
}
.bestgoaltt__contact---info {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;

    gap: 1rem;
    margin: 0 auto;
}

.bestgoaltt__contact---info_text {
    font-size: 1rem;
    line-height: 100%;
    font-family: var(--font-inter-r);
    font-weight: 400;
    color: #626262;
}

.bestgoaltt__contact--flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

iframe {
    width: 100%;
    height: 400px;
    outline: none;
    border: none;
}

/* Contact Form */
.bestgoaltt__contact--form {
    max-width: 570px;
    display: flex;
    width: 100%;
    gap: 1rem;
    flex-direction: column !important;
}

.bestgoaltt__contact---label {
    color: #010416;
    font-size: 1.25rem;
    line-height: 100%;
    font-family: var(--font-inter-r);
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.bestgoaltt_contact__input {
    outline: none;
    height: 36px;
    width: 100%;
    border: none;
    background: #fff;
    font-size: 0.85rem;
    color: #000000;
    font-family: var(--font-text);
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.bestgoaltt_contact__input::placeholder {
    color: #4a4a4a;
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 0.85rem;
}

.bestgoaltt_contact__input {
    padding-right: 35px;
}

.bestgoaltt_contact__input-w {
    max-width: 393px !important;
    width: 100%;
}

textarea {
    resize: none;
}

.bestgoaltt_contact--textarea {
    height: 70px;
    padding: 0.7rem 1.25rem;
    font-size: 1rem;
    resize: none;
}

.bestgoaltt_contact-flexbox {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 393px;
    width: 100%;
}

.bestgoaltt_contact__btn {
    max-width: 280px;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(90deg, #8d4af9 0%, #e8f398 100%);
    font-family: var(--font-text);
    font-size: 1.25rem;
    line-height: 100%;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 100px;
    position: relative;
    background: linear-gradient(90deg, #8d4af9 0%, #e8f398 100%) padding-box,
        linear-gradient(90deg, #e8f298 0%, #8d4bf9 100%) border-box;
    border: 1px solid transparent;
}

.active__block {
    display: flex;
}

.form-result-container {
    margin-top: 15px;
    width: 100%;
}

.form-success-message {
    color: #4caf50;
    background-color: #e8f5e9;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    text-align: center;
    font-size: 1rem;
    line-height: 100%;
    font-family: var(--font-text);
}

.form-error-message {
    color: #f44336;
    background-color: #ffebee;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 100%;
    font-family: var(--font-text);
}

/* Footer */
.bestgoaltt--footer {
    width: 100%;
    padding: 3.1rem 0;
    background-color: #aa87f3;
}

.bestgoaltt--footer__container {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
}

.bestgoaltt--footer__disclaimer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 570px;
    width: 100%;
}

.bestgoaltt--footer___title {
    font-size: 1rem;
    line-height: 100%;
    font-family: var(--font-text);
    font-weight: 400;
    color: #fff;
}

.bestgoaltt--footer___text {
    font-size: 1rem;
    line-height: 120%;
    font-family: var(--font-text);
    font-weight: 400;
    color: #fff;
}

.bestgoaltt--footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    max-width: 495px;
    width: 100%;
}

.bestgoaltt--footer___age {
    background-image: url(/components/picture/footer/footer-icon-age.svg);
    background-repeat: no-repeat;

    max-width: 120px;
    width: 100%;
    height: 71px;
}

.bestgoaltt--footer___nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bestgoaltt--footer___nav-items a {
    font-size: 1rem;
    line-height: 100%;
    font-family: var(--font-text);
    font-weight: 400;
    color: #fff;
    cursor: pointer;
}

.bestgoaltt--footer___copyright {
    font-size: 1rem;
    line-height: 100%;
    font-family: var(--font-text);
    font-weight: 400;
    color: #fff;
}

/* Cookies */
.bestgoaltt--privacy__text {
    padding: 2rem 0;
}
.bestgoaltt--privacy__text p {
    color: #fff;
    font-family: var(--font-text);
    margin-bottom: 1rem;
}

.bestgoaltt--privacy__text h1 {
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 2.5rem;
}
.bestgoaltt--privacy__text h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.4rem;
}

/* Burger */
#bestgoalttMenuToggle {
    display: none;
    position: absolute;
    top: 0;
    left: 0rem;
    z-index: 999 !important;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    height: 58px;
}

#bestgoalttMenuToggle a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
}

#bestgoalttMenuToggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin-bottom: 5px;
    right: 0rem;
    top: 0.2rem;
    position: relative;
    background: #fff;
    border-radius: 3px;
    z-index: 1001 !important;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

.no-scroll {
    overflow: hidden !important; /* Отключаем прокрутку с приоритетом */
}

#bestgoalttMenuToggle span:first-child {
    transform-origin: 0% 0%;
}

#bestgoalttMenuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#bestgoalttMenu {
    position: absolute;
    max-width: 100vw;
    width: 100%;
    z-index: 1000;
    margin: -75px 0 0 0px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #101010;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    height: 130vh;
    -webkit-transform: translate(-100%, 0);
    -moz-transform: translate(-100%, 0);
    -ms-transform: translate(-100%, 0);
    -o-transform: translate(-100%, 0);
}

#bestgoalttMenu li {
    text-align: center;
    padding: 20px 50px;
    font-size: 22px;
}

#bestgoalttMenuToggle input:checked ~ ul {
    transform: none;
}

#bestgoalttMenu a {
    margin: 0 0 0 2rem;
}

.burger-button {
    display: block;
    width: 42px;
    height: 32px;
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    opacity: 1; /* Изменили с 0 на 1 */
    z-index: 1002 !important;
    -webkit-touch-callout: none;
    background: transparent;
    border: none;
    padding: 0;
}

/* Добавляем класс для открытого состояния */
.burger-button.active span:first-child {
    transform: rotate(45deg) translate(4px, 0px);
    background: #f9f9f9;
    -webkit-transform: rotate(45deg) translate(4px, 0px);
    -moz-transform: rotate(45deg) translate(4px, 0px);
    -ms-transform: rotate(45deg) translate(4px, 0px);
    -o-transform: rotate(45deg) translate(4px, 0px);
}

.burger-button.active span:nth-child(2) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

.burger-button.active span:last-child {
    transform: rotate(-45deg) translate(-1px, 2px);
    -webkit-transform: rotate(-45deg) translate(-1px, 2px);
    -moz-transform: rotate(-45deg) translate(-1px, 2px);
    -ms-transform: rotate(-45deg) translate(-1px, 2px);
    -o-transform: rotate(-45deg) translate(-1px, 2px);
}

/* Обновляем селектор для checked состояния */
#bestgoalttMenuToggle .active ~ #bestgoalttMenu {
    transform: none;
}

/* Others Styles */
.bestgoaltt__welcome-page--box {
    width: 100%;
    padding: 2.5rem 0 5rem;
}

.bestgoaltt--header-page___info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.bestgoaltt--center {
    text-align: center;
}

.bestgoaltt__title-gamebox {
    max-width: 1080px;
    border: none;
    width: 100%;
    height: 615px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

/* Slider games */
.bestgoaltt-games-slider {
    width: 100%;
    padding: 20px 0;
    display: none;
}

.bestgoaltt-games-slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: transparent;
    max-width: 14px;
    width: 100%;
    height: 14px;
    border: 1px solid #ffff !important;
    margin-top: 1.25rem !important;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #fff;
}

.swiper-wrapper {
    margin-bottom: 1.25rem !important;
}

.bestgoaltt--header_page {
    width: 100%;
}

.bestgoaltt--page_bg {
    background: linear-gradient(180deg, #e8836b 0%, #c9a7ff 25%, #9bd0b8 50%);
}

/* Media */
@media screen and (max-width: 1280px) {
    .bestgoaltt--container__main {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 1120px) {
    .bestgoaltt--container__main {
        padding: 0 1rem;
    }

    .bestgoaltt--about--container {
        flex-direction: column;
    }

    .bestgoaltt--about--bg_image {
        bottom: 0;
        right: 0;
        max-width: 800px;
        width: 100%;
        height: 800px;
        margin: 0 auto;
        background-position: center;
    }

    .bestgoaltt--about---image {
        height: 640px;
    }

    .bestgoaltt__welcome--box {
        flex-direction: column-reverse;
        align-items: center;
        padding: 1.25rem 0;
    }

    .bestgoaltt--header___info {
        max-width: 100%;
        width: 100%;
    }

    .bestgoaltt--header___image {
        height: 440px;
        max-width: 440px;
        width: 100%;
    }
}

@media screen and (max-width: 1060px) {
    .bestgoaltt__games---lists {
        flex-wrap: wrap;
    }

    .bestgoaltt--footer__container {
        flex-direction: column;
    }

    .bestgoaltt--footer__disclaimer {
        max-width: 100%;
        width: 100%;
    }

    .bestgoaltt--footer__links {
        align-items: center;
    }
}
@media screen and (max-width: 810px) {
    .bestgoaltt-games-slider {
        display: flex;
    }

    .bestgoaltt__welcome-page--box {
        padding: 1.25rem 0 2.5rem;
    }

    .bestgoaltt__games--container {
        gap: 0;
    }

    .bestgoaltt__games---hide,
    .bestgoaltt--menu__list {
        display: none;
    }

    #bestgoalttMenuToggle {
        display: flex;
    }

    .bestgoaltt--about-box,
    .bestgoaltt__games-box {
        padding: 1.875rem 0;
    }

    .bestgoaltt--about---image {
        height: 540px;
        max-width: 360px;
        width: 1005;
    }

    .bestgoaltt--about--bg_image {
        bottom: 7%;
        right: 0;
        max-width: 548px;
        width: 100%;
        height: 548px;
        background-position: center;
    }
}

@media screen and (max-width: 625px) {
    .bestgoaltt--header__title-welcome {
        font-size: 2.25rem;
        line-height: 100%;
    }

    .bestgoaltt--header__text-welcome {
        font-size: 0.85rem;
    }

    .bestgoaltt--about----title {
        font-size: 1.5rem;
    }
    .bestgoaltt--footer___nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .bestgoaltt--footer___age {
        max-width: 51px;
        width: 100%;
        height: 30px;
        background-size: cover;
    }
}

@media screen and (max-width: 400px) {
    .bestgoaltt--header___image {
        height: 313px;
        max-width: 313px;
        width: 100%;
    }

    .bestgoaltt--about--bg_image {
        background-size: cover;
    }
    .bestgoaltt--header__logo {
        height: auto;
        max-width: 175px;
        width: 100%;
    }

    .burger-button {
        top: 0.5rem;
    }
}
