/* Auto Požičovňa Bratislava — self-hosted fonts, no external CDN */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/pjs-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/pjs-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/sg-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/sg-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020;
}

:root {
  --navy: oklch(30% 0.07 255);
  --navy-dark: oklch(22% 0.03 250);
  --amber: oklch(78% 0.16 75);
  --amber-text: oklch(40% 0.1 70);
  --amber-bg: oklch(94% 0.05 75);
  --bg: oklch(97% 0.01 240);
  --surface: oklch(99% 0.005 240);
  --surface-alt: oklch(94% 0.015 240);
  --border: oklch(88% 0.01 240);
  --border-light: oklch(85% 0.01 240);
  --muted: oklch(45% 0.02 250);
  --muted-2: oklch(35% 0.02 250);
  --text: oklch(22% 0.03 250);
  --green-bg: oklch(94% 0.06 150);
  --green-text: oklch(35% 0.03 150);
  --red: oklch(55% 0.15 25);
  --font-heading: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--amber-text); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-body); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
button { font-family: var(--font-body); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark span {
  width: 18px; height: 12px; border: 2px solid var(--amber);
  border-bottom: none; border-radius: 6px 6px 0 0;
}
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

nav.main-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main-nav a { font-size: 14px; font-weight: 600; color: var(--text); }
nav.main-nav a[aria-current="page"] { color: var(--navy); border-bottom: 2px solid var(--amber); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { font-size: 13px; font-weight: 600; color: var(--navy); }
.cart-btn {
  cursor: pointer; position: relative; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-alt); display: flex; align-items: center; justify-content: center;
  border: none;
}
.cart-btn .bag { width: 16px; height: 12px; border: 2px solid var(--text); border-top: none; border-radius: 0 0 3px 3px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--amber); color: oklch(20% 0.02 250);
  font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.cart-count.show { display: flex; }
.btn-primary {
  background: var(--navy); color: #fff; border: none; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border); width: 40px; height: 40px;
  border-radius: 10px; cursor: pointer; font-size: 16px;
}
.mobile-nav {
  display: none; flex-direction: column; padding: 10px 20px 16px; gap: 12px; border-top: 1px solid var(--border);
}
.mobile-nav a { font-size: 15px; font-weight: 600; }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  nav.main-nav, .phone-link { display: none; }
  .menu-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-block; border-radius: 999px; font-weight: 700; font-size: 15px; padding: 15px 28px;
  cursor: pointer; border: none; text-align: center;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: none; color: var(--text); border: 1.5px solid var(--border-light); }
.btn-amber { background: var(--amber); color: oklch(20% 0.02 250); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; }

/* Hero */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-block; background: var(--amber-bg); color: var(--amber-text); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 18px; font-weight: 700; }
.hero h1 span { color: var(--navy); }
.hero p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-heading); font-weight: 700; font-size: 24px; }
.hero-stats .lbl { font-size: 12px; color: var(--muted); }
.hero-photo {
  aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { font-size: 32px; }
}

/* Search widget */
.search-widget {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px 50px;
}
.search-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; align-items: end;
}
.search-card label { font-size: 12px; font-weight: 700; color: var(--muted); }
.search-card select, .search-card input {
  width: 100%; margin-top: 6px; padding: 11px; border: 1px solid var(--border-light); border-radius: 10px; font-size: 14px;
}
.search-card button {
  background: var(--amber); color: oklch(20% 0.02 250); border: none; padding: 13px; border-radius: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer;
}

/* Sections */
section.section { max-width: 1200px; margin: 0 auto; padding: 56px 20px; }
section.section-alt { background: var(--surface-alt); padding: 56px 20px; }
section.section-alt > .wrap { padding: 0; }
.section-title { font-size: 28px; margin: 0 0 30px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.section-head a { font-weight: 700; font-size: 14px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; }
.cat-card {
  cursor: pointer; background: var(--surface); border-radius: 14px; padding: 22px; border: 1px solid transparent;
}
.cat-card:hover { border-color: var(--border); }
.cat-card .name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.cat-card .price { font-size: 13px; color: var(--muted); }

/* Car cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.car-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.car-photo { aspect-ratio: 4/3; overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-body { padding: 16px; }
.car-top { display: flex; justify-content: space-between; align-items: baseline; }
.car-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.car-tag { font-size: 11px; font-weight: 700; background: var(--surface-alt); padding: 3px 9px; border-radius: 999px; }
.car-meta { font-size: 12.5px; color: var(--muted); margin: 10px 0; line-height: 1.6; }
.car-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.car-price { font-weight: 700; font-size: 17px; }
.car-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.car-add {
  background: var(--navy); color: #fff; border: none; padding: 9px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.car-add[disabled] { opacity: .7; cursor: default; }

/* Why-choose (navy section) */
.section-navy { background: var(--navy); padding: 56px 20px; color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; }
.why-grid .t { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.why-grid .d { font-size: 14px; opacity: .85; line-height: 1.5; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; }
.steps-grid .n { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--amber); margin-bottom: 8px; }
.steps-grid .t { font-weight: 700; margin-bottom: 6px; }
.steps-grid .d { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.testi-card { background: var(--surface); border-radius: 14px; padding: 22px; }
.testi-card .q { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.testi-card .a { font-weight: 700; font-size: 13px; }

/* CTA band */
.cta-band {
  max-width: 1200px; margin: 0 auto; padding: 20px 20px 70px;
}
.cta-inner {
  background: var(--amber); border-radius: 20px; padding: 44px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.cta-inner .t { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.cta-inner .d { font-size: 14px; color: oklch(30% 0.05 70); }
.cta-inner button, .cta-inner a.btn {
  background: oklch(20% 0.02 250); color: #fff; border: none; padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}

/* Page header (inner pages) */
.page-head { max-width: 1200px; margin: 0 auto; padding: 44px 20px 0; }
.page-head h1 { font-size: 32px; margin: 0 0 6px; }
.page-head p { color: var(--muted); margin: 0 0 26px; font-size: 15px; }

/* Fleet filters */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-tabs button {
  background: #fff; color: var(--text); border: 1px solid var(--border-light); padding: 10px 18px;
  border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.filter-tabs button.active { background: var(--navy); color: #fff; border: none; }

/* Cart page */
.cart-lines { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.cart-line {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cart-line .name { font-weight: 700; font-family: var(--font-heading); }
.cart-line .meta { font-size: 12.5px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--border-light); background: #fff; border-radius: 8px; cursor: pointer; }
.qty .val { min-width: 60px; text-align: center; font-size: 13px; }
.cart-line .subtotal { font-weight: 700; min-width: 80px; text-align: right; }
.cart-line .remove { background: none; border: none; color: var(--red); font-size: 12.5px; font-weight: 700; cursor: pointer; }

.extras-card, .totals-card, .order-form, .empty-cart {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 26px;
}
.extras-card .t { font-weight: 700; margin-bottom: 12px; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px; }
.extras-grid label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }

.totals-card {
  display: flex; justify-content: space-between; align-items: center; background: var(--surface-alt); padding: 18px 20px;
}
.totals-card .t { font-weight: 700; }
.totals-card .v { font-family: var(--font-heading); font-weight: 700; font-size: 22px; }

.order-form { display: flex; flex-direction: column; gap: 12px; }
.order-form .t { font-weight: 700; margin-bottom: 4px; }
.order-form input, .order-form textarea {
  padding: 12px; border: 1px solid var(--border-light); border-radius: 10px; font-size: 14px;
}
.order-form textarea { min-height: 70px; resize: vertical; }
.order-form .consent { font-size: 12px; color: var(--muted); }
.order-form button[type="submit"] {
  background: var(--amber); color: oklch(20% 0.02 250); border: none; padding: 14px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 6px;
}

.empty-cart { text-align: center; padding: 60px 20px; border: 1px dashed var(--border-light); }
.empty-cart .t { font-weight: 700; margin-bottom: 10px; }
.empty-cart .d { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.success-box { background: var(--green-bg); border-radius: 16px; padding: 30px; text-align: center; }
.success-box .t { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.success-box .d { font-size: 14px; color: var(--green-text); margin-bottom: 18px; }
.success-box button, .success-box a.btn {
  background: var(--navy); color: #fff; border: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; cursor: pointer;
}

/* Generic content pages */
.content-page { max-width: 1000px; margin: 0 auto; padding: 44px 20px 80px; }
.content-page.narrow { max-width: 760px; }
.content-page h1 { font-size: 32px; margin: 0 0 20px; }
.content-page h2 { font-size: 20px; margin: 0 0 10px; }
.content-page p { font-size: 14.5px; line-height: 1.7; color: var(--muted-2); }
.legal-page h1 { font-size: 28px; }
.legal-page .body { font-size: 14.5px; line-height: 1.8; color: var(--muted-2); display: flex; flex-direction: column; gap: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card { text-align: center; background: var(--surface-alt); border-radius: 14px; padding: 18px; }
.stat-card .num { font-family: var(--font-heading); font-weight: 700; font-size: 22px; }
.stat-card .lbl { font-size: 12px; color: var(--muted); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.values-grid .t { font-weight: 700; margin-bottom: 4px; }
.values-grid .d { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.about-photo { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.service-block { margin-bottom: 36px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.tier-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.tier-card .t { font-weight: 700; }
.tier-card .d { font-size: 13px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; margin-bottom: 36px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.contact-card .t { font-weight: 700; margin-bottom: 6px; }
.contact-card .d { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.contact-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
@media (max-width: 760px) { .contact-cols { grid-template-columns: 1fr; } }
.contact-info { font-size: 14px; line-height: 1.9; margin-bottom: 20px; }
.contact-photo { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; position: relative; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo .caption {
  position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: var(--text);
  background: oklch(99% 0.005 240 / .85); padding: 8px 14px; border-radius: 8px;
}
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.contact-form input, .contact-form textarea { padding: 12px; border: 1px solid var(--border-light); border-radius: 10px; font-size: 14px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form button { background: var(--navy); color: #fff; border: none; padding: 13px; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* Blog */
.blog-list { display: flex; flex-direction: column; gap: 16px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.blog-card .tag { font-size: 12px; color: var(--amber); font-weight: 700; margin-bottom: 6px; }
.blog-card .title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.blog-card .excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.faq-q { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; background: none; border: none; width: 100%; text-align: left; color: var(--text); }
.faq-a { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }

/* Footer */
footer.site-footer { background: var(--navy-dark); color: #fff; padding: 50px 20px 24px; margin-top: 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 30px; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.footer-col .h { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.footer-col a, .footer-col div.txt { display: block; color: #fff; opacity: .85; font-size: 13px; margin-bottom: 8px; }
.footer-addr { font-size: 13px; opacity: .75; line-height: 1.7; }
.footer-bottom { max-width: 1200px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid oklch(35% 0.02 250); font-size: 12px; opacity: .6; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy-dark); color: #fff; padding: 16px 20px;
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; z-index: 60;
}
.cookie-banner.hidden { display: none; }
.cookie-banner .txt { font-size: 13px; max-width: 640px; }
.cookie-banner .txt a { color: var(--amber); }
.cookie-banner button {
  background: var(--amber); color: oklch(20% 0.02 250); border: none; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; cursor: pointer;
}

/* Toast */
.toast {
  position: fixed; top: 16px; right: 16px; background: var(--navy-dark); color: #fff; padding: 12px 18px;
  border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 80; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; transform: translateY(-8px);
}
.toast.show { opacity: 1; transform: translateY(0); }

.form-msg { font-size: 13px; margin-top: 4px; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green-text); }

@media (max-width: 560px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 28px; }
}
