.service5-poa-section {
    padding-bottom: 36px;
}

.service5-page .service5-poa-section.legalizacja-hub-cities {
    padding-bottom: 36px;
}

.service5-page .service5-process-wrap .service4-process {
    padding: 48px 0 calc(45px * 1.15);
}

@media (max-width: 1100px) {
    .service5-page .service5-process-wrap .service4-process {
        padding-bottom: calc(39px * 1.15);
    }
}

@media (max-width: 640px) {
    .service5-page .service5-process-wrap .service4-process {
        padding-bottom: calc(31px * 1.15);
    }
}

.service5-page .top-wrap__title.service5-hero__title {
    color: #131313;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.service5-hero__title {
    display: block;
    margin-bottom: 20px;
}

.service5-hero__title-line {
    display: block;
}

.service5-page .service5-hero__title-line--accent {
    font-size: clamp(28px, 4.8vw, 56px);
    line-height: 1.08;
    font-weight: 700;
    color: #092b96;
    -webkit-text-fill-color: currentColor;
}

.service5-page .service5-hero__title-line--rest {
    margin-top: 8px;
    font-size: clamp(22px, 3.8vw, 46px);
    line-height: 1.1;
    font-weight: 700;
    color: #131313;
    -webkit-text-fill-color: currentColor;
}

.service5-page .legalizacja-advantages.adv {
    margin-top: 0;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item.service4-adv-item {
    transition: box-shadow 0.35s ease;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item.service4-adv-item:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 22px 34px rgba(0, 0, 0, 0.04), 0 3px 0 0 #e84855 inset;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item-top__image.service4-adv-icon {
    position: relative;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item-top__image.service4-adv-icon .service4-adv-icon__blue {
    transition: opacity 0.32s ease;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item-top__image.service4-adv-icon .service4-adv-icon__red {
    position: absolute;
    top: 50%;
    left: 50%;
    max-height: 42px;
    max-width: 42px;
    width: auto;
    height: auto;
    margin: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.32s ease;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item.service4-adv-item:hover .service4-adv-icon__blue {
    opacity: 0;
}

.service5-page .legalizacja-advantages .adv-wrap__list .item.service4-adv-item:hover .service4-adv-icon__red {
    opacity: 1;
}

.service5-page .clients-wrap {
    padding-bottom: 56px;
}

.service5-page .service5-faq .faq-wrap {
    margin: 48px 0 24px;
}

.service5-page .service5-faq .faq-wrap__text {
    margin: 16px auto 32px;
}

.service5-faq {
    padding-bottom: 40px;
}

@media (max-width: 640px) {
    .service5-hero__title-line--accent {
        font-size: clamp(24px, 7vw, 34px);
    }

    .service5-hero__title-line--rest {
        font-size: clamp(18px, 5.8vw, 28px);
    }

    .service5-page .clients-wrap {
        padding-bottom: 40px;
    }

    .service5-page .service5-faq .faq-wrap {
        margin: 32px 0 16px;
    }

    .service5-page .service5-faq .faq-wrap__text {
        margin: 12px auto 24px;
    }

    .service5-faq {
        padding-bottom: 28px;
    }

    .service5-notariusz-modal .modal-wrap {
        padding: 31px 25px;
        min-height: 420px;
    }

    .service5-notariusz-modal .modal-wrap__form .cf7-multistep-form {
        min-height: 315px;
    }
}

.service5-poa-card.legalizacja-hub-city-card {
    position: relative;
}

.service5-poa-card__media-trigger {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: inherit;
}

.service5-poa-card__media-trigger:focus-visible {
    outline: 3px solid #2380eb;
    outline-offset: 4px;
}

.service5-poa-card__body {
    z-index: 2;
    pointer-events: none;
}

.service5-poa-card__body .legalizacja-hub-city-card__btn,
.service5-poa-card__body .service5-poa-card__title-link {
    pointer-events: auto;
}

.service5-poa-card__subtitle.legalizacja-hub-city-card__office {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.service5-poa-card__details {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.service5-poa-card__detail-title {
    margin: 0;
    font: inherit;
}

.service5-poa-popup__item-title {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.service5-poa-popup__group-title a,
.service5-poa-popup__item-link {
    color: inherit;
    text-decoration: none;
}

.service5-poa-popup__group-title a:hover,
.service5-poa-popup__group-title a:focus-visible,
.service5-poa-popup__item-link:hover,
.service5-poa-popup__item-link:focus-visible {
    color: #2380eb;
}

.service5-poa-card__detail-link {
    color: inherit;
    text-decoration: none;
}

.service5-poa-card__title-link {
    color: inherit;
    text-decoration: none;
}

.service5-poa-card__title-link:hover,
.service5-poa-card__title-link:focus-visible,
.service5-poa-card:hover .service5-poa-card__title-link {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.service5-notariusz-modal.modal-active {
    z-index: 1300;
}

.service5-notariusz-modal .modal-wrap__close {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
    z-index: 3;
}

.service5-notariusz-modal .modal-wrap__close .op-header-wrap__icon,
.service5-notariusz-modal .modal-wrap__close svg {
    pointer-events: none;
}

.service5-notariusz-modal .modal-wrap {
    padding: 62px 50px;
    min-height: 500px;
}

.service5-notariusz-modal .modal-wrap__form .cf7-multistep-form {
    min-height: 375px;
}

.service5-notariusz-modal .modal-wrap__form input,
.service5-notariusz-modal .modal-wrap__form select,
.service5-notariusz-modal .modal-wrap__form textarea,
.service5-notariusz-modal .modal-wrap__form .choices {
    margin-bottom: 19px;
}

.service5-notariusz-modal .modal-wrap__form .cf7-buttons {
    margin-top: 38px;
}

.service5-notariusz-modal .modal-wrap__title {
    margin-bottom: 19px;
}

.service5-notariusz-modal .cf7-step p {
    margin-bottom: 13px;
}

.service5-poa-card__plus {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #1a56db;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(15, 35, 70, 0.14);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.service5-poa-card__plus:hover,
.service5-poa-card__plus:focus-visible {
    transform: scale(1.05);
    background: #1a56db;
    color: #fff;
    outline: none;
}

.service5-poa-card__plus span {
    display: block;
    margin-top: -2px;
}

.service5-poa-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.service5-poa-popup[hidden] {
    display: none;
}

.service5-poa-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 36, 0.58);
    backdrop-filter: blur(2px);
}

.service5-poa-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 28px 24px 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(8, 18, 36, 0.22);
}

.service5-poa-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f7fb;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.service5-poa-popup__kicker {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service5-poa-popup__title {
    margin: 0 0 16px;
    padding-right: 36px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
}

.service5-poa-popup__list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.service5-poa-popup__list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 18px;
    color: #334155;
    font-size: 15px;
    line-height: 1.45;
}

.service5-poa-popup__list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a56db;
}

.service5-poa-popup__item-link {
    display: inline;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service5-poa-popup__item-link:hover,
.service5-poa-popup__item-link:focus-visible {
    color: #1a56db;
    outline: none;
}

.service5-poa-popup__groups {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.service5-poa-popup__group-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.service5-poa-popup__request {
    width: 100%;
    justify-content: center;
}

body.service5-popup-open {
    overflow: hidden;
}

@media (min-width: 901px) {
    .service5-poa-section:not(.is-slider-mode) .legalizacja-hub-cities__track:not(.slick-initialized),
    .service5-poa-section:not(.is-slider-mode) .legalizacja-hub-cities__track {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .service5-poa-section:not(.is-slider-mode) .legalizacja-hub-cities__track {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (max-width: 900px) {
    .service5-poa-card__plus {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .service5-poa-popup__dialog {
        padding: 24px 18px 18px;
        border-radius: 16px;
    }
}

.service5-poa-section .legalizacja-hub-cities__cta-title {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.service5-legal-validity {
    padding: 56px 0;
    background: #fff;
}

.service5-legal-validity__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    min-height: clamp(220px, 24vw, 300px);
    padding: clamp(36px, 4.5vw, 56px) clamp(28px, 4vw, 52px) clamp(36px, 4.5vw, 56px) clamp(38%, 34vw, 460px);
    border-radius: 28px;
    overflow: hidden;
    background-color: #eef2f7;
    background-image: var(--service5-legal-validity-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    .service5-legal-validity__inner {
        background-image: var(--service5-legal-validity-bg-2x, var(--service5-legal-validity-bg));
    }
}

.service5-legal-validity__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(620px, 100%);
    margin-left: auto;
}

.service5-legal-validity__title {
    margin: 0 0 16px;
    color: #092b96;
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.22;
    font-weight: 700;
}

.service5-legal-validity__text {
    margin: 0;
    color: #334155;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.62;
}

@media (max-width: 1100px) {
    .service5-legal-validity__inner {
        background-position: left center;
        padding-left: clamp(40%, 36vw, 48%);
    }
}

@media (max-width: 900px) {
    .service5-legal-validity {
        padding: 40px 0;
    }

    .service5-legal-validity__inner {
        align-items: center;
        justify-content: flex-end;
        min-height: clamp(220px, 34vw, 300px);
        padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 32px) clamp(24px, 4vw, 36px) clamp(44%, 40vw, 52%);
        background-position: left center;
        background-size: cover;
    }

    .service5-legal-validity__content {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        margin-left: auto;
        padding-left: 0;
        text-align: left;
    }

    .service5-legal-validity__title {
        margin-bottom: 12px;
        font-size: clamp(18px, 4.8vw, 24px);
    }

    .service5-legal-validity__text {
        font-size: clamp(14px, 3.6vw, 16px);
        line-height: 1.55;
    }
}

@media (max-width: 540px) {
    .service5-legal-validity__inner {
        min-height: clamp(300px, 88vw, 380px);
        padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 22px) clamp(22px, 5vw, 28px) clamp(46%, 42vw, 54%);
        background-position: left bottom;
    }

    .service5-legal-validity__content {
        align-self: flex-end;
    }
}
