.about {
}

.about__wrapper {
    max-width: 1135px;
    margin: 0 auto;
}

.about__top {
    margin-bottom: 104px;
}

.about__top-doctor {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 24px;
    margin-bottom: 46px;
}

.about__top-doctor-text {
    max-width: 648px;
}

.about__top-clinic {
    text-align: center;
    font-size: 24px;
    max-width: 960px;
    margin: 0 auto 30px auto;
}

.about__top-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.about__howweworks {
    margin-bottom: 104px;
}

.about__howweworks-title {
    text-align: center;
    margin-bottom: 30px;
}

.about__howweworks-columns {
    display: grid;
    grid-template-columns: 1fr 5px 1fr;
    gap: 126px;
    align-items: center;
}

.about__howweworks-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 128px;
}

.about__howweworks-img {
}

.about__howweworks-text {
    border-radius: 32px;
    max-width: 360px;
    height: 218px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 14px;
    font-size: 18px;
}

.about__howweworks-text-1 {
    background: linear-gradient(180deg, #a6b899, #bed2a3);
}

.about__howweworks-text-2 {
    background: linear-gradient(180deg, #8caea6, #a6b899);
}

.about__howweworks-text-3 {
    background: linear-gradient(180deg, #454d6f, #8caea6);
}

.about__howweworks-text-4 {
    background: linear-gradient(180deg, #123b7e, #454d6f);
}

.about__howweworks-text-5 {
    background-color: #123b7e;
}

.about__howweworks-index {
    font-size: 36px;
    font-weight: 900;
}

.about__howweworks-divider {
    width: 5px;
    min-height: 100%;
    background: linear-gradient(180deg, #bcd0a2, #123b7e);
    mask-image: repeating-linear-gradient(
        180deg,
        black 0px,
        black 4px,
        transparent 4px,
        transparent 8px
    );
    -webkit-mask-image: repeating-linear-gradient(
        180deg,
        black 0px,
        black 4px,
        transparent 4px,
        transparent 8px
    );
}

.about__ourwork {
    margin-bottom: 104px;
}

.about__ourworks-title {
    text-align: center;
    margin-bottom: 40px;
}

.about__ourworks-preview {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    height: 500px;
}

.about__ourworks-preview-item-1 {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
}

.about__ourworks-preview-item-2 {
    grid-column: 5 / 7;
    grid-row: 1 / 2;
}

.about__ourworks-preview-item-3 {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
}

.about__ourworks-preview-item-4 {
    grid-column: 1 / 4;
    grid-row: 2 / 4;
}

.about__ourworks-preview-item-5 {
    grid-column: 4 / 7;
    grid-row: 2 / 3;
}

.about__ourworks-preview-item-6 {
    grid-column: 4 / 7;
    grid-row: 3 / 4;
}

.about__ourworks-preview-item-7 {
    grid-column: 7 / 11;
    grid-row: 3 / 4;
}

.about__ourworks-preview-item-8 {
    grid-column: 11 / 13;
    grid-row: 3 / 4;
}

.about__ourworks-preview-item {
    overflow: hidden;
    border-radius: 24px;
    position: relative;
}

.about__ourworks-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about__ourworks-preview-item:hover img {
    transform: scale(1.05);
}

.about__ourworks-gallery {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 8px;
}

.about__ourworks-gallery-item {
    transition: transform 0.3s ease;
}

.about__ourworks-gallery-item:hover {
    transform: scale(1.05);
}

.about__ourworks-more {
    text-align: center;
    margin-top: 54px;
    font-size: 24px;
}

.about__ourworks-more-text:hover {
    cursor: pointer;
    text-decoration: underline;
}

.about__ourworks-less-text {
    display: none;
}

.about__team {
    margin-bottom: 108px;
}

.about__team-title {
    text-align: center;
    margin-bottom: 54px;
}

.about__team-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.team__gallery_col-1,
.team__gallery_col-2,
.team__gallery_col-3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.about__team-member img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.about__howweworks-column-mobile {
    display: none;
}

.about__top-new-texts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto 60px auto;
    font-size: 24px;
}

@media (max-width: 768px) {
    .about__ourworks-preview {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 200px);
        height: auto;
    }

    .about__ourworks-preview-item-1,
    .about__ourworks-preview-item-2,
    .about__ourworks-preview-item-3,
    .about__ourworks-preview-item-4,
    .about__ourworks-preview-item-5,
    .about__ourworks-preview-item-6,
    .about__ourworks-preview-item-7,
    .about__ourworks-preview-item-8 {
        grid-column: 1;
        grid-row: auto;
    }

    .about__howweworks-column-desktop {
        display: none;
    }

    .about__howweworks-column-mobile {
        display: flex;
        max-width: 456px;
        margin: 0 auto;
    }

    .about__top-doctor {
        flex-direction: column;
        text-align: center;
    }

    .about__top-doctor img {
        max-width: 100%;
        height: auto;
    }

    .about__top-doctor-text {
        max-width: 100%;
    }

    .about__top-cta {
        flex-direction: column;
        gap: 16px;
    }

    .about__howweworks-columns {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__howweworks-divider {
        display: none;
    }

    .about__howweworks-column {
        gap: 48px;
    }

    .about__howweworks-text {
        max-width: 100%;
        height: auto;
        padding: 20px;
        font-size: 16px;
    }

    .about__ourworks-preview {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto-fill, 200px);
        height: auto;
    }

    .about__ourworks-preview-item {
        grid-column: 1;
        grid-row: auto;
    }

    .about__ourworks-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .about__team-gallery {
        flex-direction: column;
        gap: 24px;
    }

    .about__top-cta-link {
        font-size: 16px;
        padding: 12px 12px;
    }

    .about__top-doctor-text,
    .about__top-clinic,
    .about__top-cta-text {
        font-size: 18px;
    }

    .about__howweworks-title,
    .about__ourworks-title,
    .about__team-title {
        font-size: 34px;
    }

    .about__ourworks-preview {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about__top-doctor {
        flex-direction: row;
        align-items: flex-start;
    }

    .about__top-doctor img {
        max-width: 40%;
        height: auto;
    }

    .about__top-doctor-text {
        max-width: 60%;
    }

    .about__howweworks-columns {
        gap: 64px;
    }

    .about__ourworks-preview {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(auto-fill, 200px);
        height: auto;
    }

    .about__ourworks-preview-item {
        border-radius: 16px;
    }

    .about__ourworks-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .about__team-gallery {
        gap: 12px;
    }
}
