*, :after, :before {
    box-sizing: inherit;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    box-sizing: border-box
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

picture {
    display: block
}

img {
    display: block;
    border: none
}

img, svg {
    vertical-align: middle
}

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

:focus {
    outline: none
}

button {
    all: unset
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    display: flex;
    flex-direction: column;
    height: 100svh;
    position: relative;
    background: linear-gradient(to bottom, #000D27 0%, #002DA0 48%, #000D27 100%);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: calc(var(--var-board-w) * var(--logo-wrapper-w-coeff));
    height: calc(var(--var-board-w) * var(--logo-wrapper-w-coeff));
    position: relative;
}

.logo {
    aspect-ratio: 1;
    width: calc(var(--var-board-w) * var(--logo-w-coeff));
}

.line-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title {
    position: relative;
    z-index: 2;
    font-size: calc(var(--var-board-w) * var(--title-fs-coeff));
    text-align: center;
    color: #fff;
    line-height: 1.44;
    text-transform: uppercase;
    width: auto;
    flex: 0 0 auto;
    text-shadow: 0 0 11px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    font-style: italic;
}

.line__left,
.line__right {
    position: relative;
    flex: 1 1 0;
    width: 100%;
}

.line__left:before,
.line__right:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}

.line--white,
.line--white:before {
    background: #fff;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.5);
}

.line--green,
.line--green:before {
    background: #41FF02;
    box-shadow: 0 0 16px 0 rgba(65, 255, 2, 1);
}

.line__left:before {
    right: 0;
}

.line__right:before {
    left: 0;
}

.btn {
    position: relative;
    aspect-ratio: 530 / 144;
    max-width: 530px;
    height: fit-content;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--var-board-w) * var(--btn-w-coeff));
    font-size: calc(var(--var-board-w) * var(--btn-w-coeff) * var(--btn-fs-coeff));
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    text-transform: uppercase;
    font-weight: 900;
}

.btn > span {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: linear-gradient(to bottom, #011C5E 0%, #023AC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.btn:after,
.btn:before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.2s ease;
    -webkit-filter: drop-shadow(0 0 30px rgba(7, 255, 82, 1));
    filter: drop-shadow(0 0 30px rgba(7, 255, 82, 1));
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: opacity, filter;
}

.btn:before {
    background: image-set(
            url("../../img/btn/btn@1x.webp") 1x,
            url("../../img/btn/btn@2x.webp") 2x
    ) center/cover no-repeat;
    opacity: 1;
}

.btn:after {
    background: image-set(
            url("../../img/btn/btn_hover@1x.webp") 1x,
            url("../../img/btn/btn_hover@2x.webp") 2x
    ) center/cover no-repeat;
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover::before {
        opacity: 0;
    }

    .btn:hover::after {
        opacity: 1;
    }
}

@supports (-webkit-touch-callout: none) {
    .btn:before,
    .btn:after {
        -webkit-animation: ios-btn-shadow-refresh 0.12s ease-out 1;
        animation: ios-btn-shadow-refresh 0.12s ease-out 1;
    }
}

@-webkit-keyframes ios-btn-shadow-refresh {
    0%,
    100% {
        -webkit-transform: translateZ(0);
    }
    50% {
        -webkit-transform: translateZ(0) scale(1.0001);
    }
}

@keyframes ios-btn-shadow-refresh {
    0%,
    100% {
        transform: translateZ(0);
    }
    50% {
        transform: translateZ(0) scale(1.0001);
    }
}

.btn-pulse {
    -webkit-animation: pulse 1.5s ease-in-out infinite;
    animation: pulse 1.5s ease-in-out infinite;
}

.btn:active {
    -webkit-animation: none;
    animation: none;
    transform: scale(0.98) translateY(1px);
}

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

.notify {
    position: fixed;
    right: 1%;
    top: 1%;
    z-index: 100;
    background: #41FF02;
    padding: clamp(4px, min(1vw, 2svh), 18px);
    border-radius: clamp(4px, min(1vw, 2svh), 12px);
    opacity: 0;
    transform: translateY(-120%);
    pointer-events: none;
    transition: transform 300ms ease, opacity 300ms ease;
    font-size: clamp(12px, min(1vw, 2svh), 18px);
}

.notify.show {
    opacity: 1;
    transform: translateY(0);
}

.notify > span {
    display: inline-block;
    background: linear-gradient(to bottom, #011C5E 0%, #023AC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.social {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.social > a > img {
    display: block;
    width: 100%;
    height: auto;
}

.social > a {
    display: block;
    transform-origin: center;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .social > a:hover {
        transform: scale(1.06);
    }
}

@media (orientation: portrait) and (min-width: 0px) {
    :root {
        --logo-w-coeff: 1;
        --btn-w-coeff: 0.5;
        --btn-fs-coeff: 0.1;
        --title-fs-coeff: 0.0487;
        --main-gap-coeff: 0.025;
        --logo-wrapper-w-coeff: 0.5661;
    }

    .main {
        background: url("../../img/bg/bg_portrait_mobile.webp") center 80% no-repeat;
        background-size: 100% 50%;
    }

    .logo-wrapper--landscape {
        display: none;
    }

    .logo-wrapper {
        flex: 1;
        width: 100%;
    }

    .content-wrapper {
        flex: 1.2;
    }

    .content {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        margin-bottom: clamp(14px, min(10vw, 8svh), 50px);
    }

    .title {
        white-space: break-spaces;
    }

    .line__left,
    .line__right {
        height: 2px;
    }

    .line__left:before,
    .line__right:before {
        width: 6px;
        height: 6px;
    }

    .social {
        margin-top: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: clamp(14px, min(2vw, 2.5svh), 24px);
        padding: clamp(10px, min(6vw, 4svh), 34px) 0;
    }

    .social > a {
        aspect-ratio: 175 / 57;
        width: clamp(40px, min(30vw, 17svh), 175px);
    }

    .social > img {
        aspect-ratio: 1;
        display: block;
        width: clamp(12px, min(5vw, 3svh), 34px);
        height: auto;
    }
}

@media (orientation: portrait) and (min-width: 768px) and (min-height: 800px) {
    .main {
        background: url("../../img/bg/bg_portrait_tablet.webp") center/cover no-repeat;
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    :root {
        --logo-w-coeff: 0.6976;
        --btn-w-coeff: 0.477;
        --btn-fs-coeff: 0.09;
        --title-fs-coeff: 0.0387;
        --main-gap-coeff: 0.025;
        --logo-wrapper-w-coeff: 0.5661;
    }

    .logo-wrapper--portrait {
        display: none;
    }

    .main {
        justify-content: center;
        gap: calc(var(--var-board-w) * var(--main-gap-coeff));
        background: url("../../img/bg/bg_landscape_mobile.webp") center/cover no-repeat;
    }

    .content-wrapper {
        display: contents;
    }

    .content {
        display: flex;
        flex-direction: row;
    }

    .title {
        white-space: nowrap;
    }

    .line__left,
    .line__right {
        height: 4px;
    }

    .line__left:before,
    .line__right:before {
        width: 11px;
        height: 11px;
    }

    .social {
        position: absolute;
        left: 2%;
        bottom: 4%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: clamp(14px, min(2vw, 2.5svh), 24px);
    }

    .social > a {
        aspect-ratio: 175 / 57;
        width: clamp(40px, min(11vw, 18svh), 175px);
    }

    .social > img {
        aspect-ratio: 1;
        display: block;
        width: clamp(12px, min(2vw, 3svh), 34px);
        height: auto;
    }
}

@media (orientation: landscape) and (min-width: 1024px) {
    .main {
        background: url("../../img/bg/bg_landscape_tablet.webp") center/cover no-repeat;
    }
}

@media (orientation: landscape) and (min-width: 1440px) {
    .main {
        background: url("../../img/bg/bg_landscape_desktop.webp") center/cover no-repeat;
    }
}
