/* Fotóhatású illusztrációk a szakmai eszköztárhoz és a közös projektekhez. */
.tools-grid {
    align-items: stretch;
    gap: 28px;
}

.tool-panel.tool-photo-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5dfca;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 4px 8px #263b1805, 0 18px 36px #263b180d;
}

.tool-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2.3;
    background: #263033;
    isolation: isolate;
}

.tool-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #0b151b00 45%, #0b151b8c);
}

.tool-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    transition: transform 500ms ease;
}

.tool-photo-label {
    position: absolute;
    z-index: 1;
    bottom: 20px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #d7e7c333;
    border-radius: 8px;
    color: #f6fbea;
    background: #102019d9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.tool-photo-label .ui-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
}

.tool-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px 30px;
    border-top: 3px solid var(--green);
}

.tool-content .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
}

.tool-content h2 {
    margin-bottom: 14px;
    font-size: clamp(24px, 2.05vw, 29px);
    line-height: 1.2;
}

.tool-content > p:not(.eyebrow) {
    margin: 0 0 26px;
    color: #55626a;
    font-size: 16px;
    line-height: 1.65;
}

.tool-content > .button,
.tool-content > .availability {
    margin-top: auto;
}

.tool-content > .button {
    font-size: 14px;
}

.tool-content > .availability {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #dce6cf;
    border-radius: 8px;
    background: #f3f7ed;
    color: var(--green-text);
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .tool-photo-card:hover .tool-photo img {
        transform: scale(1.025);
    }
}

@media (max-width: 700px) {
    .tools-grid {
        gap: 24px;
    }

    .tool-panel.tool-photo-card {
        border-radius: 18px;
    }

    .tool-photo {
        aspect-ratio: 1.85;
    }

    .tool-photo-label {
        left: 22px;
        bottom: 16px;
        font-size: 10px;
    }

    .tool-content {
        padding: 22px;
    }

    .tool-content h2 {
        font-size: 25px;
    }

    .tool-content > p:not(.eyebrow) {
        font-size: 15px;
    }

    .tool-content > .button {
        width: 100%;
        justify-content: space-between;
        padding-inline: 16px;
    }
}

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