/* ==========================================
   Amora — секция «Создано Никитой и Камилой»
   Фотографии:
   assets/img/nikita-kamila.webp
   assets/img/nikita-kamila.jpg
========================================== */

.story-section {
    overflow: hidden;
}

.story-with-photo {
    grid-template-columns:
        minmax(360px, 0.92fr)
        minmax(0, 1.08fr);

    gap: clamp(48px, 6vw, 92px);
    align-items: center;
}

.story-photo-column {
    width: 100%;
    min-width: 0;
}

.story-photo-frame {
    position: relative;

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

    padding: 14px;

    overflow: hidden;

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 235, 228, 0.92)
        );

    box-shadow:
        0 30px 75px rgba(70, 50, 35, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.story-photo-frame::before {
    content: "";

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

    pointer-events: none;

    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 22px;
}

.story-founders-photo {
    display: block;

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

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

    border-radius: 22px;

    background: #f2e9e4;

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

.story-photo-frame:hover .story-founders-photo {
    transform: scale(1.025);
    filter: saturate(1.03);
}

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

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;

    padding: 14px 16px;

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

    color: #3c3330;

    background: rgba(255, 252, 249, 0.82);

    box-shadow: 0 14px 35px rgba(65, 43, 34, 0.12);

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

.story-caption-heart {
    grid-row: 1 / 3;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 14px;

    color: #b96f59;
    background: linear-gradient(145deg, #f7e2da, #e9c6b8);

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

.story-photo-caption > span:not(.story-caption-heart) {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.2;
}

.story-photo-caption small {
    color: #89756d;

    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.story-copy .section-title {
    max-width: 760px;
}

.story-copy .lead {
    max-width: 760px;
}

.story-copy .btn {
    margin-top: 8px;
}

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

        gap: 48px;
    }

    .story-photo-frame {
        max-width: 530px;
    }
}

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

    .story-photo-column {
        order: 2;
    }

    .story-copy {
        order: 1;
        text-align: center;
    }

    .story-copy .section-title,
    .story-copy .lead {
        margin-right: auto;
        margin-left: auto;
    }

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

/* Планшеты */
@media (max-width: 768px) {
    .story-photo-frame {
        max-width: 540px;
        padding: 12px;
        border-radius: 28px;
    }

    .story-photo-frame::before {
        inset: 12px;
        border-radius: 20px;
    }

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

    .story-photo-caption {
        left: 28px;
        right: 28px;
        bottom: 26px;
    }
}

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

    .story-photo-frame {
        padding: 9px;
        border-radius: 24px;
    }

    .story-photo-frame::before {
        inset: 9px;
        border-radius: 17px;
    }

    .story-founders-photo {
        aspect-ratio: 4 / 5;
        border-radius: 17px;
        object-position: center 35%;
    }

    .story-photo-caption {
        left: 20px;
        right: 20px;
        bottom: 18px;

        column-gap: 10px;

        padding: 11px 12px;

        border-radius: 15px;
    }

    .story-caption-heart {
        width: 36px;
        height: 36px;

        border-radius: 11px;

        font-size: 20px;
    }

    .story-photo-caption > span:not(.story-caption-heart) {
        font-size: 0.95rem;
    }

    .story-photo-caption small {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 380px) {
    .story-photo-caption {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }
}

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

    .story-photo-frame:hover .story-founders-photo {
        transform: none;
    }
}
