/* Autoservis Martin Charous */

:root {
  --navy-900: #071a36;
  --navy-800: #0b2347;
  --navy-700: #12336a;
  --blue-500: #2d6fd6;
  --blue-100: #e6eefb;
  --accent: #f5b400;
  --accent-hover: #ffc72c;
  --ink: #14213a;
  --muted: #5a6780;
  --line: #dde3ee;
  --surface: #ffffff;
  --surface-alt: #f3f6fb;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(7 26 54 / .06), 0 8px 24px rgb(7 26 54 / .08);
  --container: 1160px;
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-500); }
a:hover { color: var(--navy-700); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: var(--navy-900); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }

.btn-accent { background: var(--accent); color: var(--navy-900); }
.btn-accent:hover { background: var(--accent-hover); color: var(--navy-900); }

.btn-ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .08); color: #fff; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(7 26 54 / .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  color: #fff;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; color: var(--navy-700); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-small { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.brand-name { font-size: 1.2rem; font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  color: rgb(255 255 255 / .85); font-weight: 600; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: #fff; border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; margin-inline: auto;
  background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 20px 24px;
    background: var(--navy-900);
    border-bottom: 1px solid rgb(255 255 255 / .08);
    box-shadow: 0 16px 32px rgb(0 0 0 / .25);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .site-nav ul a:hover { border-bottom-color: rgb(255 255 255 / .08); color: var(--accent); }
  .site-nav .btn { min-height: 48px; }
}

/* Hero */

.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(45 111 214 / .45), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px;
  padding-block: 72px 80px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-500);
}
.hero .eyebrow, .section-dark .eyebrow { color: var(--accent); }

.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
.lead { margin-top: 18px; max-width: 34em; font-size: 1.15rem; color: rgb(255 255 255 / .82); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  margin: 36px 0 0; padding: 24px 0 0; list-style: none;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: .95rem; color: rgb(255 255 255 / .75);
}
.hero-facts li { display: flex; gap: 12px; }
.hero-facts strong { color: #fff; }
.hero-facts .icon { width: 22px; height: 22px; margin-top: 2px; fill: var(--accent); }

.hero-media { position: relative; margin: 0; }
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: calc(var(--radius) + 6px);
  border: 2px solid rgb(245 180 0 / .55);
}
.hero-media img {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% 50%;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 30px 60px rgb(0 0 0 / .35);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 48px 64px; }
  .hero-media { max-width: 560px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-media::before { inset: 10px -10px -10px 10px; }
}

/* Sections */

.section { padding-block: 88px; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy-900); color: #fff; }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }

@media (max-width: 600px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }
}

/* Services */

.services {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  margin: 0; padding: 0; list-style: none;
}

/* Pět karet: na tabletu 3 + 2 přes celou šířku, na mobilu pod sebou */
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service:nth-last-child(-n+2) { grid-column: span 3; }
}

@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; gap: 14px; }
  .service, .service:nth-last-child(-n+2) { grid-column: auto; }
  .service {
    display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start;
    padding: 20px;
  }
  .service-icon { grid-row: span 2; }
  .service h3 { margin-top: 2px; }
  .service p { margin-top: 4px; }
}

.service {
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.service h3 { margin-top: 18px; font-size: 1.15rem; }
.service p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

.service-icon {
  width: 52px; height: 52px; padding: 13px;
  border-radius: 12px; background: var(--blue-100); fill: var(--navy-700);
}

/* Prices */

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.price {
  padding: 28px;
  border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.price h3 { font-size: 1.2rem; }
.price-value { font-size: 1.7rem; font-weight: 800; color: var(--navy-800); white-space: nowrap; }
.price-value span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price > p { margin-top: 12px; color: var(--muted); }

.note { margin-top: 24px; color: var(--muted); }

@media (max-width: 760px) {
  .prices { grid-template-columns: 1fr; }
}

/* Gallery */

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.gallery li:nth-child(2), .gallery li:nth-child(3) { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.gallery a {
  display: block; height: 100%; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--surface-alt);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s, filter .4s;
}
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.05); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery li:nth-child(2), .gallery li:nth-child(3) { grid-row: span 2; }
}

@media (max-width: 480px) {
  .gallery { grid-auto-rows: 140px; gap: 10px; }
}

/* Contact */

.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; margin: 0; }
.contact-list dt {
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(255 255 255 / .55);
}
.contact-list dd { margin: 6px 0 0; color: rgb(255 255 255 / .9); }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.nowrap { white-space: nowrap; overflow-wrap: normal; }
.contact-list a:hover { color: var(--accent); }
.contact-wide { grid-column: 1 / -1; }
.contact-list div:first-child dd a { font-size: 1.35rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.contact-map {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-800);
  box-shadow: 0 30px 60px rgb(0 0 0 / .3);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact-map iframe { min-height: 340px; }
}

@media (max-width: 480px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
}

/* Footer */

.site-footer {
  padding-block: 28px;
  background: #050f20; color: rgb(255 255 255 / .55);
  font-size: .9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: rgb(255 255 255 / .8); }
.site-footer a:hover { color: var(--accent); }

/* Lightbox */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 56px 72px; border: 0;
  background: transparent;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(4 12 26 / .92); }

.lightbox-img {
  max-width: 100%; max-height: calc(100% - 40px);
  border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
}
.lightbox-caption { margin-top: 14px; color: rgb(255 255 255 / .8); text-align: center; }

.lightbox-btn {
  position: fixed;
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0 0 4px;
  border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .12); color: #fff;
  font: 400 2rem/1 var(--font); cursor: pointer;
  transition: background-color .15s;
}
.lightbox-btn:hover { background: rgb(255 255 255 / .24); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox { padding: 64px 12px 24px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}
