@font-face {
    font-family: 'InterRegular';
    src: url("../fonts/Inter-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'InterMedium';
    src: url("../fonts/Inter-Medium.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'InterSemiBold';
    src: url("../fonts/Inter-SemiBold.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'InterBold';
    src: url("../fonts/Inter-Bold.ttf");
    font-weight: normal;
    font-style: normal;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background: #EBF0FC;
    color: #151e3f;
    font-size: 100%;
}

.btn {
    display: block;
    margin: auto;
    max-width: 396px;
    padding: 15px;
    font-family: 'InterSemiBold', sans-serif;
    font-size: 1rem;
    line-height: 22px;
    border-radius: 10px;
    text-align: center;
}

.btn--outlined {
    background: transparent;
    border: 2px solid #575cdf;
    color: #575cdf;
}

.wrapper {
    min-height: 100vh;
    margin: 0 auto;
}

.wrapper--flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    display: flex;
    height: 70px;
    padding: 10px;
}

header .logo {
    flex: 0 0 240px;
    width: 240px;
    display: flex;
    background: #FFFFFF;
    margin-right: 10px;
    padding: 0 20px;
    border-radius: 10px;
}

header .logo img {
    display: block;
    margin: auto;
    width: 100%;
}

header .main-nav {
    flex: 1;
    display: flex;
    justify-content: end;
    align-items: center;
    background: #FFFFFF;
    padding: 0 10px;
    border-radius: 10px;
    font-family: 'InterRegular', sans-serif;
}

header .login-btn {
    background: transparent;
    border: 2px solid #D0DAF1;
    height: 40px;
    padding: 0 12px;
    width: fit-content;
    display: flex;
    grid-auto-flow: column;
    align-items: center;
    border-radius: 10px;
    transition: .2s linear;
    user-select: none;
    position: relative;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

header .login-btn .icon {
    color: #151e3f;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

header .login-btn .svg-div {
    width: 100%;
    height: 100%;
}

header .login-btn svg {
    width: 100%;
    height: 100%;
    fill: #151e3f;
}

header .login-btn path {
    width: 100%;
    height: 100%;
    fill: inherit;
}

header .login-btn .text {
    font-size: 14px;
}

header .user .text {
    position: relative;
    padding-right: 15px;
}

header .user .text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    border: 5px solid transparent;
    border-top: 5px solid #000;
    transition: .3s;
}

header .login-btn--active .text::after {
    transform: rotate(180deg);
    top: 0;
}

header .login-btn--active + .user-context {
    height: auto;
    overflow: visible;
    padding: 0.875em 0.75em;
}

header .login-btn--active + .user-context::after {
    opacity: 1;
}

header .user-context {
    position: absolute;
    top: 70px;
    right: 33px;
    z-index: 1000;
    width: fit-content;
    height: 0;
    padding: 0 0.75em;
    background: #FFF;
    -webkit-box-shadow: -4px 0px 6px rgba(186, 186, 186, 0.25), 4px 3px 6px rgba(186, 186, 186, 0.23);
    box-shadow: -4px 0px 6px rgba(186, 186, 186, 0.25), 4px 3px 6px rgba(186, 186, 186, 0.23);
    border-radius: 12px;
    overflow: hidden;
    -webkit-transition: overflow 0.1s, height 0.2s, padding 0.2s;
    transition: overflow 0.1s, height 0.2s, padding 0.2s;
}

header .user-context a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1000;
}

header .user-context a:hover {
    color: #EBF0FC;
}

header .user-context::after {
    position: absolute;
    margin: auto;
    content: "";
    top: -6px;
    right: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: #FFF;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 0;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

main {
    padding: 2em;
}

.main-head-title {
    display: block;
    text-align: center;
    font-size: 40px;
    font-family: 'InterBold', sans-serif;
    margin-bottom: 35px;
}

.main-head-description-wrapper {
    display: block;
    text-align: center;
}

.main-head-description {
    font-size: 16px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    margin-bottom: 35px;
    max-width: 730px;
    display: inline-block;
    line-height: 22px;
}

.main-agreement-wrapper {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.main-agreement {
    font-size: 16px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    max-width: 730px;
    display: inline-block;
    text-align: left;
}

.main-agreement-checkbox {
    margin-bottom: 10px;
}

/* Customize the label (the container) */
.main-agreement-container {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.main-agreement-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.main-agreement-checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: solid 1px #a4a4a4;
    border-radius: 5px;
}

/* On mouse-over, add a grey background color */
.main-agreement-container:hover input ~ .main-agreement-checkmark {
    background-color: #f1f1f1;
}

/* When the checkbox is checked, add a blue background */
.main-agreement-container input:checked ~ .main-agreement-checkmark {
    background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.main-agreement-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.main-agreement-container input:checked ~ .main-agreement-checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.main-agreement-container .main-agreement-checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.auth-form {
    padding: 3.125em;
    width: 576px;
    background-color: #FFF;
    margin: auto;
    border-radius: 20px;
    text-align: center;
    font-family: 'InterBold', sans-serif;
}

.auth-form h2 {
    font-style: normal;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2em;
}

.congrats {
    text-align: center;
    max-width: 980px;
    margin: auto;
}

.congrats img {
    margin-top: 5em;
    margin-bottom: 2.875em;
}

.congrats h1 {
    font-size: 2rem;
    font-family: 'InterBold', sans-serif;
    font-weight: 800;
    line-height: 38px;
    margin-bottom: 2.813em;
}

.congrats h2 {
    font-size: 1.75rem;
    font-family: 'InterRegular', sans-serif;
    font-weight: 400;
    line-height: 150%;
}

footer {
    background-color: #FFF;
    width: 100%;
    height: 40px;
}

footer .container {
    height: 100%;
    padding: 0 6.25em;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .olympium {
    text-transform: uppercase;
    font-family: 'InterSemiBold', sans-serif;
    margin-right: 2em;
    white-space: nowrap;
}

footer .copyright {
    font-family: 'InterRegular', sans-serif;
    font-weight: 400;
}

footer .copyright-upper {
    text-transform: uppercase;
}

/* ===== Компактный Cookie-баннер ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    max-width: 90%;
    width: 450px;
    background: #FFFFFF;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(21, 30, 63, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E0E5F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #151e3f;
    font-family: 'InterRegular', sans-serif;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: #575cdf;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'InterMedium', sans-serif;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-accept-btn {
    background: #575cdf;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'InterSemiBold', sans-serif;
}

.cookie-accept-btn:hover {
    background: #3d42c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(87, 92, 223, 0.25);
}

.cookie-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    flex-shrink: 0;
}

.cookie-close-btn:hover {
    opacity: 1;
}

.cookie-close-btn::before,
.cookie-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #151e3f;
    transform-origin: center;
}

.cookie-close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cookie-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Затемнение фона */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 30, 63, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Медиа-запросы ===== */
@media (max-width: 900px) {
    .auth-form {
        padding: 2em;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .congrats img {
        margin-top: 3em;
    }

    .congrats h1 {
        font-size: 1.5rem;
        line-height: 32px;
        margin-bottom: 2em;
    }

    .congrats h2 {
        font-size: 1.3rem;
        line-height: 130%;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        padding: 14px 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-content {
        text-align: center;
        font-size: 13px;
    }

    .cookie-content a {
        display: inline-block;
        margin: 0 3px;
    }

    .cookie-accept-btn {
        width: 100%;
        padding: 10px;
    }

    .cookie-close-btn {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    header .logo {
        flex: 0 0 150px;
        width: 150px;
    }

    .auth-form {
        width: 100%;
        padding: 1.3em;
    }

    .auth-form h2 {
        font-size: 1rem;
    }

    .auth-form img {
        width: 85%;
    }

    .congrats img {
        margin-top: 1em;
        margin-bottom: 2em;
    }

    .congrats h1 {
        font-size: 1.1rem;
        line-height: 20px;
        margin-bottom: 1.5em;
    }

    .congrats h2 {
        font-size: 1rem;
        line-height: 110%;
    }

    footer {
        font-size: .7rem;
    }

    footer .container {
        padding: 0 1.25em;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 10px;
        padding: 12px 14px;
    }

    .cookie-content {
        font-size: 12px;
    }

    .cookie-accept-btn {
        font-size: 13px;
        padding: 9px;
    }
}