.rp-section-block {
    color: #1f2f45;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto 30px;
}

.rp-section-block *,
.rp-section-block *:before,
.rp-section-block *:after {
    box-sizing: border-box;
}

.rp-section-block img {
    display: block;
    height: auto;
    max-width: 100%;
}

.rp-section-block a {
    text-decoration: none;
}

.rp-title {
    color: #111;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 28px;
    text-align: center;
}

.rp-banner-link {
    border-radius: 4px;
    display: block;
    overflow: hidden;
}

.rp-banner-link picture,
.rp-banner-link img {
    width: 100%;
}

.rp-parts-grid {
    border: 1px solid #d9e2ef;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
}

.rp-part-card {
    align-items: center;
    background: #fff;
    border-right: 1px solid #d9e2ef;
    border-top: 1px solid #d9e2ef;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 124px;
    padding: 20px 16px;
    text-align: center;
}

.rp-part-card:nth-child(-n+5) {
    border-top: 0;
}

.rp-part-card:nth-child(5n) {
    border-right: 0;
}

.rp-part-card img {
    height: 34px;
    width: auto;
}

.rp-part-card span {
    color: #1d2842;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.rp-gallery-block {
    position: relative;
}

.rp-gallery-header {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.rp-gallery-header .rp-title {
    margin: 0;
}

.rp-gallery-arrows {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.rp-gallery-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d9e2ef;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(16, 45, 83, 0.14);
    color: #173f73;
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 42px;
}

.rp-gallery-arrow:hover {
    background: #173f73;
    color: #fff;
    transform: scale(1.04);
}

.rp-gallery-arrow svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.rp-gallery-slider {
    position: relative;
}

.rp-gallery-viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.rp-gallery-track {
    display: flex;
    gap: 8px;
    transition: transform 0.45s ease;
}

.rp-gallery-slide {
    flex: 0 0 calc((100% - 16px) / 3);
}

.rp-gallery-slide img {
    aspect-ratio: 1 / 1;
    background: #f6f8fb;
    object-fit: contain;
    width: 100%;
}

.rp-gallery-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.rp-gallery-dots button {
    appearance: none;
    background: #c7d4e5;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: block;
    height: 12px;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 12px;
}

.rp-gallery-dots button.is-active {
    background: #1a4f90;
    transform: scale(1.15);
}

.rp-advantages {
    display: grid;
    gap: 26px 30px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rp-advantage {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.rp-advantage img {
    height: 96px;
    margin: 0 auto 16px;
    width: auto;
}

.rp-advantage h3 {
    color: #1a1d24;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    min-height: 42px;
}

.rp-advantage p {
    color: #232d37;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.rp-certs-wrap {
    margin-top: 30px;
}

.rp-certs {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
    justify-content: center;
    justify-items: center;
}

.rp-cert-link {
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 45, 83, 0.08);
    cursor: pointer;
    display: block;
    max-width: 240px;
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.rp-cert-link:hover {
    box-shadow: 0 18px 36px rgba(16, 45, 83, 0.14);
    transform: translateY(-3px);
}

.rp-cert-link img {
    aspect-ratio: 0.78 / 1;
    object-fit: contain;
    width: 100%;
}

.rp-lightbox {
    align-items: center;
    background: rgba(10, 20, 34, 0.88);
    display: none;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 30px;
    position: fixed;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.rp-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.rp-lightbox img {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
    max-height: 92vh;
    width: auto;
}

.rp-lightbox-close {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    position: absolute;
    right: 22px;
    top: 18px;
}

.rp-bottom {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.08fr 0.92fr;
}

.rp-contact-card,
.rp-cta-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rp-contact-card {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 42%, rgba(255, 255, 255, 0.66) 64%, rgba(255, 255, 255, 0.18) 100%),
        url('/images/landing/renault-parts/map.jpg') center right / cover no-repeat;
    border: 1px solid #d9e2ef;
    min-height: 280px;
}

.rp-contact-copy {
    max-width: 450px;
    padding: 30px 28px;
    position: relative;
    z-index: 1;
}

.rp-contact-copy h3 {
    color: #16263c;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.rp-contact-copy ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.rp-contact-copy li {
    align-items: flex-start;
    color: #1f2f45;
    display: flex;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.rp-contact-copy li svg {
    fill: #1a4f90;
    flex: 0 0 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
}

.rp-contact-copy a {
    color: #1f2f45;
}

.rp-route-btn,
.rp-cta-btn {
    align-items: center;
    background: #1a4f90;
    border: 2px solid #1a4f90;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.02em;
    min-height: 48px;
    padding: 0 24px;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rp-route-btn,
.rp-route-btn:link {
    color: #fff;
}

.rp-route-btn:hover {
    background: #173f73;
    border-color: #173f73;
    color: #fff;
}

.rp-cta-card {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 34%),
        linear-gradient(135deg, #173f73, #102d53);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 30px 28px;
}

.rp-cta-card h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
}

.rp-cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 18px;
}

.rp-cta-btn {
    background: #fff;
    border-color: #fff;
    color: #173f73;
    width: 100%;
}

.rp-cta-btn:link,
.rp-cta-btn:visited {
    color: #173f73;
}

.rp-cta-btn:hover,
.rp-cta-btn:focus {
    background: #dfeaf8;
    border-color: #dfeaf8;
    color: #173f73;
}

.rp-cta-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.rp-cta-meta strong {
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.rp-cta-meta span,
.rp-cta-meta a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .rp-parts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-part-card {
        border-right: 1px solid #d9e2ef;
        border-top: 1px solid #d9e2ef;
        min-height: 116px;
    }

    .rp-part-card:nth-child(-n+5),
    .rp-part-card:nth-child(5n) {
        border-right: 1px solid #d9e2ef;
        border-top: 1px solid #d9e2ef;
    }

    .rp-part-card:nth-child(-n+2) {
        border-top: 0;
    }

    .rp-part-card:nth-child(2n) {
        border-right: 0;
    }

    .rp-advantages,
    .rp-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-contact-card,
    .rp-cta-card {
        min-height: auto;
    }

    .rp-contact-card {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.55) 100%),
            url('/images/landing/renault-parts/map.jpg') center / cover no-repeat;
    }
}

@media (max-width: 768px) {
    .rp-title {
        font-size: 22px;
    }

    .rp-gallery-header {
        display: block;
    }

    .rp-gallery-header .rp-title {
        margin-bottom: 14px;
    }

    .rp-gallery-arrows {
        display: none;
    }

    .rp-gallery-slide {
        flex: 0 0 100%;
    }

    .rp-advantages,
    .rp-bottom {
        grid-template-columns: 1fr;
    }

    .rp-certs {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 160px));
    }

    .rp-cert-link {
        padding: 4px;
    }

    .rp-contact-copy,
    .rp-cta-card {
        padding: 24px 18px;
    }

    .rp-contact-copy h3,
    .rp-cta-card h3 {
        font-size: 20px;
    }

    .rp-cta-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
