/**
 * Блок «О нас» на главной странице.
 *
 * @package MedikLife
 */

.about-section {
    padding: clamp(2.5rem, 4vw, 4rem) 0;
    background: #f1f2ff;
}

.about-section__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px;
}

.about-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(45, 55, 238, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(45, 55, 238, 0.09);
}

.about-panel__content {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.8vw, 2.25rem);
    padding-right: clamp(1rem, 2vw, 1.5rem);
}

.about-panel__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #eef0ff;
    color: #2d37ee;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-panel__text {
    flex: 1 1 auto;
}

.about-panel__text > *:last-child {
    margin-bottom: 0;
}

.about-panel__text p {
    margin: 0 0 0.75rem;
    color: #4b4b57;
    font-size: clamp(0.9rem, 1.15vw, 0.98rem);
    line-height: 1.62;
}

.about-panel__text p:first-of-type {
    margin-bottom: 0.9rem;
    color: #14141c;
    font-size: clamp(1.15rem, 1.7vw, 1.42rem);
    font-weight: 600;
    line-height: 1.38;
}

.about-panel__text h3 {
    margin: 1rem 0 0.7rem;
    color: #2d37ee;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-panel__text .features-list {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.about-panel__text .features-list li {
    position: relative;
    margin: 0;
    padding-left: 1.1rem;
    color: #333;
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    line-height: 1.5;
}

.about-panel__text .features-list li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2d37ee;
}

.about-panel__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eceef8;
}

.about-panel__contacts-label {
    color: #8b8b97;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-panel__contacts-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.about-panel__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f5ff;
    color: #2d37ee;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-panel__contact:hover {
    background: #2d37ee;
    color: #fff;
    transform: translateY(-1px);
}

.about-panel__contact-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.about-panel__media {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    padding-left: 0;
    background: #fff;
}

.about-panel__figure {
    flex: 1;
    width: 100%;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #eef0f6;
}

.about-panel__img,
.about-panel__video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center 12%;
}

.about-panel__video-embed {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.about-panel__video-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* Планшет — одна колонка, крупное фото сверху */
@media (max-width: 960px) {
    .about-panel {
        grid-template-columns: 1fr;
    }

    .about-panel__media {
        order: -1;
        padding: clamp(1rem, 2.5vw, 1.35rem);
        padding-bottom: 0;
    }

    .about-panel__figure {
        min-height: 0;
        aspect-ratio: 16 / 11;
        max-height: 420px;
    }

    .about-panel__img,
    .about-panel__video,
    .about-panel__video-embed,
    .about-panel__video-embed iframe {
        min-height: 0;
        max-height: 420px;
    }

    .about-panel__content {
        padding: clamp(1.25rem, 2.5vw, 1.75rem);
    }

    .about-panel__text .features-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .about-section {
        padding: 2rem 0;
    }

    .about-panel {
        border-radius: 18px;
    }

    .about-panel__figure {
        aspect-ratio: 4 / 5;
        max-height: 380px;
    }

    .about-panel__img,
    .about-panel__video,
    .about-panel__video-embed,
    .about-panel__video-embed iframe {
        max-height: 380px;
    }

    .about-panel__text .features-list {
        grid-template-columns: 1fr;
    }

    .about-panel__contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
}

@media (max-width: 420px) {
    .about-panel__content {
        padding: 1.15rem 1rem 1.35rem;
    }

    .about-panel__figure {
        max-height: 320px;
    }
}
