/* ============================================================
   body-about-us — "Про NEURON24"
   Розмітка: about-us.html | Скрипт: about-us.js
   ============================================================ */

.body-about-us *,
.body-about-us *::before,
.body-about-us *::after { box-sizing: border-box; }

.body-about-us {
    --bau-blue:  #2d7ff9;
    --bau-navy:  #15264a;
    --bau-body:  #3f4655;
    --bau-maxw:  1180px;

    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    /* м'який голубий фон як на макеті */
    background: linear-gradient(180deg, #eef5fd 0%, #f6faff 100%);
    color: var(--bau-body);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 64px 24px;
}

.body-about-us .bau-inner {
    max-width: var(--bau-maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

/* ---------- left: text ---------- */
.body-about-us .bau-text { max-width: 520px; }

.body-about-us .bau-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--bau-navy);
}
.body-about-us .bau-title .bau-accent { color: var(--bau-blue); }

.body-about-us .bau-text p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--bau-body);
}
.body-about-us .bau-text p:last-child { margin-bottom: 0; }

/* ---------- right: brand image ---------- */
.body-about-us .bau-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.body-about-us .bau-visual img {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(40, 70, 130, .22);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .body-about-us { padding: 48px 20px; }
    .body-about-us .bau-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .body-about-us .bau-text { max-width: none; order: 2; }
    .body-about-us .bau-visual { order: 1; }
    .body-about-us .bau-visual img { max-width: 420px; }
}
@media (max-width: 480px) {
    .body-about-us { padding: 36px 16px; }
    .body-about-us .bau-title { font-size: 22px; }
    .body-about-us .bau-visual img { max-width: 100%; }
}

/* ---------- поява при скролі (вмикається скриптом) ---------- */
.body-about-us.bau-anim .bau-text,
.body-about-us.bau-anim .bau-visual {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.body-about-us.bau-anim .bau-visual { transition-delay: .1s; }
.body-about-us.bau-anim.is-in .bau-text,
.body-about-us.bau-anim.is-in .bau-visual {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .body-about-us.bau-anim .bau-text,
    .body-about-us.bau-anim .bau-visual {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   body-about-us (bau-join) — форма "Мрієш стати частиною команди?"
   ============================================================ */

.body-about-us.bau-join {
    display: flex;
    justify-content: center;
    background-color: #f1f7ff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Montserrat', "Inter", sans-serif;
    padding: 70px 24px 80px;
}

.body-about-us .bau-join-container {
    position: relative;
    width: 100%;
    max-width: 1060px;
    z-index: 1;
}

.body-about-us .bau-join-title {
    margin: 0 0 40px;
    text-align: center;
    font-weight: 800;
    font-size: 25px;
    line-height: 31px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #2196FF;
}

/* ---------- форма ---------- */
.body-about-us .bau-form { transition: opacity .4s ease; }
.body-about-us .bau-form.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.body-about-us .bau-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    row-gap: 22px;
    margin-bottom: 22px;
}

.body-about-us .bau-field { display: flex; flex-direction: column; }

.body-about-us .bau-field label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    line-height: 17px;
    color: #587895;
}

.body-about-us .bau-field input,
.body-about-us .bau-field textarea {
    box-sizing: border-box;
    border-radius: 5px;
    background: #FFFFFF;
    border: 1px solid #9CC2E8;
    color: #1D1F2E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.body-about-us .bau-field input  { height: 44px; padding: 0 14px; }
.body-about-us .bau-field textarea {
    min-height: 116px;
    padding: 12px 14px;
    resize: vertical;
}
.body-about-us .bau-field input:focus,
.body-about-us .bau-field textarea:focus {
    border-color: #2A90FF;
    box-shadow: 0 0 0 2px rgba(42, 144, 255, .15);
}

/* порожнє обов'язкове поле при сабміті */
.body-about-us .bau-field input.is-error,
.body-about-us .bau-field textarea.is-error { border-color: #E0563C; }

/* ---------- поле "Ваше резюме" з прикріпленням файлу ---------- */
.body-about-us .bau-file {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    background: #FFFFFF;
    border: 1px solid #9CC2E8;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.body-about-us .bau-file.is-focus {
    border-color: #2A90FF;
    box-shadow: 0 0 0 2px rgba(42, 144, 255, .15);
}
.body-about-us .bau-file.is-error { border-color: #E0563C; }

.body-about-us .bau-file-name {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    font-size: 14px;
    color: #1D1F2E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.body-about-us .bau-file-name:empty::before {
    content: attr(data-placeholder);
    color: #9aa6bd;
}

.body-about-us .bau-file-btn {
    flex: none;
    width: 48px;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: #2A90FF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.body-about-us .bau-file-btn:hover { background: #1f7ff0; }
.body-about-us .bau-file-btn svg { width: 20px; height: 20px; display: block; }

.body-about-us .bau-file-input { display: none; }

/* ---------- кнопка + текст ---------- */
.body-about-us .bau-join-foot {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 28px;
}

.body-about-us .bau-submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 38px;
    border: none;
    border-radius: 22px;
    background: #FFA014;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
}
.body-about-us .bau-submit:hover {
    background: #FF9100;
    box-shadow: 0 0 14px rgba(255, 160, 20, .4);
}

.body-about-us .bau-foot-text {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6472;
    max-width: 560px;
}

/* ---------- повідомлення після відправлення ---------- */
.body-about-us .bau-success {
    display: none;
    max-width: 640px;
    margin: 0 auto;
    padding: 38px 28px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgba(13, 32, 64, .6);
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
}
.body-about-us .bau-success.is-shown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.body-about-us .bau-success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    border-radius: 8px;
    background: #18B926;
    display: flex;
    align-items: center;
    justify-content: center;
}
.body-about-us .bau-success-title {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: 22px;
    line-height: 28px;
    color: #FFFFFF;
}
.body-about-us .bau-success-text {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, .65);
}

/* ---------- responsive (форма) ---------- */
@media (max-width: 1024px) {
    .body-about-us.bau-join { padding: 48px 24px 56px; }
    .body-about-us .bau-join-title { font-size: 22px; line-height: 28px; margin-bottom: 28px; }
}
@media (max-width: 768px) {
    .body-about-us.bau-join { padding: 36px 16px 44px; }
    .body-about-us .bau-join-title { font-size: 18px; line-height: 24px; }

    /* поля в один стовпець */
    .body-about-us .bau-form-row { grid-template-columns: 1fr; row-gap: 16px; margin-bottom: 16px; }

    .body-about-us .bau-field input { height: 42px; font-size: 14px; }
    .body-about-us .bau-field textarea { min-height: 100px; font-size: 14px; }
    .body-about-us .bau-file { height: 42px; }

    .body-about-us .bau-join-foot { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 20px; }
    .body-about-us .bau-submit { width: 100%; box-sizing: border-box; }
    .body-about-us .bau-foot-text { max-width: none; }

    .body-about-us .bau-success { padding: 28px 16px; }
    .body-about-us .bau-success-title { font-size: 19px; }
    .body-about-us .bau-success-text { font-size: 14px; line-height: 22px; }
}