/* =========================
   RentNow UI (Framework-ish)
   ========================= */

:root {
    --bg: #0b0c10;
    --panel: #11131a;
    --panel2: #0f1117;
    --text: #f3f4f6;
    --muted: rgba(243, 244, 246, .72);
    --muted2: rgba(243, 244, 246, .56);
    --line: rgba(255, 255, 255, .10);
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --shadow2: 0 12px 30px rgba(0, 0, 0, .35);

    --accent: #ff5a1f;
    /* warm orange */
    --accent2: #ff7a45;
    --good: #22c55e;

    --r: 18px;
    --r2: 22px;
    --container: 1180px;

    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(255, 90, 31, .25), transparent 55%),
        radial-gradient(900px 600px at 85% 15%, rgba(255, 122, 69, .18), transparent 60%),
        linear-gradient(180deg, var(--bg), #07080b);
}

/* --------- Base helpers --------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

.row {
    display: flex;
}

.row--center {
    align-items: center;
}

.row--between {
    justify-content: space-between;
}

.row--gap-sm {
    gap: 10px;
}

.row--gap-md {
    gap: 14px;
}

.row--gap-lg {
    gap: 18px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stack--sm {
    gap: 10px;
}

.stack--xs {
    gap: 8px;
}

.stack--2xs {
    gap: 6px;
}

.grid {
    display: grid;
    gap: 14px;
}

.grid--2 {
    grid-template-columns: 1fr 1fr;
}

.grid--tight {
    gap: 10px;
}

.grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.align-right {
    text-align: right;
}

.muted {
    color: var(--muted);
}

.lead {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 52ch;
}

.hint {
    font-size: .86rem;
    margin-top: 6px;
}

.sep {
    border: none;
    border-top: 1px solid var(--line);
    margin: 14px 0;
}

.h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0;
}

.h2 {
    font-size: 1.7rem;
    letter-spacing: -.02em;
    margin: 0;
}

.h3 {
    font-size: 1.25rem;
    letter-spacing: -.01em;
}

.eyebrow {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted2);
}

.only-mobile {
    display: none;
}

/* --------- Links / Buttons --------- */
.link {
    color: var(--text);
    text-decoration: none;
    opacity: .92;
}

.link:hover {
    opacity: 1;
    text-decoration: underline;
}

.link--muted {
    color: var(--muted);
}

.link--muted:hover {
    color: var(--text);
}

.btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .08s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    user-select: none;
}

.btn:hover {
    background: rgba(255, 255, 255, .10);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.btn--primary {
    border-color: transparent;
    background: linear-gradient(180deg, var(--accent2), var(--accent));
    box-shadow: 0 10px 20px rgba(255, 90, 31, .25);
}

.btn--primary:hover {
    filter: brightness(1.02);
}

.btn--ghost {
    background: transparent;
}

.btn--sm {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .92rem;
}

.btn--block {
    width: 100%;
}

.iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.iconbtn:hover {
    background: rgba(255, 255, 255, .10);
}

.iconbtn__bars {
    width: 18px;
    height: 12px;
    position: relative;
    display: block;
}

.iconbtn__bars:before,
.iconbtn__bars:after,
.iconbtn__bars span {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, .88);
    border-radius: 2px;
}

.iconbtn__bars:before {
    top: 0;
}

.iconbtn__bars span {
    top: 5px;
}

.iconbtn__bars:after {
    bottom: 0;
}

.iconbtn__x {
    width: 18px;
    height: 18px;
    position: relative;
    display: block;
}

.iconbtn__x:before,
.iconbtn__x:after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, .88);
    border-radius: 2px;
    transform-origin: center;
}

.iconbtn__x:before {
    transform: rotate(45deg);
}

.iconbtn__x:after {
    transform: rotate(-45deg);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .2));
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

/* --------- Badges / Pills --------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .84rem;
    background: rgba(255, 255, 255, .05);
}

.badge--accent {
    border-color: rgba(255, 90, 31, .35);
    background: rgba(255, 90, 31, .14);
}

.badge--soft {
    background: rgba(255, 255, 255, .06);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
}

.pill__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .9);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

/* --------- Form controls --------- */
.field {
    display: flex;
    flex-direction: column;
}

.field--inline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.label {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.label--sm {
    font-size: .82rem;
    margin: 0;
}

.input,
.select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    outline: none;
}

.input:focus,
.select:focus {
    border-color: rgba(255, 90, 31, .55);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .16);
}

.select {
    cursor: pointer;
}

.inputwrap {
    position: relative;
}

.suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17, 19, 26, .98);
    box-shadow: var(--shadow2);
    overflow: hidden;
    display: none;
    z-index: 10;
}

.suggest.is-open {
    display: block;
}

.suggest__item {
    padding: 12px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.suggest__item:first-child {
    border-top: none;
}

.suggest__item:hover {
    background: rgba(255, 255, 255, .06);
}

.suggest__hint {
    color: var(--muted2);
    font-size: .86rem;
}

.range {
    width: 100%;
}

/* --------- Layout parts --------- */
.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
}

.topbar__left,
.topbar__right {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 9, 12, .62);
    backdrop-filter: blur(14px);
}

.header__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header__burger {
    display: none;
}

.header__actions {
    white-space: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: -.04em;
    background: linear-gradient(180deg, var(--accent2), var(--accent));
    box-shadow: 0 10px 24px rgba(255, 90, 31, .25);
}

.brand__mark--sm {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-size: .95rem;
}

.brand__name {
    font-weight: 900;
    letter-spacing: -.02em;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav__link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 10px;
    border-radius: 12px;
}

.nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.nav__link--drawer {
    padding: 12px 12px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.hero {
    padding: 34px 0 18px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: start;
}

.hero__trust {
    flex-wrap: wrap;
}

.hero__card {
    position: relative;
}

.section {
    padding: 16px 0 34px;
}

.section__head {
    padding: 10px 0 14px;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 14px;
    align-items: start;
}

/* --------- Cards / Notices --------- */
.card {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(17, 19, 26, .65);
    border-radius: var(--r2);
    overflow: hidden;
}

.card--elevated {
    box-shadow: var(--shadow);
}

.card__head {
    padding: 16px 16px 0;
}

.card__body {
    padding: 16px;
}

.notice {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notice--soft {
    background: rgba(255, 255, 255, .05);
}

.notice__icon {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 90, 31, .14);
    border: 1px solid rgba(255, 90, 31, .35);
}

/* --------- Filters --------- */
.filters {
    position: sticky;
    top: 92px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(17, 19, 26, .55);
    border-radius: var(--r2);
    padding: 14px;
}

.filters__head {
    margin-bottom: 12px;
}

.filterblock {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.filterblock:first-child {
    border-top: none;
    padding-top: 0;
}

.filterblock__title {
    font-weight: 900;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .9);
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.check__input {
    display: none;
}

.check__box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .04);
    position: relative;
}

.check__input:checked+.check__box {
    border-color: rgba(255, 90, 31, .65);
    background: rgba(255, 90, 31, .18);
}

.check__input:checked+.check__box:after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent2), var(--accent));
}

.check__label {
    color: var(--muted);
    font-weight: 700;
}

.seg {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.seg:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .08);
}

.seg.is-active {
    border-color: rgba(255, 90, 31, .45);
    background: rgba(255, 90, 31, .16);
    color: rgba(255, 255, 255, .92);
}

/* --------- Results / Cards --------- */
.results {
    min-height: 300px;
}

.results__meta {
    padding: 12px 2px 10px;
}

.car {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(17, 19, 26, .55);
    border-radius: var(--r2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .10s ease, border-color .12s ease, background .12s ease;
}

.car:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 90, 31, .22);
    background: rgba(17, 19, 26, .70);
}

.car__img {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    position: relative;
    overflow: hidden;
}

.car__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .95;
}

.car__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.car__title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.car__name {
    font-weight: 1000;
    letter-spacing: -.01em;
}

.car__class {
    color: var(--muted2);
    font-weight: 700;
    font-size: .92rem;
}

.kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kpi {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    padding: 7px 9px;
    border-radius: 999px;
    font-size: .86rem;
    color: var(--muted);
    font-weight: 700;
}

.kpi strong {
    color: rgba(255, 255, 255, .92);
}

.pricebox {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: auto;
}

.price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price__main {
    font-size: 1.28rem;
    font-weight: 1000;
    letter-spacing: -.02em;
}

.price__sub {
    color: var(--muted2);
    font-size: .86rem;
}

.car__actions {
    display: flex;
    gap: 10px;
}

.empty {
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: var(--r2);
    padding: 30px 18px;
    text-align: center;
    background: rgba(255, 255, 255, .03);
}

.empty__icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.empty__title {
    font-weight: 1000;
    margin-bottom: 6px;
}

/* --------- Footer --------- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 24px 0 36px;
    background: rgba(0, 0, 0, .25);
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.footer__links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --------- Modal / Drawer --------- */
.modal,
.drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 80;
}

.modal.is-open,
.drawer.is-open {
    display: block;
}

.modal__backdrop,
.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
}

.modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(860px, calc(100% - 26px));
    max-height: calc(100% - 26px);
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(17, 19, 26, .92);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__head,
.modal__foot {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modal__foot {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.modal__body {
    padding: 14px;
    overflow: auto;
}

.drawer__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 92vw);
    border-left: 1px solid rgba(255, 255, 255, .10);
    background: rgba(17, 19, 26, .92);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.drawer__panel--wide {
    width: min(520px, 92vw);
}

.drawer__head {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.drawer__body {
    padding: 14px;
    overflow: auto;
    flex: 1;
}

.drawer__foot {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.thumb {
    width: 54px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
}

/* --------- Sticky selection --------- */
.sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 0;
    background: rgba(8, 9, 12, .74);
    border-top: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(14px);
    z-index: 60;
}

/* --------- Responsive --------- */
@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: fixed;
        inset: auto 0 0 0;
        top: auto;
        transform: translateY(105%);
        transition: transform .18s ease;
        border-radius: 22px 22px 0 0;
        z-index: 70;
    }

    .filters.is-open {
        transform: translateY(0);
    }

    .only-mobile {
        display: inline-flex;
    }

    .grid--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .header__burger {
        display: grid;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .grid--cards {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        flex-direction: column;
    }
}