/* Szolgáltatáskártyák: az illusztráció, a leírás és a kapcsolati gomb egy felület. */
.service-grid {
    gap: 24px;
    align-items: start;
    margin-top: 36px;
}

.service {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5dfca;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 3px 5px #263b1805, 0 16px 32px #263b180a;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 26px auto;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--green-start), var(--green-end));
}

.service-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 192px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid #e7eddf;
    background:
        radial-gradient(ellipse at 50% 67%, #dcefb6a6, #f5f9ef00 66%),
        linear-gradient(145deg, #f9fbf5, #eff5e7);
}

.service-media::before,
.service-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 110px;
    border: 1px solid #9ebf6b26;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.service-media::after {
    width: 290px;
    height: 145px;
    border-color: #9ebf6b14;
}

.service-number {
    position: absolute;
    top: 18px;
    left: 22px;
    color: #72825e;
    font: 600 11px/1 "Source Sans 3", sans-serif;
    letter-spacing: .08em;
}

.service-image {
    position: relative;
    width: 218px;
    height: 164px;
    max-width: 80%;
    margin: 12px 0 0;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    transition: transform 240ms ease;
}

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
}

/* A rövid példákból a látogató technikai előismeret nélkül is felismerheti az igényét. */
.service-examples {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.service-examples li {
    padding-top: 16px;
    border-top: 1px solid #e5eae2;
}

.service-examples h4,
.service-extra h4 {
    margin: 0 0 6px;
    color: #26332a;
    font-size: 17px;
    line-height: 1.4;
}

.service .service-examples p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.service-details {
    width: 100%;
    margin-bottom: 26px;
    padding: 0;
    border-top: 1px solid #e5eae2;
    border-bottom: 1px solid #e5eae2;
}

.service-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding-block: 12px;
    cursor: pointer;
    color: var(--green-text);
    font-size: 16px;
    font-weight: 600;
    list-style: none;
}

.service-details summary::-webkit-details-marker {
    display: none;
}

.service-details summary:hover {
    color: #243b00;
}

.service-details summary svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 280ms ease;
}

.service-details[open] summary svg {
    transform: rotate(180deg);
}

.service-details.is-closing summary svg {
    transform: none;
}

/* A felirat és a nyíl a natív nyitott állapotot követi, külön szkript nélkül. */
.service-collapse-label,
.service-details[open] .service-expand-label {
    display: none;
}

.service-details[open] .service-collapse-label {
    display: inline;
}

.service-extra {
    padding-bottom: 20px;
}

.service .service-extra p {
    margin: 0;
    font-size: 16px;
}

.service-scope {
    max-width: 90ch;
    margin: 24px auto 0;
    color: #55626a;
    font-size: 16px;
    text-align: center;
}

/* A részletes kártyák után a szakmai háttér önálló, jól felismerhető szakasz. */
.expertise-section {
    padding-bottom: 72px;
}

@media (min-width: 1001px) {
    .service h3 {
        min-height: 2.4em;
    }

    .service .service-intro {
        min-height: 6.6em;
    }
}

.service h3 {
    margin-bottom: 12px;
    font-size: clamp(22px, 1.8vw, 26px);
}

.service p {
    min-height: 0;
    margin: 0 0 24px;
    color: #55626a;
    font-size: 16px;
    line-height: 1.65;
}

.service .service-cta {
    width: 100%;
    margin-top: auto;
    justify-content: space-between;
    padding-inline: 18px;
    font-size: 16px;
    border-color: #b5c79e;
    background: linear-gradient(120deg, #f9fbf5, #e9f0e0);
    color: var(--green-text);
}

.service .service-cta:hover {
    border-color: #728c5d;
    background: linear-gradient(120deg, #eef4e6, #dbe7cb);
}

.service .service-cta:active {
    background: linear-gradient(120deg, #e0ebd4, #cfdfbb);
}

.service:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #4376081f, 0 16px 32px #263b1812;
}

/* Csak pontos mutatóval emelkednek meg a kártyák; érintéskor nem ragad be a hatás. */
@media (hover: hover) and (pointer: fine) {
    .service:hover {
        transform: translateY(-4px);
        border-color: #829d5f;
        box-shadow: 0 6px 10px #263b1808, 0 22px 40px #263b1814;
    }

    .service:hover .service-image {
        transform: translateY(-4px) rotate(-1deg);
    }
}

@media (min-width: 701px) and (max-width: 1000px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service {
        flex-direction: row;
    }

    .service-media {
        flex: 0 0 34%;
        border-bottom: 0;
        border-right: 1px solid #e7eddf;
    }

    .service-content {
        min-width: 0;
        padding: 24px;
    }

    .service .service-cta {
        width: auto;
        gap: 24px;
    }
}

@media (max-width: 700px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 28px;
    }

    .service {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-radius: 18px;
    }

    .service-media {
        min-height: 166px;
    }

    .service-image {
        width: 200px;
        height: 150px;
        margin-top: 8px;
    }

    .service-content {
        padding: 22px;
    }

    .service h3 {
        font-size: 24px;
    }

    .service p {
        font-size: 15px;
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service,
    .service-image,
    .service-details summary svg {
        transition: none;
    }

    .service:hover,
    .service:hover .service-image {
        transform: none;
    }
}
