/* ==========================================
   Amora — объединённая история основателей
========================================== */

.founders-story-section {
    overflow: hidden;
}

.founders-story {
    display: grid;
    grid-template-columns:
        minmax(360px, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;
    gap: clamp(48px, 7vw, 100px);
}

.founders-photo-wrap {
    min-width: 0;
}

.founders-photo {
    position: relative;

    width: 100%;
    max-width: 620px;
    margin: 0;

    padding: 14px;

    overflow: hidden;

    border: 1px solid rgba(201, 168, 106, 0.25);
    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(246, 231, 223, 0.94)
        );

    box-shadow:
        0 32px 80px rgba(70, 50, 35, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.founders-photo::before {
    content: "";

    position: absolute;
    z-index: 2;
    inset: 14px;

    pointer-events: none;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
}

.founders-photo img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;
    object-position: center 35%;

    border-radius: 24px;

    background: #eee4de;

    transition:
        transform 0.65s ease,
        filter 0.65s ease;
}

.founders-photo:hover img {
    transform: scale(1.025);
    filter: saturate(1.04);
}

.founders-photo figcaption {
    position: absolute;
    z-index: 3;
    left: 34px;
    right: 34px;
    bottom: 32px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 18px;

    color: #3e3431;

    background: rgba(255, 252, 249, 0.84);
    box-shadow: 0 14px 34px rgba(61, 42, 34, 0.13);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.founders-photo figcaption > span {
    display: grid;
    place-items: center;

    flex: 0 0 44px;
    height: 44px;

    border-radius: 14px;

    color: #b86f59;
    background: linear-gradient(145deg, #f6dfd6, #e9c5b7);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
}

.founders-photo figcaption div {
    display: grid;
    gap: 2px;
}

.founders-photo figcaption strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.2;
}

.founders-photo figcaption small {
    color: #89746c;

    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.founders-copy {
    min-width: 0;
}

.founders-copy .section-title {
    max-width: 800px;
}

.founders-copy .lead {
    max-width: 820px;
}

.founders-copy > p:not(.lead) {
    max-width: 820px;
    color: #625852;
}

.founders-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 32px;
}

.founders-values > div {
    padding: 20px 18px;

    border: 1px solid rgba(47, 47, 47, 0.08);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.72);
}

.founders-values span {
    display: inline-block;
    margin-bottom: 12px;

    color: #b77761;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1;
}

.founders-values p {
    margin: 0;

    color: #746761;
    font-size: 0.84rem;
    line-height: 1.55;
}

.founders-values strong {
    color: #342e2c;
}

/* MacBook и небольшие ноутбуки */
@media (max-width: 1280px) {
    .founders-story {
        grid-template-columns:
            minmax(330px, 0.86fr)
            minmax(0, 1.14fr);

        gap: 52px;
    }

    .founders-values {
        grid-template-columns: 1fr;
    }
}

/* Планшеты и небольшие ноутбуки */
@media (max-width: 980px) {
    .founders-story {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .founders-photo {
        max-width: 620px;
        margin: 0 auto;
    }

    .founders-copy {
        text-align: center;
    }

    .founders-copy .section-title,
    .founders-copy .lead,
    .founders-copy > p:not(.lead) {
        margin-right: auto;
        margin-left: auto;
    }

    .founders-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .founders-photo {
        max-width: 540px;

        padding: 11px;
        border-radius: 28px;
    }

    .founders-photo::before {
        inset: 11px;
        border-radius: 20px;
    }

    .founders-photo img {
        border-radius: 20px;
    }

    .founders-photo figcaption {
        left: 27px;
        right: 27px;
        bottom: 25px;
    }

    .founders-values {
        grid-template-columns: 1fr;
    }
}

/* Телефоны */
@media (max-width: 560px) {
    .founders-story {
        gap: 30px;
    }

    .founders-photo {
        padding: 8px;
        border-radius: 23px;
    }

    .founders-photo::before {
        inset: 8px;
        border-radius: 17px;
    }

    .founders-photo img {
        border-radius: 17px;
        object-position: center 32%;
    }

    .founders-photo figcaption {
        left: 18px;
        right: 18px;
        bottom: 16px;

        padding: 11px 12px;
        border-radius: 15px;
    }

    .founders-photo figcaption > span {
        flex-basis: 37px;
        height: 37px;

        border-radius: 11px;
        font-size: 21px;
    }

    .founders-photo figcaption strong {
        font-size: 0.98rem;
    }

    .founders-photo figcaption small {
        font-size: 0.59rem;
        letter-spacing: 0.08em;
    }

    .founders-values > div {
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .founders-photo img {
        transition: none;
    }

    .founders-photo:hover img {
        transform: none;
    }
}
