/* Shared typography and surfaces. Release 20260916. Self-hosted Manrope includes Ukrainian. */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/manrope-variable.ttf') format('truetype');
}
:root {
    --nr-font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --text-main: #202b3a;
    --text-muted: #5c6879;
    --bg-main: #f5f6f8;
    --border: #e0e5eb;
    --shadow: 0 6px 24px rgba(28, 40, 57, .055);
}
[data-theme='dark'] {
    color-scheme: dark;
    --text-main: #edf2f8;
    --text-muted: #adb9c9;
    --bg-main: #121820;
    --border: #354252;
}
[data-theme='dark'] body.site-shell .floating-label { color: #ffa0a8 !important; }
[data-theme='dark'] body.site-shell #mobile-nav { background: #1b2129 !important; border-color: var(--border); }
body.site-shell {
    font-family: var(--nr-font);
    font-size: 16px;
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
body.site-shell :is(button, input, select, textarea) { font-family: var(--nr-font) !important; }
body.site-shell :is(h1, h2, h3, h4) { font-family: var(--nr-font) !important; font-weight: 700 !important; letter-spacing: -.025em; text-wrap: balance; }
body.site-shell :is(.journey-hero, .marketplace-hero, .public-page__hero) :is(h1, h2),
body.catalog-reference-upgrade #journey-title {
    font-size: clamp(28px, 3.4vw, 44px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.035em !important;
    max-width: 960px;
}
body.site-shell :is(.journey-hero, .marketplace-hero, .public-page__hero) p:not(.eyebrow):not(.public-page__eyebrow) {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 760px;
}
body.site-shell #main-header { border-bottom-width: 1px; box-shadow: 0 3px 16px rgba(20, 30, 44, .08); }
body.site-shell #main-header .header-brand-name { font-size: 19px; font-weight: 750; }
body.site-shell #main-header :is(.desktop-nav > a, .header-actions--shared > *, #user-badge) { font-weight: 600; }
body.site-shell #main-header .desktop-nav > a { font-size: 12px; padding-block: 9px; }
body.site-shell:not(:has(#page-fleet.active)) .compare-bar { display: none !important; }
body.site-shell :is(.client-booking-action, .compare-controls button, .compare-choose, .compare-remove, .card-book-btn, #p0-show-cars, #btn-submit) {
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: 10px;
}
body.catalog-reference-upgrade #search-sticky { padding-top: 22px; padding-bottom: 24px; }
body.site-shell .floating-input { font-size: 16px; font-weight: 500; border-color: var(--border); }
body.site-shell .floating-label { font-family: var(--nr-font); font-weight: 600 !important; letter-spacing: .015em; }
body.site-shell .car-card { border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 18px; }
body.site-shell .car-card h3 { font-size: 22px; line-height: 1.3; }
body.site-shell .referral-card {
    background: linear-gradient(135deg, #980c16 0%, #c9161d 58%, #a20c18 100%);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(152, 12, 22, .22);
    color: #fff;
}
body.site-shell .referral-card :is(h3, p, small, span, b) { color: #fff; }
body.site-shell .referral-card p { max-width: 760px; overflow-wrap: anywhere; line-height: 1.65; }
body.site-shell .referral-card :is(button, a) { font-family: var(--nr-font) !important; font-weight: 650 !important; }
body.site-shell .cabinet-demo-banner { border-radius: 14px; line-height: 1.55; }
body.site-shell .cabinet-demo-banner strong { font-weight: 700; }
body.site-shell .marketplace-panel { border-radius: 18px; box-shadow: var(--shadow); }
[data-theme='dark'] body.site-shell .cabinet-demo-banner { background: #2d2719; border-color: #806b36; color: #f2d992; }
[data-theme='dark'] body.site-shell .cabinet-demo-banner a { color: #f5d67b; }
body.catalog-reference-upgrade .offer-info { padding: 24px; }
body.catalog-reference-upgrade .offer-checkout { padding: 24px; background: var(--bg-input); }
body.site-shell :is(.price-total, .compare-price) { font-variant-numeric: tabular-nums; }
body.site-shell :is(.p0-collections__item, .rental-destination) { border-radius: 14px; box-shadow: none; }
body.site-shell .p0-collections__item b { font-weight: 600; }
body.site-shell .marketplace-faq summary { font-weight: 600; line-height: 1.55; }
body.site-shell .marketplace-faq p { line-height: 1.75; }
body.site-shell :is(.compare-table, .public-page p) { line-height: 1.6; }
@media (min-width: 1000px) and (max-width: 1199px) {
    body.catalog-reference-upgrade #search-sticky .search-box { grid-template-columns: minmax(0, 1fr) 150px !important; }
    body.catalog-reference-upgrade #search-sticky .marketplace-search__location { grid-area: 1 / 1 / 2 / 3 !important; }
    body.catalog-reference-upgrade #search-sticky .marketplace-search__dates { grid-area: 2 / 1 !important; }
    body.catalog-reference-upgrade #search-sticky #p0-show-cars { grid-area: 2 / 2 !important; }
    body.catalog-reference-upgrade #search-sticky .marketplace-search-actions { grid-area: 3 / 1 / 4 / 3 !important; }
}
@media (max-width: 760px) {
    body.catalog-reference-upgrade #journey-title { font-size: 29px !important; line-height: 1.2 !important; }
    body.site-shell :is(.journey-hero, .marketplace-hero, .public-page__hero) p:not(.eyebrow):not(.public-page__eyebrow) { font-size: 15px !important; }
    body.catalog-reference-upgrade .offer-info { padding: 20px 18px 0; }
    body.catalog-reference-upgrade .offer-checkout { padding: 18px; margin-top: 16px; }
    body.site-shell .car-card h3 { font-size: 21px; }
}

/* Keep full-page public and operational surfaces in the same visual system as
   the SPA. These pages do not inherit body.site-shell from base.html. */
body.standalone-page {
    font-family: var(--nr-font) !important;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
body.standalone-page :is(button, input, select, textarea) {
    font-family: var(--nr-font) !important;
}
body.standalone-page :is(h1, h2, h3, h4) {
    font-family: var(--nr-font) !important;
    font-weight: 700 !important;
    letter-spacing: -.025em;
    text-wrap: balance;
}
body.standalone-page :is(.bar, header, .header-top) {
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 4px 18px rgba(20, 30, 44, .10);
}
body.standalone-page :is(.panel, .card, .booking, .legal-page, .container, .box) {
    border-color: var(--border) !important;
    border-radius: 18px;
    box-shadow: var(--shadow);
}
body.standalone-page :is(button, .btn, .cta) {
    border-radius: 10px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
body.standalone-page :is(button, .btn, .cta):hover:not(:disabled) {
    transform: translateY(-1px);
}
body.standalone-page :is(input, select, textarea):focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(201, 22, 29, .16) !important;
}
body.standalone-page :is(button, .btn, .cta, a):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
body.standalone-page .sub,
body.standalone-page .meta,
body.standalone-page .note,
body.standalone-page .doc,
body.standalone-page .label {
    color: var(--text-muted) !important;
}
/* Offer details: readable terms, a complete single-photo layout and a quieter
   introduction so the vehicle remains the main subject. */
body.car-detail-page .page-context-hero {
    min-height: 0 !important;
    padding: 20px 24px !important;
    background: var(--bg-card) !important;
    box-shadow: none !important;
}
body.car-detail-page .page-context-hero :is(h2, .context-heading) { font-size: clamp(22px, 2.4vw, 30px) !important; line-height: 1.3 !important; }
body.car-detail-page .page-context-hero p { font-size: 15px !important; line-height: 1.65 !important; }
body.car-detail-page .offer-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
body.car-detail-page .offer-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-main); font-size: 14px; font-weight: 600; text-decoration: none; }
body.car-detail-page .offer-section-nav a:hover { border-color: var(--primary); color: var(--primary); }
body.car-detail-page :is(#offer-conditions, #offer-pickup, #availability-panel, #offer-reviews) { scroll-margin-top: 24px; }
body.car-detail-page .gallery > :only-child { grid-column: 1 / -1; grid-row: auto; }
body.car-detail-page .gallery img:only-child { height: auto; aspect-ratio: 16 / 10; max-height: 440px; object-fit: contain; }
body.car-detail-page .panel { padding: clamp(18px, 2.4vw, 28px); }
body.car-detail-page .panel h2 { font-size: 22px; line-height: 1.35; margin: 0 0 18px; }
body.car-detail-page .condition-grid .label { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
body.car-detail-page .condition-grid .value { font-size: 15px; font-weight: 600; line-height: 1.6; }
body.car-detail-page .condition-grid > div { padding: 16px; }
body.car-detail-page .offer-supplier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); font-size: 14px; line-height: 1.5; }
body.car-detail-page .offer-supplier-label { color: var(--text-muted); }
body.car-detail-page .offer-supplier a { color: var(--primary); font-weight: 700; text-underline-offset: 3px; }
body.car-detail-page .offer-supplier a:hover { text-decoration-thickness: 2px; }
body.car-detail-page .offer-supplier-status { margin-left: auto; color: var(--text-muted); font-size: 13px; }
body.car-detail-page .vehicle-identity-note { display: grid; gap: 5px; margin-top: 16px; padding: 14px 16px; border: 1px solid #b7e4c7; border-radius: 13px; background: #effaf2; color: var(--text-main); line-height: 1.5; }
body.car-detail-page .vehicle-identity-note b { color: #167447; }
body.car-detail-page .vehicle-identity-note span,
body.car-detail-page .vehicle-identity-note small { color: var(--text-muted); font-size: 13px; }
body.car-detail-page .booking .price { font-size: 34px; font-weight: 750; font-variant-numeric: tabular-nums; }
body.car-detail-page .price-tiers { display: grid; gap: 6px; margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-secondary); }
body.car-detail-page .price-tiers div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
body.car-detail-page .price-tiers b { color: var(--text-main); font-size: 13px; font-variant-numeric: tabular-nums; }
body.car-detail-page :is(.price small, .notice) { font-size: 13px; line-height: 1.65; }
body.car-detail-page .cta { font-weight: 650; line-height: 1.45; min-height: 48px; }
body.car-detail-page .availability-day { min-height: 44px; font-size: 14px; font-weight: 600; }
body.car-detail-page .availability-day:disabled:not(.busy) { background: #f1f3f5; border-color: #e0e5eb; color: #68717d; }
body.car-detail-page .availability-month-control button { min-width: 44px; min-height: 44px; }
body.car-detail-page .availability-month-control span { font-size: 14px; font-weight: 600; }
@media (max-width: 850px) {
    body.car-detail-page { padding-bottom: 0; }
    body.car-detail-page .bar { padding: 0 !important; }
    body.car-detail-page .bar-inner { padding: 12px 16px !important; }
    body.car-detail-page .page-context-hero { margin: 0 0 20px !important; padding: 18px !important; }
    body.car-detail-page .mobile-cta { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    body.car-detail-page .offer-supplier-status { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 760px) {
    body.standalone-page :is(.panel, .card, .booking, .legal-page, .container, .box) {
        border-radius: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.standalone-page :is(button, .btn, .cta) {
        transition: none;
    }
    body.standalone-page :is(button, .btn, .cta):hover:not(:disabled) {
        transform: none;
    }
}
