.kfs-footer {
    --kfs-font: Poppins, Arial, Helvetica, sans-serif;
    background: var(--kfs-bg, #030303);
    color: var(--kfs-text, #f3f3f3);
    font-family: var(--kfs-font);
    font-size: 16px;
    line-height: 1.65;
}

.kfs-footer *,
.kfs-footer *::before,
.kfs-footer *::after {
    box-sizing: border-box;
}

.kfs-footer a {
    color: inherit;
    text-decoration: none;
}

.kfs-footer a:focus-visible {
    outline: 2px solid var(--kfs-accent, #f7c400);
    outline-offset: 4px;
}

.kfs-container {
    width: min(calc(100% - 80px), var(--kfs-container, 1420px));
    margin-inline: auto;
}

.kfs-icon {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

/* Górny pasek kontaktowy */
.kfs-cta {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--kfs-border, #343434);
}

.kfs-cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.55fr) minmax(360px, 1fr);
    align-items: center;
    min-height: 270px;
    padding-block: 48px;
}

.kfs-cta__logo {
    display: flex;
    align-items: center;
    min-height: 142px;
    padding-right: clamp(30px, 4vw, 66px);
    border-right: 2px solid #4a4a4a;
}

.kfs-cta__logo img {
    display: block;
    width: min(300px, 100%);
    height: auto;
}

.kfs-cta__copy {
    padding-inline: clamp(34px, 4vw, 68px);
}

.kfs-cta__copy h2 {
    margin: 0 0 8px;
    color: var(--kfs-text, #f3f3f3);
    font-size: clamp(20px, 1.45vw, 26px);
    font-weight: 700;
    line-height: 1.2;
}

.kfs-cta__text,
.kfs-cta__text p {
    margin: 0;
    color: var(--kfs-text, #f3f3f3);
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.55;
}

.kfs-cta__phone {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 24px;
    min-width: 0;
    padding-right: 118px;
    transition: transform 180ms ease;
}

.kfs-cta__phone:hover {
    transform: translateY(-2px);
}

.kfs-cta__phone-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 2px solid var(--kfs-accent, #f7c400);
    border-radius: 999px;
    color: var(--kfs-accent, #f7c400);
}

.kfs-cta__phone-icon .kfs-icon {
    width: 44px;
    height: 44px;
    fill: currentColor;
    stroke-width: 1.1;
}

.kfs-cta__phone-copy {
    display: grid;
    min-width: 0;
}

.kfs-cta__phone-label {
    color: var(--kfs-text, #f3f3f3);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
}

.kfs-cta__phone strong {
    color: var(--kfs-accent, #f7c400);
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.kfs-cta__stripes {
    position: absolute;
    top: -45px;
    right: -118px;
    width: 140px;
    height: 355px;
    pointer-events: none;
    transform: skewX(-28deg);
    background:
        linear-gradient(90deg,
            var(--kfs-accent, #f7c400) 0 24px,
            transparent 24px 45px,
            var(--kfs-red, #e30613) 45px 79px,
            transparent 79px 100%);
    filter: drop-shadow(-14px 0 8px rgba(0, 0, 0, 0.45));
}

/* Główna część stopki */
.kfs-footer__grid {
    display: grid;
    grid-template-columns: minmax(275px, 1.05fr) minmax(190px, 0.72fr) minmax(330px, 1.15fr) minmax(300px, 1fr);
    gap: clamp(38px, 5vw, 82px);
    padding-block: 62px 68px;
}

.kfs-heading {
    position: relative;
    margin: 0 0 44px;
    color: var(--kfs-text, #f3f3f3);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.kfs-heading::after {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 46px;
    height: 3px;
    background: var(--kfs-accent, #f7c400);
    content: "";
}

.kfs-about-text,
.kfs-about-text p {
    margin: 0;
    color: var(--kfs-muted, #d0d0d0);
    font-size: 16px;
    line-height: 1.85;
}

.kfs-feature-list,
.kfs-offer-list,
.kfs-contact-list,
.kfs-menu,
.kfs-legal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kfs-feature-list {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.kfs-feature-list li,
.kfs-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    color: var(--kfs-text, #f3f3f3);
}

.kfs-list-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--kfs-accent, #f7c400);
}

.kfs-list-icon .kfs-icon {
    width: 29px;
    height: 29px;
}

.kfs-menu {
    display: grid;
    gap: 16px;
}

.kfs-menu > li > a {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    color: var(--kfs-text, #f3f3f3);
    transition: color 160ms ease, transform 160ms ease;
}

.kfs-menu > li > a::before {
    color: var(--kfs-red, #e30613);
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    content: "›";
}

.kfs-menu > li > a:hover {
    color: var(--kfs-accent, #f7c400);
    transform: translateX(3px);
}

.kfs-menu__arrow {
    display: none;
}

.kfs-menu__plus,
.kfs-menu > .menu-item-has-children > a::after {
    color: var(--kfs-text, #f3f3f3);
    font-size: 22px;
    font-weight: 300;
    content: "+";
}


.kfs-offer-list {
    display: grid;
    gap: 14px;
}

.kfs-offer-list li > a,
.kfs-offer-list li > span {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--kfs-text, #f3f3f3);
    transition: color 160ms ease, transform 160ms ease;
}

.kfs-offer-list li > a:hover {
    color: var(--kfs-accent, #f7c400);
    transform: translateX(3px);
}

.kfs-offer-list .kfs-list-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.kfs-offer-list .kfs-list-icon .kfs-icon {
    width: 25px;
    height: 25px;
}

.kfs-contact-list {
    display: grid;
    gap: 24px;
}

.kfs-contact-list li {
    line-height: 1.55;
}

.kfs-contact-list a {
    transition: color 160ms ease;
}

.kfs-contact-list a:hover {
    color: var(--kfs-accent, #f7c400);
}

.kfs-contact-list address {
    margin: 0;
    font-style: normal;
}

.kfs-contact-list address,
.kfs-contact-list .kfs-hours {
    display: block;
    margin: 0;
    line-height: 1.35;
}

/* Dolny pasek */
.kfs-footer__bottom {
    border-top: 1px solid var(--kfs-border, #343434);
}

.kfs-footer__bottom-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    align-items: center;
    gap: 34px;
    min-height: 112px;
    padding-block: 22px;
}

.kfs-copyright {
    margin: 0;
    color: var(--kfs-text, #f3f3f3);
    font-size: 14px;
}

.kfs-legal-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.kfs-legal-menu li {
    display: flex;
    align-items: center;
}

.kfs-legal-menu li + li::before {
    width: 1px;
    height: 20px;
    margin-inline: 18px;
    background: var(--kfs-accent, #f7c400);
    content: "";
}

.kfs-legal-menu a {
    color: var(--kfs-text, #f3f3f3);
    font-size: 14px;
    transition: color 160ms ease;
}

.kfs-legal-menu a:hover {
    color: var(--kfs-accent, #f7c400);
}

.kfs-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kfs-social a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #7b7b7b;
    border-radius: 999px;
    color: var(--kfs-text, #f3f3f3);
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kfs-social a:hover {
    border-color: var(--kfs-accent, #f7c400);
    color: var(--kfs-accent, #f7c400);
    transform: translateY(-2px);
}

.kfs-social .kfs-icon {
    width: 21px;
    height: 21px;
}

@media (max-width: 1320px) {
    .kfs-cta__inner {
        grid-template-columns: minmax(210px, 0.75fr) minmax(350px, 1.25fr) minmax(330px, 1fr);
    }

    .kfs-cta__phone {
        padding-right: 94px;
    }

    .kfs-cta__stripes {
        right: -106px;
    }

    .kfs-footer__grid {
        grid-template-columns: 1fr 0.7fr 1.1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1100px) {
    .kfs-container {
        width: min(calc(100% - 48px), var(--kfs-container, 1420px));
    }

    .kfs-cta__inner {
        grid-template-columns: 220px minmax(0, 1fr);
        min-height: 0;
        gap: 32px;
    }

    .kfs-cta__logo {
        grid-row: 1 / 3;
        min-height: 165px;
        padding-right: 32px;
    }

    .kfs-cta__copy {
        padding-inline: 0 120px;
    }

    .kfs-cta__phone {
        padding-right: 120px;
    }

    .kfs-cta__phone-icon {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .kfs-cta__phone-icon .kfs-icon {
        width: 38px;
        height: 38px;
    }

    .kfs-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .kfs-footer__bottom-inner {
        grid-template-columns: 1fr auto;
    }

    .kfs-footer__legal {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .kfs-container {
        width: min(calc(100% - 30px), var(--kfs-container, 1420px));
    }

    .kfs-cta__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        padding-block: 42px 48px;
    }

    .kfs-cta__logo {
        min-height: 0;
        padding: 0 0 28px;
        border-right: 0;
        border-bottom: 1px solid var(--kfs-border, #343434);
    }

    .kfs-cta__logo img {
        width: 240px;
    }

    .kfs-cta__copy,
    .kfs-cta__phone {
        padding-right: 0;
    }

    .kfs-cta__copy h2 {
        font-size: 22px;
    }

    .kfs-cta__text,
    .kfs-cta__text p {
        font-size: 15px;
    }

    .kfs-cta__phone {
        gap: 18px;
    }

    .kfs-cta__phone strong {
        font-size: clamp(27px, 8vw, 38px);
    }

    .kfs-cta__phone-label {
        font-size: 14px;
    }

    .kfs-cta__stripes {
        display: none;
    }

    .kfs-footer__grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-block: 48px 56px;
    }

    .kfs-heading {
        margin-bottom: 38px;
    }

    .kfs-footer__bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-block: 30px;
    }

    .kfs-footer__legal {
        width: 100%;
    }

    .kfs-legal-menu {
        justify-content: flex-start;
        gap: 12px 0;
    }

    .kfs-legal-menu li + li::before {
        margin-inline: 12px;
    }
}

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