/* Страница «Наши врачи»: основатели и сетка команды */

/* --------------------------------------------------------- плашка онлайн */

.doc-online {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 14px rgba(24, 28, 36, .18);
    font-size: 12.5px;
    font-weight: 600;
    color: #2e7a49;
    letter-spacing: .2px;
}

.doc-online__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3f9a5e;
    animation: doc-online-pulse 1.8s ease-out infinite;
}

@keyframes doc-online-pulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 154, 94, .5); }
    70% { box-shadow: 0 0 0 6px rgba(63, 154, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 154, 94, 0); }
}

/* ------------------------------------------------------------ основатели */

.founders__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.founders__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(24, 28, 36, .09);
    transition: transform .22s ease, box-shadow .22s ease;
}

.founders__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(24, 28, 36, .14);
}

.founders__photo {
    position: relative;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
}

.founders__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .4s ease;
}

.founders__card:hover .founders__photo img { transform: scale(1.04); }

.founders__badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(120deg, #636363, #232323);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(140, 100, 20, .35);
}

.founders__body {
    padding: 22px 24px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.founders__name {
    font-size: 22px;
    margin: 0 0 6px;
}

.founders__role {
    color: #7c828d;
    font-size: 14.5px;
    margin: 0 0 12px;
}

.founders__slogan {
    font-style: italic;
    color: #4c5057;
    font-size: 15px;
    margin: 0 0 16px;
    line-height: 1.55;
}

.founders__actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.founders__btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 26px;
    background: #6a6e76;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background .18s, transform .18s;
}

.founders__btn:hover { background: #4c5057; transform: translateY(-1px); }

.founders__btn--ghost {
    background: transparent;
    color: #4c5057 !important;
    border: 1px solid #cdd1d7;
}

.founders__btn--ghost:hover { background: #fff; border-color: #6a6e76; }

/* --------------------------------------------------------- сетка команды */

.team-grid-sec__lead {
    max-width: 560px;
    margin: 0 auto;
    color: #7c828d;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.team-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(24, 28, 36, .07);
    transition: transform .2s ease, box-shadow .2s ease;
    color: inherit;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(24, 28, 36, .12);
}

.team-card__photo {
    position: relative;
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .35s ease;
}

.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__body {
    padding: 18px 20px 20px;
    text-align: center;
}

.team-card__body h4 {
    font-size: 17px;
    margin: 0 0 5px;
    color: #22252b;
}

.team-card__body p {
    font-size: 13.5px;
    color: #7c828d;
    margin: 0 0 10px;
    min-height: 2.6em;
}

.team-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6a6e76;
    transition: color .18s, gap .18s;
}

.team-card:hover .team-card__more { color: #22252b; gap: 9px; }

/* ------------------------------------------------------------- адаптив */

@media (max-width: 991px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    /* основатели остаются в одну линию и на телефоне - карточки ужимаются */
    .founders__row { gap: 14px; }
    .founders__body { padding: 14px 10px 16px; }
    .founders__name { font-size: 16px; }
    .founders__role { font-size: 12.5px; }
    .founders__slogan { display: none; }
    .founders__badge { font-size: 10.5px; padding: 4px 9px; left: 8px; bottom: 8px; }
    .founders__actions { gap: 8px; }
    .founders__btn { padding: 8px 14px; font-size: 12.5px; }
    .doc-online { font-size: 11px; padding: 4px 9px; top: 8px; right: 8px; }
}

@media (max-width: 520px) {
    .team-grid { grid-template-columns: 1fr; }
}
