/* =========================================
   Block: About Hero
   ========================================= */

.about-hero {
    padding: 80px 0 88px;
    background: var(--color-bg);
}

.about-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* --- Content --- */
.about-hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-hero__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-hero__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-hero__heading {
    font-size: clamp(26px, 3.4vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.about-hero__description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.about-hero__description p { margin-bottom: 10px; }
.about-hero__description p:last-child { margin-bottom: 0; }

/* =========================================
   Photo Stack
   ========================================= */

.about-hero__stack {
    position: relative;
    height: 420px;
}

.about-hero__photo {
    position: absolute;
    /* Центрируем внутри стека — GSAP смещает от этой точки */
    left: 50%;
    top: 45%;
    width: 78%;
    background: #ffffff;
    cursor: pointer;
    padding: 10px 10px 40px;
    opacity: 0; /* GSAP покажет после расстановки позиций */
    border-radius: 3px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.08),
        0 8px 24px rgba(0,0,0,0.10),
        0 0 0 0.5px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

/* Зернистость плёнки */
.about-hero__photo::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px; bottom: 40px; left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: 1px;
    mix-blend-mode: multiply;
}

.about-hero__photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}

/* Hover только на устройствах с курсором */
@media (hover: hover) {
    .about-hero__photo:hover {
        filter: brightness(1.06);
        box-shadow:
            0 6px 16px rgba(0,0,0,0.12),
            0 16px 40px rgba(0,0,0,0.14),
            0 0 0 0.5px rgba(0,0,0,0.06);
    }
}

/* =========================================
   Entrance animation
   ========================================= */

.js-about-anim {
    opacity: 0;
    transform: translateY(36px);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .about-hero__stack { height: 380px; }
}

@media (max-width: 900px) {
    .about-hero { padding: 48px 0 56px; }

    /* На мобиле: intro → stack → body */
    .about-hero__inner {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    /* display:contents убирает обёртку из потока —
       дети .about-hero__content становятся прямыми детьми flex */
    .about-hero__content {
        display: contents;
    }

    .about-hero__intro { order: 1; gap: 12px; }

    .about-hero__stack {
        order: 2;
        height: 300px;
        /* Центрируем стек, ограничиваем ширину чтоб не лип к краям */
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-hero__body { order: 3; gap: 16px; }

    .about-hero__photo { width: 68%; }
}

@media (max-width: 600px) {
    .about-hero { padding: 28px 0 40px; }

    .about-hero__stack {
        height: 240px;
        max-width: 360px;
    }

    .about-hero__photo {
        width: 72%;
        padding: 8px 8px 28px;
    }

    .about-hero__photo::after { top: 8px; right: 8px; bottom: 28px; left: 8px; }

    .about-hero__description { font-size: 14px; }

    .about-hero__body .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .about-hero__stack { height: 220px; }
    .about-hero__photo { width: 76%; }
}
