.contact-ui-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-section-symbol, .contact-dialog-symbol {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border: 1px solid #cddfff;
    border-radius: 15px;
    background: linear-gradient(145deg, #f5f9ff, #e5efff);
    color: #2563eb;
    box-shadow: inset 0 1px #fff;
}

.contact-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid #d6e1f0;
    border-radius: 12px;
    background: #f7faff;
    transition: border-color .2s, box-shadow .2s;
}

.contact-input-wrap > .contact-ui-icon,
.contact-input-wrap > [data-contact-icon] {
    position: absolute;
    top: 15px;
    left: 14px;
    color: #7c94b3;
    pointer-events: none;
}

.contact-input-wrap .contact-ui-icon { width: 20px; height: 20px; }

.contact-input-wrap:focus-within {
    border-color: #3d7cff;
    box-shadow: 0 0 0 3px #377bff1a;
    background: #fff;
}

:is(:is(#contact-form, .contact-form), .callback-form) .contact-input-wrap :is(input, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 13px 14px 13px 44px;
    border: 0;
    border-radius: 12px;
    outline: none;
    background: transparent;
    color: #172c4c;
    font: 400 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}

:is(:is(#contact-form, .contact-form), .callback-form) .contact-input-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

:is(:is(#contact-form, .contact-form), .callback-form) .contact-input-wrap :is(input, textarea)::placeholder {
    color: #8b9eb8;
    opacity: 1;
}

:is(:is(#contact-form, .contact-form), .callback-form) label {
    color: #354c6b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

:is(#contact-form, .contact-form) label { margin: 0 0 7px; }
.callback-form label { margin: 16px 0 7px; }
:is(#contact-form, .contact-form) label small { color: #8695aa; font-weight: 400; }

:is(:is(#contact-form, .contact-form), .callback-form) :is(.contact-submit, .callback-submit) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 1px solid #347dff;
    border-radius: 12px;
    background: linear-gradient(130deg, #347dff, #1c5ee8);
    color: #fff;
    box-shadow: 0 7px 18px #2563eb1f;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

:is(:is(#contact-form, .contact-form), .callback-form) :is(.contact-submit, .callback-submit):hover {
    background: linear-gradient(130deg, #2569ec, #164dc5);
}

:is(:is(#contact-form, .contact-form), .callback-form) :is(.contact-submit, .callback-submit) > span { font-size: 20px; }
:is(:is(#contact-form, .contact-form), .callback-form) [hidden] { display: none; }

.contact-messenger-list, .contact-footer-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.contact-form-messengers {
    margin-top:16px;
}

.contact-form-messengers .contact-messenger {
    flex:1 1 auto;
}

.contact-messenger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #dae5f5;
    border-radius: 12px;
    background: #fff;
    color: #354c6b;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}

.contact-messenger img { width: 23px; height: 23px; }
.contact-messenger > span:last-child { color: #8ba2c1; }
.contact-messenger:hover { border-color: #8cb4fc; background: #f4f8ff; }

dialog.callback-dialog {
    width: min(500px, calc(100% - 32px));
    max-width: 500px;
    padding: 30px;
    border-color: #dae6f7;
    background: radial-gradient(ellipse at top left, #eef5ff, transparent 45%), #fff;
}

dialog.callback-dialog.contacts-page {
    width:min(680px, calc(100% - 32px));
    max-width:680px;
    max-height:calc(100dvh - 32px);
    padding:36px;
    background:#fff;
}

.callback-dialog .contact-form {
    display:grid;
    gap:18px;
}

.callback-dialog .contact-form label {
    display:block;
    margin:0 0 7px;
}

.callback-dialog .contact-form .contact-callback,
.callback-dialog .contact-form .contact-consent {
    display:flex;
}

.callback-dialog .contact-form .contact-form-status {
    margin:0;
}

@media (max-width:480px) {
    dialog.callback-dialog.contacts-page {
        padding:28px 20px 24px;
    }
}

.contact-dialog-symbol { margin-bottom: 14px; }
.callback-launcher { background: linear-gradient(130deg, #347dff, #1c5ee8); }
.callback-launcher:focus-visible { outline: 3px solid #7eb6ff; outline-offset: 5px; }
.callback-eyebrow { margin-top: 0; }
.callback-dialog h2 { font-size: 30px; }
.callback-dialog > p { margin-bottom: 18px; }
.callback-quick-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e5edf8; }
.callback-quick-links .contact-messenger { flex: 1; padding-inline: 8px; font-size: 11px; }
.callback-form .callback-delivery, .callback-form .callback-usage { color: #71819a; font-size: 11px; }
.callback-dialog > .callback-program-link { margin-top: 10px; }

.contacts-page {
    background: #f5f8fd;
    color: #162a49;
}

.contacts-page .contacts-hero {
    min-height: 460px;
    border-bottom: 1px solid #e0eaf8;
    background: linear-gradient(90deg, #071a32fa 10%, #071a32e6 50%, #071a3266), url('/assets/images/team/team-administrator.png') 75% 40% / cover;
}

.contacts-page .contacts-hero-content {
    padding-top: 145px;
    padding-bottom: 64px;
}

.contacts-eyebrow { margin: 0 0 20px; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.contacts-hero .contacts-eyebrow { color: #9bcaff; }
.contacts-eyebrow > span { display: inline-block; width: 22px; height: 2px; margin-right: 10px; background: #56b7ff; vertical-align: middle; }
.contacts-page .contacts-hero h1 { margin: 0 0 12px; color: #c3dcff; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.contacts-page .contacts-lead { max-width: 760px; margin: 0 0 22px; color: #fff; font-size: clamp(34px, 4vw, 62px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; }
.contacts-page .contacts-intro { max-width: 630px; margin: 0; color: #bacde5; font-size: 16px; line-height: 1.8; }
.contacts-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 28px; }
.contacts-hero-actions > .btn { gap: 35px; border-radius: 12px; }
.contacts-hero-actions > a:last-child { display: flex; gap: 15px; align-items: center; min-height: 44px; color: #b9d6ff; font-size: 14px; }
.contacts-hero-actions > a:last-child:hover { color: #fff; }
.contacts-page .contacts-content { padding-block: 36px 72px; }
.contacts-page .contacts-grid { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.contacts-page .contacts-card { padding: clamp(24px, 2.5vw, 42px); border: 1px solid #dfe8f5; border-radius: 24px; background: #fff; box-shadow: 0 14px 45px #284a8308; }
.contacts-page .contacts-card h2 { margin: 0 0 14px; color: #172c4c; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.contacts-page .contacts-card > p, .contacts-page .contacts-form-content > p { margin-bottom: 28px; color: #6d809a; font-size: 14px; line-height: 1.8; }
.contacts-page .contacts-form-card::before { display: none; }
.contacts-page .contacts-form-content { width: 100%; }
.contacts-page .contact-details-list { gap: 0; }
.contacts-page .contact-detail { gap: 14px; padding-block: 19px; border-top: 1px solid #edf1f8; }
.contacts-page .contact-detail:last-child { border-top: 1px solid #edf1f8; padding-top: 19px; }
.contacts-page .contact-detail-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #e1ebfa; border-radius: 13px; color: #3478eb; background: #f0f6ff; }
.contacts-page .contact-detail-icon svg { width: 21px; height: 21px; }
.contacts-page .contact-detail strong { color: #243c60; font-size: 15px; font-weight: 650; }
.contacts-page .contact-detail small { display: block; margin-top: 5px; color: #8695aa; font-size: 12px; line-height: 1.6; }
.contacts-page .contact-chevron { margin-left: auto; color: #9bb0cd; font-size: 21px; }
.contacts-page a.contact-detail:hover strong, .contacts-page a.contact-detail:hover .contact-chevron { color: #2563eb; }
.contacts-social-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e9eff8; }
.contacts-social-block h3 { margin-bottom: 16px; color: #6d809a; font-size: 12px; font-weight: 600; }
.contacts-social-block .contact-messenger { flex: 1 1 auto; }
.contacts-page .contacts-fields { gap: 16px; }
.contacts-page :is(#contact-form, .contact-form) { gap: 18px; }
.contacts-page :is(#contact-form, .contact-form) .contact-callback { align-items: center; margin: 3px 0; padding: 15px; border: 1px solid #e4ecf8; border-radius: 12px; background: #f7faff; }
.contacts-page .contact-callback strong { font-size: 13px; }
.contacts-page .contact-callback small { color: #8393aa; font-size: 11px; }
.contacts-page :is(#contact-form, .contact-form) .contact-consent { gap: 10px; margin: 0; color: #6d809a; font-size: 12px; font-weight: 400; }
.contacts-page .contact-consent input { width: 17px; height: 17px; }
.contacts-page :is(#contact-form, .contact-form) .contact-consent-notice { margin: 0; color: #6d809a; font-size: 12px; line-height: 1.7; }
.contact-consent-notice a { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }
.contacts-page .contact-form-alternative { margin: 20px 0 0; color: #8695aa; font-size: 12px; }
.contact-form-alternative a { color: #2563eb; }
.contacts-page :is(#contact-form-status, .contact-form-status) { padding: 15px; border: 1px solid #cde1ff; border-radius: 12px; background: #f0f6ff; color: #345c91; font-size: 13px; line-height: 1.7; }
.contacts-help { margin-top: 64px; }
.contacts-help-heading { max-width: 680px; margin-bottom: 28px; }
.contacts-help-heading .contacts-eyebrow { color: #6e8cb5; }
.contacts-help-heading h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
.contacts-help-heading > p:last-child { color: #7a8ca5; font-size: 15px; }
.contacts-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contacts-help-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid #dce6f6; border-radius: 20px; background: linear-gradient(135deg, #fff, #f5f9ff); }
.contacts-help-card h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -.025em; }
.contacts-help-card > p { flex: 1; margin-bottom: 20px; color: #7a8ca5; font-size: 14px; line-height: 1.8; }
.contacts-help-link { display: flex; justify-content: space-between; color: #3476dd; font-size: 12px; font-weight: 600; }
.contacts-help-card:hover { border-color: #97b9f2; }
.contacts-help-cta { display: flex; justify-content: center; align-items: center; gap: 18px; width: fit-content; min-height: 44px; margin: 28px auto 0; color: #2563eb; font-size: 14px; font-weight: 600; }
.contact-footer-messengers { padding-bottom: 28px; }
.site-footer .contact-messenger { border-color: #90b5e22e; background: #ffffff08; color: #c2d4ee; }
.site-footer .contact-messenger:hover { border-color: #77a7e780; background: #ffffff10; }

@media (max-width: 1000px) {
    .contacts-page .contacts-grid { grid-template-columns: minmax(250px, .85fr) minmax(0, 1.2fr); gap: 18px; }
    .contacts-page .contacts-card { padding: 24px; }
    .contacts-page .contacts-fields { grid-template-columns: 1fr; }
    .contacts-page .contacts-card h2 { font-size: 26px; }
    .contacts-help-grid { gap: 14px; }
    .contacts-help-card { padding: 22px; }
}

@media (max-width: 760px) {
    .contacts-page .contacts-hero-content { padding-top: 120px; padding-bottom: 40px; }
    .contacts-page .contacts-hero { min-height: 0; background-position: 65% center; }
    .contacts-page .contacts-grid { grid-template-columns: 1fr; }
    .contacts-page .contacts-fields { grid-template-columns: 1fr 1fr; }
    .contacts-help-grid { grid-template-columns: 1fr; }
    .contacts-help { margin-top: 42px; }
}

@media (max-width: 480px) {
    .contacts-page .container { width: calc(100% - 32px); }
    .contacts-page .contacts-card { padding: 22px 18px; border-radius: 20px; }
    .contacts-page .contacts-fields { grid-template-columns: 1fr; }
    .contacts-page .contacts-intro { font-size: 14px; }
    .contacts-page .contacts-lead { font-size: 38px; }
    .contacts-hero-actions { gap: 12px; }
    .contacts-page .contact-detail { gap: 10px; }
    .contacts-page .contact-detail strong { font-size: 14px; }
    dialog.callback-dialog { padding: 24px 20px; }
    .callback-quick-links .contact-messenger { gap: 5px; }
    .callback-quick-links .contact-messenger > span:last-child { display: none; }
    .contact-footer-messengers .contact-messenger { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-input-wrap, .contact-messenger { transition: none; }
}
