.renta-local-landing {
    width: 100%;
    color: #000;
    font-family: "DIN", "DIN Next", "DIN Alternate", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.renta-local-landing,
.renta-local-landing *,
.renta-local-landing *::before,
.renta-local-landing *::after {
    box-sizing: border-box;
}

.renta-local-landing__inner {
    width: calc(100% - 40px);
    max-width: 1540px; /* Matches .container in theme.css. */
    margin-right: auto;
    margin-left: auto;
}

.renta-local-landing p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.renta-local-landing h1,
.renta-local-landing h2,
.renta-local-landing h3 {
    color: #000;
    font-family: "DIN", "DIN Next", "DIN Alternate", sans-serif;
    text-transform: none;
}

.renta-local-landing h1 {
    margin: 0 0 24px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.35;
}

.renta-local-landing h2 {
    position: relative;
    margin: 0 0 30px;
    font-size: 32px;
    font-weight: 700;
    line-height: 48px;
}

.renta-local-landing h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    background: #fe5000;
}

.renta-local-landing h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    background: #fe5000;
}

.renta-local-landing h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.renta-local-intro {
    padding: 48px 0 54px;
}

.renta-local-intro__text {
    width: 100%;
    max-width: none;
    color: #000;
}

.renta-local-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* Buttons use the Renta orange and black hover from theme.css .btn.btn-primary. */
.renta-local-landing a.renta-local-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid #fe5000;
    border-radius: 4px;
    background: #fe5000;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.renta-local-landing a.renta-local-button:hover,
.renta-local-landing a.renta-local-button:focus-visible {
    border-color: #000;
    background: #000;
    color: #fff;
}

.renta-local-landing a.renta-local-button--secondary {
    background: #fff;
    color: #fe5000;
}

.renta-local-landing a.renta-local-button--secondary:hover,
.renta-local-landing a.renta-local-button--secondary:focus-visible {
    background: #000;
    border-color: #000;
    color: #fff;
}

.renta-local-section {
    margin: 0 0 70px;
}

.renta-local-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.renta-local-grid--categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.renta-local-grid--branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.renta-local-card {
    min-width: 0;
    border: 1px solid #eaeaea;
    background: #fff;
}

.renta-local-card p:last-child {
    margin-bottom: 0;
}

/* Category cards */
.renta-local-category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.renta-local-category-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}

.renta-local-category-card__image:hover .renta-local-category-card__img {
    transform: scale(1.03);
}

.renta-local-category-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 26px;
}

.renta-local-category-card__body h3 {
    margin-bottom: 12px;
}

.renta-local-category-card__body p {
    margin-bottom: 22px;
    color: #787878;
}

.renta-local-landing a.renta-local-category-card__link {
    display: inline-block;
    margin-top: auto;
    color: #fe5000;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
}

.renta-local-landing a.renta-local-category-card__link:hover {
    color: #000;
}

.renta-local-category-card__link span {
    display: inline-block;
    margin-left: 5px;
}

/* Benefit cards and Renta Easy panel */
.renta-local-grid--benefits .renta-local-card {
    padding: 28px 24px;
}

.renta-local-easy {
    padding: 40px;
    background: #eaeaea;
}

.renta-local-easy h2 {
    margin-bottom: 22px;
}

.renta-local-easy .renta-local-button {
    margin-top: 10px;
}

.renta-local-section__content {
    color: #000;
    font-size: 16px;
    line-height: 24px;
}

.renta-local-section__content > :first-child {
    margin-top: 0;
}

.renta-local-section__content > :last-child {
    margin-bottom: 0;
}

/* Branch cards and map */
.renta-local-branch {
    padding: 26px;
}

.renta-local-branch a:not(.renta-local-button) {
    color: #fe5000;
    overflow-wrap: anywhere;
}

.renta-local-map {
    position: relative;
    width: 100%;
    margin-top: 22px;
    overflow: hidden;
    background: #eaeaea;
    aspect-ratio: 16 / 10;
}

.renta-local-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ accordion */
.renta-local-faq__list {
    border-top: 1px solid #d9d9d9;
}

.renta-local-faq__item {
    border-bottom: 1px solid #d9d9d9;
}

.renta-local-faq__item summary {
    position: relative;
    display: block;
    padding: 20px 45px 20px 0;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    list-style: none;
}

.renta-local-faq__item summary::-webkit-details-marker {
    display: none;
}

.renta-local-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    color: #fe5000;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.renta-local-faq__item[open] summary::after {
    content: "−";
}

.renta-local-faq__item summary:focus-visible {
    outline: 2px solid #fe5000;
    outline-offset: 3px;
}

.renta-local-faq__answer {
    padding: 0 40px 22px 0;
    color: #787878;
    font-size: 16px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.renta-local-landing .renta-local-category-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
}

.renta-local-landing .renta-local-category-card__image {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.renta-local-landing .renta-local-category-card__image-link,
.renta-local-landing .renta-local-category-card__image {
    background-color: #fff !important;
}

.renta-local-landing .renta-local-category-card h3 {
    margin-top: 0;
}

/* =========================================================================
   Media queries 
   ========================================================================= */

@media (max-width: 991px) {
    .renta-local-grid--categories,
    .renta-local-grid--benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .renta-local-grid--branches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .renta-local-landing h1 {
        font-size: 32px;
        line-height: 1.35;
    }

    .renta-local-landing h2 {
        font-size: 28px;
        line-height: 1.4;
    }
}

@media (max-width: 767px) {
    .renta-local-landing__inner {
        width: calc(100% - 32px);
    }

    .renta-local-intro {
        padding: 30px 0 38px;
    }

    .renta-local-landing h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .renta-local-landing h2 {
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 1.35;
    }

    .renta-local-landing h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .renta-local-section {
        margin-bottom: 48px;
    }

    .renta-local-grid--categories,
    .renta-local-grid--benefits,
    .renta-local-grid--branches {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .renta-local-category-card__body,
    .renta-local-branch {
        padding: 20px;
    }

    .renta-local-easy {
        padding: 25px 20px;
    }

    .renta-local-intro__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .renta-local-landing a.renta-local-button {
        width: 100%;
    }

    .renta-local-map {
        aspect-ratio: 4 / 3;
    }

    .renta-local-faq__item summary {
        font-size: 16px;
        line-height: 24px;
    }

    .renta-local-grid--categories {
        grid-template-columns: minmax(0, 1fr);
    }
}
.renta-local-other-cities__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 10px 24px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.renta-local-other-cities__list li {
    margin: 0;
}

.renta-local-other-cities__list a {
    display: block;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
}

.renta-local-other-cities__list a:hover {
    text-decoration: underline;
}

/* 1. Treści na pełną szerokość dostępnego kontenera */

.renta-local-landing .renta-local-intro__text,
.renta-local-landing .renta-local-section__content,
.renta-local-landing .renta-local-seo,
.renta-local-landing .renta-local-area {
    width: 100%;
    max-width: none;
}

.renta-local-landing .renta-local-intro__text > *,
.renta-local-landing .renta-local-section__content > *,
.renta-local-landing .renta-local-seo p,
.renta-local-landing .renta-local-area p {
    max-width: none;
}

/* 2. Kafelki kategorii – osobne tło pod każdym zdjęciem */

.renta-local-landing .renta-local-grid--categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.renta-local-landing .renta-local-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 100%;
    padding: 24px;
    text-align: center;
}

/* Kwadratowe pole tylko pod zdjęciem.
   Nie stosujemy ujemnych marginesów ani paska
   szarego tła na szerokość całego rzędu. */

.renta-local-landing .renta-local-category-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 200px;
    width: 200px;
    max-width: 100%;
    height: 200px;
    margin: 0 auto 20px;
    padding: 0;
    overflow: hidden;
    background: #f2f2f2;
    border: 0;
}

.renta-local-landing .renta-local-category-card__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    transition: transform .25s ease;
}

.renta-local-landing .renta-local-category-card__image-link:hover
.renta-local-category-card__image {
    transform: scale(1.04);
}

.renta-local-landing .renta-local-category-card h3 {
    width: 100%;
    margin: 0 0 12px;
    text-align: center;
}

.renta-local-landing .renta-local-category-card p {
    width: 100%;
    margin: 0 0 20px;
    text-align: center;
}

.renta-local-landing .renta-local-category-card > a:not(.renta-local-category-card__image-link) {
    margin-top: auto;
    text-align: center;
}

/* 3. Sekcja „Dlaczego warto wynająć sprzęt?” */

.renta-local-landing .renta-local-grid--benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.renta-local-landing .renta-local-grid--benefits .renta-local-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 28px 24px;
    text-align: center;
}

.renta-local-landing .renta-local-grid--benefits .renta-local-card h3,
.renta-local-landing .renta-local-grid--benefits .renta-local-card p {
    width: 100%;
    text-align: center;
}


/* 4. Bloki Renta Security i Renta Easy */

.renta-local-landing .renta-local-service-feature {
    display: block; /* Zmiana z grid na block */
    width: 100%;
    margin: 0 0 50px;
    padding: 0;
}

.renta-local-landing .renta-local-service-feature h2 {
    margin: 0 0 30px; /* Zapewnia odstęp pod tytułem na pełną szerokość */
    color: #454545;
    font-size: 30px;
    line-height: 1.3;
}

.renta-local-landing .renta-local-service-feature h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    background: #fe5000;
}

/* Przeniesienie siatki (grid) wyłącznie na wiersz z treścią */
.renta-local-landing .renta-local-service-feature__row {
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.renta-local-landing .renta-local-service-feature__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 210px;
    padding: 16px;
    overflow: hidden;
    background: #f2f2f2;
    border-radius: 32px;
}

.renta-local-landing .renta-local-service-feature__media img {
    display: block;
    width: 100%;
    max-width: 280px;
    max-height: 230px;
    height: auto;
    object-fit: contain;
}

.renta-local-landing .renta-local-service-feature__content {
    min-width: 0;
    text-align: left;
}

/* Usunięcie starego stylowania h2 z wewnątrz content, ponieważ nagłówek jest teraz wyżej */

.renta-local-landing .renta-local-service-feature__text,
.renta-local-landing .renta-local-service-feature__text p {
    width: 100%;
    max-width: none;
    color: #454545;
    font-size: 16px;
    line-height: 1.6;
}

.renta-local-landing .renta-local-service-feature__text {
    margin-bottom: 24px;
}

.renta-local-landing a.renta-local-service-feature__button {
    display: inline-block;
    padding: 10px 16px;
    color: #fff;
    background: #fe5000;
    border: 1px solid #fe5000;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease;
}

.renta-local-landing a.renta-local-service-feature__button:hover {
    color: #fff;
    background: #000;
    border-color: #000;
}

/* Odwrócenie kolumn dla sekcji Renta Easy */
.renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
}

.renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__media {
    grid-column: 2;
    grid-row: 1;
}

.renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__content {
    grid-column: 1;
    grid-row: 1;
}


/* 5. Karta oddziału – zdjęcie, dane i mapa */

.renta-local-landing .renta-local-branch {
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eaeaea;
}

.renta-local-landing .renta-local-branch__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f2f2f2;
}

.renta-local-landing .renta-local-branch__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.renta-local-landing .renta-local-branch__title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.renta-local-landing .renta-local-branch__title h3 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.3;
}

.renta-local-landing .renta-local-branch__plain-heading {
    padding: 24px 24px 0;
}

.renta-local-landing .renta-local-branch__plain-heading h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
}

.renta-local-landing .renta-local-branch__details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
}

.renta-local-landing .renta-local-branch__detail {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.renta-local-landing .renta-local-branch__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.renta-local-landing .renta-local-branch__icon svg {
    display: block;
    width: 32px;
    height: 32px;
    stroke: #fe5000;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.renta-local-landing .renta-local-branch__detail a {
    color: #454545;
    text-decoration: none;
}

.renta-local-landing .renta-local-branch__detail a:hover {
    color: #fe5000;
}

.renta-local-landing .renta-local-branch .renta-local-map {
    margin-top: 0;
    aspect-ratio: auto;
}

.renta-local-landing .renta-local-branch .renta-local-map iframe {
    width: 100%;
    height: 300px;
}

/* 6. Tablet */
@media (max-width: 991px) {
    .renta-local-landing .renta-local-service-feature__row {
        grid-template-columns: minmax(180px, 35%) minmax(0, 1fr);
        gap: 24px;
    }
    
    .renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__row {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 35%);
    }

    .renta-local-landing .renta-local-service-feature h2 {
        font-size: 26px;
        line-height: 1.35;
    }
}

/* 7. Telefon */
@media (max-width: 767px) {
    .renta-local-landing .renta-local-service-feature__row,
    .renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .renta-local-landing .renta-local-service-feature {
        margin-bottom: 40px;
    }

    .renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__media,
    .renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__content {
        grid-column: 1;
        grid-row: auto;
    }
    
    /* Na telefonach zdjęcie zazwyczaj lepiej wygląda nad tekstem również w odwróconym wariancie */
    .renta-local-landing .renta-local-service-feature--reverse .renta-local-service-feature__media {
        order: -1;
    }

    .renta-local-landing .renta-local-service-feature__media {
        min-height: 180px;
    }

    .renta-local-landing .renta-local-service-feature h2 {
        font-size: 24px;
        line-height: 1.3;
    }
}

/* Układ karty oddziału */
.renta-local-landing .renta-local-branch {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.renta-local-landing .renta-local-branch__content {
    padding: 26px 26px 10px;
}

.renta-local-landing .renta-local-branch h3 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
}

/* Pojedynczy wiersz z ikoną i informacją */
.renta-local-landing .post-info--containers {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.renta-local-landing .post-info--containers .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
}

.renta-local-landing .post-info--containers .icon svg {
    max-width: 100%;
    height: auto;
}

.renta-local-landing .post-info--containers .szczegoly {
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.5;
}

.renta-local-landing .post-info--containers .szczegoly p {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.5;
}

.renta-local-landing .post-info--containers .szczegoly a {
    color: #fe5000;
    text-decoration: none;
}

.renta-local-landing .post-info--containers .szczegoly a:hover {
    text-decoration: underline;
}

/* Mapa wklejona na dole karty */
.renta-local-landing .renta-local-branch .renta-local-map {
    width: 100%;
    margin-top: auto;
    aspect-ratio: auto;
}

.renta-local-landing .renta-local-branch .renta-local-map iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

/* Landing lokalny Renta — układ kafelków kategorii */
@media (max-width: 991px) {
    .renta-local-landing .renta-local-grid--categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .renta-local-landing .renta-local-grid--categories {
        grid-template-columns: minmax(0, 1fr);
    }
}