/* ==========================================================================
   HEMATECH s.r.o. — CNC obrábění
   Barevná paleta odvozená z firemního brandu (vizitka / leták)
   ========================================================================== */

:root {
  --navy-900: #101c33;
  --navy-800: #16233f;
  --navy-700: #1e3050;
  --navy-600: #294169;
  --blue:     #2b7cc4;
  --blue-600: #2569ab;
  --gold:     #f4b220;
  --gold-600: #d99a0e;
  --ink:      #17202e;
  --slate:    #55627a;
  --line:     #e2e7ef;
  --bg:       #ffffff;
  --bg-alt:   #f4f6fa;
  --white:    #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(16, 28, 51, 0.45);
  --shadow-sm: 0 6px 18px -10px rgba(16, 28, 51, 0.4);
  --container: 1180px;
  --font-head: "Barlow Condensed", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Typografie nadpisů ---- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: .3px; text-transform: uppercase; }

/* ---- Tlačítka ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.logo img { width: 190px; height: auto; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-800);
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.nav-menu a:hover { color: var(--blue); background: var(--bg-alt); }
.nav-cta {
  background: var(--navy-800);
  color: var(--white) !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--navy-700) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 78% -10%, var(--navy-600) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 24px;
  padding: 78px 24px 96px;
  min-height: 560px;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 800;
}
.hero h1 span { color: var(--blue); }
.hero .lead {
  margin-top: 20px;
  font-size: 1.15rem;
  max-width: 40ch;
  color: rgba(255,255,255,.85);
}
.hero .lead strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); letter-spacing: .5px; }
.hero-badges span { font-size: .82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(16,28,51,.0));
}

/* ==========================================================================
   SECTIONS obecně
   ========================================================================== */
.section { padding: 86px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.kicker {
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.kicker-light { color: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; color: var(--navy-900); }
.section-sub { margin-top: 14px; color: var(--slate); font-size: 1.08rem; }

/* ---- Karty služeb ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-800), var(--blue));
  color: var(--white);
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.iso-tolerance-grade { text-transform: lowercase; }
.card p { color: var(--slate); font-size: .96rem; }
.card p strong { color: var(--ink); }

/* ---- Galerie „Z výroby“ ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery li {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery li:hover img { transform: scale(1.05); }

/* ---- Materiály ---- */
.materials {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.materials li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.materials li:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.mat-abbr {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
}
.mat-name { display: block; margin-top: 6px; font-size: .85rem; color: var(--slate); }
.materials-note { text-align: center; margin-top: 24px; color: var(--slate); font-style: italic; }

/* ---- Proč my ---- */
.proc-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.proc-visual {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.proc-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.proc-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; color: var(--navy-900); margin-bottom: 16px; }
.proc-intro { color: var(--slate); font-size: 1.08rem; margin-bottom: 26px; }
.check-list { display: grid; gap: 16px; margin-bottom: 30px; }
.check-list li {
  position: relative;
  padding-left: 38px;
  color: var(--slate);
}
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23101c33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.section-contact {
  background:
    radial-gradient(900px 500px at 20% 0%, var(--navy-600) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.section-contact .section-head h2 { color: var(--white); }
.section-contact .section-sub { color: rgba(255,255,255,.78); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 34px 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: var(--gold); }
.contact-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  margin-bottom: 6px;
}
.contact-ico svg { width: 28px; height: 28px; }
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.contact-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 54px 24px 30px;
}
.footer-brand img { filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; width: 170px; }
.footer-brand p { max-width: 32ch; font-size: .95rem; }
.footer-legal { margin-top: 10px; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-register { max-width: 58ch; margin-top: 5px; }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 34px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 60px; min-height: 0; gap: 40px; }
  .proc-grid { grid-template-columns: 1fr; gap: 34px; }
  .proc-visual { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 12px 18px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu a { padding: 13px 12px; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ========================================================================== 
   NOVÝ ÚVOD – KOMBINACE PŮVODNÍHO WEBU A DODANÉHO NÁVRHU
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  min-height: 96px;
  background: linear-gradient(108deg,
    rgba(255,255,255,.98) 0%,
    rgba(255,255,255,.98) 34%,
    rgba(255,255,255,.76) 46%,
    rgba(255,255,255,.86) 100%);
  border-bottom: 0;
  backdrop-filter: blur(5px);
}
.header-inner { min-height: 96px; max-width: 980px; }
.logo img { width: 200px; }
.nav-menu { gap: 8px; }
.nav-menu a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  text-transform: none;
  padding: 10px 12px;
}
.nav-cta {
  background: var(--gold);
  color: var(--navy-900) !important;
  padding-inline: 22px !important;
  box-shadow: 0 8px 24px -15px rgba(16,28,51,.8);
}
.nav-cta:hover { background: var(--gold-600) !important; color: var(--navy-900) !important; }

.hero {
  min-height: 1048px;
  border-bottom: 8px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(8,27,43,.2), rgba(8,27,43,0)),
    linear-gradient(155deg, #071b2b 0%, #0c2940 58%, #173a55 100%);
}
.hero::before {
  background-image: repeating-linear-gradient(12deg, rgba(55,143,204,.22) 0 2px, transparent 2px 58px);
  opacity: .72;
}
.hero-inner {
  position: static;
  display: block;
  max-width: 980px;
  min-height: 1048px;
  padding: 170px 24px 56px;
}
.hero-copy {
  position: relative;
  z-index: 4;
  width: min(610px, 64%);
}
.hero h1 {
  font-size: clamp(5.5rem, 8.8vw, 7.5rem);
  line-height: .8;
  letter-spacing: .2px;
}
.hero-title-line { display: block; }
.hero h1 .hero-title-cnc { color: var(--white); }
.hero h1 .hero-title-blue { color: var(--blue); }
.hero-title-rest {
  margin-top: .12em;
  font-size: .58em;
  line-height: 1.08;
}
.hero h1 .hero-title-rest { color: var(--white); }
.hero .lead {
  margin-top: 34px;
  max-width: 590px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: .25px;
}
.hero-actions { gap: 26px; margin-top: 60px; }
.hero-actions .btn {
  min-width: 196px;
  min-height: 80px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: .2px;
}
.hero-actions .btn-primary { min-width: 260px; }
.hero-actions .btn-ghost { min-width: 205px; }
.hero-actions .btn-ghost { border-color: var(--blue); border-width: 3px; }
.hero-actions .btn-ghost:hover { border-color: #5bb5f2; }

.hero-badges {
  width: min(900px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 1fr 1.18fr 1.3fr 1.05fr;
  gap: 28px;
  margin-top: 92px;
  padding-top: 0;
  border-top: 0;
}
.hero-badges li {
  min-height: 96px;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.11));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-badges strong { font-size: 1.75rem; line-height: 1; }
.hero-badges span {
  margin-top: 7px;
  color: rgba(255,255,255,.88);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .84rem;
}
.hero-visual {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 61%;
  height: 750px;
  display: block;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 46% 100%);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-fade { display: none; }

/* Technické značky přímo popisují význam jednotlivých karet. */
.card-icon span {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .4px;
}

@media (max-width: 1100px) {
  .nav-menu { gap: 2px; }
  .nav-menu a { padding-inline: 10px; }
  .hero-copy { width: 58%; }
  .hero-visual { width: 58%; }
  .hero-badges { gap: 18px; }
}

@media (max-width: 980px) {
  .site-header {
    position: fixed;
    min-height: 74px;
    background: rgba(255,255,255,.96);
  }
  .header-inner { min-height: 74px; }
  .logo img { width: 190px; }
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; padding: 136px 24px 64px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(4rem, 11vw, 6rem); }
  .hero .lead { max-width: 55ch; }
  .hero-badges { width: 100%; margin-top: 60px; gap: 16px; }
  .hero-visual {
    position: relative;
    width: calc(100% + 48px);
    height: min(62vw, 560px);
    margin: 52px -24px -64px;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 720px) {
  .hero-inner { padding-top: 128px; }
  .hero h1 { font-size: clamp(3.35rem, 16vw, 5.4rem); }
  .hero-title-rest { font-size: .52em; }
  .hero-actions { margin-top: 36px; gap: 14px; }
  .hero-actions .btn { min-width: 0; min-height: 56px; }
  .hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-badges li { min-height: 90px; }
  .hero-badges strong { font-size: 1.65rem; }
}

@media (max-width: 460px) {
  .hero .lead { font-size: 1.02rem; }
  .hero-actions { display: grid; }
  .hero-badges { gap: 12px; }
  .hero-badges li { padding-inline: 13px; }
  .hero-badges strong { font-size: 1.45rem; }
}

/* Přesný desktopový úvod je složený přímo z původních vrstev dodaného PSD. */
html { scroll-padding-top: calc(100vw * 102 / 1366); }
.site-header {
  height: calc(100vw * 102 / 1366);
  min-height: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
.header-exact {
  position: absolute;
  inset: 0;
}
.header-exact > img {
  display: block;
  width: 100%;
  height: 100%;
}
.header-exact-link {
  position: absolute;
  z-index: 2;
  top: 12%;
  height: 76%;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
.header-exact-logo { left: 13.54%; width: 18.74%; }
.header-exact-services { left: 47.5%; width: 5.8%; }
.header-exact-materials { left: 55.5%; width: 6.2%; }
.header-exact-why { left: 63.5%; width: 5.6%; }
.header-exact-contact { left: 71.2%; width: 5.5%; }
.header-exact-phone { left: 77.45%; width: 9%; }
.header-exact-link:focus-visible {
  outline: 3px solid #11233d;
  outline-offset: -4px;
}
.header-live { display: none; }

@media (min-width: 981px) {
  .site-header.site-header-plain {
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(226,231,239,.9);
    box-shadow: 0 8px 24px -22px rgba(16,28,51,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .site-header.site-header-plain .header-exact { display: none; }
  .site-header.site-header-plain .header-live {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    padding: 0;
  }
  .site-header.site-header-plain .logo {
    position: absolute;
    top: 12%;
    left: 13.54%;
    display: flex;
    align-items: center;
    width: 18.74%;
    height: 76%;
  }
  .site-header.site-header-plain .logo img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .site-header.site-header-plain .nav,
  .site-header.site-header-plain .nav-menu {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .site-header.site-header-plain .nav-menu li {
    position: absolute;
    top: 12%;
    height: 76%;
    pointer-events: auto;
  }
  .site-header.site-header-plain .nav-menu li:nth-child(1) { left: 47.5%; width: 5.8%; }
  .site-header.site-header-plain .nav-menu li:nth-child(2) { left: 55.5%; width: 6.2%; }
  .site-header.site-header-plain .nav-menu li:nth-child(3) { left: 63.5%; width: 5.6%; }
  .site-header.site-header-plain .nav-menu li:nth-child(4) { left: 71.2%; width: 5.5%; }
  .site-header.site-header-plain .nav-menu li:nth-child(5) {
    top: 22.5%;
    left: 77.45%;
    width: 9%;
    height: 55%;
  }
  .site-header.site-header-plain .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: clamp(12px, 1.02vw, 16px);
    white-space: nowrap;
  }
  .site-header.site-header-plain .nav-cta {
    margin: 0;
    padding: 0 !important;
    border-radius: 10px;
  }
}

.hero {
  min-height: 0;
  margin-top: calc(100vw * 102 / 1366);
  border-bottom: 0;
  background: #071b2b;
}
.hero::before { display: none; }
.hero-exact {
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / 621;
  overflow: hidden;
  background: #071b2b;
}
.hero-exact > img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-exact-link {
  position: absolute;
  z-index: 3;
  top: 70.69%;
  height: 9.35%;
  border-radius: .55vw;
}
.hero-exact-link-primary {
  left: 13.69%;
  width: 15.66%;
}
.hero-exact-link-secondary {
  left: 30.23%;
  width: 10.4%;
}
.hero-exact-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.hero-live { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  html { scroll-padding-top: 74px; }
  .site-header {
    height: 74px;
    min-height: 74px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(5px);
  }
  .header-exact { display: none; }
  .header-live { display: flex; }
  .hero {
    margin-top: 74px;
    border-bottom: 8px solid var(--gold);
    background:
      linear-gradient(90deg, rgba(8,27,43,.2), rgba(8,27,43,0)),
      linear-gradient(155deg, #071b2b 0%, #0c2940 58%, #173a55 100%);
  }
  .hero::before {
    display: block;
    background-image: repeating-linear-gradient(12deg, rgba(55,143,204,.22) 0 2px, transparent 2px 58px);
    opacity: .72;
  }
  .hero-exact { display: none; }
  .hero-live { display: block; }
}

/* ========================================================================== 
   OSTRÝ ÚVOD Z PSD
   Fotografie a průmyslové pozadí zůstávají obrazové. Logo, texty, tlačítka
   a parametry jsou skutečné webové prvky, takže se při změně velikosti
   nerozmazávají.
   ========================================================================== */
.header-exact,
.hero-exact { display: none !important; }

.hero-crisp {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  background-color: #071b2b;
  background-image: url("../assets/img/crisp-hero-background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.hero-crisp::before { display: none; }
.hero-photo-crisp {
  position: absolute;
  z-index: 1;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.hero-copy-crisp {
  position: relative;
  z-index: 2;
  font-family: "Bahnschrift Condensed", "Arial Narrow", var(--font-head);
}
.hero-title-crisp,
.hero-title-crisp span {
  display: block;
  margin: 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 .hero-title-crisp-cnc { color: #fff; }
.hero h1 .hero-title-crisp-blue { color: #0b71b4; }
.hero h1 .hero-title-crisp-rest { color: #fff; }
.hero-lead-crisp,
.hero-button-crisp,
.hero-badges-crisp {
  font-family: "Bahnschrift Condensed", "Arial Narrow", var(--font-head);
  font-weight: 700;
}
.hero-button-crisp {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: filter .15s ease, transform .15s ease;
}
.hero-button-crisp:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hero-button-crisp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.hero-badges-crisp li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(94, 113, 130, .62);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-badges-crisp strong,
.hero-badges-crisp span { display: block; }
.hero-badges-crisp strong { color: #f2c029; }
.hero-badges-crisp span { color: #fff; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-badges-crisp li {
    transition: transform .2s ease, background-color .2s ease,
      border-color .2s ease, box-shadow .2s ease;
  }
  .hero-badges-crisp li:hover {
    transform: translateY(-5px) scale(1.025);
    background: rgba(29, 58, 82, .92);
    border-color: rgba(242, 192, 41, .85);
    box-shadow:
      0 12px 24px rgba(0, 0, 0, .28),
      inset 0 1px 0 rgba(255, 255, 255, .16);
  }
}

@media (min-width: 981px) {
  html { scroll-padding-top: calc(100vw * 102 / 1366); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: calc(100vw * 102 / 1366);
    min-height: 0;
    border: 0;
    background-color: transparent;
    background-image:
      linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.80)),
      url("../assets/img/crisp-hero-photo.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.site-header-plain {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(226,231,239,.9);
    box-shadow: 0 8px 24px -22px rgba(16,28,51,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .header-live,
  .site-header.site-header-plain .header-live {
    position: relative;
    display: block !important;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    padding: 0;
  }
  .site-header .logo,
  .site-header.site-header-plain .logo {
    position: absolute;
    top: 34.3%;
    left: 13.54%;
    display: flex;
    align-items: center;
    width: 14.71%;
    height: 39.2%;
    pointer-events: auto;
  }
  .site-header .logo img,
  .site-header.site-header-plain .logo img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .site-header .nav,
  .site-header .nav-menu,
  .site-header.site-header-plain .nav,
  .site-header.site-header-plain .nav-menu {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .site-header .nav-menu li,
  .site-header.site-header-plain .nav-menu li {
    position: absolute;
    top: 12%;
    height: 76%;
    pointer-events: auto;
  }
  .site-header .nav-menu li:nth-child(1) { left: 47.5%; width: 5.8%; }
  .site-header .nav-menu li:nth-child(2) { left: 55.5%; width: 6.2%; }
  .site-header .nav-menu li:nth-child(3) { left: 63.5%; width: 5.6%; }
  .site-header .nav-menu li:nth-child(4) { left: 71.2%; width: 5.5%; }
  .site-header .nav-menu li:nth-child(5) {
    top: 21.6%;
    left: 77.45%;
    width: 9%;
    height: 56.9%;
  }
  .site-header .nav-menu a,
  .site-header.site-header-plain .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    color: #071b2b;
    background: transparent;
    font-family: "Bahnschrift Condensed", "Arial Narrow", var(--font-head);
    font-size: 1.56vw;
    font-weight: 700;
    letter-spacing: .034em;
    white-space: nowrap;
  }
  .site-header .nav-menu a:hover { color: #0b71b4; background: transparent; }
  .site-header .nav-cta,
  .site-header.site-header-plain .nav-cta {
    margin: 0;
    padding: 0 !important;
    border-radius: .62vw;
    color: #071b2b !important;
    background: #f2c029 !important;
  }

  .hero-crisp {
    height: auto;
    margin-top: calc(100vw * 102 / 1366);
    aspect-ratio: 1366 / 621;
    border: 0;
  }
  .hero-photo-crisp {
    top: calc(-100vw * 102 / 1366);
    left: 0;
    width: 100%;
    height: auto;
  }
  .hero-copy-crisp {
    position: absolute;
    inset: 0;
  }
  .hero-title-crisp {
    position: absolute;
    top: 5.31%;
    left: 13.47%;
    width: 47%;
  }
  .hero-title-crisp-cnc {
    color: #fff;
    font-size: 9.76vw;
    line-height: .77;
    letter-spacing: -.021em;
  }
  .hero-title-crisp-blue {
    color: #0b71b4;
    font-size: 8.79vw;
    line-height: .82;
    letter-spacing: .02em;
  }
  .hero-title-crisp-rest {
    color: #fff;
    font-size: 3.90vw;
    line-height: .96;
    letter-spacing: .10em;
  }
  .hero-lead-crisp {
    position: absolute;
    top: 56.84%;
    left: 13.69%;
    width: 50%;
    color: #fff;
    font-size: 1.25vw;
    line-height: 1.45;
    letter-spacing: .06em;
  }
  .hero-actions-crisp { position: static; }
  .hero-button-crisp {
    position: absolute;
    top: 70.37%;
    height: 9.66%;
    border-radius: .58vw;
    font-size: 1.562vw;
    letter-spacing: .034em;
  }
  .hero-button-crisp-primary {
    left: 13.62%;
    width: 15.82%;
    color: #071b2b;
    background: #f2c029;
  }
  .hero-button-crisp-secondary {
    left: 30.09%;
    width: 10.62%;
    color: #fff;
    background: #0b71b4;
    border-color: #0b71b4;
  }
  .hero-badges-crisp {
    position: absolute;
    top: 85.19%;
    left: 13.54%;
    display: grid;
    grid-template-columns: repeat(4, 13.40vw);
    gap: .732vw;
    height: 11.11%;
  }
  .hero-badges-crisp li { border-radius: .66vw; }
  .hero-badges-crisp strong {
    font-size: 1.952vw;
    line-height: .9;
    letter-spacing: .06em;
  }
  .hero-badges-crisp span {
    margin-top: .20vw;
    font-size: 1.367vw;
    line-height: 1;
    letter-spacing: .06em;
  }
}

/* ========================================================================== 
   SEKCE PO JEDNÉ OBRAZOVCE
   Každý hlavní odkaz dosedne pod pevnou hlavičku a zobrazí právě jednu sekci.
   ========================================================================== */
.site-header .nav-menu a.nav-cta,
.site-header.site-header-plain .nav-menu a.nav-cta {
  border-radius: clamp(11px, .9vw, 14px);
  overflow: hidden;
}

@media (min-width: 721px) {
  #sluzby,
  #materialy,
  #proc-my,
  #kontakt {
    box-sizing: border-box;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
  }

  #sluzby > .container,
  #materialy > .container,
  #proc-my > .container,
  #kontakt > .container {
    width: 100%;
  }
}

@media (min-width: 981px) {
  #sluzby,
  #materialy,
  #proc-my,
  #kontakt {
    min-height: calc(100vh - (100vw * 102 / 1366));
  }
}

/* Na notebooku zůstává šest služeb ve dvou čistých řadách. */
@media (min-width: 721px) and (max-width: 980px) {
  #sluzby .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #proc-my .proc-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
  }
}

/* Kompaktnější sazba pro nižší displeje bez ořezání textu. */
@media (min-width: 721px) and (max-height: 950px) {
  #sluzby,
  #materialy,
  #proc-my,
  #kontakt {
    padding-top: clamp(26px, 4vh, 40px);
    padding-bottom: clamp(26px, 4vh, 40px);
  }

  #sluzby .section-head,
  #materialy .section-head,
  #kontakt .section-head {
    margin-bottom: clamp(20px, 3vh, 30px);
  }

  #sluzby .section-head h2,
  #materialy .section-head h2,
  #kontakt .section-head h2,
  #proc-my .proc-copy h2 {
    font-size: clamp(1.85rem, 3vw, 2.45rem);
  }

  #sluzby .section-sub,
  #materialy .section-sub,
  #kontakt .section-sub,
  #proc-my .proc-intro {
    font-size: .98rem;
  }

  #sluzby .cards { gap: 16px; }
  #sluzby .card { padding: 19px 18px; }
  #sluzby .card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 10px;
  }
  #sluzby .card-icon span { font-size: 1rem; }
  #sluzby .card h3 {
    margin-bottom: 7px;
    font-size: 1.08rem;
  }
  #sluzby .card p {
    font-size: .86rem;
    line-height: 1.45;
  }

  #materialy .materials li { padding: 20px 12px; }
  #materialy .materials-note { margin-top: 18px; }

  #proc-my .proc-grid { gap: clamp(30px, 4vw, 48px); }
  #proc-my .proc-copy h2 { margin-bottom: 10px; }
  #proc-my .proc-intro { margin-bottom: 17px; }
  #proc-my .check-list {
    gap: 11px;
    margin-bottom: 20px;
  }

  #kontakt .contact-card { padding: 26px 18px; }
}

@media (max-width: 980px) {
  .site-header {
    background-image: none;
  }
  .site-header .logo img { width: 190px; }

  .hero-crisp {
    min-height: 780px;
    margin-top: 74px;
    padding: 0;
    border-bottom: 6px solid #f2c029;
    background-size: auto 100%;
    background-position: left top;
    isolation: isolate;
  }
  .hero-crisp::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(7, 27, 43, .02) 0%,
      rgba(7, 27, 43, .12) 18%,
      rgba(7, 27, 43, .86) 34%,
      rgba(7, 27, 43, .98) 48%,
      rgba(7, 27, 43, .96) 100%
    );
    pointer-events: none;
  }
  .hero-photo-crisp {
    top: 0;
    left: 0;
    width: 100%;
    height: 275px;
    object-fit: cover;
    object-position: center 58%;
    opacity: 1;
  }
  .hero-copy-crisp {
    padding: 190px 24px 30px;
  }
  .hero-title-crisp { position: relative; }
  .hero-title-crisp-cnc { font-size: clamp(68px, 18vw, 118px); line-height: .78; color: #fff; }
  .hero-title-crisp-blue { font-size: clamp(62px, 16vw, 108px); line-height: .86; color: #0b71b4; }
  .hero-title-crisp-rest { font-size: clamp(31px, 7.5vw, 52px); line-height: 1; letter-spacing: .06em; color: #fff; }
  .hero-lead-crisp {
    max-width: 660px;
    margin-top: 24px;
    color: #fff;
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: .025em;
  }
  .hero-lead-crisp br { display: none; }
  .hero-actions-crisp {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-button-crisp {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 20px;
    letter-spacing: .03em;
  }
  .hero-button-crisp-primary { color: #071b2b; background: #f2c029; }
  .hero-button-crisp-secondary { color: #fff; background: #0b71b4; border-color: #0b71b4; }
  .hero-badges-crisp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 650px;
    margin-top: 26px;
  }
  .hero-badges-crisp li {
    min-height: 76px;
    padding: 10px;
    border-radius: 9px;
  }
  .hero-badges-crisp strong { font-size: 24px; line-height: 1; letter-spacing: .04em; }
  .hero-badges-crisp span { margin-top: 4px; font-size: 15px; line-height: 1; letter-spacing: .04em; }
}

@media (max-width: 520px) {
  .hero-crisp { min-height: 820px; }
  .hero-photo-crisp { height: 255px; }
  .hero-copy-crisp { padding: 108px 18px 28px; }
  .hero-title-crisp-cnc { font-size: 62px; }
  .hero-title-crisp-blue { font-size: 54px; }
  .hero-title-crisp .hero-title-crisp-rest {
    margin-top: 67px;
    font-size: 28px;
  }
  .hero-lead-crisp { font-size: 17px; }
  .hero-button-crisp { min-height: 50px; padding-inline: 18px; font-size: 18px; }
  .hero-badges-crisp strong { font-size: 21px; }
  .hero-badges-crisp span { font-size: 13px; }
}


/* Posun pevné hlavičky při zobrazené administrační liště WordPressu. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Souhlas s volitelným měřením návštěvnosti. */
.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: #f2c029;
}

.cookie-banner {
  position: fixed;
  z-index: 100000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: #fff;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(7, 27, 43, .97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

.cookie-banner__copy {
  max-width: 720px;
}

.cookie-banner__copy strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: .02em;
}

.cookie-banner__copy p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  transform: translateY(-1px);
}

.cookie-button--secondary {
  color: #fff;
  background: transparent;
}

.cookie-button--secondary:hover,
.cookie-button--secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.cookie-button--primary {
  border-color: #f2c029;
  color: #071b2b;
  background: #f2c029;
}

.cookie-button--primary:hover,
.cookie-button--primary:focus-visible {
  border-color: #ffd24f;
  background: #ffd24f;
}

@media (max-width: 760px) {
  .footer-bottom-links {
    gap: 14px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-banner__inner {
    display: block;
    padding: 18px;
    border-radius: 12px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 15px;
  }

  .cookie-button {
    width: 100%;
  }
}
