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

:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #eef2f5;
    --text: #18202a;
    --text-soft: #5b6673;
    --border: #d8dee6;
    --primary: #1f4f66;
    --primary-dark: #163c4e;
    --success-bg: #e9f7ef;
    --success-text: #1e5e38;
    --error-bg: #fff0f0;
    --error-text: #9a2525;
    --shadow: 0 24px 60px rgba(24, 32, 42, 0.08);
    --radius: 22px;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top right, rgba(31, 79, 102, 0.09), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.hero {
    padding: 24px 0 40px;
}

.hero__content {
    max-width: 820px;
    margin: 0 auto;
}

.image-block {
    max-width: 920px;
    margin: 0 auto 56px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 3.5vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.intro,
.contact-card__intro p {
    color: var(--text-soft);
    font-size: 1.08rem;
}

.hero__visual {
    overflow: hidden;
    border: 1px solid rgba(216, 222, 230, 0.85);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.hero__visual img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.contact-card {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-card__intro {
    max-width: 680px;
    margin-bottom: 30px;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input {
    min-height: 50px;
    padding: 0 14px;
}

.form-field textarea {
    min-height: 170px;
    padding: 13px 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.button:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 79, 102, 0.14);
}

.form-field [aria-invalid="true"] {
    border-color: var(--error-text);
}

.field-error {
    margin: 0;
    color: var(--error-text);
    font-size: 0.92rem;
}

.alert {
    margin: 0 0 26px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 650;
}

.alert--success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert--error {
    background: var(--error-bg);
    color: var(--error-text);
}


.form-field--checkbox {
    gap: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.checkbox-label input:focus-visible {
    outline: 3px solid rgba(31, 79, 102, 0.22);
    outline-offset: 3px;
}

.button {
    justify-self: start;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.form-field--trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 820px) {
    .page-shell {
        padding: 40px 0;
    }

    .hero {
        padding: 20px 0 34px;
    }

    .image-block {
        margin-bottom: 40px;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 22px, 1180px);
        padding: 24px 0;
    }

    .hero {
        padding-bottom: 28px;
    }

    .image-block {
        margin-bottom: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        border-radius: 16px;
    }

    .button {
        width: 100%;
    }
}
