/* =========================================================
   Rent&Go Homepage v1
   Custom front-page.php only. Astra remains the parent theme.
   ========================================================= */

body.home {
    --rgh-green: #168a4b;
    --rgh-green-2: #1da45a;
    --rgh-green-soft: #edf8f1;
    --rgh-ink: #101827;
    --rgh-muted: #667085;
    --rgh-line: #e5e9ee;
    --rgh-bg: #f7f9fb;
    --rgh-card: #ffffff;
    --rgh-dark: #0d1822;
    --rgh-dark-2: #142431;
    --rgh-yellow: #f4bf3f;
    --rgh-radius-xl: 30px;
    --rgh-radius-lg: 22px;
    --rgh-radius-md: 16px;
    overflow-x: hidden;
    background: #fff;
    color: var(--rgh-ink);
}

body.home #masthead,
body.home #colophon,
body.home .rentgo-language-block {
    display: none !important;
}

body.home #content,
body.home .site-content,
body.home #primary,
body.home .content-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home #content > .ast-container,
body.home .site-content > .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/*
 * Astra uses a flex .ast-container for the normal content/sidebar layout.
 * front-page.php renders its own header, main and footer as siblings inside
 * that wrapper, so the homepage wrapper must be a normal block flow.
 */
body.home #primary,
body.home .content-area {
    display: block !important;
    float: none !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
}

body.home .rg-home-header,
body.home .rg-home-page,
body.home .rg-home-footer {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: none !important;
}

body.home .rg-home-page,
body.home .rg-home-page *,
body.home .rg-home-header,
body.home .rg-home-header *,
body.home .rg-home-footer,
body.home .rg-home-footer * {
    box-sizing: border-box;
}

body.home .rg-home-page,
body.home .rg-home-header,
body.home .rg-home-footer {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home img {
    max-width: 100%;
}

.rg-home-shell {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

/* ------------------------------
   Custom homepage header
------------------------------ */
.rg-home-header {
    position: sticky;
    z-index: 99950;
    top: 0;
    width: 100%;
    min-height: 72px;
    border-bottom: 1px solid rgba(16, 24, 39, .07);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow .2s ease, background .2s ease;
}

.rg-home-header.is-scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 30px rgba(16, 24, 39, .07);
}

.rg-home-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    width: min(1320px, calc(100% - 36px));
    min-height: 72px;
    margin: 0 auto;
}

.rg-home-brand {
    display: inline-flex;
    align-items: center;
    min-width: 142px;
    color: var(--rgh-ink);
    text-decoration: none;
}

.rg-home-brand__logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 44px;
    object-fit: contain;
}

.rg-home-brand__fallback {
    color: #1f6a4a;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.rg-home-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);
    min-width: 0;
}

.rg-home-nav a,
.rg-home-header__actions a,
.rg-home-mobile-menu a {
    text-decoration: none;
}

.rg-home-nav a {
    position: relative;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.rg-home-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    border-radius: 999px;
    background: var(--rgh-green);
    transition: right .2s ease;
}

.rg-home-nav a:hover::after {
    right: 0;
}

.rg-home-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rg-home-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rgh-ink);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.rg-home-phone svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.rg-home-lang {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--rgh-line);
    border-radius: 999px;
    background: #f8fafb;
}

.rg-home-lang a {
    display: grid;
    place-items: center;
    min-width: 31px;
    height: 28px;
    border-radius: 999px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.rg-home-lang a.is-active {
    background: #fff;
    color: var(--rgh-green);
    box-shadow: 0 2px 8px rgba(16, 24, 39, .08);
}

.rg-home-header__cta,
.rg-home-mobile-cta,
.rg-home-search__submit,
.rg-home-final-cta__card > div > a,
.rg-home-car__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    background: linear-gradient(135deg, var(--rgh-green), var(--rgh-green-2));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}

.rg-home-header__cta {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
}

.rg-home-header__cta:hover,
.rg-home-search__submit:hover,
.rg-home-final-cta__card > div > a:hover,
.rg-home-car__cta:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(22, 138, 75, .20);
}

.rg-home-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: #f4f7f5;
    cursor: pointer;
}

.rg-home-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--rgh-ink);
    transition: transform .2s ease, opacity .2s ease;
}

.rg-home-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.rg-home-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.rg-home-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.rg-home-mobile-menu[hidden] {
    display: none !important;
}

.rg-home-mobile-menu {
    display: none;
}

/* ------------------------------
   Hero
------------------------------ */
.rg-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px;
    background:
        linear-gradient(90deg, rgba(247,250,252,.98) 0%, rgba(247,250,252,.93) 45%, rgba(247,250,252,.45) 74%, rgba(247,250,252,.12) 100%),
        var(--rg-hero-city, linear-gradient(135deg, #e7eef3, #f7fafb));
    background-position: center;
    background-size: cover;
}

.rg-home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 76% 30%, rgba(255,255,255,.05), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(242,247,249,.44));
}

.rg-home-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
    grid-template-rows: 1fr auto;
    min-height: 650px;
    padding-top: 64px;
    padding-bottom: 34px;
}

.rg-home-hero__copy {
    z-index: 4;
    align-self: center;
    max-width: 640px;
    padding-bottom: 86px;
}

.rg-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(22, 138, 75, .15);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #476052;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.rg-home-eyebrow span {
    color: var(--rgh-green);
    font-size: 8px;
}

.rg-home-hero h1 {
    max-width: 750px;
    margin: 0;
    color: var(--rgh-ink);
    font-size: clamp(52px, 6vw, 82px);
    line-height: .93;
    font-weight: 830;
    letter-spacing: -.055em;
}

.rg-home-hero h1 span {
    color: #172132;
}

.rg-home-hero__sub {
    margin: 13px 0 0;
    color: #25364a;
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.1;
    font-weight: 650;
    letter-spacing: -.035em;
}

.rg-home-hero__desc {
    max-width: 600px;
    margin: 18px 0 0;
    color: #526072;
    font-size: 16px;
    line-height: 1.7;
}

.rg-home-hero__quickfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.rg-home-hero__quickfacts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(22, 138, 75, .12);
    border-radius: 10px;
    background: rgba(255,255,255,.74);
    color: #354355;
    font-size: 12px;
    font-weight: 720;
    backdrop-filter: blur(8px);
}

.rg-home-hero__quickfacts svg {
    width: 15px;
    height: 15px;
    fill: var(--rgh-green);
}

.rg-home-hero__visual {
    position: relative;
    z-index: 3;
    min-width: 0;
    align-self: stretch;
}

.rg-home-hero__halo {
    position: absolute;
    z-index: 0;
    width: 74%;
    aspect-ratio: 1;
    right: 0;
    bottom: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.72), rgba(255,255,255,.08) 62%, transparent 70%);
    filter: blur(1px);
}

.rg-home-hero__car {
    position: absolute;
    z-index: 2;
    right: -4%;
    bottom: 54px;
    width: min(720px, 112%);
    height: auto;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 34px 34px rgba(20, 30, 38, .28));
}

/* Hero search card */
.rg-home-search {
    position: relative;
    z-index: 12;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.06fr .82fr .82fr auto;
    align-items: stretch;
    width: min(100%, 1020px);
    min-height: 96px;
    margin-top: -10px;
    padding: 12px;
    border: 1px solid rgba(16, 24, 39, .08);
    border-radius: 20px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 22px 60px rgba(16, 24, 39, .15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.rg-home-search__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 18px;
    border-right: 1px solid var(--rgh-line);
}

.rg-home-search__field > span:first-child {
    margin-bottom: 5px;
    color: #7a8492;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.rg-home-search__control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rg-home-search__control svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: var(--rgh-green);
}

.rg-home-search select,
.rg-home-search input[type="date"] {
    width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d2939;
    box-shadow: none;
    outline: none;
    font-size: 14px;
    font-weight: 720;
}

.rg-home-search select {
    cursor: pointer;
}

.rg-home-search__submit {
    min-width: 190px;
    min-height: 64px;
    align-self: center;
    padding: 0 20px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
}

.rg-home-search__note {
    grid-column: 1 / -1;
    margin: 7px 6px 0;
    color: #8a929d;
    font-size: 11px;
    line-height: 1.4;
}

.rg-home-search.has-error {
    box-shadow: 0 22px 60px rgba(16,24,39,.15), 0 0 0 2px rgba(186, 61, 61, .16);
}

/* ------------------------------
   Trust band
------------------------------ */
.rg-home-trust {
    position: relative;
    z-index: 4;
    padding: 26px 0 12px;
    background: #fff;
}

.rg-home-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--rgh-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16,24,39,.055);
}

.rg-home-trust__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 22px;
    border-right: 1px solid var(--rgh-line);
}

.rg-home-trust__item:last-child {
    border-right: 0;
}

.rg-home-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--rgh-green-soft);
    color: var(--rgh-green);
    font-size: 18px;
    font-weight: 900;
}

.rg-home-icon--shield::before { content: "✓"; }
.rg-home-icon--car::before { content: "↔"; }
.rg-home-icon--pin::before { content: "⌖"; }
.rg-home-icon--support::before { content: "?"; }

.rg-home-trust__item h2 {
    margin: 1px 0 5px;
    color: var(--rgh-ink);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.rg-home-trust__item p {
    margin: 0;
    color: var(--rgh-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* ------------------------------
   Generic section
------------------------------ */
.rg-home-section {
    padding: 82px 0;
    background: #fff;
}

.rg-home-section:nth-of-type(even) {
    background: var(--rgh-bg);
}

.rg-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.rg-home-section-head h2 {
    margin: 0;
    color: var(--rgh-ink);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.045em;
}

.rg-home-section-head > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rgh-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.rg-home-section-head--center {
    justify-content: center;
    text-align: center;
}

.rg-home-section-head--split {
    align-items: end;
}

.rg-home-section-head--split > p {
    max-width: 520px;
    margin: 0;
    color: var(--rgh-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ------------------------------
   Popular cars
------------------------------ */
.rg-home-popular {
    padding-top: 70px;
}

.rg-home-cars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rg-home-car {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rgh-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16,24,39,.045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rg-home-car:hover {
    transform: translateY(-4px);
    border-color: rgba(22,138,75,.18);
    box-shadow: 0 22px 44px rgba(16,24,39,.095);
}

.rg-home-car__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: hidden;
    padding: 10px;
    background:
        radial-gradient(circle at 50% 66%, rgba(28,47,63,.06), transparent 42%),
        linear-gradient(180deg, #f7f8f9, #eef1f3);
}

.rg-home-car__media img {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: contain;
    transition: transform .35s ease;
}

.rg-home-car:hover .rg-home-car__media img {
    transform: scale(1.025);
}

.rg-home-car__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    border-radius: 7px;
    background: #17202a;
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.rg-home-car__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

.rg-home-car__class {
    margin: 0 0 6px;
    color: #8a929e;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rg-home-car h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 790;
    letter-spacing: -.025em;
}

.rg-home-car h3 a {
    color: var(--rgh-ink);
    text-decoration: none;
}

.rg-home-car__spec {
    margin: 7px 0 0;
    color: var(--rgh-muted);
    font-size: 12px;
}

.rg-home-car__footer {
    margin-top: auto;
    padding-top: 22px;
}

.rg-home-car__footer > p {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 11px;
    color: var(--rgh-muted);
    font-size: 11px;
}

.rg-home-car__footer strong {
    color: var(--rgh-ink);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.rg-home-car__cta {
    width: 100%;
    min-height: 45px;
    border-radius: 11px;
    font-size: 12px;
}

/* ------------------------------
   Process
------------------------------ */
.rg-home-process {
    background: var(--rgh-bg) !important;
}

.rg-home-process__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
}

.rg-home-process__grid::before {
    content: "";
    position: absolute;
    top: 67px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(22,138,75,.35) 0 6px, transparent 6px 12px);
}

.rg-home-process__step {
    position: relative;
    z-index: 2;
    min-height: 250px;
    padding: 27px 26px;
    border: 1px solid var(--rgh-line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 28px rgba(16,24,39,.035);
}

.rg-home-process__num {
    position: absolute;
    top: 17px;
    left: 18px;
    color: #a7afb9;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.rg-home-process__symbol {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 5px auto 22px;
    border: 1px solid rgba(22,138,75,.16);
    border-radius: 19px;
    background: var(--rgh-green-soft);
    color: var(--rgh-green);
}

.rg-home-process__step:nth-child(1) .rg-home-process__symbol::before { content: "1"; }
.rg-home-process__step:nth-child(2) .rg-home-process__symbol::before { content: "2"; }
.rg-home-process__step:nth-child(3) .rg-home-process__symbol::before { content: "3"; }
.rg-home-process__symbol::before { font-size: 23px; font-weight: 900; }

.rg-home-process__step h3 {
    margin: 0 0 9px;
    color: var(--rgh-ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.rg-home-process__step p {
    max-width: 28ch;
    margin: 0 auto;
    color: var(--rgh-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ------------------------------
   Why Rent&Go
------------------------------ */
.rg-home-why__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rg-home-why__item {
    min-width: 0;
    min-height: 188px;
    padding: 23px;
    border: 1px solid var(--rgh-line);
    border-radius: 20px;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}

.rg-home-why__item:hover {
    transform: translateY(-2px);
    border-color: rgba(22,138,75,.22);
}

.rg-home-why__item > span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    margin-bottom: 32px;
    border-radius: 999px;
    background: var(--rgh-green-soft);
    color: var(--rgh-green);
    font-size: 10px;
    font-weight: 900;
}

.rg-home-why__item h3 {
    margin: 0 0 8px;
    color: var(--rgh-ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.rg-home-why__item p {
    margin: 0;
    color: var(--rgh-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* ------------------------------
   Cities
------------------------------ */
.rg-home-cities {
    background: var(--rgh-bg) !important;
}

.rg-home-cities__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rg-home-city {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 22px;
    background: #dce3e7;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(16,24,39,.07);
}

.rg-home-city__media,
.rg-home-city__shade {
    position: absolute;
    inset: 0;
}

.rg-home-city__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.rg-home-city:hover .rg-home-city__media img {
    transform: scale(1.045);
}

.rg-home-city__shade {
    background: linear-gradient(180deg, rgba(8,17,25,.04) 25%, rgba(8,17,25,.78) 100%);
}

.rg-home-city__body {
    position: absolute;
    z-index: 3;
    left: 20px;
    right: 20px;
    bottom: 18px;
}

.rg-home-city__body h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    font-weight: 820;
    letter-spacing: -.035em;
}

.rg-home-city__body p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 11px;
    font-weight: 650;
}

.rg-home-city__arrow {
    position: absolute;
    right: 0;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}

.rg-home-city:hover .rg-home-city__arrow {
    transform: translateX(2px);
    background: rgba(255,255,255,.22);
}

/* ------------------------------
   FAQ
------------------------------ */
.rg-home-faq {
    background: #fff !important;
}

.rg-home-faq__layout {
    display: grid;
    grid-template-columns: minmax(260px, .58fr) minmax(0, 1.42fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.rg-home-faq__heading > span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--rgh-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.rg-home-faq__heading h2 {
    margin: 0 0 24px;
    color: var(--rgh-ink);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 820;
    letter-spacing: -.045em;
}

.rg-home-faq__heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rgh-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.rg-home-faq__list {
    border-top: 1px solid var(--rgh-line);
}

.rg-home-faq details {
    border-bottom: 1px solid var(--rgh-line);
}

.rg-home-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
    padding: 18px 2px;
    color: #253044;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 780;
}

.rg-home-faq summary::-webkit-details-marker {
    display: none;
}

.rg-home-faq summary span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f2f5f4;
    color: var(--rgh-green);
    font-size: 20px;
    font-weight: 500;
    transition: transform .18s ease;
}

.rg-home-faq details[open] summary span {
    transform: rotate(45deg);
}

.rg-home-faq details > div {
    padding: 0 48px 22px 2px;
}

.rg-home-faq details p {
    max-width: 72ch;
    margin: 0;
    color: var(--rgh-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ------------------------------
   Final CTA
------------------------------ */
.rg-home-final-cta {
    padding: 10px 0 76px;
    background: #fff;
}

.rg-home-final-cta__card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(380px, 1.25fr);
    min-height: 310px;
    overflow: hidden;
    padding: 48px 50px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 77% 35%, rgba(50,140,91,.18), transparent 25%),
        linear-gradient(135deg, var(--rgh-dark) 0%, var(--rgh-dark-2) 100%);
    color: #fff;
}

.rg-home-final-cta__card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(9,18,26,.1), transparent 62%);
}

.rg-home-final-cta__card > div:first-child {
    position: relative;
    z-index: 3;
    align-self: center;
}

.rg-home-final-cta__card h2 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    line-height: .98;
    font-weight: 820;
    letter-spacing: -.045em;
}

.rg-home-final-cta__card p {
    max-width: 500px;
    margin: 16px 0 22px;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.6;
}

.rg-home-final-cta__card > div > a {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
}

.rg-home-final-cta__car {
    position: relative;
    min-height: 210px;
}

.rg-home-final-cta__car img {
    position: absolute;
    right: -30px;
    bottom: -65px;
    width: min(720px, 110%);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 28px 30px rgba(0,0,0,.34));
}

/* ------------------------------
   Custom homepage footer
------------------------------ */
.rg-home-footer {
    padding: 54px 0 20px;
    background: #0b1620;
    color: rgba(255,255,255,.74);
}

.rg-home-footer__top {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(4, minmax(130px, .65fr));
    gap: 34px;
}

.rg-home-footer__logo {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.rg-home-footer__brand p {
    max-width: 300px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.55);
    font-size: 12px;
    line-height: 1.65;
}

.rg-home-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.rg-home-footer__col h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.rg-home-footer__col a {
    color: rgba(255,255,255,.58);
    text-decoration: none;
    font-size: 11px;
    transition: color .18s ease;
}

.rg-home-footer__col a:hover {
    color: #fff;
}

.rg-home-footer__contacts a:first-of-type {
    color: #fff;
    font-weight: 750;
}

.rg-home-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.38);
    font-size: 10px;
}

/* ------------------------------
   Tablet
------------------------------ */
@media (max-width: 1160px) {
    .rg-home-header__inner {
        gap: 18px;
    }

    .rg-home-nav {
        gap: 16px;
    }

    .rg-home-nav a {
        font-size: 12px;
    }

    .rg-home-phone span {
        display: none;
    }

    .rg-home-hero__grid {
        grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr);
    }

    .rg-home-cars,
    .rg-home-cities__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rg-home-city {
        min-height: 300px;
    }

    .rg-home-footer__top {
        grid-template-columns: 1.2fr repeat(2, .8fr);
    }

    .rg-home-footer__brand {
        grid-row: span 2;
    }
}

@media (max-width: 960px) {
    .rg-home-nav,
    .rg-home-header__actions .rg-home-lang,
    .rg-home-header__actions .rg-home-header__cta {
        display: none;
    }

    .rg-home-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .rg-home-header__actions {
        justify-self: end;
    }

    .rg-home-phone {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f4f7f5;
    }

    .rg-home-menu-toggle {
        display: block;
    }

    .rg-home-mobile-menu {
        position: fixed;
        z-index: 99949;
        top: 72px;
        left: 0;
        right: 0;
        display: block;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--rgh-line);
        background: rgba(255,255,255,.99);
        box-shadow: 0 20px 48px rgba(16,24,39,.12);
    }

    .rg-home-mobile-menu nav {
        display: grid;
    }

    .rg-home-mobile-menu nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        border-bottom: 1px solid var(--rgh-line);
        color: var(--rgh-ink);
        font-size: 16px;
        font-weight: 750;
    }

    .rg-home-mobile-phone {
        display: block;
        margin-top: 18px;
        color: var(--rgh-ink);
        font-size: 15px;
        font-weight: 800;
    }

    .rg-home-mobile-lang {
        display: flex;
        gap: 8px;
        margin: 16px 0;
    }

    .rg-home-mobile-lang a {
        display: grid;
        place-items: center;
        width: 46px;
        height: 40px;
        border: 1px solid var(--rgh-line);
        border-radius: 10px;
        color: var(--rgh-muted);
        font-size: 12px;
        font-weight: 850;
    }

    .rg-home-mobile-lang a.is-active {
        border-color: rgba(22,138,75,.28);
        background: var(--rgh-green-soft);
        color: var(--rgh-green);
    }

    .rg-home-mobile-cta {
        width: 100%;
        min-height: 52px;
        border-radius: 13px;
    }

    body.rg-home-menu-open {
        overflow: hidden;
    }

    .rg-home-hero,
    .rg-home-hero__grid {
        min-height: 0;
    }

    .rg-home-hero__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding-top: 52px;
        padding-bottom: 34px;
    }

    .rg-home-hero__copy {
        max-width: 720px;
        padding-bottom: 10px;
    }

    .rg-home-hero__visual {
        height: 360px;
    }

    .rg-home-hero__car {
        right: 2%;
        bottom: 0;
        width: min(680px, 92%);
        max-height: 360px;
    }

    .rg-home-hero__halo {
        right: 8%;
        bottom: 0;
        width: 50%;
    }

    .rg-home-search {
        grid-column: 1;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin-top: 12px;
    }

    .rg-home-search__field {
        border-right: 0;
        border-bottom: 1px solid var(--rgh-line);
    }

    .rg-home-search__city {
        grid-column: 1 / -1;
    }

    .rg-home-search__submit {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .rg-home-search__note {
        text-align: center;
    }

    .rg-home-trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rg-home-trust__item:nth-child(2) {
        border-right: 0;
    }

    .rg-home-trust__item:nth-child(-n+2) {
        border-bottom: 1px solid var(--rgh-line);
    }

    .rg-home-process__grid::before {
        display: none;
    }

    .rg-home-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rg-home-faq__layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .rg-home-faq__heading {
        max-width: 680px;
    }

    .rg-home-final-cta__card {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------------------------------
   Mobile
------------------------------ */
@media (max-width: 640px) {
    .rg-home-shell {
        width: min(100% - 28px, 1240px);
    }

    .rg-home-header,
    .rg-home-header__inner {
        min-height: 62px;
    }

    .rg-home-header__inner {
        width: calc(100% - 22px);
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .rg-home-brand {
        min-width: 0;
    }

    .rg-home-brand__logo {
        max-width: 126px;
        max-height: 36px;
    }

    .rg-home-header__actions {
        order: 3;
    }

    .rg-home-phone,
    .rg-home-menu-toggle {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .rg-home-menu-toggle {
        order: 2;
        justify-self: end;
    }

    .rg-home-header__actions {
        order: 2;
        justify-self: end;
    }

    .rg-home-menu-toggle {
        order: 3;
    }

    .rg-home-mobile-menu {
        top: 62px;
        max-height: calc(100dvh - 62px);
        padding-left: 16px;
        padding-right: 16px;
    }

    .rg-home-hero {
        background:
            linear-gradient(180deg, rgba(247,250,252,.98) 0%, rgba(247,250,252,.92) 48%, rgba(247,250,252,.68) 72%, rgba(247,250,252,.46) 100%),
            var(--rg-hero-city, linear-gradient(135deg, #e7eef3, #f7fafb));
        background-position: center;
    }

    .rg-home-hero__grid {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .rg-home-eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .rg-home-hero h1 {
        font-size: clamp(43px, 13vw, 58px);
        line-height: .95;
    }

    .rg-home-hero__sub {
        margin-top: 10px;
        font-size: 23px;
    }

    .rg-home-hero__desc {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.6;
    }

    .rg-home-hero__quickfacts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 19px;
    }

    .rg-home-hero__quickfacts span {
        min-height: 38px;
        padding: 6px 8px;
        font-size: 10px;
        line-height: 1.25;
    }

    .rg-home-hero__visual {
        height: 245px;
        margin-top: 4px;
    }

    .rg-home-hero__car {
        right: -7%;
        bottom: -2px;
        width: 110%;
        max-height: 250px;
    }

    .rg-home-hero__halo {
        width: 82%;
        right: -2%;
        bottom: -8px;
    }

    .rg-home-search {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 4px;
        padding: 10px;
        border-radius: 18px;
        box-shadow: 0 18px 44px rgba(16,24,39,.15);
    }

    .rg-home-search__field {
        min-height: 70px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--rgh-line);
    }

    .rg-home-search__field > span:first-child {
        font-size: 9px;
    }

    .rg-home-search select,
    .rg-home-search input[type="date"] {
        min-height: 38px;
        font-size: 16px;
    }

    .rg-home-search__submit {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        margin-top: 10px;
        border-radius: 13px;
        font-size: 14px;
    }

    .rg-home-search__note {
        margin: 9px 4px 2px;
        font-size: 10px;
    }

    .rg-home-trust {
        padding-top: 16px;
    }

    .rg-home-trust__grid {
        grid-template-columns: 1fr 1fr;
        border-radius: 18px;
    }

    .rg-home-trust__item {
        display: block;
        padding: 15px;
        border-right: 1px solid var(--rgh-line);
        border-bottom: 1px solid var(--rgh-line);
    }

    .rg-home-trust__item:nth-child(2n) {
        border-right: 0;
    }

    .rg-home-trust__item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .rg-home-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
        border-radius: 11px;
        font-size: 15px;
    }

    .rg-home-trust__item h2 {
        font-size: 12px;
    }

    .rg-home-trust__item p {
        font-size: 10px;
        line-height: 1.4;
    }

    .rg-home-section {
        padding: 58px 0;
    }

    .rg-home-section-head,
    .rg-home-section-head--split {
        display: block;
        margin-bottom: 20px;
    }

    .rg-home-section-head h2 {
        font-size: 34px;
    }

    .rg-home-section-head > a {
        margin-top: 12px;
    }

    .rg-home-section-head--split > p {
        margin-top: 12px;
        font-size: 13px;
    }

    .rg-home-popular {
        padding-top: 54px;
    }

    .rg-home-cars {
        display: flex;
        gap: 12px;
        width: calc(100% + 14px);
        margin-right: -14px;
        padding-right: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .rg-home-cars::-webkit-scrollbar {
        display: none;
    }

    .rg-home-car {
        flex: 0 0 min(82vw, 300px);
        scroll-snap-align: start;
        border-radius: 18px;
    }

    .rg-home-car__media {
        min-height: 190px;
    }

    .rg-home-car__media img {
        height: 180px;
    }

    .rg-home-process__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rg-home-process__step {
        min-height: 0;
        padding: 20px 18px 20px 88px;
        text-align: left;
    }

    .rg-home-process__symbol {
        position: absolute;
        top: 22px;
        left: 18px;
        width: 52px;
        height: 52px;
        margin: 0;
        border-radius: 15px;
    }

    .rg-home-process__num {
        display: none;
    }

    .rg-home-process__step h3 {
        margin-bottom: 6px;
        font-size: 16px;
    }

    .rg-home-process__step p {
        max-width: none;
        margin: 0;
        font-size: 12px;
    }

    .rg-home-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .rg-home-why__item {
        min-height: 168px;
        padding: 15px;
        border-radius: 16px;
    }

    .rg-home-why__item > span {
        margin-bottom: 22px;
    }

    .rg-home-why__item h3 {
        font-size: 14px;
    }

    .rg-home-why__item p {
        font-size: 11px;
        line-height: 1.45;
    }

    .rg-home-cities__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rg-home-city {
        min-height: 108px;
        border-radius: 16px;
    }

    .rg-home-city:first-child {
        min-height: 220px;
    }

    .rg-home-city:not(:first-child) .rg-home-city__shade {
        background: linear-gradient(90deg, rgba(8,17,25,.78), rgba(8,17,25,.24));
    }

    .rg-home-city__body {
        left: 15px;
        right: 15px;
        bottom: 14px;
    }

    .rg-home-city:not(:first-child) .rg-home-city__body {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .rg-home-city__body h3 {
        font-size: 21px;
    }

    .rg-home-city__body p {
        padding-right: 48px;
        font-size: 10px;
    }

    .rg-home-city__arrow {
        width: 32px;
        height: 32px;
    }

    .rg-home-faq__heading h2 {
        font-size: 36px;
    }

    .rg-home-faq summary {
        min-height: 64px;
        padding: 15px 0;
        font-size: 13px;
        line-height: 1.35;
    }

    .rg-home-faq details > div {
        padding: 0 36px 18px 0;
    }

    .rg-home-faq details p {
        font-size: 12px;
        line-height: 1.6;
    }

    .rg-home-final-cta {
        padding: 0 0 54px;
    }

    .rg-home-final-cta__card {
        display: block;
        min-height: 430px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .rg-home-final-cta__card h2 {
        font-size: 38px;
    }

    .rg-home-final-cta__car {
        min-height: 210px;
        margin-top: 18px;
    }

    .rg-home-final-cta__car img {
        right: -18%;
        bottom: -70px;
        width: 125%;
    }

    .rg-home-footer {
        padding-top: 40px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .rg-home-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .rg-home-footer__brand {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .rg-home-footer__brand p {
        max-width: 100%;
    }

    .rg-home-footer__bottom {
        display: grid;
        gap: 6px;
        margin-top: 30px;
    }
}

@media (max-width: 380px) {
    .rg-home-hero h1 {
        font-size: 41px;
    }

    .rg-home-hero__quickfacts {
        grid-template-columns: 1fr;
    }

    .rg-home-trust__grid,
    .rg-home-why__grid,
    .rg-home-footer__top {
        grid-template-columns: 1fr;
    }

    .rg-home-trust__item,
    .rg-home-trust__item:nth-child(2n),
    .rg-home-trust__item:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--rgh-line);
    }

    .rg-home-trust__item:last-child {
        border-bottom: 0;
    }

    .rg-home-footer__brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-home-page *,
    .rg-home-header *,
    .rg-home-footer * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =========================================================
   Rent&Go Homepage v1.2 — visual QA refinement
   Based on the first real production render.
   ========================================================= */

/* Hero: use the city artwork as atmosphere, not as a second vehicle layer. */
.rg-home-hero {
    min-height: 620px;
    background: linear-gradient(110deg, #f8fafc 0%, #f1f7fb 48%, #e7f4ff 100%);
}

.rg-home-hero::before {
    z-index: 0;
    inset: -8px;
    background:
        linear-gradient(90deg, rgba(248,250,252,.98) 0%, rgba(248,250,252,.90) 38%, rgba(248,250,252,.55) 66%, rgba(248,250,252,.34) 100%),
        var(--rg-hero-city, linear-gradient(135deg, #e7eef3, #f7fafb));
    background-size: cover;
    background-position: center center;
    opacity: .34;
    filter: saturate(.72) contrast(.94) blur(.4px);
    transform: scale(1.015);
}

.rg-home-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 75% 31%, rgba(255,255,255,.80), rgba(255,255,255,.24) 30%, transparent 52%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(247,250,252,.28));
}

.rg-home-hero__grid {
    z-index: 1;
    min-height: 620px;
    padding-top: 54px;
    padding-bottom: 30px;
}

.rg-home-hero__copy {
    max-width: 625px;
    padding-bottom: 72px;
}

.rg-home-hero h1 {
    max-width: 660px;
    font-size: clamp(54px, 5.25vw, 74px);
    line-height: .95;
    letter-spacing: -.052em;
}

.rg-home-hero__sub {
    font-size: clamp(24px, 2.25vw, 31px);
}

.rg-home-hero__desc {
    max-width: 575px;
}

/* A deliberate 2×2 fact matrix looks calmer than a 3+1 wrap. */
.rg-home-hero__quickfacts {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    margin-top: 22px;
}

.rg-home-hero__quickfacts span {
    min-height: 35px;
    padding-inline: 11px;
}

/* Hero car: more breathing room and less competition with the heading. */
.rg-home-hero__car {
    right: -1%;
    bottom: 70px;
    width: min(660px, 103%);
    max-height: 470px;
    filter: drop-shadow(0 30px 30px rgba(20, 30, 38, .24));
}

.rg-home-hero__halo {
    width: 68%;
    right: 2%;
    bottom: 92px;
    opacity: .78;
}

/* Booking panel gets slightly clearer hierarchy. */
.rg-home-search {
    width: min(100%, 1040px);
    min-height: 98px;
    border-radius: 22px;
    box-shadow: 0 20px 52px rgba(16, 24, 39, .13);
}

.rg-home-search__submit {
    min-width: 196px;
}

/* Footer: preserve a safe visual zone for the separate floating booking plugin. */
.rg-home-footer {
    padding-bottom: 84px;
}

.rg-home-footer__col h2 {
    font-size: 13px;
}

.rg-home-footer__col a,
.rg-home-footer__brand p {
    font-size: 12px;
}

@media (max-width: 1160px) {
    .rg-home-hero,
    .rg-home-hero__grid {
        min-height: 600px;
    }

    .rg-home-hero h1 {
        font-size: clamp(50px, 5.5vw, 68px);
    }

    .rg-home-hero__car {
        width: min(610px, 101%);
        right: -2%;
    }
}

@media (max-width: 960px) {
    .rg-home-hero,
    .rg-home-hero__grid {
        min-height: 0;
    }

    .rg-home-hero::before {
        opacity: .24;
    }

    .rg-home-hero__copy {
        padding-bottom: 8px;
    }

    .rg-home-hero__visual {
        height: 330px;
    }

    .rg-home-hero__car {
        right: 1%;
        bottom: 0;
        width: min(620px, 90%);
        max-height: 330px;
    }

    .rg-home-hero__halo {
        bottom: 5px;
    }
}

@media (max-width: 640px) {
    .rg-home-hero {
        background: linear-gradient(180deg, #f9fbfc 0%, #edf6fb 100%);
    }

    .rg-home-hero::before {
        background:
            linear-gradient(180deg, rgba(249,251,252,.98) 0%, rgba(249,251,252,.91) 42%, rgba(249,251,252,.58) 74%, rgba(249,251,252,.42) 100%),
            var(--rg-hero-city, linear-gradient(135deg, #e7eef3, #f7fafb));
        opacity: .30;
    }

    .rg-home-hero__grid {
        padding-top: 28px;
    }

    .rg-home-hero h1 {
        font-size: clamp(42px, 12.6vw, 56px);
    }

    .rg-home-hero__quickfacts {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rg-home-hero__quickfacts span {
        width: 100%;
        min-height: 40px;
    }

    .rg-home-hero__visual {
        height: 235px;
    }

    .rg-home-hero__car {
        right: -8%;
        width: 108%;
        max-height: 238px;
    }

    .rg-home-search {
        margin-top: 2px;
    }

    .rg-home-footer {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }
}

/* =========================================================
   Rent&Go Homepage v1.3 — full-page desktop polish
   Based on the second production QA screenshots.
   ========================================================= */

/* Hero background: remove the visible second car from the city artwork.
   The city image remains only as a faint atmospheric layer. */
.rg-home-hero::before {
    opacity: .16;
    filter: saturate(.55) contrast(.90) blur(4px);
    transform: scale(1.035);
}

.rg-home-hero::after {
    background:
        linear-gradient(180deg, rgba(248,250,252,.04) 0%, rgba(248,250,252,.08) 45%, rgba(248,250,252,.94) 82%, #f8fafc 100%),
        radial-gradient(circle at 75% 31%, rgba(255,255,255,.88), rgba(255,255,255,.28) 31%, transparent 54%);
}

/* Search card: slightly tighter, with the primary action visually dominant. */
.rg-home-search {
    min-height: 94px;
    padding: 11px;
}

.rg-home-search__field {
    padding-inline: 17px;
}

.rg-home-search__submit {
    min-height: 62px;
}

/* Trust band: more refined icons and slightly tighter density. */
.rg-home-trust {
    padding-top: 24px;
}

.rg-home-trust__item {
    padding: 19px 20px;
}

.rg-home-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.rg-home-icon--car::before { content: "↔"; font-size: 17px; }
.rg-home-icon--pin::before { content: "⌖"; font-size: 17px; }
.rg-home-icon--support::before { content: "✓"; font-size: 16px; }

/* Popular cars: richer information hierarchy without making cards taller. */
.rg-home-popular {
    padding-top: 64px;
    padding-bottom: 72px;
}

.rg-home-car__media {
    min-height: 212px;
}

.rg-home-car__media img {
    height: 198px;
}

.rg-home-car__tag.is-sale {
    background: #d95a49;
}

.rg-home-car__spec {
    min-height: 18px;
    color: #697586;
    font-size: 11.5px;
    font-weight: 600;
}

.rg-home-car__footer {
    padding-top: 18px;
}

/* Process: the previous version had too much empty vertical space.
   Keep the flow premium, but make it feel purposeful and faster. */
.rg-home-process {
    padding-top: 64px !important;
    padding-bottom: 66px !important;
}

.rg-home-process .rg-home-section-head {
    margin-bottom: 24px;
}

.rg-home-process__grid {
    max-width: 1000px;
    gap: 14px;
}

.rg-home-process__grid::before {
    top: 58px;
    left: 18%;
    right: 18%;
}

.rg-home-process__step {
    min-height: 212px;
    padding: 24px 24px 22px;
    border-radius: 20px;
}

.rg-home-process__symbol {
    width: 58px;
    height: 58px;
    margin: 3px auto 18px;
    border-radius: 17px;
}

.rg-home-process__symbol::before {
    font-size: 21px;
}

.rg-home-process__step h3 {
    font-size: 17px;
}

.rg-home-process__step p {
    max-width: 31ch;
    font-size: 12.5px;
    line-height: 1.55;
}

/* Why: less "empty card", more compact product-benefit grid. */
.rg-home-why {
    padding-top: 68px !important;
    padding-bottom: 72px !important;
}

.rg-home-why__grid {
    gap: 12px;
}

.rg-home-why__item {
    min-height: 154px;
    padding: 20px 22px;
    border-radius: 18px;
}

.rg-home-why__item > span {
    min-width: 32px;
    height: 26px;
    margin-bottom: 23px;
}

.rg-home-why__item h3 {
    font-size: 17px;
}

.rg-home-why__item p {
    font-size: 12.5px;
}

/* Cities are already one of the strongest sections; tighten only spacing. */
.rg-home-cities {
    padding-top: 70px !important;
    padding-bottom: 74px !important;
}

.rg-home-city {
    min-height: 312px;
}

.rg-home-city__body h3 {
    font-size: 25px;
}

/* FAQ: reduce excess white height while preserving editorial feel. */
.rg-home-faq {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

.rg-home-faq summary {
    min-height: 66px;
}

/* Final CTA is already strong; make the transition into footer more deliberate. */
.rg-home-final-cta {
    padding-top: 8px;
    padding-bottom: 66px;
}

/* Footer: use the actual brand mark and increase perceived finish. */
.rg-home-footer {
    padding-top: 48px;
}

.rg-home-footer__logo {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.rg-home-footer__logo-img {
    display: block;
    width: auto;
    max-width: 146px;
    max-height: 38px;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .96;
}

.rg-home-footer__brand p {
    margin-top: 12px;
}

.rg-home-footer__bottom {
    margin-top: 36px;
}

@media (max-width: 960px) {
    .rg-home-hero::before {
        opacity: .12;
        filter: saturate(.45) contrast(.9) blur(5px);
    }

    .rg-home-process,
    .rg-home-why,
    .rg-home-cities,
    .rg-home-faq {
        padding-top: 58px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 640px) {
    .rg-home-hero::before {
        opacity: .10;
    }

    .rg-home-process__step,
    .rg-home-why__item {
        min-height: 0;
    }

    .rg-home-footer__logo-img {
        max-width: 132px;
    }
}

/* =========================================================
   Rent&Go Homepage v1.4 — iPhone / mobile production QA
   Final mobile overrides MUST stay after all desktop polish rules.
   ========================================================= */
@media (max-width: 640px) {
    /* A calmer, more app-like mobile header. */
    .rg-home-header,
    .rg-home-header__inner {
        min-height: 58px !important;
    }

    .rg-home-header__inner {
        width: calc(100% - 20px) !important;
        gap: 7px !important;
    }

    .rg-home-brand__logo {
        max-width: 118px !important;
        max-height: 32px !important;
    }

    .rg-home-phone,
    .rg-home-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    .rg-home-mobile-menu {
        top: 58px !important;
        max-height: calc(100dvh - 58px) !important;
    }

    /* Hide Astra's separate blue scroll-to-top control on the custom homepage.
       The Rent&Go floating booking plugin is intentionally untouched. */
    body.home #ast-scroll-top,
    body.home .ast-scroll-top-icon {
        display: none !important;
    }

    /* Hero is already strong on mobile — only tighten it slightly. */
    .rg-home-hero__grid {
        padding-top: 24px !important;
        padding-bottom: 20px !important;
    }

    .rg-home-hero h1 {
        font-size: clamp(42px, 12vw, 52px) !important;
        line-height: .96 !important;
    }

    .rg-home-hero__sub {
        font-size: 22px !important;
    }

    .rg-home-hero__visual {
        height: 220px !important;
        margin-top: 2px !important;
    }

    .rg-home-hero__car {
        right: -5% !important;
        bottom: 2px !important;
        width: 106% !important;
        max-height: 224px !important;
    }

    /* Popular cars: keep the swipe pattern but make the card a little less massive. */
    .rg-home-popular {
        padding-top: 48px !important;
        padding-bottom: 54px !important;
    }

    .rg-home-car {
        flex-basis: min(78vw, 292px) !important;
    }

    .rg-home-car__media {
        min-height: 176px !important;
    }

    .rg-home-car__media img {
        height: 168px !important;
    }

    /* HOW IT WORKS
       v1.3 desktop polish was loaded after the original mobile rules and
       accidentally overrode mobile padding/min-height. Re-establish a clean
       icon + text row, with no symbol sitting on top of the heading. */
    .rg-home-process {
        padding-top: 48px !important;
        padding-bottom: 52px !important;
    }

    .rg-home-process .rg-home-section-head {
        margin-bottom: 18px !important;
        text-align: left !important;
    }

    .rg-home-process .rg-home-section-head h2 {
        font-size: 34px !important;
        line-height: 1.03 !important;
    }

    .rg-home-process__grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .rg-home-process__grid::before {
        display: none !important;
    }

    .rg-home-process__step {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 14px !important;
        row-gap: 4px !important;
        align-items: center !important;
        min-height: 0 !important;
        padding: 18px !important;
        border-radius: 18px !important;
        text-align: left !important;
    }

    .rg-home-process__num {
        display: none !important;
    }

    .rg-home-process__symbol {
        position: static !important;
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 54px !important;
        height: 54px !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }

    .rg-home-process__step h3 {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .rg-home-process__step p {
        grid-column: 2 !important;
        grid-row: 2 !important;
        max-width: none !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.48 !important;
    }

    /* WHY RENT&GO — retain two columns, but make them denser and readable. */
    .rg-home-why {
        padding-top: 50px !important;
        padding-bottom: 54px !important;
    }

    .rg-home-why .rg-home-section-head--split {
        margin-bottom: 18px !important;
    }

    .rg-home-why .rg-home-section-head h2 {
        font-size: 34px !important;
        line-height: 1.03 !important;
    }

    .rg-home-why .rg-home-section-head--split > p {
        margin-top: 10px !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .rg-home-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .rg-home-why__item {
        min-height: 144px !important;
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .rg-home-why__item > span {
        min-width: 30px !important;
        height: 24px !important;
        margin-bottom: 18px !important;
        font-size: 9px !important;
    }

    .rg-home-why__item h3 {
        margin-bottom: 7px !important;
        font-size: 14px !important;
        line-height: 1.18 !important;
    }

    .rg-home-why__item p {
        font-size: 10.5px !important;
        line-height: 1.42 !important;
    }

    /* CITIES — the desktop v1.3 min-height was overriding the original
       compact mobile cards. Keep Kyiv featured, but stop every city consuming
       an entire screen. */
    .rg-home-cities {
        padding-top: 52px !important;
        padding-bottom: 56px !important;
    }

    .rg-home-cities .rg-home-section-head h2 {
        font-size: 34px !important;
        line-height: 1.03 !important;
    }

    .rg-home-cities__grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .rg-home-city,
    .rg-home-city:first-child {
        min-height: 176px !important;
        border-radius: 18px !important;
    }

    .rg-home-city:first-child {
        min-height: 218px !important;
    }

    .rg-home-city:not(:first-child) .rg-home-city__body {
        top: auto !important;
        bottom: 14px !important;
        transform: none !important;
    }

    .rg-home-city__body {
        left: 16px !important;
        right: 16px !important;
        bottom: 14px !important;
    }

    .rg-home-city__body h3 {
        font-size: 22px !important;
    }

    .rg-home-city__body p {
        padding-right: 42px !important;
        font-size: 10px !important;
    }

    /* FAQ already works well; just reduce the oversized editorial heading. */
    .rg-home-faq {
        padding-top: 54px !important;
        padding-bottom: 54px !important;
    }

    .rg-home-faq__heading h2 {
        font-size: 34px !important;
        line-height: 1.04 !important;
    }

    .rg-home-faq summary {
        min-height: 60px !important;
        font-size: 13px !important;
    }

    /* Final CTA: preserve the dramatic car composition without an excessive
       empty vertical band. */
    .rg-home-final-cta {
        padding-bottom: 48px !important;
    }

    .rg-home-final-cta__card {
        min-height: 390px !important;
        padding: 26px 20px !important;
    }

    .rg-home-final-cta__card h2 {
        font-size: 34px !important;
        line-height: 1.02 !important;
    }

    .rg-home-final-cta__car {
        min-height: 180px !important;
        margin-top: 12px !important;
    }

    .rg-home-final-cta__car img {
        right: -14% !important;
        bottom: -54px !important;
        width: 118% !important;
    }

    .rg-home-footer {
        padding-top: 34px !important;
        padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 390px) {
    .rg-home-brand__logo {
        max-width: 108px !important;
    }

    .rg-home-why__grid {
        grid-template-columns: 1fr !important;
    }

    .rg-home-city,
    .rg-home-city:first-child {
        min-height: 168px !important;
    }

    .rg-home-city:first-child {
        min-height: 202px !important;
    }
}
