.tech-section--compact {
    padding-top: 36px;
    padding-bottom: 36px;
}

.tech-section--compact .tech-grid {
    gap: 20px;
}

.tech-section--compact .tech-card {
    padding: 18px 20px;
    border-radius: 14px;
}

.tech-icon-bg .tech-card-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.tech-icon-bg .material-symbols-outlined.tech-card-icon {
    font-size: 24px;
    line-height: 1;
}

.tech-icon-bg .psoft-mask-icon.tech-card-icon {
    background-color: currentColor;
}

.tech-more-link .tech-more-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.tech-more-link .material-symbols-outlined.tech-more-icon {
    font-size: 16px;
    line-height: 1;
}

.tech-more-link .psoft-mask-icon.tech-more-icon {
    background-color: currentColor;
}

/* === EXECUTIVE VARIANT === */

.tech-section--executive {
    padding-top: 64px;
    padding-bottom: 64px;
}

.tech-section--executive .tech-grid {
    gap: 20px;
    align-items: start;
}

/* Card shell */
.tech-section--executive .tech-card {
    background-color: var(--white);
    border-radius: 22px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
    padding: 0;
    overflow: hidden;
    justify-content: flex-start;
}

/* Hover — стриманий */
.tech-section--executive .tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Top area: іконка | заголовок | номер */
.tech-section--executive .tech-card-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
}

/* Іконка: компактна, брендова, не масивна */
.tech-section--executive .tech-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.tech-section--executive .tech-icon-bg .tech-card-icon {
    width: 20px;
    height: 20px;
}

.tech-section--executive .tech-icon-bg .material-symbols-outlined.tech-card-icon {
    font-size: 20px;
}

/* Heading group */
.tech-section--executive .tech-heading-group {
    min-width: 0;
}

/* Заголовок: сильний, але компактний */
.tech-section--executive .tech-title {
    font-size: var(--text-base-size);
    line-height: var(--text-base-line);
    font-weight: var(--font-semibold);
    color: #0D1F1A;
    margin-bottom: 0;
    letter-spacing: normal;
}

/* Номер картки: структурний акцент, не домінує */
.tech-section--executive .tech-card-index {
    font-size: 11px;
    font-weight: var(--font-semibold);
    letter-spacing: normal;
    color: var(--color-secondary);
    opacity: 0.35;
    line-height: 1;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 2px;
}

/* Inset panel: ключовий елемент проти "порожньої картки" */
.tech-section--executive .tech-card-panel {
    background-color: #F6F8F6;
    border-top: 1px solid var(--gray-100);
    padding: 16px 22px 20px;
    flex: 1;
}

/* Features list: щільний, акуратний */
.tech-section--executive .tech-features {
    margin: 0;
    gap: 7px;
}

.tech-section--executive .tech-feature-item {
    font-size: var(--text-xs-size);
    color: var(--gray-700);
    line-height: 1.5;
    gap: 9px;
    align-items: flex-start;
}

.tech-section--executive .tech-feature-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-secondary);
    opacity: 0.45;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Footer (якщо є теги або more-link) */
.tech-section--executive .tech-card-footer {
    padding: 13px 22px;
    margin-top: 0;
    border-top: 1px solid var(--gray-100);
}

/* Hover іконки — м'який, не агресивний */
.tech-section--executive .tech-card-hover .tech-icon-bg {
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 350ms cubic-bezier(0.4, 0, 0.2, 1),
                color 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-section--executive .tech-card-hover:hover .tech-icon-bg {
    transform: scale(1.06) rotate(2deg);
    background-color: var(--color-primary);
    color: var(--color-blue-dark);
}

/* === REFINED VARIANT === */

.tech-section--refined {
    padding-top: 64px;
    padding-bottom: 64px;
}

.tech-section--refined .tech-grid {
    gap: 24px;
    align-items: stretch;
}

/* ── Card shell ── */
.tech-section--refined .tech-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 4px 16px -2px rgba(0, 0, 0, 0.06);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-section--refined .tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 8px 24px -4px rgba(0, 0, 0, 0.10),
                0 24px 48px -12px rgba(0, 0, 0, 0.08);
}

/* ── Head: icon left + content right ── */
.tech-section--refined .tech-card-head {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    align-items: start;
    padding: 28px 28px 24px;
    flex: 1;
}

/* ── Icon tile ── */
.tech-section--refined .tech-icon-bg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, #EEF6F3 0%, #E4EFEB 100%);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(10, 91, 79, 0.08);
    color: #0A5B4F;
    margin-bottom: 0;
    flex-shrink: 0;
    transition: background 400ms ease, box-shadow 400ms ease;
}

.tech-section--refined .tech-card:hover .tech-icon-bg {
    background: linear-gradient(145deg, #E4F0EC 0%, #D8E9E3 100%);
    box-shadow: inset 0 0 0 1px rgba(10, 91, 79, 0.12);
}

.tech-section--refined .tech-icon-bg .tech-card-icon {
    width: 26px;
    height: 26px;
    color: #0A5B4F;
}

.tech-section--refined .tech-icon-bg .material-symbols-outlined.tech-card-icon {
    font-size: 26px;
    color: #0A5B4F;
}

.tech-section--refined .tech-icon-bg .psoft-mask-icon.tech-card-icon {
    background-color: #0A5B4F;
}

/* ── Right column: title row + features ── */
.tech-section--refined .tech-card-head-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.tech-section--refined .tech-card-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ── Heading group ── */
.tech-section--refined .tech-heading-group {
    min-width: 0;
}

/* ── Title ── */
.tech-section--refined .tech-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #0C1F1A;
    margin: 0;
    letter-spacing: normal;
}

/* ── Number ── */
.tech-section--refined .tech-card-index {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
    color: rgba(10, 91, 79, 0.35);
    flex-shrink: 0;
    line-height: 1;
}

/* ── Features ── */
.tech-section--refined .tech-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.tech-section--refined .tech-feature-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #3D4F49;
    font-size: 14.5px;
    line-height: 1.5;
}

.tech-section--refined .tech-feature-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #0A5B4F;
    opacity: 0.30;
    position: relative;
    top: -2.5px;
}

/* ── Footer ── */
.tech-section--refined .tech-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 28px;
    margin-top: auto;
}

/* ── Mobile ── */
@media (max-width: 639px) {
    .tech-section--refined .tech-grid {
        align-items: start;
    }

    .tech-section--refined .tech-card {
        height: auto;
    }

    .tech-section--refined .tech-card-head {
        grid-template-columns: 52px 1fr;
        gap: 16px;
        padding: 22px 20px 20px;
    }

    .tech-section--refined .tech-icon-bg {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .tech-section--refined .tech-title {
        font-size: 19px;
    }

    .tech-section--refined .tech-card-footer {
        padding: 12px 20px;
    }

    .tech-section--refined .tech-card-index {
        font-size: 12px;
    }
}

/* === RAIL VARIANT === */

.tech-section--rail {
    padding-top: 64px;
    padding-bottom: 64px;
}

.tech-section--rail .tech-grid {
    gap: 22px;
    align-items: start;
}

/* Card shell — grid з двома колонками */
.tech-section--rail .tech-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    background-color: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    min-height: unset;
    padding: 0;
    box-shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.10);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.tech-section--rail .tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -14px rgba(16, 24, 40, 0.14);
    border-color: var(--gray-300);
}

/* Left rail — бренд-зона */
.tech-section--rail .tech-card-rail {
    background: linear-gradient(180deg, #0A5B4F 0%, #07453D 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 12px 16px;
    position: relative;
}

/* Іконка в rail */
.tech-section--rail .tech-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: #fff;
    margin-bottom: 0;
}

.tech-section--rail .tech-icon-bg .tech-card-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}

.tech-section--rail .tech-icon-bg .material-symbols-outlined.tech-card-icon {
    font-size: 20px;
    color: #fff;
}

.tech-section--rail .tech-icon-bg .psoft-mask-icon.tech-card-icon {
    background-color: #fff;
}

/* Index у rail */
.tech-section--rail .tech-card-index {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1;
}

/* Body — контент-зона */
.tech-section--rail .tech-card-body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
}

/* Title */
.tech-section--rail .tech-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

/* Features */
.tech-section--rail .tech-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tech-section--rail .tech-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.55;
}

.tech-section--rail .tech-feature-dot {
    width: 5px;
    height: 5px;
    margin-top: 8px;
    flex-shrink: 0;
    background: var(--color-primary);
}

/* Footer усередині body */
.tech-section--rail .tech-card-footer {
    border-top: 1px solid var(--gray-100);
    padding-top: 14px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Icon hover */
.tech-section--rail .tech-card-hover .tech-icon-bg {
    transition: transform 300ms ease, background-color 300ms ease;
}

.tech-section--rail .tech-card-hover:hover .tech-icon-bg {
    transform: scale(1.08) rotate(2deg);
    background: rgba(255, 255, 255, 0.18);
}

/* Mobile — rail зверху, body знизу */
@media (max-width: 639px) {
    .tech-section--rail .tech-card {
        grid-template-columns: 1fr;
    }

    .tech-section--rail .tech-card-rail {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 20px;
    }

    .tech-section--rail .tech-icon-bg {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .tech-section--rail .tech-title {
        font-size: 20px;
    }
}
/* Smooth staged reveal for tech cards */
.tech-grid--reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 280ms ease,
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-grid--reveal .tech-card {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
    transition:
        opacity 380ms ease,
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.tech-grid--reveal.is-revealed {
    opacity: 1;
    transform: none;
}

.tech-grid--reveal.is-revealed .tech-card {
    opacity: 1;
    transform: none;
}

.tech-grid--reveal.is-revealed .tech-card:nth-child(1) { transition-delay: 0ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(2) { transition-delay: 60ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(3) { transition-delay: 120ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(4) { transition-delay: 180ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(5) { transition-delay: 240ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(6) { transition-delay: 300ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(7) { transition-delay: 360ms; }
.tech-grid--reveal.is-revealed .tech-card:nth-child(8) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
    .tech-grid--reveal,
    .tech-grid--reveal .tech-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}