.direction-contacts {
    padding-top: 80px;
}

.direction-contacts__top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.direction-contacts__lead {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
}

.direction-contacts__lead-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direction-contacts__label {
    color: #111122;
    font-size: 16px;
    line-height: 1.4;
}

.direction-contacts__value,
.direction-contacts__phone {
    color: #23716d;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}

.direction-contacts__table {
    margin-top: 32px;
    border-radius: 32px;
    overflow: hidden;
    background: #fff;
}

.direction-contacts__table-head,
.direction-contacts__row-panel {
    display: grid;
    grid-template-columns: 493px 364px minmax(0, 1fr);
    column-gap: 21px;
}

.direction-contacts__table-head {
    min-height: 84px;
    align-items: center;
    padding: 24px;
    background: linear-gradient(139deg, #23716d 6.7%, #1b5349 91%);
    color: #fff;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 500;
}

.direction-contacts__row:nth-child(odd) .direction-contacts__row-panel {
    background: rgba(35, 113, 109, .05);
}

.direction-contacts__row-trigger {
    display: none;
}

.direction-contacts__row-panel {
    min-height: 119px;
    align-items: center;
}

.direction-contacts__cell {
    padding: 24px;
    color: #111122;
    font-size: 24px;
    line-height: 1.5;
}

.direction-contacts__cell--name {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.direction-contacts__name {
    font-weight: 500;
}

.direction-contacts__position {
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 1199px) {
    .direction-contacts__table-head,
    .direction-contacts__row-panel {
        grid-template-columns: 1.2fr .8fr 1fr;
    }
}

/* Mobile layout from Figma node 189:6485 */
@media (max-width: 767px) {
    .direction-contacts {
        padding-top: 48px;
    }

    .direction-contacts__top {
        gap: 20px;
    }

    .direction-contacts__lead {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        border-radius: 24px;
    }

    .direction-contacts__lead::before {
        content: 'Запишитесь на прием';
        display: block;
        color: #111122;
        font-size: 20px;
        line-height: 1.5;
        font-weight: 500;
    }

    .direction-contacts__lead-item {
        gap: 12px;
    }

    .direction-contacts__label {
        font-size: 16px;
        line-height: 1.4;
    }

    .direction-contacts__value {
        font-size: 20px;
        line-height: 1.2;
    }

    .direction-contacts__table {
        margin-top: 16px;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .direction-contacts__table-head {
        display: none;
    }

    .direction-contacts__row {
        margin-bottom: 16px;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
    }

    .direction-contacts__row:nth-of-type(odd) {
        background: #fff;
    }

    .direction-contacts__row:nth-of-type(even) {
        background: rgba(35, 113, 109, .05);
    }

    .direction-contacts__row-trigger {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 24px;
        align-items: start;
        min-height: 86px;
        padding: 16px;
        gap: 12px;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .direction-contacts__row-name {
        grid-column: 1;
        color: #111122;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 600;
    }

    .direction-contacts__row-position {
        grid-column: 1;
        color: #111122;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 400;
    }

    .direction-contacts__row-trigger .direction-accordion__icon {
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-self: end;
    }

    .direction-contacts__row-panel {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-height: 0;
        padding: 0 16px 16px;
        background: transparent !important;
        border-top: 0;
    }

    .direction-contacts__row-panel[hidden] {
        display: none !important;
    }

    .direction-contacts__row.is-open .direction-contacts__row-panel {
        padding-top: 0;
    }

    .direction-contacts__row.is-open .direction-contacts__row-panel::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(35, 113, 109, .1);
    }

    .direction-contacts__cell {
        padding: 0;
        font-size: 18px;
        line-height: 1.5;
    }

    .direction-contacts__cell--name {
        display: none;
    }

    .direction-contacts__cell:not(.direction-contacts__cell--name) {
        display: block;
    }

    .direction-contacts__phone {
        font-size: 18px;
        font-weight: 400;
    }
}