@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Rubik:wght@700;800&display=swap');

:root {
    --blue: #000FD1;
    --pale-blue: #E8F0FF;
    --navy: #0B1F3B;
    --white: #FFFFFF;
    --orange: #FE4600;
    --green: #009B49;
    --purple: #B57CFF;
    --pink: #F674CC;
    --yellow: #FFCF00;
    --line: #cdd7ed;
    --muted: #53627a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: Manrope, Arial, sans-serif;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.button,
.brand {
    font-family: Rubik, Arial, sans-serif;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 11px max(5vw, 24px);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.brand img {
    width: 130px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a:not(.button) {
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.button {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    padding: 15px 20px;
    text-decoration: none;
    transition: transform .15s, background .15s;
}

.button:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.button-small {
    padding: 10px 15px;
}

.hero {
    padding: clamp(56px, 7vw, 100px) max(5vw, 24px);
}

.section {
    padding: clamp(48px, 6vw, 82px) max(5vw, 24px);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 66vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: var(--pale-blue);
}

.hero-shape {
    position: absolute;
    z-index: -1;
    border-radius: 48% 52% 43% 57% / 57% 45% 55% 43%;
    transform: rotate(-15deg);
}

.hero-shape-one {
    width: clamp(230px, 34vw, 510px);
    height: clamp(180px, 27vw, 390px);
    right: -6vw;
    top: 9%;
    background: var(--yellow);
}

.hero-shape-two {
    width: clamp(170px, 22vw, 320px);
    height: clamp(170px, 22vw, 320px);
    right: 25%;
    bottom: -13%;
    background: var(--pink);
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

h1,
h2 {
    letter-spacing: -3px;
    line-height: .98;
}

h1 {
    max-width: 1500px;
    font-size: clamp(50px, 8vw, 112px);
    line-height: .94;
    margin-bottom: 22px;
}

h1 em {
    color: var(--blue);
    font-family: Rubik, Arial, sans-serif;
    font-style: normal;
}

h2 {
    font-size: clamp(42px, 6vw, 78px);
    margin-bottom: 32px;
}

h3 {
    font-size: 22px;
    letter-spacing: -.8px;
    margin-bottom: 8px;
}

.hero-copy {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.55;
    max-width: 440px;
    margin-bottom: 32px;
}

.two-column {
    display: grid;
    gap: 38px;
    grid-template-columns: 1.1fr 1fr;
    border-bottom: 1px solid var(--line);
}

.body-copy {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.track-grid article {
    min-height: 230px;
    padding: 25px;
}

.track-grid article:nth-child(1) {
    background: var(--orange);
    color: var(--white);
}

.track-grid article:nth-child(2) {
    background: var(--green);
    color: var(--white);
}

.track-grid article:nth-child(3) {
    background: var(--purple);
    color: var(--navy);
}

.track-grid article:nth-child(4) {
    background: var(--yellow);
    color: var(--navy);
}

.track-grid article:nth-child(5) {
    background: var(--pink);
    color: var(--navy);
}

.track-grid article:nth-child(6) {
    background: var(--green);
    color: var(--white);
}

.track-grid article:nth-child(7) {
    background: var(--yellow);
    color: var(--navy);
}

.track-grid article:nth-child(8) {
    background: var(--orange);
    color: var(--white);
}

.track-grid article:nth-child(9) {
    background: var(--pink);
    color: var(--navy);
}

.track-grid article:nth-child(10) {
    background: var(--purple);
    color: var(--navy);
}

.track-grid span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 57px;
}

.track-grid p {
    line-height: 1.5;
    margin-bottom: 0;
}

.timeline {
    background: var(--navy);
    color: var(--white);
}

.timeline .eyebrow {
    color: var(--pale-blue);
}

.timeline>div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid #4d607a;
    padding-top: 23px;
}

.timeline span {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
}

.timeline article h3 {
    margin-top: 16px;
}

.registration {
    background: var(--pale-blue);
}

.form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.tab {
    border: 1px solid var(--blue);
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font: 700 14px Rubik, Arial, sans-serif;
    padding: 12px 16px;
}

.tab.active {
    background: var(--blue);
    color: var(--white);
}

.signup-form {
    display: none;
    max-width: 650px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.signup-form.active {
    display: grid;
}

label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    border: 1px solid #adbad0;
    background: var(--white);
    color: var(--navy);
    font: 16px Manrope, Arial, sans-serif;
    padding: 13px;
}

input:focus,
select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

label:has(input[name="team_code"]),
.signup-form button,
.signup-form hr,
.form-note,
.team-language-field {
    grid-column: 1 / -1;
}

.team-language-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid #adbad0;
}

.team-language-field legend {
    padding: 0 6px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.team-language-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--white);
}

.team-language-field input {
    width: 17px;
    height: 17px;
    padding: 0;
    accent-color: var(--blue);
}

hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 6px 0 0;
}

.form-note {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.form-message {
    min-height: 22px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
}

.success {
    color: var(--green);
}

.telegram-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
}

.error {
    color: #ba2500;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px max(5vw, 24px);
    background: var(--blue);
    color: var(--white);
}

footer .brand img {
    width: 150px;
    filter: brightness(0) invert(1);
}

footer p {
    color: var(--pale-blue);
    font-size: 13px;
    margin: 3px 0 0;
}

footer .footer-slogan {
    max-width: none;
    white-space: nowrap;
    color: var(--white);
    font: 700 16px/1.45 Rubik, Arial, sans-serif;
}

.admin-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--pale-blue);
}

.admin-card {
    width: min(100%, 440px);
    padding: clamp(32px, 6vw, 58px);
    background: var(--white);
    box-shadow: 10px 10px 0 var(--yellow);
}

.admin-card>img {
    width: 190px;
    height: auto;
    margin-bottom: 55px;
}

.admin-card h1 {
    font-size: 52px;
}

.admin-card>p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form .button {
    margin-top: 10px;
}

.admin-empty {
    min-height: 400px;
}

@media (max-width:700px) {
    .section {
        padding-top: 42px;
        padding-bottom: 42px;
    }
    .nav-links a:not(.button) {
        display: none;
    }

    .brand img {
        width: 115px;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-shape-one {
        right: -22%;
    }

    .hero-shape-two {
        right: 12%;
    }

    .two-column,
    .track-grid,
    .timeline>div,
    .signup-form {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .track-grid article {
        min-height: 175px;
    }

    .track-grid span {
        margin-bottom: 30px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}
