/* =========================================================
   Radoslav Kozák – klimatizácie a tepelné čerpadlá
   Mobile-first, bez frameworku, systémové písmo
   ========================================================= */

:root {
  --c-primary: #0e7490;       /* tyrkysová – hlavná */
  --c-primary-dark: #0b4f63;
  --c-primary-soft: #e3f3f7;
  --c-ink: #0f2530;           /* nadpisy */
  --c-text: #1f3a46;          /* text */
  --c-muted: #4b6470;
  --c-accent: #c2410c;        /* oranžová – akcent (tlačidlá, kontrast 5,2 : 1) */
  --c-accent-dark: #9a3412;
  --c-accent-graphic: #ea580c;
  --c-accent-soft: #fff1e8;
  --c-bg: #ffffff;
  --c-bg-alt: #f1f8fa;
  --c-line: #d5e6ec;
  --c-dark: #0b4f63;
  --c-footer: #082a35;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 14px;
  --maxw: 1140px;
  --gutter: 16px;
  --header-h: 64px;
  --shadow: 0 6px 24px rgba(11, 79, 99, .08);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
  :root { --gutter: 24px; }
}

h1, h2, h3 {
  color: var(--c-ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.35rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--c-primary); text-underline-offset: .18em; }
a:hover { color: var(--c-primary-dark); }

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

:focus-visible {
  outline: 3px solid var(--c-accent-graphic);
  outline-offset: 3px;
  border-radius: 4px;
}

.nowrap { white-space: nowrap; }

.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-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--c-ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

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

.icon {
  width: 1.25em; height: 1.25em;
  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;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 56px; padding: .85rem 1.6rem; font-size: 1.08rem; }

.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }

.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }

.btn-outline { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  min-width: 0;
  color: var(--c-ink);
  text-decoration: none;
}
.brand:hover { color: var(--c-ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand-tag { display: none; font-size: .78rem; font-weight: 600; color: var(--c-primary); white-space: nowrap; }

@media (min-width: 420px) {
  .brand-tag { display: block; }
}

.btn-call { min-height: 44px; padding: .5rem .95rem; font-size: .95rem; flex: none; }

@media (max-width: 399px) {
  .header-inner { gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: .98rem; }
  .btn-call { padding: .5rem .85rem; }
  .btn-call .icon { display: none; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  border: 2px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; stroke-width: 2.4; }
.menu-toggle .bar { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .bar-1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar-3 { transform: translateY(-5px) rotate(-45deg); }

/* Bez JS: menu je vždy zobrazené a tlačidlo skryté */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
html:not(.js) .site-nav { flex-basis: 100%; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .75rem .5rem;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--c-primary); background: var(--c-bg-alt); }

html.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding: 8px var(--gutter) 16px;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 12px 24px rgba(11, 79, 99, .12);
}
html.js .site-nav.is-open { display: block; }
.site-nav li + li { border-top: 1px solid var(--c-line); }

@media (min-width: 960px) {
  .header-inner { gap: 16px; }
  html.js .menu-toggle { display: none; }
  html.js .site-nav,
  html:not(.js) .site-nav {
    display: block;
    position: static;
    flex-basis: auto;
    order: 2;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li + li { border-top: 0; }
  .site-nav a { padding: .5rem .7rem; }
  .btn-call { order: 3; }
  html:not(.js) .header-inner { flex-wrap: nowrap; padding-block: 0; }
}

/* ---------- Úvod ---------- */
.hero {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, #fff 100%);
  padding-block: 40px 56px;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.h1-place { display: block; color: var(--c-primary); }
.lead { font-size: 1.15rem; color: var(--c-text); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.cta-row .btn { flex: 1 1 100%; }
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-primary-dark);
}
.badges li::before {
  content: "";
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--c-accent-graphic);
}
.hero-art { width: 100%; max-width: 340px; height: auto; margin-inline: auto; display: block; }

@media (min-width: 560px) {
  .cta-row .btn { flex: 0 1 auto; }
}
@media (min-width: 900px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero-art { max-width: 480px; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .hero-art { max-width: 400px; }
}

/* ---------- Sekcie ---------- */
.section { padding-block: 64px; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head p { color: var(--c-muted); font-size: 1.08rem; margin: 0; }

@media (min-width: 900px) {
  .section { padding-block: 96px; }
  .section-head { margin-bottom: 44px; }
}

/* ---------- Služby ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card p { margin-bottom: .6em; }
.card-icon,
.cert-icon {
  width: 64px; height: 64px;
  padding: 10px;
  margin-bottom: 14px;
  background: var(--c-primary-soft);
  border-radius: 16px;
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon .accent,
.cert-icon .accent { stroke: var(--c-accent-graphic); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-top: .3rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: .15rem; top: .45em;
  width: .45rem; height: .8rem;
  border: solid var(--c-primary);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Prečo ja ---------- */
.cert {
  display: grid;
  gap: 4px 24px;
  padding: 24px;
  margin-bottom: 28px;
  background: #fff;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cert-icon { background: var(--c-accent-soft); }
.cert-text p { max-width: 52rem; }
@media (min-width: 768px) {
  .cert { grid-template-columns: auto 1fr; padding: 32px; }
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.reasons li {
  position: relative;
  padding: 20px 20px 20px 64px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.reasons li::before {
  content: "";
  position: absolute;
  left: 20px; top: 22px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.reasons h3 { margin-bottom: .3em; }
.reasons p { margin: 0; color: var(--c-muted); }

@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Postup ---------- */
.steps {
  list-style: none;
  counter-reset: krok;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: krok;
  position: relative;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.steps li::before {
  content: counter(krok);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-weight: 800;
  font-size: 1.2rem;
}
.steps p { margin: 0; color: var(--c-muted); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Značky ---------- */
.brands { display: grid; gap: 24px; align-items: center; }
.brands p { margin: 0; max-width: 40rem; }
.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-list li {
  padding: .5rem 1.1rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-weight: 700;
  color: var(--c-ink);
}
.brand-list li:last-child { font-weight: 600; color: var(--c-muted); }
@media (min-width: 900px) {
  .brands { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* ---------- Oblasť ---------- */
.area-grid { display: grid; gap: 32px; }
.map { margin: 0; }
.map svg { display: block; width: 100%; height: auto; }
.map figcaption { margin-top: 8px; font-size: .9rem; color: var(--c-muted); }
.map-land { fill: var(--c-primary-soft); stroke: var(--c-primary); stroke-width: 3; stroke-linejoin: round; }
.map-dots circle { fill: var(--c-primary-dark); stroke: #fff; stroke-width: 2.5; }
.map-dots .map-home { fill: var(--c-accent-graphic); stroke-width: 3.5; }
.map-labels text { font-family: var(--font); font-size: 21px; font-weight: 600; fill: var(--c-ink); paint-order: stroke; stroke: var(--c-primary-soft); stroke-width: 4px; stroke-linejoin: round; }
.map-labels .map-home-label { font-size: 26px; font-weight: 800; fill: var(--c-accent-dark); }

.cities {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}
.cities li { padding: .2rem 0 .2rem 1.1rem; position: relative; break-inside: avoid; }
.cities li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--c-primary);
}
.area-note { color: var(--c-muted); margin: 0; }

@media (min-width: 900px) {
  .area-grid { grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: start; }
}

/* ---------- Realizácie ---------- */
.gallery { display: grid; gap: 16px; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: .95rem; color: var(--c-muted); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Kontakt ---------- */
.section-dark { background: var(--c-dark); color: #e6f2f5; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #fff; }
.section-dark :focus-visible { outline-color: #fdba74; }
.contact-grid { display: grid; gap: 28px; }
.contact-lead { font-size: 1.15rem; }
.contact-area { margin: 0; color: #cfe5ea; }
.contact-area strong { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  text-decoration: none;
  min-width: 0;
}
.contact-link:hover { background: rgba(255, 255, 255, .16); }
.contact-link .icon { width: 28px; height: 28px; color: #fdba74; }
.contact-label { display: block; font-size: .88rem; color: #cfe5ea; }
.contact-value { display: block; font-size: 1.2rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

/* ---------- Pätička ---------- */
.site-footer {
  background: var(--c-footer);
  color: #cfe0e6;
  padding-block: 32px;
  font-size: .95rem;
}
.footer-grid { display: grid; gap: 16px; }
.legal p { margin: 0 0 .25em; }
.legal-name { font-weight: 700; color: #fff; }
.copyright { margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- 404 ---------- */
.notfound { padding-block: 72px 96px; text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound .cta-row { justify-content: center; }
.notfound-code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; line-height: 1; color: var(--c-primary-soft); margin: 0 0 8px; -webkit-text-stroke: 2px var(--c-primary); }

@media print {
  .site-header, .menu-toggle, .cta-row { display: none !important; }
  .section-dark, .site-footer { background: none; color: #000; }
  .section-dark h2, .section-dark a, .contact-value { color: #000; }
}
