/* Thermotechnik s.r.o. — onepage
   Barvy vycházejí z loga: oranžová #FDB415, modrá #5373B8, firemní tmavě modrá #1F3870. */

:root {
  --navy: #1f3870;
  --navy-900: #14254d;
  --blue: #5373b8;
  --blue-text: #4565ab; /* tmavší varianta kvůli kontrastu ≥ 4.5:1 i na šedém pozadí */
  --amber: #fdb415;
  --amber-600: #e09a00;
  --ink: #18202f;
  --muted: #5b6577;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 37 77 / .06), 0 8px 24px rgb(20 37 77 / .08);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 clamp(1rem, .95rem + .25vw, 1.0625rem)/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .5rem 1rem; background: var(--navy); color: #fff; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.top__logo img { width: clamp(150px, 38vw, 220px); }
.top__nav { display: flex; align-items: center; gap: clamp(.25rem, 2vw, 1.75rem); }
.top__nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .25rem;
}
.top__nav a:hover { color: var(--navy); }
.top__nav .top__cta {
  background: var(--navy); color: #fff; padding: .55rem 1.1rem; border-radius: 999px;
  transition: background-color .2s;
}
.top__nav .top__cta:hover { background: var(--navy-900); color: #fff; }

@media (max-width: 560px) {
  .top__nav a:not(.top__cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgb(83 115 184 / .55), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(253 180 21 / .18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
/* motiv kruhů z loga */
.hero::after {
  content: ""; position: absolute; z-index: -1;
  right: -10rem; top: 50%; translate: 0 -50%;
  width: 38rem; aspect-ratio: 1; border-radius: 50%;
  border: 2.5rem solid rgb(253 180 21 / .14);
  box-shadow: inset 0 0 0 4rem transparent, inset 0 0 0 5.5rem rgb(253 180 21 / .08);
}
@media (max-width: 640px) { .hero::after { width: 22rem; right: -9rem; top: 2rem; translate: none; } }
.hero__in { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero__kicker {
  display: inline-block; margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber);
}
.hero h1 { font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem); font-weight: 800; letter-spacing: -.02em; max-width: 22ch; }
.hero__lead { margin-top: 1.25rem; max-width: 40rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgb(255 255 255 / .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; margin: clamp(2.5rem, 6vw, 4rem) 0 0; max-width: 40rem;
  border-top: 1px solid rgb(255 255 255 / .18); padding-top: 1.5rem;
}
.hero__facts dt { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; color: var(--amber); line-height: 1; }
.hero__facts dd { margin: .4rem 0 0; font-size: .875rem; color: rgb(255 255 255 / .75); line-height: 1.35; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3rem; padding: .75rem 1.35rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
  transition: background-color .2s, color .2s, border-color .2s, translate .2s;
}
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: none; }
.btn:hover { translate: 0 -1px; }
.btn--primary { background: var(--amber); color: var(--navy-900); }
.btn--primary:hover { background: #ffc43d; }
.btn--ghost { border: 1.5px solid rgb(255 255 255 / .4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .08); }

@media (max-width: 420px) {
  .btn { width: 100%; justify-content: center; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 42rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  margin-bottom: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-text);
}
.section h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.section__head p:not(.section__kicker) { margin-top: 1rem; color: var(--muted); font-size: 1.05em; }

/* ---------- partners ---------- */
.partners {
  display: grid; gap: clamp(.75rem, 2vw, 1.25rem); margin-top: clamp(2rem, 5vw, 3rem);
  /* 3 sloupce (resp. 6): JIKA, Laufen a Roca (skupina Roca) jsou tak vždy v jednom řádku */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 900px) { .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.partners__item a {
  display: grid; place-items: center; height: clamp(4.25rem, 3rem + 5vw, 7.5rem);
  padding: clamp(.6rem, 2.5vw, 1.5rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, translate .25s;
}
.partners__item img {
  width: auto; height: auto; max-width: 100%; max-height: min(3.25rem, 100%); object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter .25s, opacity .25s;
}
.partners__item a:hover, .partners__item a:focus-visible {
  border-color: transparent; box-shadow: var(--shadow); translate: 0 -2px;
}
.partners__item a:hover img, .partners__item a:focus-visible img { filter: none; opacity: 1; }
/* na dotykových zařízeních bez hoveru ukazujeme loga barevně */
@media (hover: none) { .partners__item img { filter: none; opacity: 1; } }

/* ---------- projekce ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card {
  padding: 1.5rem; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.card__icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
  border-radius: 12px; background: rgb(253 180 21 / .16); color: var(--amber-600);
}
.card__icon svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.card h3 { font-size: 1.1rem; color: var(--navy); }
.card p { margin-top: .4rem; color: var(--muted); font-size: .95rem; }

/* ---------- kontakt ---------- */
.contact {
  display: grid; gap: 1rem; margin: clamp(2rem, 5vw, 3rem) auto 0; max-width: 54rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.contact__item {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem;
  text-decoration: none; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background-color .25s, border-color .25s, box-shadow .25s, translate .25s;
}
.contact__item:hover { background: #fff; border-color: transparent; box-shadow: var(--shadow); translate: 0 -2px; }
.contact__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-text); }
.contact__value { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); font-weight: 800; color: var(--navy); overflow-wrap: break-word; }

/* ---------- footer ---------- */
.foot { background: var(--navy-900); color: rgb(255 255 255 / .72); font-size: .9rem; padding-block: 3rem; }
.foot a { color: #fff; }
.foot strong { color: #fff; }
.foot__in { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.foot__logo { width: 180px; margin-bottom: .75rem; filter: brightness(0) invert(1); opacity: .9; }
.foot__meta { line-height: 1.9; }

/* ---------- print ---------- */
@media print {
  .top, .skip, .hero__actions { display: none; }
  .hero { background: none; color: #000; }
  .hero::after { display: none; }
  .hero__lead, .hero__facts dd { color: #000; }
  .section { padding-block: 1.5rem; }
  .partners__item img { filter: none; opacity: 1; }
  .foot { background: none; color: #000; }
  .foot__logo { filter: none; }
}

/* ---------- 404 ---------- */
.hero--404 { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; }
