@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #202a25;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #275a46;
  --ink: #202a25;
  --muted: #737d76;
  --line: #e5e8e1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: 'DM Sans', Arial, sans-serif; }
h1, h2, h3, h4 { font-family: Manrope, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.topbar { height: 76px; padding: 0 max(calc((100% - 1160px)/2), 5%); display: flex; align-items: center; justify-content: space-between; background: #f5f6f2; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #eaede6; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.language-picker { display: flex; align-items: center; }
.language-picker select { border: 1px solid #dce2d9; border-radius: 6px; background: #fff; color: var(--ink); padding: 8px 7px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.5px; font-size: 19px; }
.brand-mark { height: 30px; width: 30px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 9px; font-family: Manrope, sans-serif; }
.nav { display: flex; gap: 28px; color: #68736b; font-size: 16px; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 7px; padding: 13px 18px; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--green); color: #fff; }
.button-dark:hover { background: #1d4939; }
.button-light { background: #fff; color: var(--ink); }
.header-action { padding: 11px 15px; }
.hero { max-width: 1160px; margin: 0 auto; padding: 72px 0 64px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: 470px; }
.eyebrow { color: #768179; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); letter-spacing: .2px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #77a486; }
.hero h1, .section-heading h2, .form-intro h2, .page-intro h1, .home-link-card h2 { font-family: Manrope, sans-serif; letter-spacing: -1.5px; }
.hero h1 { font-size: 56px; line-height: 1.08; margin: 21px 0 17px; font-weight: 700; }
.hero-copy > p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 440px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 35px; color: #818b83; font-size: 11px; }
.hero-note span { color: var(--green); margin-right: 6px; }
.hero-art { height: 340px; background: #dfe8da; border-radius: 10px; position: relative; overflow: hidden; }
.art-sun { width: 174px; height: 174px; border-radius: 50%; background: #eedbaa; position: absolute; top: 25px; right: 69px; }
.art-road { position: absolute; height: 105px; background: #c3d3c3; bottom: 0; width: 120%; left: -10%; transform: rotate(-8deg); border-radius: 50% 50% 0 0; }
.car-illustration { position: absolute; z-index: 1; width: 91%; bottom: 46px; left: 4%; }
.art-caption { position: absolute; top: 32px; left: 31px; display: grid; color: #577566; font-size: 10px; letter-spacing: 2px; font-weight: 600; line-height: 1.7; }
.art-label { position: absolute; bottom: 23px; right: 27px; z-index: 2; text-align: right; font-size: 8px; letter-spacing: 1px; color: #64756a; line-height: 1.8; }
.art-label b { color: var(--green); }
.home-hero { padding-bottom: 45px; }
.home-links { max-width: 1160px; margin: 0 auto 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-link-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 9px; transition: transform .15s, border-color .15s; }
.home-link-card:hover { transform: translateY(-2px); border-color: #a5b9a8; }
.home-link-card h2 { font-size: 20px; margin: 13px 0 8px; }
.home-link-card h2 span { color: var(--green); float: right; }
.home-link-card p { font-size: 12px; color: var(--muted); margin: 0; }
.page-intro { max-width: 1160px; margin: 0 auto; padding: 62px 0 25px; }
.page-intro h1 { font-size: 40px; margin: 12px 0; }
.page-intro p { font-size: 14px; color: var(--muted); margin: 0; }
.content-section, .renters-section, .form-section { max-width: 1160px; margin: 0 auto; padding: 42px 0 70px; }
.content-section { border-top: 1px solid var(--line); }
.page-content { padding-top: 20px; }
.listing-filters { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr auto; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 16px; margin-bottom: 30px; }
.listing-filters label { display: grid; gap: 6px; font-size: 10px; font-weight: 600; color: #59655c; }
.listing-filters input, .listing-filters select { width: 100%; min-width: 0; height: 38px; border: 1px solid #e3e7e0; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 11px; color: var(--ink); background: #fcfcfa; }
.listing-filters input:focus, .listing-filters select:focus { outline: 1px solid #6a9179; }
.filters-empty { margin-bottom: 25px; }
.category-block[hidden], .bus-subcategory[hidden] { display: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2, .form-intro h2 { margin: 9px 0 0; font-size: 29px; }
.text-link { font-size: 12px; color: var(--green); font-weight: 600; }
.text-link span { margin-left: 7px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-block { margin-bottom: 36px; }
.category-block > h2 { font-family: Manrope, sans-serif; font-size: 23px; letter-spacing: -.7px; margin: 0 0 16px; }
.bus-subcategory { margin: 20px 0; }
.bus-subcategory > h3 { font-size: 14px; color: #526157; margin: 0 0 12px; }
.listing-card { background: #fff; border-radius: 9px; overflow: hidden; border: 1px solid #eceee9; }
.car-placeholder { height: 155px; display: grid; place-items: center; background: linear-gradient(145deg, #e7ebe3, #dbe5dc); color: #64806d; font-size: 44px; }
.listing-photo { display: block; width: 100%; height: 155px; object-fit: cover; background: #e7ebe3; }
.photo-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 7px; scrollbar-width: thin; }
.photo-open { display: block; flex: 0 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: #e7ebe3; cursor: zoom-in; }
.photo-open:focus-visible { outline: 3px solid #6a9179; outline-offset: 2px; }
.photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-gallery .photo-open { width: min(72%, 220px); height: 132px; }
.damage-photos { padding: 0; }
.damage-photos .photo-open { width: 110px; height: 85px; }
.photo-viewer { position: fixed; width: 98vw; max-width: 98vw; height: 96vh; max-height: 96dvh; padding: 48px 12px 12px; overflow: hidden; border: 0; border-radius: 10px; background: #151815; color: #fff; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 82%); }
.photo-viewer-close, .photo-viewer-nav { display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 14%); color: #fff; cursor: pointer; }
.photo-viewer-close { position: absolute; top: 9px; right: 10px; width: 34px; height: 34px; font-size: 25px; line-height: 1; }
.photo-viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 5px; width: 100%; height: calc(100% - 20px); min-height: 0; }
.photo-viewer-stage img { justify-self: center; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.photo-viewer-nav { width: 40px; height: 48px; font-size: 34px; }
.photo-viewer-nav[hidden] { visibility: hidden; display: block; }
.photo-viewer-counter { height: 20px; text-align: center; color: rgb(255 255 255 / 78%); font-size: 12px; }
.car-placeholder span { filter: grayscale(.4); }
.listing-body { padding: 17px; }
.listing-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.listing-meta { font-size: 11px; color: var(--muted); }
.listing-description { font-size: 12px; color: #657067; line-height: 1.55; min-height: 38px; margin: 14px 0; }
.listing-bottom { border-top: 1px solid var(--line); padding-top: 13px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #67716a; }
.listing-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.listing-price small { font-size: 10px; font-weight: 400; color: var(--muted); }
.listing-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 10px; color: var(--muted); }
.listing-prices span { display: grid; gap: 5px; }
.listing-prices b { font-size: 12px; color: var(--ink); }
.listing-management { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.listing-management .button, .renter-delete { border: 1px solid var(--line); padding: 8px 11px; font-size: 11px; }
.renter-delete { grid-column: 1 / -1; justify-self: start; }
.empty-state { grid-column: 1/-1; padding: 36px 20px; text-align: center; background: white; border: 1px dashed #dce2d9; border-radius: 9px; color: var(--muted); font-size: 13px; }
.renters-section { border-top: 1px solid var(--line); }
.privacy-note { display: flex; gap: 12px; align-items: flex-start; background: #edf2e9; border-radius: 8px; padding: 14px 17px; margin: 0 0 18px; color: #5d6e60; font-size: 11px; line-height: 1.6; }
.privacy-note > span { font-size: 17px; color: var(--green); }
.privacy-note p { margin: 0; }
.renter-search-label { display: grid; gap: 7px; max-width: 560px; margin: 0 0 18px; font-size: 11px; font-weight: 600; color: #49554c; }
.renter-search-label input { height: 42px; border: 1px solid #e3e7e0; border-radius: 6px; padding: 11px 12px; font: inherit; font-weight: 400; background: #fff; }
.pesel-input, .phone-input { display: flex; align-items: center; }
.pesel-input span, .phone-input span { display: grid; place-items: center; align-self: stretch; padding: 0 11px; border: 1px solid #e3e7e0; border-right: 0; border-radius: 6px 0 0 6px; background: #f0f3ed; color: #657067; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pesel-input input, .phone-input input { min-width: 0; border-radius: 0 6px 6px 0; }
.renter-list { display: grid; gap: 9px; }
.renter-item { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 20px; align-items: center; background: white; border: 1px solid #eceee9; padding: 15px 18px; border-radius: 8px; }
.renter-name { font-size: 13px; font-weight: 700; }
.renter-reason { font-size: 11px; color: #68736b; line-height: 1.5; }
.renter-contact { font-size: 10px; color: #8b938c; }
.damage-photo-section { grid-column: 1 / -1; display: grid; gap: 8px; font-size: 10px; color: #59655c; }
.damage-photos { flex-wrap: wrap; }
.form-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-top: 64px; padding-bottom: 78px; }
.form-intro h2 { font-size: 34px; }
.form-intro p { max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-card { background: white; border: 1px solid #eceee9; padding: 22px; border-radius: 9px; display: grid; gap: 15px; }
.form-card label { display: grid; gap: 7px; font-size: 11px; font-weight: 600; color: #49554c; }
.form-card input, .form-card textarea, .form-card select { width: 100%; border: 1px solid #e3e7e0; border-radius: 6px; padding: 11px 12px; font-size: 12px; outline: none; background: #fcfcfa; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: #6a9179; }
.form-card textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-footnote { font-size: 10px; color: #818b83; margin: 0; }
.account-section { align-items: start; }
.account-status { padding: 13px 15px; margin-bottom: 14px; border: 1px solid #dfe7dc; border-radius: 7px; background: #edf2e9; color: #405d48; font-size: 12px; line-height: 1.6; }
.account-status[data-kind="error"] { background: #fbefed; border-color: #efd8d3; color: #8a3931; }
.account-status[data-kind="success"] { background: #edf5ed; border-color: #d6e7d7; color: #315d3a; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-actions button:disabled { opacity: .6; cursor: wait; }
.admin-panel { max-width: 1160px; margin: 0 auto 70px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-status { padding: 13px 15px; margin-bottom: 16px; border: 1px solid #dfe7dc; border-radius: 7px; background: #edf2e9; color: #405d48; font-size: 12px; line-height: 1.6; }
.admin-status[data-kind="error"] { background: #fbefed; border-color: #efd8d3; color: #8a3931; }
.admin-table-wrap { overflow-x: auto; }
.admin-records { margin-top: 36px; }
.admin-records h2 { margin: 0 0 14px; font-size: 22px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.admin-table button:disabled { opacity: .6; cursor: wait; }
.listing-status { display: inline-block; border-radius: 12px; padding: 3px 7px; background: #f7f0db; color: #806629; font-size: 9px; font-weight: 600; vertical-align: middle; }
.renter-form-section { background: #f0f3ed; max-width: none; padding-left: max(calc((100% - 1160px)/2), 5%); padding-right: max(calc((100% - 1160px)/2), 5%); }
footer { border-top: 1px solid var(--line); max-width: 1160px; margin: auto; padding: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; color: #838b84; font-size: 10px; }
footer .brand { color: var(--ink); font-size: 16px; }
footer .brand-mark { height: 25px; width: 25px; border-radius: 7px; }
footer > a:last-child { color: var(--green); }
[hidden] { display: none !important; }
@media (max-width: 1220px) {
  .hero, .content-section, .renters-section, .form-section:not(.renter-form-section), footer { margin-left: 5%; margin-right: 5%; }
  .renter-form-section, .page-intro, .home-links { padding-left: 5%; padding-right: 5%; }
}
@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 5%; }
  .brand { font-size: 16px; gap: 7px; }
  .nav { gap: 8px; font-size: 10px; }
  .header-tools { gap: 6px; }
  .language-picker select { padding: 7px 4px; font-size: 10px; }
  .header-action { display: none; }
  .hero { padding-top: 50px; grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 42px; }
  .hero-art { height: 275px; }
  .home-links { grid-template-columns: 1fr; }
  .page-intro { padding-top: 42px; }
  .page-intro h1 { font-size: 30px; }
  .listing-filters { grid-template-columns: 1fr 1fr; }
  .listing-filters label:first-child, .listing-filters label:nth-child(4) { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: 1fr; }
  .car-placeholder { height: 175px; }
  .section-heading { align-items: flex-start; gap: 15px; flex-direction: column; }
  .section-heading h2 { font-size: 26px; }
  .renter-item { grid-template-columns: 1fr; gap: 7px; }
  .damage-photo-section { grid-column: auto; }
  .form-section { grid-template-columns: 1fr; gap: 20px; padding-top: 45px; }
  .admin-panel { margin-left: 5%; margin-right: 5%; padding: 16px; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .form-intro h2 { font-size: 30px; }
  footer { gap: 15px; flex-wrap: wrap; }
  footer > span { order: 3; width: 100%; }
}
