:root {
    --navy: #173b64;
    --muted-blue: #58708c;
    --turquoise: #b9e6eb;
    --form-bg: #edf8fb;
    --field-bg: #d2d3d6;
    --error: #f00000;
    --white: #ffffff;
    --border: #d8e1e5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #23405f;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header {
    background: #fff;
}

.header-inner {
    min-height: 128px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 15px 22px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 64px;
    height: 76px;
    border-radius: 50% 50% 48% 52%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #3f9239;
    border: 2px solid #8fbc50;
    margin-right: 12px;
    font-size: 18px;
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    font-size: 20px;
    line-height: 1.2;
    color: #2c3f50;
    border-bottom: 3px solid #d92929;
    padding-bottom: 3px;
    white-space: nowrap;
}

.brand-sub {
    font-size: 12px;
    font-weight: 700;
    color: #303c49;
    padding-top: 6px;
    text-align: center;
}

.brand-sub span {
    color: #d92929;
    padding: 0 5px;
}

.brand-tagline {
    color: #274d99;
    text-align: center;
    font-size: 12px;
    padding-top: 7px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.main-nav a {
    text-decoration: none;
    color: #8b8b8b;
    font-size: 16px;
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #173b64;
}

.turquoise-line {
    height: 7px;
    background: var(--turquoise);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    background: #34516c;
    margin: 5px 0;
}

.contact-page {
    padding: 20px 22px 80px;
}

.contact-grid {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 540px;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding: 55px 0 0 0;
}

.info-block {
    margin-bottom: 34px;
}

.info-label {
    font-size: 17px;
    color: #1e3b55;
    margin-bottom: 8px;
}

.email-link {
    color: #e00000;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.country-heading {
    color: #0e8493;
    font-size: 25px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 17px;
}

.address {
    color: #60758c;
    font-size: 18px;
    line-height: 1.55;
}

.phone {
    color: #60758c;
    font-size: 18px;
    margin-top: 28px;
}

.phone a {
    text-decoration: none;
}

.socials {
    display: flex;
    gap: 34px;
    margin-top: 42px;
}

.socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f1f2;
    color: #168e91;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.form-card {
    background: var(--form-bg);
    padding: 30px 30px 34px;
    width: 100%;
}

.form-card h1 {
    margin: 0 0 45px;
    color: #173b64;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

.field-wrap {
    margin-bottom: 13px;
}

.field {
    position: relative;
    width: 100%;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid transparent;
    background: var(--field-bg);
    color: #294866;
    border-radius: 0;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}

.field input,
.field select {
    height: 41px;
    padding: 15px 18px 4px;
}

.field textarea {
    min-height: 115px;
    resize: vertical;
    padding: 21px 18px 9px;
}

.field label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #58708c;
    font-size: 16px;
    pointer-events: none;
    transition: all .15s ease;
}

.field textarea + label {
    top: 22px;
    transform: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #79bdc7;
    background: #dfe1e4;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:valid + label {
    top: 6px;
    transform: none;
    font-size: 10px;
    color: #526b82;
}

.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 6px;
}

.select-field label {
    top: 6px;
    transform: none;
    font-size: 10px;
    color: #526b82;
}

.select-field select {
    padding-top: 15px;
    appearance: auto;
}

.error {
    min-height: 0;
    color: var(--error);
    font-size: 13px;
    line-height: 1.25;
    padding: 0;
    visibility: hidden;
}

.error.show,
.error:not(:empty) {
    visibility: visible;
    padding-top: 5px;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: #f00000;
}

.captcha-row {
    display: grid;
    grid-template-columns: 180px 42px 1fr;
    gap: 9px;
    align-items: start;
    margin-top: 6px;
}

.captcha-box {
    height: 58px;
    background: #d7e9ed;
    border: 1px solid #c0d7dc;
    color: #173b64;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 5px;
    user-select: none;
    font-family: Georgia, serif;
}

.captcha-refresh {
    height: 58px;
    border: 1px solid #c0d7dc;
    background: #fff;
    color: #1b6570;
    font-size: 25px;
    cursor: pointer;
}

.captcha-input .field {
    height: 58px;
}

.captcha-input input {
    height: 58px;
}

.captcha-error {
    margin-bottom: 4px;
}

.submit-btn {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 17px;
    border: 0;
    background: #168e91;
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.submit-btn:hover {
    background: #106f73;
}

.submit-btn:active {
    transform: translateY(1px);
}

.form-success {
    background: #dff5e4;
    border: 1px solid #a9d7b3;
    color: #206b31;
    padding: 12px 14px;
    margin: -25px 0 20px;
    font-size: 14px;
}

.server-note {
    min-height: 4px;
    color: #c40000;
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 100px;
    }

    .brand-name {
        font-size: 17px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .form-card {
        padding: 26px 22px 30px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 82px;
        padding: 10px 17px;
    }

    .brand-mark {
        width: 48px;
        height: 57px;
        margin-right: 8px;
        font-size: 14px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-sub {
        font-size: 9px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        z-index: 20;
        top: 82px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
        padding: 10px 17px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 0;
        border-bottom: 1px solid #eee;
    }

    .contact-page {
        padding: 15px 14px 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding-top: 10px;
    }

    .form-card {
        order: -1;
        padding: 24px 15px 27px;
    }

    .form-card h1 {
        font-size: 25px;
        margin-bottom: 30px;
    }

    .address,
    .phone {
        font-size: 16px;
    }

    .captcha-row {
        grid-template-columns: 135px 42px 1fr;
    }

    .captcha-box {
        width: 100%;
        font-size: 18px;
        letter-spacing: 3px;
    }
}

@media (max-width: 430px) {
    .brand-name {
        white-space: normal;
        max-width: 225px;
    }

    .captcha-row {
        grid-template-columns: 1fr 42px;
    }

    .captcha-input {
        grid-column: 1 / -1;
    }

    .captcha-input .field,
    .captcha-input input {
        height: 50px;
    }

    .captcha-box,
    .captcha-refresh {
        height: 50px;
    }

    .socials {
        gap: 18px;
    }
}
