/* KOSEKO: farby strojového laku, tlakomeru a výstražného značenia */
:root {
  --steel: #e8ebec;
  --steel-2: #d5dadc;
  --white: #fff;
  --ink: #1c2328;
  --ink-2: #47525a;
  --cobalt: #0e4da4;
  --cobalt-dark: #0a3a7d;
  --signal: #ffc81f;
  --signal-dark: #eeb400;
  --needle: #d6281c;
  --error: #b3190e;
  --ok: #0d6b3a;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --gutter: max(16px, calc((100% - 1240px) / 2));
  --pipe: 10px;
  --branch: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: .18em; }
a:hover { color: var(--cobalt-dark); }
ul.plain { list-style: none; padding: 0; margin: 0; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.site-footer :focus-visible, .cta :focus-visible { outline-color: var(--signal); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.25rem, 8.4vw, 7rem); line-height: .96; }
h2 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.wrap { padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px;
}
.skip:focus { top: 8px; color: #fff; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 3px;
  font: 600 1.0625rem/1.2 var(--body);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  touch-action: manipulation;
}
.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: var(--signal-dark); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--on-dark { border-color: #fff; color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Hlavička */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink); color: #fff;
}
.site-header__in {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px; flex-wrap: wrap;
}
.logo { display: block; color: inherit; }
.logo:hover { color: inherit; }
.logo__mark { display: block; width: 136px; height: auto; }
.logo--footer .logo__mark { width: 168px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 12px;
  color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: #fff; color: #fff; }
.site-nav a[aria-current] { border-bottom-color: var(--signal); }
.site-header :focus-visible { outline-color: var(--signal); }
.site-header__tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 14px; background: var(--signal); color: var(--ink);
  border-radius: 3px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.site-header__tel:hover { background: var(--signal-dark); color: var(--ink); }
.menu-btn {
  display: none; align-items: center; gap: 8px; margin-left: auto;
  min-height: 44px; padding: 8px 12px;
  background: none; border: 2px solid #fff; border-radius: 3px;
  color: #fff; font: 500 1rem var(--body); cursor: pointer;
}

/* Úvod: tlakomer a začiatok hlavného potrubia */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 5vw, 72px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px; align-items: end;
}
.hero__text { padding-bottom: 120px; }
.hero__text h1 { font-size: clamp(3.25rem, 6.9vw, 6.25rem); }
.hero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; margin-top: 24px; max-width: 29em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__machine { position: relative; z-index: 2; mix-blend-mode: multiply; align-self: end; justify-self: center; width: min(100%, 340px); }
.hero__machine img { width: 100%; }
.hero__pipe {
  position: absolute; z-index: 1; bottom: 0;
  left: var(--gutter); right: calc(var(--gutter) + (100% - 2 * var(--gutter)) * .125);
  height: 60px;
  border-top: var(--pipe) solid var(--cobalt);
  border-left: var(--pipe) solid var(--cobalt);
  border-top-left-radius: 34px;
}
.hero__gauge {
  position: absolute; z-index: 3;
  bottom: 72px; left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * .49);
  width: clamp(120px, 12vw, 172px);
}
.hero__gauge::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 18px; height: 12px;
  margin-left: -9px; background: var(--ink);
}

.gauge { display: block; width: 100%; height: auto; }
.g-rim { fill: var(--ink); }
.g-face { fill: #fff; }
.g-red { fill: none; stroke: var(--needle); stroke-width: 7; }
.g-major { stroke: var(--ink); stroke-width: 3; }
.g-minor { stroke: var(--ink); stroke-width: 1.25; }
.g-num { font: 600 15px var(--body); fill: var(--ink); text-anchor: middle; }
.g-unit { font: 500 12px var(--body); fill: var(--ink-2); text-anchor: middle; }
.g-needle { fill: var(--needle); transform-origin: 100px 100px; transform: rotate(33.75deg); }
.js .g-needle:not(.is-live) { transform: rotate(-135deg); }
.g-needle.is-live { animation: needle 1.5s cubic-bezier(.25, 1.45, .4, 1) .15s backwards; }
.g-needle circle { fill: var(--ink); }
@keyframes needle { from { transform: rotate(-135deg); } }

/* Hlavné potrubie s odbočkami */
.line { position: relative; }
.line::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: var(--gutter); width: var(--pipe); background: var(--cobalt);
}
.line::after {
  content: ""; position: absolute; bottom: 0;
  left: calc(var(--gutter) + var(--pipe) / 2 - 12px); width: 24px; height: 12px;
  background: var(--ink); border-radius: 3px 3px 0 0;
}
.line > * { position: relative; }
.line__in { padding-left: calc(var(--gutter) + var(--branch)); padding-right: var(--gutter); }

.branch {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.branch h3 { position: relative; margin-bottom: 14px; }
.branch h3::before {
  content: ""; position: absolute;
  top: .52em; right: 100%; margin-top: -3px; margin-right: 14px;
  width: calc(var(--branch) - 14px); height: 6px; background: var(--cobalt);
}
.branch h3::after {
  content: ""; position: absolute;
  top: .52em; left: calc(-1 * 14px - 8px); margin-top: -8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--signal); border: 3px solid var(--ink);
}
.branch__media { background: #fff; aspect-ratio: 3 / 2; overflow: hidden; }
.branch__media img { width: 100%; height: 100%; object-fit: cover; }
.branch__media--contain img { object-fit: contain; }
.text-link { font-weight: 600; display: inline-block; padding-block: 10px; }

.section-head { padding-block: clamp(56px, 7vw, 96px) 8px; max-width: 760px; }
.section-head p { margin-top: 16px; }
.line__end { height: 56px; }

/* Sortiment */
.range { background: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.range__intro { max-width: 720px; margin-bottom: 40px; }
.range__intro p { margin-top: 16px; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.product { display: flex; flex-direction: column; padding: 24px 24px 28px; border-right: 1px solid var(--steel-2); position: relative; }
.product:last-child { border-right: 0; }
.product__img { height: 260px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.product__img img { max-height: 100%; width: auto; }
.product h3 { font-size: 2rem; margin-bottom: 8px; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; }
.product h3 a:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: -3px; }
.product h3 a:focus-visible { outline: none; }
.product:hover h3 { color: var(--cobalt); }
.product p { font-size: 1rem; }

/* Výber podľa prevádzky */
.choose { width: 100%; border-collapse: collapse; margin-top: 8px; }
.choose th, .choose td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--steel-2); vertical-align: top; }
.choose thead th { font-weight: 600; font-size: .9375rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.choose tbody th { font-weight: 500; width: 58%; }
.choose td a { font-weight: 600; }

/* Partner */
.partner { padding-block: clamp(48px, 6vw, 80px); }
.partner__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; }
.partner__logo { background: #fff; padding: 32px; }
.partner__logo img { width: 100%; max-width: 300px; margin-inline: auto; }

/* Výzva */
.cta { background: var(--ink); color: #fff; padding-block: clamp(48px, 6vw, 80px); }
.cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { margin-bottom: 12px; max-width: 14em; }
.cta p { color: #d7dcdf; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.line--into-cta { padding-bottom: 0; }

/* Vnútorné stránky */
.page-head { padding-block: clamp(40px, 6vw, 80px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-head h1 { font-size: clamp(3rem, 6.6vw, 5.5rem); }
.page-head__lead { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; margin-top: 20px; max-width: 36em; }
.page-head__img img { mix-blend-mode: multiply; max-height: 420px; width: auto; margin-inline: auto; }
.page-head__photo { background: #fff; aspect-ratio: 3 / 2; overflow: hidden; }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .9375rem; margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-2); }
.crumbs a { display: inline-block; padding-block: 2px; }

.subnav { background: var(--ink); }
.subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.subnav a { display: block; padding: 14px 16px; color: #fff; text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.subnav a:hover { border-bottom-color: #fff; color: #fff; }
.subnav a[aria-current] { border-bottom-color: var(--signal); }
.subnav :focus-visible { outline-color: var(--signal); }

.band { padding-block: clamp(48px, 6vw, 80px); }
.band--white { background: var(--white); }
.band > .wrap > h2 { margin-bottom: 24px; }
.band__lead { margin-bottom: 32px; }

.series { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: 36px; border-top: 1px solid var(--steel-2); }
.series:first-of-type { border-top: 2px solid var(--ink); }
.series__img { display: flex; justify-content: center; height: 300px; }
.series__img img { max-height: 100%; width: auto; }
.series h3 { margin-bottom: 12px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--steel-2); position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 12px; height: 6px; border-left: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt);
  transform: rotate(-45deg);
}
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font: 700 1.25rem var(--display);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 4px; width: 4px; background: var(--cobalt); }
.steps strong { display: block; font-weight: 600; }
.callout { background: var(--white); border-left: 6px solid var(--signal); padding: 20px 24px; }
.band--white .callout { background: var(--steel); }
.note { margin-top: 32px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { position: sticky; top: 96px; }
.contact-big { font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); display: inline-block; padding-block: 6px; color: var(--ink); text-decoration: none; }
.contact-big:hover { color: var(--cobalt); }
.facts { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }

.form { background: var(--white); padding: clamp(20px, 3vw, 40px); }
.field { margin-bottom: 20px; }
.field label, .field legend, .form legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { color: var(--error); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 2px solid #6b767d; border-radius: 3px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--body);
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
[aria-invalid=true] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9375rem; font-weight: 500; margin: 6px 0 0; }
.field-error:empty { display: none; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--steel-2); border-radius: 3px; cursor: pointer; font-weight: 400; margin: 0; }
.choice:has(input:checked) { border-color: var(--cobalt); background: #eef3fb; }
.choice input { width: 20px; height: 20px; accent-color: var(--cobalt); margin: 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { font-size: .9375rem; color: var(--ink-2); margin: 16px 0 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-left: 6px solid; background: var(--steel); }
.form-status:empty { display: none; }
.form-status--ok { border-color: var(--ok); color: var(--ok); font-weight: 500; }
.form-status--err { border-color: var(--error); color: var(--error); font-weight: 500; }
.form-status a { color: inherit; }
.error-summary { border: 2px solid var(--error); padding: 14px 16px; margin-bottom: 20px; }
.error-summary h2 { font: 600 1rem var(--body); color: var(--error); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); }
.error-summary[hidden] { display: none; }

.prose { max-width: 720px; }
.prose h2 { font-size: 2rem; margin: 40px 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }

/* Päta */
.site-footer { background: var(--ink); color: #d7dcdf; border-top: 1px solid #3a444b; padding-block: 48px; font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font: 600 1rem var(--body); color: #fff; margin-bottom: 10px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--signal); }
.logo--footer { color: #fff; margin-bottom: 16px; }
.site-footer ul a { display: inline-block; padding-block: 3px; }

.callbar { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .site-header__tel { display: none; }
  .site-nav { display: none; flex-basis: 100%; margin: 0 0 12px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 8px; border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav a:hover { border-bottom: 0; border-left-color: #fff; }
  .site-nav a[aria-current] { border-left-color: var(--signal); }
}

@media (max-width: 860px) {
  :root { --pipe: 6px; --branch: 30px; }
  html { scroll-padding-top: 88px; }
  body { padding-bottom: 76px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__text { padding-bottom: 28px; }
  .hero__text h1 { font-size: clamp(3.25rem, 14vw, 5.5rem); }
  .hero__actions { display: none; }
  .hero__machine { width: min(52%, 240px); justify-self: end; margin-right: 8px; }
  .hero__pipe { right: calc(var(--gutter) + 90px); height: 48px; border-top-left-radius: 22px; }
  .hero__gauge { left: calc(var(--gutter) + 22px); bottom: 58px; width: 124px; }
  .hero__gauge::after { height: 12px; width: 12px; margin-left: -6px; }
  .branch { grid-template-columns: minmax(0, 1fr); }
  .branch h3::before { margin-right: 10px; height: 4px; margin-top: -2px; width: calc(var(--branch) - 10px); }
  .branch h3::after { left: -18px; width: 12px; height: 12px; margin-top: -6px; border-width: 2px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { padding: 16px 12px 20px; border-right: 0; border-bottom: 1px solid var(--steel-2); }
  .product:nth-child(odd) { border-right: 1px solid var(--steel-2); }
  .product__img { height: 170px; }
  .product h3 { font-size: 1.625rem; }
  .partner__grid, .page-head__grid, .two, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-side { position: static; }
  .series { grid-template-columns: minmax(0, 1fr); }
  .series__img { height: 240px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink);
  }
  .callbar .btn { min-height: 48px; padding: 8px; }
  .callbar .btn--ghost { border-color: #fff; color: #fff; }
}

@media (max-width: 460px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
  .choose tbody th { width: 55%; }
  .choose th, .choose td { padding-right: 10px; font-size: 1rem; }
}

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

@media print {
  .site-header, .callbar, .cta, .site-footer, .hero__pipe, .line::before { display: none; }
}
