@font-face {
  font-family: Gilroy-Regular;
  src: url(/static/fonts/Geometria-Regular.ttf);
}

@font-face {
  font-family: Gilroy-Medium;
  src: url(/static/fonts/Geometria-Medium.ttf);
}

@font-face {
  font-family: Gilroy-Bold;
  src: url(/static/fonts/Geometria-Bold.ttf);
}

:root {
    --base1-bg: #F4F6FA;
    --base1-surface: rgba(255, 255, 255, 0.92);
    --base1-surface-strong: #FFFFFF;
    --base1-ink: #171D24;
    --base1-muted: #667085;
    --base1-line: rgba(23, 29, 36, 0.08);
    --base1-accent: #DA764B;
    --base1-accent-strong: #C76236;
    --base1-accent-soft: #FFE3D6;
    --base1-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

html {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 227, 214, 0.9), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(177, 220, 255, 0.72), transparent 24%),
        linear-gradient(180deg, #F7F8FB 0%, #EDF2F7 100%);
}

body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: transparent;
    color: var(--base1-ink);
    display: none;
}

body,
button,
input[type="text"]::placeholder,
input[type="text"],
p,
body * {
    font-family: "Gilroy-Regular", sans-serif;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

button,
a {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
b {
    font-family: "Gilroy-Medium", sans-serif;
}

.main_content {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

.main_content::before,
.main_content::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.9;
    z-index: 0;
}

.main_content::before {
    top: 92px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 226, 214, 0.9) 0%, rgba(255, 226, 214, 0) 72%);
}

.main_content::after {
    right: -60px;
    bottom: 90px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(167, 216, 255, 0.8) 0%, rgba(167, 216, 255, 0) 72%);
}

.base1 {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    padding: 20px;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.poster {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 34px;
    color: #FFFFFF;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--base1-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-image 0.35s ease;
}

.poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 24, 40, 0.08) 0%, rgba(16, 24, 40, 0.58) 100%),
        linear-gradient(135deg, rgba(218, 118, 75, 0.14) 0%, rgba(13, 17, 23, 0.08) 100%);
}

.poster::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 160px;
    height: 160px;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(16deg);
}

.poster p,
.poster span {
    position: relative;
    z-index: 1;
}

.poster p {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.02;
    font-family: Gilroy-Bold, "Gilroy-Medium", sans-serif;
    letter-spacing: -0.02em;
    max-width: 380px;
}

.poster span {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.7;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.82);
}

form {
    position: relative;
    height: 100%;
    padding: 22px 28px 88px;
    margin-right: 18px;
    border-radius: 34px;
    background: var(--base1-surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--base1-shadow);
    overflow: auto;
}

form::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 226, 214, 0.45), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 255, 0.92) 100%);
    z-index: 0;
}

form > * {
    position: relative;
    z-index: 1;
}

form .go_back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--base1-muted);
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 29, 36, 0.06);
    transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

form .go_back:hover {
    transform: translateY(-1px);
    color: var(--base1-ink);
    background: var(--base1-surface-strong);
}

form .go_back img {
    height: 13px;
    opacity: 0.7;
}

form .title {
    margin: 34px 0 36px;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

form .title p {
    margin: 0 0 10px;
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.02;
    font-family: Gilroy-Bold, "Gilroy-Medium", sans-serif;
    letter-spacing: -0.02em;
    color: var(--base1-ink);
}

form .title span {
    display: block;
    max-width: 520px;
    color: var(--base1-muted);
    font-size: 17px;
    line-height: 1.7;
}

form .go_left_content {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

form.go_left .go_left_content {
    opacity: 0;
    transform: translateX(-70%);
}

form .loader {
    border: 5px solid rgba(218, 118, 75, 0.14);
    border-top: 5px solid var(--base1-accent);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

form .kursant_test_black_logo {
    position: absolute;
    left: 28px;
    bottom: 24px;
    width: 124px;
    opacity: 0.82;
}

.block .container.white_container.navbar-container {
    display: none;
}

@media (max-width: 1180px) {
    .base1 {
        grid-template-columns: 1fr;
        gap: 20px;
        height: calc(100dvh - 52px);
        max-height: calc(100dvh - 52px);
    }

    .poster {
        height: 320px;
    }

    form {
        margin-right: 0;
    }
}

@media (max-width: 1100px) {
    .poster {
        display: none;
    }

    .base1 {
        height: calc(100dvh - 52px);
        max-height: calc(100dvh - 52px);
    }
}

@media (max-width: 768px) {
    .base1 {
        padding: 20px;
        height: calc(100dvh - 96px);
        max-height: calc(100dvh - 96px);
    }

    form {
        padding: 18px 20px 86px;
        border-radius: 28px;
    }

    form .title {
        margin-top: 26px;
        margin-bottom: 28px;
    }

    form .title span,
    form .go_back {
        font-size: 15px;
    }

    .navbar-container {
        display: flex;
    }
}

@media (max-width: 630px) {
    .base1 {
        padding: 20px;
        height: calc(100dvh - 112px);
        max-height: calc(100dvh - 112px);
    }

    form {
        padding: 16px 18px 82px;
        border-radius: 24px;
    }

    form .title p {
        font-size: 31px;
    }

    form .title span {
        width: auto;
        line-height: 1.58;
    }

    form .go_back img {
        height: 12px;
    }

    form .kursant_test_black_logo {
        left: 18px;
        bottom: 18px;
        width: 110px;
    }
}

@media (max-width: 500px) {
    .main_content::before {
        width: 180px;
        height: 180px;
        left: -60px;
    }

    .main_content::after {
        width: 170px;
        height: 170px;
        right: -54px;
    }

    .base1 {
        padding: 20px;
    }

    form .title p {
        font-size: 28px;
    }

    form .title span {
        font-size: 14px;
    }
}
