/* IntegraDomy.pl — samodzielna sekcja hero
   Wszystkie klasy mają prefiks id-hero, aby ograniczyć kolizje ze stylem strony. */

.id-hero {
    --id-red: #df171f;
    --id-red-dark: #bc1017;
    --id-navy: #071426;
    --id-text: #4c586a;
    --id-line: #d9dee6;
    --id-surface: #ffffff;
    --id-soft: #f7f8fa;
    --id-shadow: 0 24px 65px rgba(7, 20, 38, 0.16);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: clamp(690px, 82vh, 900px);
    background:
        radial-gradient(circle at 16% 8%, rgba(223, 23, 31, 0.035), transparent 28%),
        linear-gradient(135deg, #fff 0%, #fff 49%, #fafbfc 100%);
    color: var(--id-navy);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.id-hero *,
.id-hero *::before,
.id-hero *::after {
    box-sizing: border-box;
}

.id-hero a {
    color: inherit;
}

.id-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    width: min(100%, 1680px);
    min-height: inherit;
    margin-inline: auto;
}

.id-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(72px, 7vw, 120px) clamp(32px, 7vw, 116px);
    padding-right: clamp(52px, 7vw, 118px);
}

.id-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    width: fit-content;
    margin-bottom: 28px;
    color: var(--id-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.id-hero__eyebrow i {
    display: block;
    width: 54px;
    height: 1px;
    background: currentColor;
}

.id-hero__title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(46px, 4.45vw, 76px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.99;
    text-wrap: balance;
}

.id-hero__title span {
    color: var(--id-red);
}

.id-hero__lead {
    max-width: 660px;
    margin: 34px 0 0;
    color: var(--id-text);
    font-size: clamp(17px, 1.28vw, 21px);
    line-height: 1.58;
}

.id-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.id-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 62px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.id-hero__button svg,
.id-hero__card-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 180ms ease;
}

.id-hero__button--primary {
    background: var(--id-red);
    color: #fff;
    box-shadow: 0 14px 30px rgba(223, 23, 31, 0.19);
}

.id-hero__button--primary:hover {
    background: var(--id-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(223, 23, 31, 0.24);
}

.id-hero__button--primary:hover svg {
    transform: translateY(3px);
}

.id-hero__button--secondary {
    border-color: #cbd1da;
    background: rgba(255, 255, 255, 0.7);
    color: var(--id-navy);
    backdrop-filter: blur(8px);
}

.id-hero__button--secondary:hover {
    border-color: var(--id-navy);
    transform: translateY(-2px);
}

.id-hero__button--secondary:hover svg,
.id-hero__card-link:hover svg {
    transform: translateX(4px);
}

.id-hero__button:focus-visible,
.id-hero__card-link:focus-visible {
    outline: 3px solid rgba(223, 23, 31, 0.28);
    outline-offset: 4px;
}

.id-hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 770px;
    margin-top: 52px;
}

.id-hero__benefit {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0 22px;
    border-left: 1px solid var(--id-line);
}

.id-hero__benefit:first-child {
    padding-left: 0;
    border-left: 0;
}

.id-hero__benefit:last-child {
    padding-right: 0;
}

.id-hero__benefit-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(223, 23, 31, 0.13);
    border-radius: 50%;
    background: rgba(223, 23, 31, 0.035);
    color: var(--id-red);
}

.id-hero__benefit-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.id-hero__benefit h2 {
    margin: 1px 0 7px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.id-hero__benefit p {
    margin: 0;
    color: #667183;
    font-size: 12.5px;
    line-height: 1.5;
}

.id-hero__media {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: inherit;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 9% 67%);
    background: #dce6f0;
}

.id-hero__media picture,
.id-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.id-hero__media img {
    object-fit: cover;
    object-position: 55% center;
    transform: scale(1.01);
}

.id-hero__media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 20, 38, 0.08), transparent 32%),
        linear-gradient(180deg, transparent 66%, rgba(7, 20, 38, 0.11));
    pointer-events: none;
}

.id-hero__card {
    position: absolute;
    right: clamp(24px, 4vw, 64px);
    bottom: clamp(34px, 6vw, 78px);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 18px;
    width: min(440px, calc(100% - 54px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--id-shadow);
    backdrop-filter: blur(14px);
}

.id-hero__card-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 7px;
    background: var(--id-red);
    color: #fff;
}

.id-hero__card-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.id-hero__card-copy {
    min-width: 0;
}

.id-hero__card-copy strong,
.id-hero__card-copy span {
    display: block;
}

.id-hero__card-copy strong {
    font-size: 18px;
    line-height: 1.25;
}

.id-hero__card-copy span {
    margin-top: 7px;
    color: #596578;
    font-size: 13px;
    line-height: 1.45;
}

.id-hero__card-link {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: var(--id-red);
    text-decoration: none;
}

.id-hero__card-link:hover {
    background: rgba(223, 23, 31, 0.07);
}

.id-hero__decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.id-hero__decor--dots {
    top: 12%;
    left: 48%;
    width: 145px;
    height: 145px;
    opacity: 0.55;
    background-image: radial-gradient(circle, rgba(7, 20, 38, 0.14) 1px, transparent 1.5px);
    background-size: 12px 12px;
    mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.id-hero__decor--arc {
    left: -140px;
    bottom: -290px;
    width: 680px;
    height: 680px;
    border: 1px solid rgba(7, 20, 38, 0.07);
    border-radius: 50%;
    box-shadow:
        0 0 0 88px rgba(255, 255, 255, 0),
        0 0 0 89px rgba(7, 20, 38, 0.04),
        0 0 0 180px rgba(255, 255, 255, 0),
        0 0 0 181px rgba(7, 20, 38, 0.025);
}

/* Delikatne wejście aktywowane przez JS. Bez JS zawartość pozostaje widoczna. */
.id-hero-js .id-hero:not(.is-visible) .id-hero__eyebrow,
.id-hero-js .id-hero:not(.is-visible) .id-hero__title,
.id-hero-js .id-hero:not(.is-visible) .id-hero__lead,
.id-hero-js .id-hero:not(.is-visible) .id-hero__actions,
.id-hero-js .id-hero:not(.is-visible) .id-hero__benefits,
.id-hero-js .id-hero:not(.is-visible) .id-hero__card {
    opacity: 0;
    transform: translateY(16px);
}

.id-hero-js .id-hero .id-hero__eyebrow,
.id-hero-js .id-hero .id-hero__title,
.id-hero-js .id-hero .id-hero__lead,
.id-hero-js .id-hero .id-hero__actions,
.id-hero-js .id-hero .id-hero__benefits,
.id-hero-js .id-hero .id-hero__card {
    transition: opacity 600ms ease, transform 600ms ease;
}

.id-hero-js .id-hero .id-hero__title { transition-delay: 70ms; }
.id-hero-js .id-hero .id-hero__lead { transition-delay: 130ms; }
.id-hero-js .id-hero .id-hero__actions { transition-delay: 190ms; }
.id-hero-js .id-hero .id-hero__benefits { transition-delay: 250ms; }
.id-hero-js .id-hero .id-hero__card { transition-delay: 320ms; }

@media (max-width: 1280px) {
    .id-hero__inner {
        grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    }

    .id-hero__content {
        padding-inline: clamp(28px, 5vw, 72px);
    }

    .id-hero__benefits {
        gap: 0;
    }

    .id-hero__benefit {
        grid-template-columns: 44px minmax(0, 1fr);
        padding-inline: 14px;
    }

    .id-hero__benefit-icon {
        width: 42px;
        height: 42px;
    }

    .id-hero__card {
        grid-template-columns: 62px minmax(0, 1fr) 34px;
    }

    .id-hero__card-icon {
        width: 62px;
        height: 62px;
    }
}

@media (max-width: 1020px) {
    .id-hero {
        min-height: auto;
    }

    .id-hero__inner {
        grid-template-columns: 1fr;
    }

    .id-hero__content {
        min-height: auto;
        padding: 76px clamp(24px, 7vw, 72px) 56px;
    }

    .id-hero__title {
        max-width: 820px;
    }

    .id-hero__lead {
        max-width: 760px;
    }

    .id-hero__media {
        min-height: 600px;
        clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
    }

    .id-hero__media img {
        object-position: center 42%;
    }

    .id-hero__decor--dots {
        left: auto;
        right: 8%;
    }
}

@media (max-width: 760px) {
    .id-hero__content {
        padding: 62px 20px 42px;
    }

    .id-hero__eyebrow {
        margin-bottom: 22px;
        font-size: 11px;
    }

    .id-hero__eyebrow i {
        width: 36px;
    }

    .id-hero__title {
        font-size: clamp(39px, 11vw, 58px);
        line-height: 1.02;
    }

    .id-hero__lead {
        margin-top: 25px;
        font-size: 16px;
    }

    .id-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .id-hero__button {
        width: 100%;
    }

    .id-hero__benefits {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 38px;
    }

    .id-hero__benefit,
    .id-hero__benefit:first-child,
    .id-hero__benefit:last-child {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 15px;
        border: 1px solid #e2e6ec;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.7);
    }

    .id-hero__benefit-icon {
        width: 46px;
        height: 46px;
    }

    .id-hero__benefit h2 {
        font-size: 15px;
    }

    .id-hero__benefit p {
        font-size: 13px;
    }

    .id-hero__media {
        min-height: 520px;
    }

    .id-hero__card {
        right: 16px;
        bottom: 22px;
        grid-template-columns: 56px minmax(0, 1fr) 32px;
        gap: 12px;
        width: calc(100% - 32px);
        padding: 14px;
        border-radius: 14px;
    }

    .id-hero__card-icon {
        width: 56px;
        height: 56px;
    }

    .id-hero__card-icon svg {
        width: 33px;
        height: 33px;
    }

    .id-hero__card-copy strong {
        font-size: 16px;
    }

    .id-hero__card-copy span {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .id-hero__title br {
        display: none;
    }

    .id-hero__media {
        min-height: 450px;
    }

    .id-hero__card-copy span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .id-hero *,
    .id-hero *::before,
    .id-hero *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
