:root {
  --page: #f3f4f8;
  --paper: #ffffff;
  --ink: #303038;
  --muted: #71717b;
  --brand: #5e5b84;
  --brand-dark: #45435f;
  --brand-soft: #e5e5ee;
  --line: #c9cad4;
  --footer: #3e3d54;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.content, .nav-wrap, .hero-inner, .footer-main {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 94px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e6e6eb;
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { width: 150px; line-height: 0; flex: 0 0 auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 34px);
  color: #8d8d97;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.nav a { position: relative; padding: 10px 0 12px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.hamburger { display: none; width: 32px; height: 24px; position: relative; }
.hamburger::before, .hamburger::after, .hamburger span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
}
.hamburger::before { top: 1px; }
.hamburger span { top: 11px; }
.hamburger::after { bottom: 1px; }

.home-hero {
  min-height: 485px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(35,35,47,.88) 0%, rgba(35,35,47,.66) 37%, rgba(35,35,47,.12) 72%, rgba(35,35,47,.05) 100%),
    url("hero.webp") center center / cover no-repeat;
}
.hero-inner { display: flex; align-items: center; padding: 66px 0; }
.hero-copy { max-width: 620px; color: #fff; }
.hero-copy h1 {
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(54px, 6.4vw, 82px);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero-copy p {
  width: fit-content;
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 2px solid rgba(255,255,255,.72);
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 500;
}

.intro-section { padding: 80px 0 58px; }
.intro-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}
.intro-grid h2, .service-detail > h2 {
  margin: 0;
  color: var(--brand);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.intro-copy { max-width: 760px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.72; }
.intro-copy p { margin: 0 0 1.2em; }

.service-index { padding: 12px 0 90px; }
.service-row {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) 44px;
  gap: 26px;
  align-items: center;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-number {
  align-self: start;
  padding-top: 7px;
  color: var(--brand);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}
.service-row h2 {
  margin: 0 0 6px;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 3.1vw, 43px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.service-row p { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }
.service-arrow { justify-self: end; font-size: 30px; color: var(--brand); transition: transform 150ms ease; }
.service-row:hover .service-arrow { transform: translateX(5px); }
.service-row:hover h2 { color: var(--brand); }

.inner-page { padding: 76px 0 100px; }
.page-lead {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
  align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  margin: 0 0 18px;
  color: var(--brand);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-lead h1 {
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(52px, 6.5vw, 78px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.lead-text {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
}
.lead-art { justify-self: end; width: min(100%, 300px); opacity: .95; }
.car-art { width: min(100%, 360px); }

.service-detail {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: clamp(48px, 8vw, 110px);
  padding-top: 62px;
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.detail-list li {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px 20px 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 650;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 5px;
  height: 24px;
  background: var(--brand);
}
.plain-copy {
  max-width: var(--max);
  padding-top: 54px;
}
.plain-copy p {
  max-width: 780px;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.contact-art { justify-self: end; width: 220px; opacity: .9; }
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 70px;
  padding-top: 66px;
}
.contact-panel {
  padding-left: 24px;
  border-left: 5px solid var(--brand);
}
.contact-panel h2 {
  margin: 0 0 22px;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 31px;
  font-weight: 700;
  text-transform: uppercase;
}
.contact-panel p { margin: 0 0 20px; color: var(--muted); }
.contact-panel a {
  display: block;
  width: fit-content;
  margin: 7px 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
}
.contact-panel a:hover { color: var(--brand); }

.site-footer { background: var(--footer); color: #fff; }
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding: 58px 0 52px;
}
.footer-brand p { max-width: 280px; margin: 20px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }
.footer-logo-mk { width: 150px; }
.footer-title {
  margin: 0 0 18px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer p { margin: 0; font-size: 14px; line-height: 1.8; }
.footer a:hover { text-decoration: underline; }
.footer-logo-isure { width: 120px; margin-top: 20px; }
.footer-bottom {
  width: min(var(--max), calc(100% - 64px));
  min-height: 70px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.menu-page { min-height: calc(100vh - 94px); padding: 56px 0 80px; background: var(--page); }
.mobile-menu {
  width: min(440px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}
.mobile-menu a:hover { color: var(--brand); }
.menu-close { display: grid; place-items: center; width: 38px; height: 38px; font-size: 34px; line-height: 1; }

@media (max-width: 820px) {
  .content, .nav-wrap, .hero-inner, .footer-main, .footer-bottom { width: calc(100% - 40px); }
  .site-header { height: 78px; }
  .brand { width: 130px; }
  .nav { display: none; }
  .hamburger { display: block; }
  .home-hero { min-height: 390px; background-position: 60% center; }
  .hero-inner { padding: 48px 0; }
  .hero-copy h1 { font-size: clamp(46px, 12vw, 65px); }
  .hero-copy p { max-width: 280px; font-size: 20px; }
  .intro-section { padding: 58px 0 40px; }
  .intro-grid, .service-detail { grid-template-columns: 1fr; gap: 22px; }
  .service-row { grid-template-columns: 42px minmax(0,1fr) 24px; gap: 14px; }
  .service-row h2 { font-size: clamp(26px, 7vw, 34px); }
  .service-row p { font-size: 15px; }
  .inner-page { padding: 52px 0 70px; }
  .page-lead { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding-bottom: 45px; }
  .page-lead h1 { font-size: clamp(45px, 12vw, 62px); }
  .lead-art, .contact-art { justify-self: start; width: min(220px, 65vw); }
  .car-art { width: min(300px, 80vw); }
  .detail-list { grid-template-columns: 1fr; }
  .plain-copy p { margin-left: 0; }
  .contacts { grid-template-columns: 1fr; gap: 46px; padding-top: 48px; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; padding: 46px 0; }
  .footer-bottom { min-height: 60px; }
  .menu-page { min-height: calc(100vh - 78px); }
}

@media (max-width: 480px) {
  .home-hero { min-height: 340px; background-position: 64% center; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { font-size: 18px; }
  .service-number { font-size: 12px; }
  .service-row { grid-template-columns: 34px minmax(0,1fr) 18px; }
  .contact-panel a { font-size: 19px; overflow-wrap: anywhere; }
}


/* V3: editorialni motiv odvozeny z geometrie loga */
.service-number {
  position: relative;
  min-width: 52px;
}
.service-number::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 2px;
  width: 3px;
  height: 28px;
  background: var(--brand);
  transform: rotate(32deg);
  transform-origin: center;
  opacity: .78;
}

.section-mark {
  position: relative;
  justify-self: end;
  width: min(100%, 300px);
  aspect-ratio: 1.1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.section-mark-number {
  color: #dedee6;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(100px, 13vw, 170px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
}
.section-mark-slash {
  position: absolute;
  width: 13px;
  height: 78%;
  background: var(--brand);
  transform: rotate(32deg);
  box-shadow: 24px 0 0 rgba(94,91,132,.24);
}

/* Jeden kontakt misto duplicitnich oddeleni */
.contacts {
  grid-template-columns: 1fr;
  max-width: var(--max);
}
.contact-panel-single {
  max-width: 820px;
}
.contact-panel-single h2 {
  margin-bottom: 30px;
}
.contact-lines {
  display: grid;
  border-top: 1px solid var(--line);
}
.contact-line {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  color: var(--brand);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-panel .contact-line a {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 26px);
}

/* Kompaktnejsi footer s jednim kontaktnim blokem */
.footer-main {
  grid-template-columns: 1fr 1.35fr;
  align-items: start;
}
.footer-contact {
  justify-self: end;
  width: min(100%, 520px);
}
.footer-label {
  color: rgba(255,255,255,.62);
}

@media (max-width: 820px) {
  .section-mark {
    justify-self: start;
    width: min(220px, 70vw);
  }
  .section-mark-number {
    font-size: clamp(92px, 28vw, 140px);
  }
  .contact-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-contact {
    justify-self: start;
    width: 100%;
  }
}


/* V4: jemnejsi akcent misto preskrtnuti a lepsi sazba kontaktu */
.section-mark {
  position: relative;
  justify-self: end;
  width: min(100%, 300px);
  aspect-ratio: 1.1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.section-mark-number {
  position: relative;
  z-index: 1;
}

.section-mark-slash {
  position: absolute;
  right: 34px;
  top: 28px;
  width: 10px;
  height: 84px;
  background: var(--brand);
  transform: rotate(32deg);
  box-shadow: 18px 0 0 rgba(94,91,132,.18);
}


@media (max-width: 900px) {
  .section-mark-slash {
    right: 24px;
    top: 18px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .section-mark-slash {
    right: 18px;
    top: 14px;
    width: 8px;
    height: 58px;
  }
}


/* V5: rovna linka pred cislem misto diagonalniho akcentu */
.service-number {
  position: relative;
  min-width: 58px;
  padding-left: 18px;
}

.service-number::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 22px;
  background: var(--brand);
  transform: translateY(-50%);
  opacity: .9;
}

.section-mark {
  position: relative;
  justify-self: end;
  width: min(100%, 300px);
  aspect-ratio: 1.1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.section-mark-number {
  position: relative;
  z-index: 1;
  padding-left: 24px;
}

.section-mark-slash {
  position: absolute;
  left: 86px;
  top: 50%;
  width: 6px;
  height: 92px;
  background: var(--brand);
  transform: translateY(-50%);
  box-shadow: none;
}

@media (max-width: 900px) {
  .section-mark-slash {
    left: 78px;
    height: 78px;
  }
}

@media (max-width: 480px) {
  .service-number {
    min-width: 46px;
    padding-left: 14px;
  }

  .service-number::after {
    width: 3px;
    height: 18px;
  }

  .section-mark-number {
    padding-left: 18px;
  }

  .section-mark-slash {
    left: 64px;
    width: 5px;
    height: 62px;
  }
}





/* V13 — stejné umístění nadpisu a čísla na všech vnitřních stránkách.
   Důvod: grid dříve centroval kratší kontaktní text trochu jinak a
   proporcionální šířka číslic opticky posouvala 04 oproti 01/02. */
@media (min-width: 901px) {
  .page-lead .lead-text {
    min-height: 66px;
  }
}

.section-mark {
  display: grid;
  grid-template-columns: 6px max-content;
  column-gap: 18px;
  justify-content: center;
  align-items: center;
  place-items: initial;
}

.section-mark-number {
  position: static;
  grid-column: 2;
  grid-row: 1;
  padding-left: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.section-mark-slash {
  position: static;
  grid-column: 1;
  grid-row: 1;
  width: 6px;
  height: 92px;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .section-mark {
    grid-template-columns: 6px max-content;
    column-gap: 16px;
  }

  .section-mark-slash {
    width: 6px;
    height: 78px;
  }
}

@media (max-width: 480px) {
  .section-mark {
    grid-template-columns: 5px max-content;
    column-gap: 14px;
  }

  .section-mark-number {
    padding-left: 0;
  }

  .section-mark-slash {
    width: 5px;
    height: 62px;
  }
}


/* V14: o trochu vetsi radkovani nejvetsich nadpisu na vsech strankach */
