.about {
    background: rgba(252, 245, 252, 1);
    position: relative;
    padding-top: 80px;
}

.about__wrapper {
    display: grid;
    grid-template-columns: 615px minmax(0, 1fr);
    grid-template-areas:
        "image content"
        "image awards";
    gap: 25px;
}

.about__content-column { grid-area: content; }
.about__image-column { grid-area: image; }
.about__awards { grid-area: awards; }

.about__wrapper--image-right .about__image-column { order: -1; }

.about__content-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.about__title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 64px;
    letter-spacing: -0.01em;
    color: #5C075E;
    margin: 0 0 24px 0;
}

.about__description {
    font-family: Manrope, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #5C075E;
    margin: 0 0 32px 0;
}

.about__button-wrap { margin-bottom: 40px; }

.about__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    height: 53px;
    background: #FEFAFF;
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: padding-box;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 25px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
    position: relative;
    box-shadow: 0 0 0 1px #C05FC2;
}

.about__button span {
    background: linear-gradient(180deg, #C05FC2 0%, #8D2A8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px #8D2A8F, 0 8px 20px rgba(141, 42, 143, 0.2);
}

.about__image-column {
    display: flex;
    flex-direction: column;
    align-self: stretch;   /* было start */
    max-height: none;      /* убрать ограничение */
}

.about__image-wrap {
    flex: 1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(141, 42, 143, 0.12);
}

.about__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 490px;
}

.about__awards {
    display: grid;
    grid-template-columns:
        minmax(0, 284px)
        minmax(0, 335px)
        minmax(0, 290px);
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;

    min-width: 0;
}


.about__award-item {
    height: 165px;
}

.about__award-item {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__award-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(141, 42, 143, 0.15);
}

.about__award-logo {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    height: 34px;
    flex-shrink: 0;
}

/* Размеры логотипов по макету (десктоп) */
.about__award-item:nth-child(1) .about__award-logo img { width: 191px; height: 29px; }
.about__award-item:nth-child(2) .about__award-logo img { width: 103px; height: 34px; }
.about__award-item:nth-child(3) .about__award-logo img { width: 114px; height: 29px; }

.about__award-logo img {
    display: block;
    object-fit: contain;
}

.about__award-title {
    font-family: Manrope, sans-serif;
    font-weight: 400;
    color: #5C075E;
    font-size: 16px;
    line-height: 22px;
}

.about__award-image { margin-top: 12px; width: 100%; max-width: 160px; }
.about__award-image img { width: 100%; height: auto; object-fit: contain; }


@media (max-width: 1200px) {
    .about__title { font-size: 44px; line-height: 52px; }
}

/* ── TABLET (577px – 1024px) ──────────────────────────────────────── */
@media (min-width: 577px) and (max-width: 1024px) {

    .about { padding-top: 50px !important; }

    .about__wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
        "image content"
        "awards awards";
        gap: 30px;
    }

    /* ФОТО — левая колонка */
    .about__image-column {
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
        max-height: none;
    }

    /* ТЕКСТ — правая колонка */
    .about__content-column {
        grid-column: 2;
        grid-row: 1;
    }

    /* Картинка заполняет всю высоту (flex: 1 + height:100% уже в базе) */
    .about__image-wrap {
        border-radius: 20px;
        height: 100%;
    }

    .about__image {
        min-height: 0;
        height: 100%;
    }

    /* Награды — вторая строка на всю ширину */
    .about__awards {
        grid-template-columns:
        minmax(0, 275px)
        minmax(0, 362px)
        minmax(0, 267px);
        gap: 20px;
    }

    .about__award-item {
        height: 116px;
    }

    .about__title {
        font-size: clamp(22px, 3.5vw, 34px);
        line-height: 46px;
        margin: 0 0 15px 0;
    }

    .about__description {
        font-size: 14px;
        line-height: 22px;
        margin: 0 0 30px 0;
    }

    .about__button-wrap { margin-bottom: 0; }

    .about__button {
        font-size: 12px;
        height: 36px;
        padding: 10px 20px;
        border-radius: 8px;
    }

    .about__award-item { padding: 15px; }

    .about__award-title {
        font-size: 12px;
        line-height: 16px;
    }

    /* Логотипы — те же размеры что и на десктопе */
    .about__award-item:nth-child(1) .about__award-logo img { width: 191px; height: 29px; }
    .about__award-item:nth-child(2) .about__award-logo img { width: 103px; height: 34px; }
    .about__award-item:nth-child(3) .about__award-logo img { width: 114px; height: 29px; }
}

/* ── MOBILE (≤ 576px) ────────────────────────────────────────────── */
@media (max-width: 576px) {

    .about { padding: 40px 0; margin-bottom: 30px !important; }
    .home .about { padding-bottom: 0; }

    .about__wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
        "image"
        "content"
        "awards";
    }

    /* image → content → awards */
    .about__image-column  { order: 0; grid-column: 1; margin-bottom: 15px; max-height: none; }
    .about__content-column { order: 1; grid-column: 1; }
    .about__awards         { order: 2; grid-column: 1; margin-top: 25px; }

    .about__image-wrap {
        border-radius: 15px;
        height: auto;
        flex: none;
    }

    .about__image {
        height: 214px;
        min-height: 0;
        object-fit: cover;
    }

    .about__title {
        font-size: 24px;
        line-height: 27px;
        margin: 0 0 10px 0;
    }

    .about__description {
        font-size: 12px;
        line-height: 18px;
        margin: 0 0 15px 0;
    }

    .about__button-wrap { margin-bottom: 0; }

    .about__button {
        width: 100%;
        font-size: 12px;
        height: 36px;
        padding: 10px 20px;
        border-radius: 8px;
    }

    /* Награды — одна колонка */
    .about__awards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about__award-item:nth-child(1) {
        height: 103px;
    }

    .about__award-item:nth-child(2) {
        height: 107px;
    }

    .about__award-item:nth-child(3) {
        height: 105px;
    }

    .about__award-item {
        padding: 15px;
        border-radius: 15px;
    }

    .about__award-title {
        font-size: 12px;
        line-height: 16px;
    }

    .about__wrapper {
        gap: 15px; /* единый отступ */
    }

    .about__image-column {
        margin-bottom: 0; /* убрать */
    }

    .about__description {
        margin: 0 0 12px 0;
    }

    .about__button-wrap {
        margin-bottom: 0;
    }

    .about__awards {
        margin-top: 10px;
    }


    /* Логотипы по мобильному макету */
    .about__award-item:nth-child(1) .about__award-logo img { width: 172px; height: 27px; }
    .about__award-item:nth-child(2) .about__award-logo img { width: 97px;  height: 31px; }
    .about__award-item:nth-child(3) .about__award-logo img { width: 114px; height: 29px; }
}
.home .about {
    padding-top: 0;
}
