.audit {
    background: var(--green);
    color: white;
    padding: 80px 0 65px
}

.audit h2 {
    text-transform: none;
    line-height: 1.35;
    font-size: 40px
}

.audit h2 em {
    text-transform: uppercase;
    font-weight: 400;
    color: var(--orange)
}

.audit__intro {
    border-top: 1px solid #ffffff30;
    padding-top: 24px;
    margin-top: 28px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 500
}

.audit__benefits {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 28px;
    margin-top: 30px
}

.audit__benefits p {
    background: var(--green-dark);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 20px
}

.audit__benefits img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.audit__layout {
    display: grid;
    grid-template-columns:4fr 6.3fr;
    gap: 20px;
    margin-top: 32px
}

.audit__form {
    background: var(--paper);
    padding: 25px;
    border-radius: 20px;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.audit__form > input {
    min-height: 45px
}

.audit__form > textarea {
    min-height: 115px
}

.audit__form > .button {
    margin-top: 6px;
    font-size: 17px
}

.audit__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.3;
    color: #777;
    margin-top: 4px
}

.audit__consent input {
    margin: 0
}

.audit__consent button {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    font: inherit;
    text-align: left
}

.audit__team {
    border-radius: 20px;
    background: var(--green-dark);
    padding: 38px 28px
}

.audit__team-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.audit__team-top h3 {
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 700
}

.audit__team-top > a {
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 5px 10px;
    white-space: nowrap
}

.audit__people {
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    gap: 20px;
    margin-top: 45px;
    text-align: center
}

.audit__avatar {
    width: 95px;
    height: 95px;
    max-width: 100%;
    aspect-ratio: 1;
    background: #d9d9d9;
    border-radius: 50%;
    margin: auto
}

.audit__avatar img {
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.audit__people h4 {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 20px 0
}

.audit__people p {
    font-size: 15px;
    line-height: 1.25
}

@media (max-width: 1100px) {
    .audit__layout {
        grid-template-columns:1fr
    }

    .audit__form {
        max-width: none;
        display: grid;
        grid-template-columns:1fr 1fr
    }

    .audit__form textarea, .audit__consent, .audit__form .form-message {
        grid-column: 1/-1
    }

    .audit__form > .button {
        grid-column: 1/-1
    }

    .audit__people {
        gap: 24px
    }

    .audit__team {
        padding: 30px
    }
}

@media (max-width: 767px) {
    .audit h2 br {
        display: none
    }
}

@media (max-width: 600px) {
    .audit {
        padding: 40px 0
    }

    .audit h2 {
        font-size: 22px;
        line-height: 1.3
    }

    
    .audit__intro {
        font-size: 14px;
        line-height: 1.4;
        margin-top: 24px;
        padding-top: 20px
    }

    .audit__benefits {
        grid-template-columns:1fr;
        gap: 14px;
        margin-top: 25px
    }

    .audit__benefits p {
        font-size: 12px;
        border-radius: 14px;
        padding: 20px;
        gap: 16px
    }

    .audit__benefits img {
        width: 28px;
        height: 28px
    }

    .audit__layout {
        gap: 20px;
        margin-top: 24px
    }

    .audit__form {
        display: flex;
        padding: 20px
    }

    .audit__form > .button {
        font-size: 14px
    }

    .audit__team {
        padding: 24px 18px
    }

    .audit__team-top {
        display: block
    }

    .audit__team-top h3 {
        font-size: 16px
    }

    .audit__team-top a {
        display: inline-block;
        margin-top: 15px;
        font-size: 12px
    }

    .audit__people {
        display: flex;
        overflow-x: auto;
        margin-top: 25px;
        gap: 20px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory
    }

    .audit__people article {
        flex: 0 0 105px;
        scroll-snap-align: start;
    }

    .audit__avatar {
        width: 50px;
        height: 50px;
    }

    .audit__people h4 {
        font-size: 10px;
        margin: 0;
    }

    .audit__people p {
        font-size: 10px;
    }
}

/* Правки по комментариям Figma, 28.09.2026. */
.audit__layout > * {
    min-width: 0
}

.audit__form {
    width: 100%;
    min-width: 0
}

.audit__consent a {
    color: inherit;
    text-underline-offset: 2px
}

.audit__form input, .audit__form textarea {
    min-width: 0;
    max-width: 100%
}

.audit__people article {
    min-width: 0
}

.audit__people h4 {
    overflow-wrap: break-word
}

.audit__team-top {
    flex-wrap: wrap
}

.audit-modal {
    width: min(560px, calc(100vw - 32px))
}

.audit-modal .audit__form {
    padding: 0;
    display: flex
}

.audit-modal .dialog__body h2 {
    font-size: 26px;
    color: var(--green);
    font-weight: 500;
    text-transform: none
}

.audit-modal .audit__form .button {
    margin-top: 8px
}

@media (max-width: 767px) {
    .audit__people {
        display: grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        overflow: visible;
        gap: 24px 14px
    }

    .audit__people article {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
    }

    .audit__avatar {
        grid-column: 1/2;
        grid-row: 1/3;
    }

    .audit__people h4 {
        margin: 0;
        text-align: left;
    }

    .audit__people p {
        grid-column: 2/3;
        grid-row: 2/3;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .audit__people article {
        width: auto
    }

    .audit__benefits br {
        display: none
    }

    .audit-modal .audit__form {
        padding: 0
    }
}
