:root {
    --primary: #6c8cf5;
    --primary-hover: #5a79e6;
    --secondary: #a8c5ff;
    --accent: #f4b183;
    --background: #f8fafc;
    --surface: #ffffff;
    --soft-section: #eef4ff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow-soft: 0 12px 32px rgba(31, 41, 55, 0.08);
    --shadow-card: 0 8px 24px rgba(31, 41, 55, 0.06);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.katalog-page {
    min-width: 1200px;
    background: var(--background);
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 96px, var(--container));
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    border-color: var(--border);
    background: #fff;
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.full-width {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--primary), #7ba0ff);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(108, 140, 245, 0.28);
}

.brand-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.16rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-family: "Montserrat", sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--text-primary);
}

.search-area {
    padding: 44px 0 24px;
}

.search-card {
    background: var(--surface);
    border: 1px solid #e9efff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.search-heading {
    margin-bottom: 22px;
}

.search-heading .eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    font-weight: 600;
}

.search-heading h1 {
    margin: 0 0 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 2.05rem;
    line-height: 1.2;
}

.search-heading p {
    margin: 0;
    color: var(--text-secondary);
}

.search-form-horizontal {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 0.8fr;
    gap: 14px;
    align-items: end;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}

.field-group input,
.field-group select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 13px;
    font-family: "Poppins", sans-serif;
    color: var(--text-primary);
    background: #fff;
}

.field-group input:focus,
.field-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 140, 245, 0.12);
}

.catalog-main {
    padding: 24px 0 90px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.catalog-filter {
    position: sticky;
    top: 104px;
    display: block;
}

.filter-panel-head,
.filter-close-btn,
.filter-toggle-btn,
.catalog-filter-overlay {
    display: none;
}

.filter-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px;
}

.filter-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eff2f8;
}

.filter-block:last-of-type {
    margin-bottom: 0;
}

.filter-block h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
}

.filter-block label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.92rem;
}

.filter-block input[type="checkbox"],
.filter-block input[type="radio"] {
    accent-color: var(--primary);
}

.filter-block input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.filter-block select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    font-family: "Poppins", sans-serif;
}

.range-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 6px;
}

.range-meta strong {
    color: #374151;
}

.filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.catalog-results {
    min-width: 0;
}

.sorting-bar {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sorting-bar p {
    margin: 0;
    color: var(--text-secondary);
}

.sorting-bar strong {
    color: #334155;
}

.sorting-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sorting-actions label {
    font-size: 0.9rem;
    color: #475569;
}

.sorting-actions select {
    width: 180px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    font-family: "Poppins", sans-serif;
}

.availability-summary {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.availability-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.availability-chip strong {
    margin-left: auto;
    font-size: 0.86rem;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.availability-chip.available {
    background: #ecfdf3;
    border-color: #caefd9;
    color: #166534;
}

.availability-chip.available .chip-dot {
    background: #22c55e;
}

.availability-chip.soon {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.availability-chip.soon .chip-dot {
    background: #fb923c;
}

.availability-chip.unavailable {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.availability-chip.unavailable .chip-dot {
    background: #94a3b8;
}

.vehicle-listing {
    margin-top: 16px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #e8edf8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.vehicle-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.vehicle-body {
    padding: 16px;
}

.vehicle-top {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: start;
}

.vehicle-top h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.3;
}

.rental-name {
    margin: 7px 0 10px;
    color: #64748b;
    font-size: 0.87rem;
}

.vehicle-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.vehicle-spec span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e9eef6;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.77rem;
    color: #475569;
}

.vehicle-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vehicle-meta strong {
    color: var(--primary);
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.vehicle-meta strong span {
    color: #64748b;
    font-weight: 500;
    font-size: 0.82rem;
}

.rating {
    color: #f59e0b;
    font-size: 0.86rem;
    font-weight: 600;
}

.vehicle-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.status-badge {
    white-space: nowrap;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 5px 9px;
    font-weight: 600;
}

.status-badge.available {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #caefd9;
}

.status-badge.soon {
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.status-badge.unavailable {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.btn.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.pagination-wrap {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    display: grid;
    place-items: center;
    padding: 0 12px;
    font-size: 0.9rem;
    color: #475569;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.page-btn.muted {
    color: #9ca3af;
}

.page-dots {
    color: #94a3b8;
}

.site-footer {
    background: #e7eefc;
    border-top: 1px solid #d9e4fb;
    margin-top: 36px;
}

.footer-grid {
    padding: 70px 0 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand p {
    margin-top: 14px;
    color: #4d5b76;
    max-width: 340px;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    margin: 0 0 9px;
    color: #4d5b76;
    font-size: 0.93rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d4def5;
    color: #4e5e7f;
}

.social-links a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #d7e1f8;
    padding: 18px 0;
    color: #5f6f8d;
    font-size: 0.9rem;
}

.search-card,
.filter-card,
.sorting-bar,
.availability-chip,
.vehicle-card {
    animation: fadeUp 0.7s ease both;
}

.catalog-grid .vehicle-card:nth-child(2),
.catalog-grid .vehicle-card:nth-child(5),
.catalog-grid .vehicle-card:nth-child(8) {
    animation-delay: 0.08s;
}

.catalog-grid .vehicle-card:nth-child(3),
.catalog-grid .vehicle-card:nth-child(6) {
    animation-delay: 0.14s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
