/* VALMAR Slovakia
   Layout: šablóna Valmar Global 2026 – modrá hlavička s menu a info boxom, rad strojov,
   sivý pás s nadpisom, dve veľké karty, modrá pätička s 5 stĺpcami. Zámerne jedna (svetlá) téma. */
:root {
  --blue: #1b3f95;        /* VALMAR modrá z hlavičky šablóny */
  --blue-deep: #142f72;
  --blue-soft: #e8edf8;
  --band: #d9dbe0;        /* sivý pás a karty zo šablóny */
  --ink: #1d2433;
  --muted: #5a6275;
  --line: #d3d8e3;
  --paper: #ffffff;
  --steel: #f3f5f9;       /* podklad pod fotky strojov */
  --font: "Hind Guntur", "Hind", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 3px solid #f2a900; outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------ hlavička */
.site-head { background: var(--blue); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.head-in { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 84px; }
.logo img { width: 108px; height: auto; }
.site-head .logo img { filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; justify-content: center; }
.main-nav a { color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  font-size: 12.5px; font-weight: 600; padding: 8px 7px; border-radius: 4px; display: inline-block; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.12); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; }
.main-nav .lang { border: 1px solid rgba(255,255,255,.6); padding: 4px 8px; margin-left: 6px; font-size: 12px; }
.info-box { background: #e9eaed; color: var(--ink); padding: 10px 14px; display: grid; gap: 0; font-size: 13px; line-height: 1.35;
  min-width: 180px; align-self: stretch; margin-block: 6px; justify-content: center; align-content: center; }
.info-box strong { font-size: 14px; }
.info-box .tel { font-weight: 700; color: var(--blue); letter-spacing: .02em; }
.nav-toggle, .burger { display: none; }

@media (max-width: 1400px) {
  .head-in { grid-template-columns: auto 1fr; }
  .info-box { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 calc(-1 * var(--gutter)); padding: 7px var(--gutter);
    min-width: 0; justify-content: center; font-size: 13px; }
  .info-box strong { font-size: 13px; }
}
@media (max-width: 1100px) {
  .head-in { grid-template-columns: auto 1fr auto; }
  .info-box { order: 5; }
  .burger { display: grid; gap: 5px; justify-self: end; cursor: pointer; padding: 10px; }
  .burger span { width: 26px; height: 2px; background: #fff; display: block; }
  .main-nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: 10px 6px; }
  .main-nav .lang { align-self: flex-start; margin: 8px 6px 0; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* ------------------------------------------------ tlačidlá */
.pill { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 500 16px/1 var(--font); padding: 15px 32px 13px; border-radius: 999px; transition: background .15s; }
.pill:hover { background: var(--blue-deep); }
.pill-light { background: #fff; color: var(--blue); }
.pill-out { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.pill-out:hover { background: var(--blue-soft); }

/* ------------------------------------------------ úvod */
.hero { text-align: center; padding-top: 44px; overflow: hidden; }
.hero .pill { margin-bottom: 28px; }
.machines { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.5vw, 22px);
  max-width: 1000px; margin-inline: auto; padding-inline: var(--gutter); height: clamp(170px, 30vw, 300px); }
.machines .m { height: 100%; width: auto; object-fit: contain; object-position: bottom; min-width: 0; flex: 0 1 auto; }
.machines .m:nth-child(1) { height: 66%; }
.machines .m:nth-child(2) { height: 82%; }
.machines .m:nth-child(3) { height: 88%; }
.machines .m:nth-child(4) { height: 86%; }
.machines .m:nth-child(6) { height: 80%; }
.band { background: var(--band); text-align: center; padding: 36px var(--gutter) 34px; display: grid; gap: 22px; justify-items: center; }
.band h1 { font-weight: 300; font-size: clamp(24px, 3.2vw, 36px); max-width: 30ch; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding-block: 56px; max-width: 1440px; }
.feature { background: var(--band); min-height: 360px; display: grid; grid-template-rows: 1fr auto; text-decoration: none; color: var(--ink);
  position: relative; overflow: hidden; }
.f-pics { display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding: 30px 30px 0; }
.f-pics img { height: 220px; width: auto; object-fit: contain; }
.f-text { background: rgba(255,255,255,.92); margin: 0 18px 18px; padding: 18px 20px; display: grid; gap: 6px; justify-items: start; }
.f-text strong { font-size: 22px; font-weight: 600; }
.f-text > span:not(.pill) { color: var(--muted); }
.f-text .pill { margin-top: 6px; background: var(--blue); color: #fff; padding: 12px 24px 10px; font-size: 15px; }
.feature:hover .pill { background: var(--blue-deep); }

.sec-h { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin-bottom: 18px; }
.cat-grid-sec { padding-bottom: 56px; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.cat-grid a { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 12px 16px; background: var(--steel);
  text-decoration: none; color: var(--ink); height: 100%; border-bottom: 3px solid transparent; }
.cat-grid a:hover { border-bottom-color: var(--blue); }
.cat-grid img { height: 120px; width: auto; object-fit: contain; margin-bottom: 8px; }
.cat-grid span { font-weight: 600; line-height: 1.25; }
.cat-grid small { color: var(--muted); font-variant-numeric: tabular-nums; }

.family { padding-bottom: 64px; text-align: center; }
.family p { color: var(--muted); margin: 0 auto 22px; max-width: 60ch; }
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brands li > a, .brands li.here { display: grid; justify-items: center; gap: 8px; padding: 18px 26px; border: 1px solid var(--line);
  text-decoration: none; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; min-width: 190px; }
.brands img { height: 45px; width: auto; object-fit: contain; }
.brands li.here { border-color: var(--blue); color: var(--blue); }

/* ------------------------------------------------ podstránky */
.page-h { padding-block: 44px 26px; }
.page-h h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; color: var(--blue); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 10px 0 0; }
.prose p { max-width: 65ch; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 40px; }
.side-fig { margin: 0; background: var(--steel); padding: 30px; display: grid; place-items: center; }
.side-fig img { max-height: 380px; width: auto; }
.facts ul { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.facts li { background: var(--blue); color: #fff; padding: 20px; display: grid; gap: 4px; }
.facts b { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.facts span { opacity: .85; font-size: 15px; }
.svc { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.svc li { border-left: 3px solid var(--blue); background: var(--steel); padding: 14px 16px; font-weight: 500; }

.flow { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; counter-reset: s; }
.flow li { background: var(--steel); padding: 20px 18px; display: grid; gap: 6px; align-content: start; }
.st-n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }
.flow a { font-weight: 600; font-size: 15px; }
.spec-box { overflow-x: auto; }

.specs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 18px 0 8px; font-size: 15.5px; }
.specs caption { text-align: left; font-weight: 600; padding-bottom: 8px; color: var(--blue); }
.specs th, .specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 45%; }
.specs tr:nth-child(odd) { background: var(--steel); }

.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px 5px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; }
.chips.static span { display: inline-block; padding: 7px 14px 5px; background: var(--steel); border-radius: 999px; font-size: 15px; }
.chips a:hover { border-color: var(--blue); background: var(--blue-soft); }
.cat-sec { padding-block: 26px 18px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: baseline; margin-bottom: 16px; }
.cat-head h2 { font-size: 24px; font-weight: 600; }
.cat-head p { margin: 0; color: var(--muted); }
.p-grid { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.p-card a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding-bottom: 10px; height: 100%; border-bottom: 2px solid var(--line); }
.p-card a:hover { border-bottom-color: var(--blue); }
.p-img { background: var(--steel); aspect-ratio: 4 / 5; position: relative; overflow: hidden; margin-bottom: 8px; max-width: 100%; display: block; }
.p-img img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.p-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.p-name { font-weight: 600; font-size: 18px; color: var(--blue); }

.crumbs { padding-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; padding-block: 18px 50px; align-items: start; }
.pd-img { margin: 0; background: var(--steel); padding: 36px; display: grid; place-items: center; position: sticky; top: 110px; }
.pd-img img { max-height: 460px; width: auto; }
.pd-img figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.pd-info h1 { font-size: clamp(30px, 3.6vw, 42px); color: var(--blue); font-weight: 600; margin: 4px 0 12px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.progs { margin: 0; padding-left: 20px; }
.progs li { margin-bottom: 4px; }

.cat-pdfs { list-style: none; margin: 0 0 60px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-pdfs a { display: grid; grid-template-rows: auto 1fr; background: var(--steel); text-decoration: none; color: var(--ink); height: 100%; border-bottom: 2px solid var(--line); }
.cat-pdfs a:hover { border-bottom-color: var(--blue); }
.cp-img { display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.cp-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.cp-txt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; }
.cat-pdfs a:hover { background: var(--blue-soft); }
.pdf { grid-row: span 2; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 12px 8px 10px; }
.cat-pdfs small { color: var(--muted); }

.narrow { max-width: 760px; }
.form { display: grid; gap: 6px; padding-bottom: 60px; min-width: 0; }
.form label { font-weight: 500; font-size: 15px; margin-top: 8px; }
.form input:not([type=checkbox]), .form select, .form textarea { font: inherit; padding: 12px 14px 10px; border: 1px solid #b9c0cf; border-radius: 4px;
  background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 5px; }
.form button { justify-self: start; margin-top: 12px; }
.form-msg { background: var(--blue-soft); color: var(--blue-deep); padding: 12px 16px; margin: 6px 0 0; font-weight: 500; }
.form-msg.bad { background: #fdecea; color: #8a1c13; }
.form .err { border-color: #b3261e !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 44px; align-items: start; }
.c-info { background: var(--blue); color: #fff; padding: 26px; }
.c-info a { color: #fff; }
.c-info h2 { font-size: 22px; margin-bottom: 8px; }
.dist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding-bottom: 60px; }
.dist-card { background: var(--steel); padding: 28px; }
.dist-card.alt { background: var(--blue); color: #fff; }
.dist-card.alt .pill { background: #fff; color: var(--blue); }
.dist-card h2 { font-size: 24px; margin-bottom: 10px; }
mark { background: #fff1b8; color: var(--ink); padding: 0 4px; }

/* ------------------------------------------------ pätička */
.site-foot { background: var(--blue); color: #fff; margin-top: 20px; }
.foot-in { max-width: var(--max); margin-inline: auto; padding: 48px var(--gutter) 30px; display: grid; gap: 28px; }
.site-foot .logo img { width: 96px; }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; font-size: 14.5px; }
.foot-cols h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-cols p { margin: 0 0 8px; opacity: .9; }
.foot-cols a, .foot-cols li { color: #fff; opacity: .9; text-decoration: none; }
.foot-cols a:hover { opacity: 1; text-decoration: underline; }
.copy { margin: 0; font-size: 13px; opacity: .7; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }

/* ------------------------------------------------ responzívne */
@media (max-width: 960px) {
  .cards, .two, .product, .contact, .dist { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-head { grid-template-columns: minmax(0, 1fr); }
  .pd-img { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .machines .m:nth-child(n+5) { display: none; }
  .feature { min-height: 0; }
  .f-pics img { height: 160px; }
  .svc, .flow, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands li > a, .brands li.here { min-width: 0; width: 100%; }
  .brands li { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* doplnenie: kontakty, služby, vlastnosti */
.people { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.people li { display: grid; gap: 1px; }
.people strong { font-weight: 600; }
.people span { opacity: .8; font-size: 15px; }
.people a { color: inherit; }
.svc li { display: grid; gap: 4px; }
.svc li strong { font-weight: 600; color: var(--blue); }
.svc li span { font-weight: 400; font-size: 15px; color: var(--ink, #333); }
.prose h3 { margin: 22px 0 6px; font-size: 19px; color: var(--blue); }
.feats { margin-bottom: 8px; }

/* vyhľadávanie v katalógoch */
.cat-search { margin: 0 0 24px; display: grid; gap: 8px; max-width: 720px; }
.cat-search label { font-weight: 600; }
.cat-search input { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; width: 100%; box-sizing: border-box; }
.cat-search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.cat-chips { margin: 4px 0 0; }
.cat-chips button { font: inherit; font-size: 15px; padding: 7px 14px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; }
.cat-chips button:hover, .cat-chips button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.cat-count { margin: 0; color: var(--muted); font-size: 15px; min-height: 1.4em; }
.cat-none { margin: 0 0 60px; padding: 16px; background: var(--blue-soft); }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; margin-bottom: 32px; }
.photo-row img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--steel); padding: 18px; }
@media (max-width: 700px) { .photo-row { grid-template-columns: 1fr; } }
