/* COOLTHERM s.r.o. – web
   Farby: modrá = chlad, červená = teplo (ako nízky a vysoký tlak na servisných manometroch) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0F2238;
  --muted: #52657A;
  --blue: #1B5FD9;
  --blue-tint: #E7EFFC;
  --red: #E0442B;
  --red-deep: #B93520;
  --red-tint: #FCEBE7;
  --amber-tint: #FFF1C7;
  --amber-ink: #6A4E00;
  --frost: #EEF2F6;
  --line: #D6DEE7;
  --white: #FFFFFF;
  --on-dark: #BFCCDB;
  --focus-dark: #9DC0FF;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--white);
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }

h1 {
  font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.875rem);
  line-height: 1.05;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  font-weight: 680;
  font-stretch: 114%;
  letter-spacing: -0.012em;
}

h3, .h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 640;
  font-stretch: 106%;
  letter-spacing: 0;
}

.lead {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Tlačidlá ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }

.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-small { min-height: 40px; padding: .45rem .9rem; font-size: .9375rem; white-space: nowrap; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.brand { flex: 0 1 auto; display: block; min-width: 0; }
.brand img { height: 28px; width: auto; max-width: 100%; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .125rem; }
.nav a {
  position: relative;
  display: block;
  padding: .55rem .75rem;
  font-weight: 560;
  font-stretch: 104%;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: -1px;
  height: 2px;
  background: currentColor;
}

.header-call { margin-left: .5rem; }

.header-tools { display: none; margin-left: auto; gap: .5rem; }

.icon-btn, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 46px;
  height: 46px;
  padding: 0 .8rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn { background: var(--ink); color: var(--white); padding: 0; }
.icon-btn svg, .menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  overflow-y: auto;
  padding: .5rem var(--gutter) 2rem;
  background: var(--white);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.625rem;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--blue); }
.mobile-contact { display: grid; gap: .75rem; margin-top: 2rem; }

@media (max-width: 1080px) {
  .nav, .header-call { display: none; }
  .header-tools { display: flex; flex: none; }
}
@media (max-width: 420px) {
  .brand img { height: 22px; }
  .header-inner { gap: .75rem; }
  .menu-toggle .menu-label { display: none; }
  .menu-toggle { padding: 0; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Sekcie ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section.band-frost, .band-frost + .section { border-top: 0; }
.band-frost { background: var(--frost); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head p { color: var(--muted); max-width: 52ch; }

.section-text { margin-top: 1rem; color: var(--muted); max-width: 42ch; }

/* ---------- Úvod stránky ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }

.hero-grid, .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.page-intro {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.figure { width: 100%; }
.figure img { width: 100%; }

/* ---------- Služby (úvod) ---------- */

.services {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
}

.svc {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  transition: border-color .15s ease;
}
.svc:hover { border-color: var(--ink); }
.svc:hover .svc-more { color: var(--blue); }
.svc p { color: var(--muted); max-width: 48ch; }
.svc-icon { width: 52px; height: 52px; margin-bottom: .5rem; }

.svc-main { grid-row: span 2; border-radius: 14px; }
.svc-main h3 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-stretch: 114%; font-weight: 680; line-height: 1.12; }
.svc-main .svc-icon { width: 72px; height: 72px; }

.svc-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.svc-list li { position: relative; padding-left: 1.25rem; }
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5rem;
  height: 2px;
  background: var(--blue);
}

.svc-more {
  margin-top: auto;
  padding-top: .75rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.svc-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: center;
}
.svc-wide > div { display: flex; flex-direction: column; gap: .75rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--frost);
  font-weight: 650;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
}

/* ---------- Certifikáty ---------- */

.certs {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.cert-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.cert {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1.25rem;
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 3px solid var(--blue);
}
.cert--heat { border-left-color: var(--red); }
.cert svg { width: 48px; height: 48px; }
.cert p { margin-top: .35rem; color: var(--muted); }

/* ---------- Rozdelené sekcie (podstránky) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.split-head { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.split-head p { margin-top: 1rem; color: var(--muted); max-width: 40ch; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 2.25rem;
  counter-increment: step;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-weight: 680;
  font-stretch: 112%;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.steps h3 { padding-top: .65rem; }
.steps p { margin-top: .35rem; color: var(--muted); max-width: 58ch; }
.band-frost .steps li::before { background: var(--frost); }

.items {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.items li { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.items p { margin-top: .4rem; color: var(--muted); }

.note-block {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 12px;
  background: var(--frost);
}
.note-block svg { width: 56px; height: 56px; }
.note-block p { margin-top: .5rem; color: var(--muted); max-width: 62ch; }

/* ---------- Rekuperácia – schéma ---------- */

.diagram svg { width: 100%; height: auto; }
.diagram text { font-family: inherit; font-size: 17px; font-weight: 500; fill: var(--ink); }
.diagram .t-muted { font-size: 14px; font-weight: 400; fill: var(--muted); }
.diagram-legend { display: none; list-style: none; padding: 0; margin-top: 1.25rem; gap: .5rem; }
.diagram-legend li { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; }
.diagram-legend li::before { content: ""; width: 1.5rem; height: 4px; border-radius: 2px; background: var(--blue); flex: none; }
.diagram-legend li.warm::before { background: var(--red); }

/* ---------- Chladivá ---------- */

.product-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 14px;
  background: var(--frost);
}
.product-photo img { width: 100%; height: 100%; object-fit: contain; }

.table-head { margin-bottom: 1.75rem; }

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ref-table th {
  padding: 0 1rem .8rem;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ref-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ref-table th:first-child, .ref-table td:first-child { padding-left: 0; }
.ref-table th:last-child, .ref-table td:last-child { padding-right: 0; text-align: right; }
.ref-table .num { text-align: right; }

.ref-name {
  font-size: 1.3125rem;
  font-weight: 700;
  font-stretch: 116%;
  white-space: nowrap;
}
.ref-name small { display: block; font-size: .875rem; font-weight: 500; font-stretch: 100%; color: var(--muted); }

.cls {
  display: inline-block;
  min-width: 3.25rem;
  padding: .2rem .5rem;
  border-radius: 6px;
  text-align: center;
  font-size: .9375rem;
  font-weight: 650;
}
.cls-a1 { background: var(--frost); color: var(--ink); }
.cls-a2l { background: var(--amber-tint); color: var(--amber-ink); }
.cls-a3 { background: var(--red-tint); color: var(--red-deep); }

.ref-notes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  margin-top: 2.5rem;
}
.ref-notes p + p { margin-top: .75rem; }
.legend { display: grid; gap: .6rem; font-size: .9375rem; color: var(--muted); }
.legend div { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.legend dt { font-weight: 650; color: var(--ink); }

/* ---------- Kontakt ---------- */

.contact { background: var(--ink); color: var(--white); }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.contact-intro p { margin-top: 1rem; color: var(--on-dark); max-width: 36ch; }

.contact-phone {
  display: inline-block;
  font-size: clamp(2rem, .9rem + 5.4vw, 5rem);
  line-height: 1;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.contact-phone:hover { color: var(--focus-dark); }

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.contact-details dt { font-size: .9375rem; color: var(--on-dark); }
.contact-details dd { margin-top: .25rem; font-size: 1.1875rem; font-weight: 560; }
.contact-details a { text-underline-offset: 4px; }
.contact-details a:hover { color: var(--focus-dark); }

/* ---------- Pätička ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .8fr);
  gap: 2rem;
  padding-block: 3rem;
}
.footer-logo img { height: 26px; width: auto; }
.footer-claim { margin-top: 1rem; max-width: 34ch; }
.legal { font-style: normal; line-height: 1.7; }
.legal strong { color: var(--white); font-weight: 600; }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }

/* ---------- Responzivita ---------- */

@media (max-width: 960px) {
  .hero-grid, .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .figure, .product-photo { max-width: 600px; }
  .split, .certs, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
  .ref-notes { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .ref-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ref-table, .ref-table tbody, .ref-table tr, .ref-table td { display: block; width: 100%; }
  .ref-table tr {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .ref-table td {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: .55rem 0;
    text-align: left;
  }
  .ref-table td::before { content: attr(data-label); color: var(--muted); font-size: .9375rem; }
  .ref-table td .cls { justify-self: start; }
  .ref-table th:last-child, .ref-table td:last-child, .ref-table .num { text-align: left; }
  .ref-table td.ref-name { display: block; padding: 0 0 .5rem; border-bottom: 0; }
  .ref-table td.ref-name::before, .ref-table td.ref-action::before { content: none; }
  .ref-table td.ref-action { display: block; padding: 1rem 0 0; border-bottom: 0; }
  .ref-table td.ref-action .btn { width: 100%; }
  .ref-table tr td:nth-last-child(2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc-main { grid-row: auto; }
  .svc-wide { grid-template-columns: minmax(0, 1fr); }
  .items { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .contact-details { grid-template-columns: minmax(0, 1fr); }
  .diagram text { display: none; }
  .diagram-legend { display: grid; }
}

@media (max-width: 560px) {
  h1 { font-stretch: 106%; letter-spacing: -0.015em; }
  .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .note-block { grid-template-columns: minmax(0, 1fr); }
  .cert { padding-left: 1.1rem; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .ref-table td { grid-template-columns: 7rem minmax(0, 1fr); }
}

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