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

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

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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
}

:root {
    --header-offset: 0;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    line-height: 1;
    display: flex;
    flex-direction: column;
    height: 100svh;
    position: relative;
}

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

.container {
    width: 100%;
    max-width: 1728px;
    margin: 0 auto;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 660px;
    color: #fff;
    background: url("../img/bg.webp") center center/cover no-repeat;
    padding: 0 20px 30px;
    overflow: hidden;
}

.hero__man {
    position: absolute;
    z-index: 3;
    width: 100%;
    max-width: 383px;
    aspect-ratio: 383 / 440;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
}

.hero__flag {
    position: absolute;
    top: 0;
    z-index: 2;
    height: auto;
    display: block;
    width: 150%;
    left: 50%;
    transform: translateX(-50%);
}

.hero__mask {
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 240px;
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    pointer-events: none;
}

.hero__mask::before,
.hero__mask::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero__mask::before {
    inset: -28% -7% -34% -7%;
    background:
        radial-gradient(75% 95% at 50% 58%, rgba(30, 84, 184, 0.3) 0%, rgba(30, 84, 184, 0.1) 45%, rgba(30, 84, 184, 0) 78%),
        radial-gradient(55% 85% at 50% 18%, rgba(7, 24, 102, 0.86) 0%, rgba(7, 24, 102, 0) 74%),
        radial-gradient(46% 72% at 34% 28%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 68%),
        radial-gradient(46% 72% at 66% 28%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(to top,
            rgba(0, 4, 30, 0.998) 0%,
            rgba(0, 9, 46, 0.995) 30%,
            rgba(1, 15, 70, 0.96) 62%,
            rgba(1, 20, 88, 0.82) 84%,
            rgba(1, 24, 98, 0.62) 100%);
    filter: blur(22px);
    opacity: 1;
}

.hero__mask::after {
    left: -8%;
    right: -8%;
    bottom: -34%;
    height: 145%;
    background:
        radial-gradient(58% 72% at 50% 46%, rgba(56, 150, 255, 0.14) 0%, rgba(56, 150, 255, 0) 72%),
        radial-gradient(36% 56% at 20% 44%, rgba(34, 112, 230, 0.08) 0%, rgba(34, 112, 230, 0) 74%),
        radial-gradient(36% 56% at 80% 44%, rgba(34, 112, 230, 0.08) 0%, rgba(34, 112, 230, 0) 74%);
    filter: blur(42px);
    opacity: 0.58;
}

.hero__content {
    position: relative;
    z-index: 5;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 354px;
}

.hero__title {
    font-size: clamp(34px, 15.5vw, 66px);
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
}

.hero__description {
    font-size: clamp(10px, 10.5vw, 24px);
    font-weight: 500;
    line-height: 1.1;
    text-align: left;
}

.hero__social {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
}

.hero__social > a {
    transition: all 0.2s ease;
}

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

.hero__social > a > img {
    aspect-ratio: 323 / 94;
    width: 100%;
}

.header {
    position: sticky;
    top: 0;
    background: #1D4268;
    z-index: 100;
}

.anchor-offset {
    display: block;
    height: 0;
    padding-top: var(--header-offset, 96px);
    margin-top: calc(var(--header-offset, 96px) * -1);
    visibility: hidden;
    pointer-events: none;
}

.header__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px;
    text-transform: uppercase;
}

.footer {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    background: linear-gradient(to bottom, #0D1C3A 0%, #233254 46%, #264FAE 95%);
}

.footer__flag {
    position: absolute;
    z-index: 0;
    width: 130%;
    height: auto;
    display: block;
    left: -15%;
    right: 15%;
    bottom: 34px;
}

.footer__content {
    position: relative;
    z-index: 1;
    padding: 116px 16px 222px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(32px, 3.0vw, 48px);
    color: #fff;
    font-size: clamp(32px, 4.0vw, 96px);
    font-weight: 700;
    line-height: 1.1;
}

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

.footer__copyright {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: clamp(10px, 1.5vw, 16px);
    color: #fff;
    background: #1D4268;
}

.footer__copyright > p {
    text-align: center;
}

.content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-test {
    height: 115vh;
    background: green;
}

.btn {
    color: #fff;
    border-radius: clamp(8px, 1.5vw, 12px);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.header__btn {
    font-size: clamp(12px, 2.3vw, 20px);
    font-weight: 500;
    padding: clamp(8px, 2vw, 18px);
    text-align: center;
}

.header__btn:nth-of-type(1) {
    background: #276AA5;
    min-width: 80px;
}

.header__btn:nth-of-type(2) {
    background: #276AA5;
    min-width: 80px;
}

.header__btn:nth-of-type(3) {
    background: #7EAC2F;
    min-width: 110px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        border-color: #fff;
    }
}

.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);
}

@media (min-width: 412px) {
    .header__btn:nth-of-type(3) {
        margin-left: auto;
    }
}

@media (min-width: 768px) {
    .hero {
        height: 454px;
        padding: 48px 36px;
    }

    .hero__flag {
        width: 80%;
        transform: translateX(-90%);
    }

    .hero__man {
        width: 390px;
        aspect-ratio: 449 / 514;
        height: auto;
        transform: translateX(-95%);
        top: auto;
        bottom: 0;
        max-width: 100%;
    }

    .hero__mask {
        height: 50px;
        bottom: -20px;
    }

    .hero__content {
        position: absolute;
        left: 50%;
        transform: translateX(-10%);
        margin-top: 0;
        gap: 24px;
        max-width: 374px;
    }

    .hero__title {
        font-size: 70px;
    }

    .hero__description {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.1;
        text-align: left;
    }

    .hero__social {
        margin-top: 7px;
    }
}

@media (min-width: 834px) {
    .hero__man {
        transform: translateX(-105%);
    }

    .hero__content {
        left: 50%;
        transform: translateX(-5%);
    }

    .header__content {
        height: 90px;
        padding: 14px 23px;
        gap: 28px;
    }

    .header__btn:nth-of-type(1) {
        min-width: 192px;
    }

    .header__btn:nth-of-type(2) {
        min-width: 192px;
    }

    .header__btn:nth-of-type(3) {
        min-width: 208px;
    }

    .footer__content {
        padding-top: 34px;
        padding-bottom: 165px;
    }

    .footer__flag {
        position: absolute;
        z-index: 0;
        width: 120%;
        height: auto;
        display: block;
        left: -10%;
        right: 10%;
        bottom: 0;
    }
}

@media (min-width: 1024px) {
    .hero__flag {
        width: 60%;
        transform: translateX(-90%);
    }
}

@media (min-width: 1280px) {
    .hero {
        height: 535px;
        padding: 103px 36px;
    }

    .hero__man {
        position: absolute;
        z-index: 3;
        width: 449px;
        aspect-ratio: 449 / 514;
        display: block;
        left: 50%;
        transform: translateX(-110%);
    }

    .hero__content {
        position: absolute;
        left: 50%;
        transform: translateX(0%);
        margin-top: 0;
        gap: 32px;
        max-width: 507px;
    }

    .hero__title {
        font-size: 96px;
    }

    .hero__description {
        font-size: 32px;
        font-weight: 500;
        line-height: 1.1;
        text-align: left;
    }

    .hero__social {
        margin-top: 0;
        gap: 56px;
    }

    .footer__flag {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

@media (min-width: 1728px) {
    .header__content {
        justify-content: flex-end;
    }

    .header__btn:nth-of-type(3) {
        margin-left: 39px;
    }

    .footer__copyright {
        padding: 27px;
    }

    .footer__content {
        padding-top: 108px;
        padding-bottom: 276px;
    }

    .footer__flag {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 8px;
    }

    .hero {
        position: relative;
        height: 803px;
        padding: 56px;
    }

    .hero__mask {
        height: 5vh;
    }

    .hero__man {
        width: 837px;
        aspect-ratio: 837 / 803;
        transform: translateX(-100%);
    }

    .hero__content {
        transform: translateX(0);
        gap: 48px;
        max-width: 714px;
    }

    .hero__title {
        font-size: 128px;
    }

    .hero__description {
        font-size: 48px;
        font-weight: 900;
    }

    .hero__social {
        margin-top: 0;
        gap: 80px;
    }
}
