:root {
  --ink: #151718;
  --coal: #22272a;
  --steel: #59656f;
  --mist: #eef2f4;
  --paper: #ffffff;
  --line: #d7dee2;
  --signal: #d8b25a;
  --forest: #2f6b57;
  --clay: #8a5b3f;
  --shadow: 0 22px 60px rgba(16, 22, 26, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 222, 226, 0.9);
  backdrop-filter: blur(16px);
}

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar a {
  color: var(--paper);
  font-weight: 700;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 7px 0;
}

.brand__logo {
  width: 184px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16, 22, 26, 0.12));
  transform-origin: 22% 58%;
  animation: logoSettle 850ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
  transition: filter 220ms ease, transform 220ms ease;
}

.brand::after {
  position: absolute;
  inset: 8px -38px 8px auto;
  z-index: 1;
  width: 42px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 178, 90, 0.18), rgba(216, 178, 90, 0.55), transparent);
  transform: skewX(-18deg) translateX(-230px);
  animation: logoShine 2.8s ease 1.1s both;
  pointer-events: none;
}

.brand:hover .brand__logo,
.brand:focus-visible .brand__logo {
  filter: drop-shadow(0 16px 22px rgba(16, 22, 26, 0.18));
  transform: translateY(-1px) scale(1.035);
}

.brand:hover::after,
.brand:focus-visible::after {
  animation: logoShine 1s ease both;
}

@keyframes logoSettle {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    clip-path: inset(0 24% 0 0);
  }

  72% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes logoShine {
  0% {
    transform: skewX(-18deg) translateX(-240px);
    opacity: 0;
  }

  24% {
    opacity: 1;
  }

  100% {
    transform: skewX(-18deg) translateX(260px);
    opacity: 0;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--coal);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav__links a {
  position: relative;
  padding: 8px 0;
}

.nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 12px 28px rgba(21, 23, 24, 0.18);
}

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

.button--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button--gold {
  background: var(--signal);
  color: #1a160d;
  box-shadow: 0 16px 36px rgba(216, 178, 90, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero--compact {
  min-height: 500px;
  background:
    linear-gradient(90deg, rgba(13, 15, 16, 0.88), rgba(13, 15, 16, 0.48), rgba(13, 15, 16, 0.08)),
    url("../img/hero-stroje.jpg") center/cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 15, 16, 0.72), rgba(13, 15, 16, 0.42), rgba(13, 15, 16, 0.16)),
    linear-gradient(180deg, rgba(13, 15, 16, 0.04), rgba(13, 15, 16, 0.2));
  pointer-events: none;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink) url("../img/hero-stavebni-upravy-01.jpg") center/cover;
  animation: heroBackgroundSwap 33.6s steps(1, end) infinite;
}

.hero__layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1200ms ease,
    transform 4400ms linear;
  will-change: opacity, transform;
}

.hero__layer--a {
  background-image: url("../img/hero-stavebni-upravy-01.jpg");
}

.hero__layer--b {
  background-image: url("../img/hero-stavebni-upravy-02.jpg");
}

.hero__layer.is-visible {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes heroBackgroundSwap {
  0%,
  12.49% {
    background-image: url("../img/hero-stavebni-upravy-01.jpg");
  }

  12.5%,
  24.99% {
    background-image: url("../img/hero-stavebni-upravy-02.jpg");
  }

  25%,
  37.49% {
    background-image: url("../img/hero-stavebni-upravy-03.jpg");
  }

  37.5%,
  49.99% {
    background-image: url("../img/hero-stavebni-upravy-04.jpg");
  }

  50%,
  62.49% {
    background-image: url("../img/hero-stavebni-upravy-05.jpg");
  }

  62.5%,
  74.99% {
    background-image: url("../img/hero-stavebni-upravy-06.jpg");
  }

  75%,
  87.49% {
    background-image: url("../img/hero-stavebni-upravy-07.jpg");
  }

  87.5%,
  100% {
    background-image: url("../img/hero-stavebni-upravy-08.jpg");
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(830px, 100%);
  padding: 112px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 6vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.22rem;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 62px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__fact {
  padding: 22px;
  background: rgba(17, 19, 20, 0.34);
}

.hero__fact strong {
  display: block;
  font-size: 1.42rem;
  line-height: 1.15;
}

.hero__fact span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.section--tight {
  padding: 58px 0;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--mist {
  background: var(--mist);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

.section__head p {
  color: var(--steel);
  font-size: 1.06rem;
}

.section--dark .section__head p {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(20, 28, 32, 0.08);
}

.card__image {
  aspect-ratio: 1.45;
  width: 100%;
  object-fit: cover;
  background: var(--mist);
}

.card__body {
  padding: 24px;
}

.card p,
.feature p,
.locality p,
.service-list p {
  color: var(--steel);
}

.card__link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--forest);
  font-weight: 900;
}

.service-catalog {
  display: grid;
  gap: 22px;
}

.service-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-mini {
  min-height: 238px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(20, 28, 32, 0.06);
}

.service-mini__image {
  width: 100%;
  height: 102px;
  object-fit: cover;
  background: var(--mist);
}

.service-mini__body {
  padding: 18px 20px 20px;
}

.service-mini h3 {
  margin-bottom: 10px;
}

.service-mini p {
  color: var(--steel);
  font-size: 0.96rem;
}

.feature {
  padding: 28px;
  border-top: 3px solid var(--signal);
  background: var(--paper);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 56px;
  align-items: center;
}

.split__media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.checklist {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--coal);
  font-weight: 760;
}

.checklist li::before {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at center, var(--signal) 0 42%, transparent 45%), var(--ink);
}

.locality {
  display: grid;
  min-height: 230px;
  align-content: end;
  padding: 26px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--coal);
  position: relative;
  overflow: hidden;
}

.locality::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(21, 23, 24, 0.14), rgba(21, 23, 24, 0.88));
  z-index: 1;
}

.locality > * {
  position: relative;
  z-index: 2;
}

.locality--roud {
  background: linear-gradient(rgba(21, 23, 24, 0.2), rgba(21, 23, 24, 0.75)), url("../img/traktor-bagr.png") center/cover;
}

.locality--lito {
  background: linear-gradient(rgba(21, 23, 24, 0.2), rgba(21, 23, 24, 0.75)), url("../img/pasovy-bagr.jpeg") center/cover;
}

.locality--steti {
  background: linear-gradient(rgba(21, 23, 24, 0.2), rgba(21, 23, 24, 0.75)), url("../img/smykovy-nakladac.jpg") center/cover;
}

.locality--melnik {
  background: linear-gradient(rgba(21, 23, 24, 0.2), rgba(21, 23, 24, 0.75)), url("../img/kontejnerove-auto.jpeg") center/cover;
}

.locality p {
  color: rgba(255, 255, 255, 0.76);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.machine {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.machine img {
  width: 180px;
  height: 132px;
  object-fit: cover;
  border-radius: 6px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline div {
  padding: 28px;
  background: var(--paper);
}

.timeline strong {
  display: block;
  color: var(--forest);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 32px;
}

.contact-box,
.form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(20, 28, 32, 0.08);
}

.contact-box a {
  color: var(--forest);
  font-weight: 900;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--coal);
  font-weight: 800;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 34px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(21, 23, 24, 0.98), rgba(20, 40, 47, 0.95)),
    var(--ink);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("../img/kontejnerove-auto.jpeg") right center/520px auto no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-grid--premium {
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr) minmax(240px, 0.7fr);
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer h2,
.site-footer h3 {
  color: var(--paper);
}

.site-footer h2 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.footer-kicker {
  display: inline-flex;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 480px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer-badges span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 0.88rem;
}

.footer-column {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}

.footer-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.footer-list li {
  color: rgba(255, 255, 255, 0.72);
}

.footer-list a:hover,
.footer-call:hover {
  color: var(--signal);
}

.footer-call {
  display: inline-flex;
  margin-top: 22px;
  color: var(--signal);
  font-weight: 900;
}

.copyright {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

.visitor-counter {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--paper);
  font-weight: 800;
}

.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.2);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(21, 23, 24, 0.96);
  color: var(--paper);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.cookie-banner__content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.cookie-banner__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.cookie-banner__options {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.cookie-banner__options[hidden] {
  display: none;
}

.cookie-banner__options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 0.9rem;
}

.cookie-banner__options input {
  width: 16px;
  height: 16px;
  accent-color: var(--signal);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner .button {
  min-height: 42px;
  padding: 10px 14px;
  box-shadow: none;
}

.cookie-banner .button--ghost {
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 980px) {
  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__actions .button--light {
    display: none;
  }

  .hero {
    min-height: 620px;
    background-position: 60% center;
  }

  .hero__facts,
  .grid--3,
  .grid--4,
  .service-compact-grid,
  .timeline,
  .section__head,
  .split,
  .contact-panel,
  .cta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1120px) and (min-width: 981px) {
  .brand__logo {
    width: 160px;
    height: 58px;
  }

  .nav__links {
    gap: 12px;
    font-size: 0.86rem;
  }

  .nav__actions .button {
    padding-inline: 13px;
    font-size: 0.9rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .topbar__inner {
    align-items: flex-start;
    padding: 10px 0;
    flex-direction: column;
    gap: 4px;
  }

  .nav__actions .button {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .brand__logo {
    width: 142px;
    height: 52px;
  }

  .hero,
  .hero--compact {
    min-height: 560px;
  }

  .hero__content {
    padding: 74px 0 56px;
  }

  .hero__facts {
    margin-top: 36px;
  }

  .section {
    padding: 62px 0;
  }

  .machine {
    grid-template-columns: 1fr;
  }

  .machine img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.55;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid--premium {
    gap: 16px;
  }

  .footer-column {
    padding: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner .button {
    flex: 1 1 150px;
  }
}
