/* === WRAPPER: центрирование + адаптивная сетка === */
.agat-horizontal-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    perspective: 1600px;
}

/* === CARD === */
.agat-hcard {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 720px;

    background: var(--agat-bg-blur);
    border: 1px solid var(--agat-border);
    backdrop-filter: blur(18px);

    border-radius: var(--agat-radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--agat-text);

    box-shadow: 0 14px 32px rgba(15,23,42,0.18);
    transition: transform .35s cubic-bezier(.22,.61,.36,1),
                box-shadow .35s ease,
                filter .35s ease;

    position: relative;
    transform-style: preserve-3d;

    font-size: 1.55rem;
    line-height: 1.45;
}

/* === PARALLELEPIPED SKEW === */
.agat-hcard::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%);
    pointer-events: none;

    transform: skewX(-6deg);
    transform-origin: top left;
}

/* === ORANGE GLOW + 3D === */
.agat-hcard:hover {
    box-shadow:
        0 22px 48px rgba(15,23,42,0.32),
        0 0 22px rgba(196,90,26,0.55),
        0 0 42px rgba(196,90,26,0.35);
    filter: brightness(1.05);
    transform: translateY(-10px) rotateX(6deg) rotateY(-6deg);
}

/* === IMAGE LEFT === */
.agat-hcard-img {
    width: 42%;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}

/* === ICON INSIDE IMAGE (эмодзи) === */
.agat-hcard-img::after {
    content: attr(data-icon);
    position: absolute;
    bottom: 12px;
    right: 12px;

    font-size: 2rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 0 12px rgba(0,0,0,0.45);
}

/* === CONTENT RIGHT === */
.agat-hcard-content {
    position: relative;
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 58%;

    padding-right: 80px; /* место под иконку справа */
}

/* === ICON RIGHT OF TEXT === */
.agat-hcard-icon-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.45;
    pointer-events: none;
}

.agat-hcard-icon-right svg {
    width: 56px;
    height: 56px;
    fill: var(--agat-accent);
}

/* === TITLE === */
.agat-hcard-title {
    font-size: 1.7rem;
    font-family: var(--agat-font-head);
    font-weight: 700;
    color: var(--agat-accent-secondary);
    margin-bottom: 0.45rem;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

/* === DESCRIPTION === */
.agat-hcard-desc {
    font-size: 1.55rem;
    color: var(--agat-text-muted);
    line-height: 1.55;
}

/* === SPECS === */
.agat-specs-toggle {
    font-size: 1.35rem;
    color: var(--agat-accent-primary);
}

.agat-specs-body p {
    font-size: 1.35rem;
    margin: 0.35rem 0;
    color: var(--agat-text-muted);
}

/* === ADAPTIVE === */
@media (max-width: 1024px) {
    .agat-hcard {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .agat-hcard {
        flex-direction: column;
        max-width: 100%;
        transform: none !important;
    }

    .agat-hcard-img {
        width: 100%;
        height: 200px;
    }

    .agat-hcard-content {
        width: 100%;
        padding-right: 1.4rem; /* убираем место под иконку */
    }

    .agat-hcard-icon-right {
        right: 12px;
        top: auto;
        bottom: 12px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .agat-hcard {
        font-size: 1.35rem;
    }

    .agat-hcard-title {
        font-size: 1.45rem;
    }

    .agat-hcard-desc {
        font-size: 1.25rem;
    }
}
