/* Zemní práce Michal Stehlík – styly webu */
:root {
  --yellow: #f2b51c;
  --yellow-dark: #d99c05;
  --ink: #1b1c1e;
  --ink-2: #2a2c30;
  --text: #2b2d31;
  --muted: #5d6168;
  --line: #e6e3dc;
  --paper: #ffffff;
  --sand: #f6f3ec;
  --radius: 6px;
  --max: 1160px;
  --head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 4px;
  background: var(--yellow);
  vertical-align: middle;
  margin-right: 10px;
  position: relative; top: -2px;
}

/* ---------- Záhlaví ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 4px solid var(--yellow);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--yellow); }

.lang { display: flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.lang button {
  font: 700 .85rem var(--head);
  letter-spacing: .06em;
  border: 0; background: #fff; color: var(--ink);
  padding: 6px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  width: 44px; height: 40px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.05rem var(--head);
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffc531; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- Úvodní fotka ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
  padding: 0;
  color: #fff;
  background: var(--ink) url("../img/hero.jpg") 65% 55% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,21,23,.9) 0%, rgba(20,21,23,.66) 45%, rgba(20,21,23,.1) 100%),
              linear-gradient(0deg, rgba(20,21,23,.5) 0%, rgba(20,21,23,0) 40%);
}
.hero .wrap { position: relative; padding-top: 90px; padding-bottom: 70px; width: 100%; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 1.2rem; max-width: 34rem; color: #ecebe7; margin: 0 0 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow { color: var(--yellow); }

.stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}

/* ---------- Sekce ---------- */
section { padding: 84px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #d9d8d4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }
.section-dark .section-head p { color: #b9b8b3; }

/* Služby */
.services {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
}
.service svg { width: 40px; height: 40px; color: var(--ink); margin-bottom: 14px; }
.service h3 { margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Ukázka z práce */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split .photos img { width: 100%; max-width: 460px; height: auto; border-radius: var(--radius); margin-left: auto; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1c1e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Oblast působení */
.area { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.area-card {
  border: 1px solid #3a3c41; border-radius: var(--radius);
  padding: 26px; background: var(--ink-2);
}
.area-card .flag { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.area-card .flag i { width: 34px; height: 22px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.flag-cz { background: linear-gradient(180deg, #fff 50%, #d7141a 50%); position: relative; overflow: hidden; }
.flag-cz::after { content: ""; position: absolute; left: 0; top: 0; border-left: 17px solid #11457e; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.flag-at { background: linear-gradient(180deg, #ed2939 33.3%, #fff 33.3% 66.6%, #ed2939 66.6%); }
.area-card h3 { margin: 0; }
.area-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-card li {
  background: rgba(242,181,28,.12); color: #ffd567;
  border: 1px solid rgba(242,181,28,.4);
  padding: 6px 12px; border-radius: 40px; font-weight: 600; font-size: .95rem;
}
.area-note { margin-top: 22px; color: #b9b8b3; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-box {
  background: var(--yellow); color: var(--ink);
  border-radius: var(--radius); padding: 34px;
}
.contact-box h3 { font-size: 1.6rem; }
.contact-line { display: flex; align-items: center; gap: 14px; margin: 16px 0; text-decoration: none; font-weight: 700; font-size: 1.2rem; word-break: break-word; }
.contact-line svg { width: 26px; height: 26px; flex: none; }
.contact-line:hover span { text-decoration: underline; }
.legal { font-size: .95rem; color: var(--muted); }
.legal dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.legal dt { font-weight: 700; color: var(--text); }
.legal dd { margin: 0; }

/* ---------- Vozový park ---------- */
.page-head {
  background: var(--ink); color: #fff; padding: 64px 0 56px;
}
.page-head h1 { color: #fff; }
.page-head p { color: #c9c8c3; max-width: 40rem; margin: 0; font-size: 1.1rem; }
.page-head .eyebrow { color: var(--yellow); }

.fleet { display: grid; gap: 28px; }
.machine {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff;
}
.machine:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.machine:nth-child(even) .gallery { order: 2; }
.gallery { background: #111; min-height: 100%; }
.gallery .main { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 6px; padding: 6px; background: #111; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 3px; background: none; cursor: pointer; width: 78px; height: 56px; overflow: hidden; opacity: .65; }
.thumbs button[aria-current="true"] { border-color: var(--yellow); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.machine .info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.machine .tag {
  align-self: flex-start;
  font: 700 .8rem var(--head); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow); padding: 4px 10px; border-radius: 3px; margin-bottom: 12px;
}
.machine h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.machine p { color: var(--muted); margin: 0 0 1rem; }
.uses { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { background: var(--sand); border: 1px solid var(--line); padding: 5px 12px; border-radius: 40px; font-size: .92rem; font-weight: 600; }

.cta-band { background: var(--yellow); padding: 48px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,11,.92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 4px; }
.lightbox button {
  position: absolute; top: 16px; right: 16px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--yellow); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- Zápatí ---------- */
.site-footer { background: #111214; color: #9d9c98; padding: 34px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #d9d8d4; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) and (min-width: 861px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 4px solid var(--yellow);
    display: none; padding: 8px 20px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .lang { align-self: flex-start; margin-top: 14px; }
  .brand img { height: 38px; }
  section { padding: 60px 0; }
  .split, .contact, .area { grid-template-columns: 1fr; gap: 28px; }
  .services { grid-template-columns: 1fr; }
  .machine, .machine:nth-child(even) { grid-template-columns: 1fr; }
  .machine:nth-child(even) .gallery { order: 0; }
  .machine .info { padding: 24px 20px; }
  .hero { min-height: 600px; background-position: 62% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(20,21,23,.93) 0%, rgba(20,21,23,.6) 55%, rgba(20,21,23,.3) 100%); }
  .hero .wrap { padding-top: 60px; padding-bottom: 48px; }
  .split .photos img { margin: 0 auto; }
  .contact-box { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
