:root {
  color-scheme: light;
  --bg: #eef3f4;
  --surface: #ffffff;
  --primary: #1769e0;
  --primary-dark: #1253b5;
  --accent: #1769e0;
  --accent-dark: #1253b5;
  --text: #24313b;
  --muted: #5f6d76;
  --border: rgba(36, 49, 59, 0.14);
  --shadow: 0 14px 32px rgba(36, 49, 59, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 8%, rgba(23, 105, 224, 0.14), transparent 42%),
    radial-gradient(circle at 10% 34%, rgba(224, 165, 58, 0.12), transparent 38%),
    linear-gradient(120deg, #f8fbfb 0%, #e4eeee 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 120px;
  height: auto;
  border-radius: 4px;
}

.brand span {
  color: var(--text);
}

.brand strong {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(23, 105, 224, 0.18);
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(90deg, rgba(11, 28, 47, 0.88) 0%, rgba(11, 28, 47, 0.68) 52%, rgba(11, 28, 47, 0.44) 100%),
    url("uvodni-pozadi.jpg") center / cover no-repeat;
  color: #ffffff;
  border-bottom: 1px solid var(--border);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__logo {
  width: min(100%, 400px);
  height: 216px;
  margin-bottom: 1.8rem;
  border-radius: 0.8rem;
  box-shadow: 0 18px 36px rgba(36, 49, 59, 0.16);
}

.badge,
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.95;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin: 0.6rem 0 1rem;
}

.hero__content .badge {
  font-size: 2rem;
  color: var(--accent);
}

.hero__content h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.hero__text {
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__categories {
  margin: 0 0 1.8rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.7;
}

.hero__categories span {
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0.2rem;
}

.hero__offer {
  max-width: 900px;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(23, 105, 224, 0.25);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
}

.hero__offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__offer-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
}

.hero__offer-list li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  color: var(--primary);
  content: "✓";
  font-weight: 800;
}

.hero__offer-list strong {
  color: var(--primary);
}

.hero__notice {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.hero__notice strong {
  color: var(--primary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 105, 224, 0.2);
}

.button--secondary {
  color: var(--accent);
  border: 1px solid rgba(23, 105, 224, 0.38);
  background: rgba(23, 105, 224, 0.08);
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__highlights li {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 105, 224, 0.25);
  font-size: 0.95rem;
}

.section {
  padding: 4.5rem 0;
}

.section--light {
  background: transparent;
  border-block: 1px solid var(--border);
}

.section-title {
  margin-bottom: 2rem;
  text-align: center;
}

.pricing-category-title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.pricing-section-title .pricing-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
}

.section-title h2,
.split-layout h2,
.page-hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.faq-container {
  max-width: 1120px;
}

.faq-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.faq-column__title {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  flex: 0 0 auto;
  color: var(--primary);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0.2rem 1.35rem 1.2rem;
  color: var(--muted);
}

.faq-answer a {
  color: var(--primary);
  font-weight: 700;
}

.faq-answer p {
  margin-bottom: 0.7rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.card-grid,
.pricing-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.pricing-card,
.info-panel,
.content-card,
.contact-card,
.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.pricing-card:hover,
.vehicle-card:hover {
  border-color: rgba(23, 105, 224, 0.45);
  transform: translateY(-2px);
}

.card a,
.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}

.check-list {
  padding-left: 1rem;
  color: var(--muted);
}

.check-list li::marker {
  color: var(--accent);
}

.check-list li + li {
  margin-top: 0.55rem;
}

.info-panel {
  background: linear-gradient(135deg, #f4faf9 0%, #ffffff 100%);
  border-color: rgba(23, 105, 224, 0.25);
}

.pricing-card strong {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.vehicle-showcase {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-card {
  min-height: 170px;
  background: linear-gradient(135deg, #ffffff 0%, #edf6f5 100%);
}

.gallery-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  border-radius: 0;
  border: none;
}

.gallery-slider {
  position: relative;
}

.gallery-slider img[hidden] {
  display: none;
}

.gallery-grid img.gallery-slider__photo--contain {
  object-fit: contain;
}

.gallery-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-slider__arrow:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slider__arrow--prev {
  left: 0.6rem;
}

.gallery-slider__arrow--next {
  right: 0.6rem;
}

.gallery-slider:hover .gallery-slider__arrow,
.gallery-slider:focus-within .gallery-slider__arrow {
  opacity: 1;
}

.gallery-slider__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.gallery-slider__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: none), (max-width: 767.98px) {
  .gallery-slider__arrow {
    opacity: 1;
  }
}

.gallery-item figcaption {
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.contact-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.contact-card {
  width: 100%;
}

.page-hero {
  padding: 3.6rem 0 2rem;
  background:
    linear-gradient(90deg, rgba(11, 28, 47, 0.88) 0%, rgba(11, 28, 47, 0.68) 52%, rgba(11, 28, 47, 0.44) 100%),
    url("krajina.jpg") center / cover no-repeat;
  color: #ffffff;
  border-bottom: 1px solid var(--border);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 700px;
}

.page-hero strong {
  color: #ffffff;
}

.rental-intro {
  max-width: 780px;
}

.rental-intro p {
  margin: 0.7rem 0;
}

.rental-intro strong {
  color: #ffffff;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.vehicle-listing {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.vehicle-listing img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vehicle-listing__body {
  padding: 1.2rem 1.3rem 1.35rem;
}

.vehicle-listing h2 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.vehicle-note,
.vehicle-price {
  margin: 0;
}

.vehicle-note {
  color: var(--muted);
}

.vehicle-price {
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}

.content-card ul,
.content-card ol {
  color: var(--muted);
  padding-left: 1.1rem;
}

.content-card li + li {
  margin-top: 0.55rem;
}

.contact-card form {
  display: grid;
  gap: 0.8rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #f8fbfb;
  color: var(--text);
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-card button {
  border: none;
  cursor: pointer;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
}

.contact-form__message {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

.contact-form__message[data-state="error"] {
  color: #b42318;
}

.contact-form__message[data-state="success"] {
  color: #18794e;
}

.contact-map {
  display: flex;
  flex-direction: column;
}

.contact-map iframe {
  width: 100%;
  min-height: 280px;
  flex: 1;
  border: 0;
  border-radius: 0.8rem;
}

.admin-page {
  width: min(900px, calc(100% - 2rem));
  margin: 4rem auto;
}

.admin-panel {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #f8fbfb;
  color: var(--text);
}

.admin-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-price-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-price-group {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.admin-price-group h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.admin-price-field {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 700;
}

.admin-message {
  min-height: 1.6em;
  margin: 0;
  color: var(--primary);
}

.admin-message[data-state="error"] {
  color: #b42318;
}

.admin-message[data-state="success"] {
  color: #16803c;
}

.admin-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.footer-brand {
  align-self: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-socials {
  flex: 0 0 auto;
}

.social-link {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(23, 105, 224, 0.38);
  border-radius: 50%;
  color: var(--primary);
  background: #ffffff;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: #ffffff;
  background: var(--primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

.social-link svg rect,
.social-link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-link svg .social-link__dot {
  fill: currentColor;
  stroke: none;
}

.social-link svg path {
  fill: currentColor;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .card-grid,
  .pricing-grid,
  .content-grid,
  .split-layout,
  .contact-cta,
  .admin-price-list,
  .vehicle-showcase,
  .vehicle-grid,
  .faq-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.7rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero__offer-list {
    grid-template-columns: 1fr;
  }
}

/* Mobilní hamburger menu */
.menu-fab,
.mobile-menu {
  display: none;
}

@media (max-width: 767.98px) {
  .site-header {
    transition: transform 0.3s ease;
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  .menu-fab {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .menu-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .menu-fab span {
    width: 1.3rem;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .menu-fab.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-fab.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-fab.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    z-index: 29;
    display: flex;
    flex-direction: column;
    min-width: 14rem;
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-menu a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu a.active,
  .mobile-menu a:hover {
    color: var(--accent);
    background: rgba(23, 105, 224, 0.08);
  }
}
