@font-face {
    font-family: Teko;
    src: url("teko.ttf") format("truetype");
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: Roboto;
    src: url("roboto.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --green: #50802d;
    --form-background: #e2ecdb;
    --orange: #f08419;
    color: #181818;
    font: 16px Roboto, Arial, sans-serif;
}

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

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 32px 20px;
    background: #fff;
}

.page {
    width: min(100%, 1068px);
    margin: auto;
}

.main, .booking, .notice, .notice-text, .fields, .form-content {
    display: grid;
}

.main {
    justify-items: center;
    row-gap: 40px;
}

h1, p {
    margin: 0;
}

.logo {
    width: min(100%, 600px);
    aspect-ratio: 600 / 130;
    position: relative;
    overflow: hidden;
}

.logo img {
    position: absolute;
    top: -26.92%;
    left: 0;
    width: 100%;
    height: auto;
}

.booking {
    width: min(100%, 840px);
    gap: 32px;
}

.phone {
    color: var(--green);
    font: 600 80px/1 Teko, Roboto, sans-serif;
    text-align: center;
    text-decoration: none;
}

.appointment {
    padding: 32px;
    background: var(--form-background);
}

.form-content {
    width: min(100%, 503px);
    margin-inline: auto;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 142px minmax(0, 320px);
    gap: 41px;
    align-items: start;
}

.contact-row {
    align-items: center;
}

.group-label {
    color: var(--green);
    font: 700 18px/1 Teko, Roboto, sans-serif;
}

.fields {
    gap: 20px;
}

input:not([type="checkbox"], [type="hidden"]) {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    border: 0;
    border-radius: 5px;
    color: inherit;
    background: white;
    font: inherit;
}

input::placeholder {
    color: #c4c4c4;
    opacity: 1;
}

input[aria-invalid="true"] {
    outline: 1px solid #a42516;
}

.consent {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
}

.consent input {
    appearance: none;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    margin: 0;
    border: 1px solid var(--orange);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

.consent input:checked {
    border-color: transparent;
    background: url("check.svg") center no-repeat;
    background-origin: border-box;
}

.consent-terms {
    color: var(--orange);
}

button {
    width: 180px;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 31px;
    color: #fff;
    background: var(--green);
    font: inherit;
    cursor: pointer;
}

button:hover {
    background: #426a25;
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

:focus-visible {
    outline: 2px solid #2f5a17;
    outline-offset: 3px;
}

.notice {
    gap: 32px;
    margin-top: 8px;
    text-align: center;
}

.notice h1 {
    color: var(--green);
    font: 600 48px/1 Teko, Roboto, sans-serif;
    text-transform: uppercase;
}

.notice-text {
    gap: 12px;
    font: 400 28px/1 Teko, Roboto, sans-serif;
}

footer {
    margin-top: 81px;
    color: #242323;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
}

.status {
    padding: 12px 16px;
    border-radius: 5px;
    background: #fff;
}

.appointment-success {
    display: grid;
    min-height: 366px;
    place-items: center;
    padding: 32px;
    color: white;
    background: var(--green);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.error, .field-error {
    color: #a42516;
}

.field-error {
    margin-top: 6px;
    font-size: 14px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 660px) {
    body {
        padding-inline: 16px;
    }

    .main, .booking {
        gap: 24px;
    }

    .phone {
        font-size: clamp(44px, 11vw, 72px);
    }

    .appointment {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .fields {
        gap: 12px;
    }

    .consent {
        gap: 12px;
    }

    .consent-break {
        display: none;
    }

    .notice {
        gap: 20px;
    }

    .notice h1 {
        font-size: clamp(26px, 6vw, 42px);
    }

    .notice-text {
        font-size: clamp(18px, 4vw, 24px);
        line-height: 1.15;
    }

    footer {
        margin-top: 40px;
        font-size: 12px;
    }
}
