@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
    --navy: #7a3a14;
    --navy-soft: #b55720;
    --gold: #ee7f2b;
    --gold-hover: #d86c1c;
    --page: #fff7f1;
    --white: #ffffff;
    --text: #392417;
    --muted: #715c4f;
    --line: #dfe3e8;
    --danger: #c63f3f;
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.52;
    -webkit-font-smoothing: antialiased;
}

body.has-cookie-banner {
    padding-bottom: 80px;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
    overflow: clip;
}

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

.header-inner,
.hero-inner,
.content-grid,
.footer-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    color: var(--white);
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 260px;
    height: auto;
}

.brand-description {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
    line-height: 1.35;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-button,
.login-fallback {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 19px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: var(--white);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.header-button:hover,
.login-fallback:hover {
    background: rgba(255, 255, 255, .1);
}

.header-button--accent {
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    color: var(--white);
    background: #5b657f;
    font-family: "Proxima Nova Rg", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 28px;
}

.header-button--accent:hover {
    background: #69748f;
}

.auth-slot {
    display: flex;
    min-width: 77px;
    min-height: 32px;
    align-items: center;
}

.auth-slot > * {
    max-width: 100%;
}

.hero-inner {
    padding-top: 45px;
    padding-bottom: 48px;
}

.hero-inner h1 {
    max-width: 890px;
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(28px, 2.3vw, 36px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.02em;
}

.main-content {
    padding: 42px 0 76px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 32px;
}

.offers {
    display: grid;
    gap: 20px;
}

.offer-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: 28px 30px 30px;
    border: 1px solid rgba(14, 31, 61, .08);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(14, 31, 61, .06);
}

.offer-number {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffe4d2;
    background: var(--navy);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.offer-copy h2 {
    margin: 1px 0 12px;
    color: var(--text);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -.01em;
}

.offer-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.56;
}

.form-column {
    position: sticky;
    top: 24px;
}

.form-card {
    overflow: hidden;
    border: 1px solid rgba(14, 31, 61, .08);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 40px rgba(14, 31, 61, .13);
}

.form-heading {
    padding: 25px 27px 24px;
    color: var(--white);
    background: var(--navy);
}

.form-heading h2 {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.form-body {
    padding: 24px 27px 27px;
}

.field-group {
    margin-bottom: 15px;
}

.field-group label,
.time-fieldset legend {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.field-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    outline: none;
    color: var(--text);
    background: var(--white);
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field-group input::placeholder {
    color: #949ba7;
}

.field-group input:hover {
    border-color: #aab2bd;
}

.field-group input:focus {
    border-color: var(--navy-soft);
    box-shadow: 0 0 0 3px rgba(23, 43, 77, .12);
}

.field-group input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(198, 63, 63, .09);
}

.field-error,
.submit-error {
    min-height: 0;
    margin: 4px 0 0;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.3;
}

.field-error:empty,
.submit-error:empty {
    display: none;
}

.time-fieldset {
    min-width: 0;
    margin: 3px 0 18px;
    padding: 0;
    border: 0;
}

.time-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.time-option {
    min-width: 0;
    height: 41px;
    padding: 0 5px;
    border: 1px solid #cfd5dc;
    border-radius: 7px;
    color: #3f4b5e;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.time-option:hover:not(:disabled) {
    border-color: var(--navy);
}

.time-option.is-selected {
    border-color: var(--navy);
    color: var(--white);
    background: var(--navy);
}

.time-option:disabled {
    border-color: #e5e7eb;
    color: #a6abb3;
    background: #f0f1f3;
    cursor: not-allowed;
}

.policy-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.policy-field input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--navy);
}

.policy-field label {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.42;
}

.policy-field a {
    color: #263d60;
    text-underline-offset: 2px;
}

.field-error--policy {
    margin-left: 28px;
}

.submit-button {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    border: 0;
    border-radius: 8px;
    color: #17233a;
    background: var(--gold);
    box-shadow: 0 5px 14px rgba(201, 154, 75, .28);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--gold-hover);
    box-shadow: 0 7px 18px rgba(201, 154, 75, .34);
}

.submit-button:disabled {
    cursor: wait;
    opacity: .76;
}

.submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(23, 35, 58, .3);
    border-top-color: #17233a;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.submit-button.is-loading .submit-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-error {
    margin-top: 10px;
    text-align: center;
}

.success-state {
    padding: 32px 8px 26px;
    text-align: center;
}

.success-state[hidden] {
    display: none;
}

.success-icon {
    display: flex;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--navy);
    font-size: 26px;
    font-weight: 700;
}

.success-state h3 {
    margin: 0 0 10px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.3;
}

.success-state p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.site-footer {
    padding: 35px 0 110px;
    color: rgba(255, 255, 255, .68);
    background: var(--navy);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-copy p {
    margin: 0 0 10px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
}

.footer-links a {
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
    text-underline-offset: 3px;
}

.footer-logo {
    display: block;
    width: 176px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .88;
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 15px 28px;
    border-top: 1px solid #e1e3e7;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -5px 24px rgba(14, 31, 61, .08);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    max-width: 880px;
    margin: 0;
    color: #5e6673;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-banner a {
    color: #263d60;
    text-underline-offset: 2px;
}

.cookie-banner button {
    min-width: 74px;
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    color: var(--white);
    background: var(--navy);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-cta {
    display: none;
}

@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 24px;
    }

    .brand-description {
        display: none;
    }

    .offer-card {
        padding: 25px;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    body.has-cookie-banner {
        padding-bottom: 126px;
    }

    .header-inner,
    .hero-inner,
    .content-grid,
    .footer-inner {
        width: calc(100% - 40px);
    }

    .header-inner {
        min-height: 76px;
        gap: 14px;
    }

    .brand-logo {
        width: 190px;
    }

    .header-button--accent {
        display: none;
    }

    .header-button,
    .login-fallback {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .auth-slot {
        min-width: 66px;
        min-height: 38px;
    }

    .hero-inner {
        padding-top: 30px;
        padding-bottom: 34px;
    }

    .hero-inner h1 {
        font-size: 21px;
        line-height: 1.4;
    }

    .main-content {
        padding: 0 0 54px;
    }

    .content-grid {
        display: block;
    }

    .offers {
        position: relative;
        z-index: 1;
        gap: 15px;
        margin-top: -13px;
    }

    .offer-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 15px;
        padding: 21px 18px 22px;
        border-radius: 13px;
    }

    .offer-number {
        width: 44px;
        height: 44px;
        border-radius: 9px;
        font-size: 20px;
    }

    .offer-copy h2 {
        margin-bottom: 10px;
        font-size: 17px;
        line-height: 1.38;
    }

    .offer-copy p {
        font-size: 15px;
        line-height: 1.5;
    }

    .form-column {
        position: static;
        margin-top: 20px;
    }

    .form-card {
        border-radius: 13px;
    }

    .form-heading {
        padding: 23px 21px;
    }

    .form-heading h2 {
        font-size: 17px;
    }

    .form-body {
        padding: 22px 21px 24px;
    }

    .time-options {
        gap: 5px;
    }

    .time-option {
        font-size: 12px;
    }

    .site-footer {
        padding: 31px 0 145px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .footer-logo {
        width: 156px;
    }

    .cookie-banner {
        min-height: 126px;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 13px 20px 14px;
        text-align: center;
    }

    .cookie-banner p {
        font-size: 12px;
    }

    .cookie-banner button {
        align-self: center;
        min-width: 86px;
        height: 36px;
    }

    .mobile-cta {
        position: fixed;
        z-index: 900;
        right: 20px;
        bottom: 20px;
        left: 20px;
        width: calc(100% - 40px);
        height: 52px;
        border: 0;
        border-radius: 9px;
        color: #17233a;
        background: var(--gold);
        box-shadow: 0 8px 24px rgba(14, 31, 61, .24);
        font-family: "Manrope", Arial, sans-serif;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }

    .mobile-cta.is-visible {
        display: block;
    }

    body.has-cookie-banner .mobile-cta {
        bottom: 142px;
    }
}

@media (max-width: 380px) {
    .header-inner,
    .hero-inner,
    .content-grid,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .brand-logo {
        width: 160px;
    }

    .offer-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .offer-number {
        width: 40px;
        height: 40px;
    }

    .time-option {
        font-size: 11px;
    }
}
