/* ==========================================================================
   Progresklima CZ s.r.o. – firemní web
   Barvy značky: červená #E1362A, modrá #159BD7, azurová #29B6F6
   ========================================================================== */

:root {
  --red: #e1362a;
  --red-dark: #c22a20;
  --blue: #159bd7;
  --blue-dark: #0f83b6;
  --cyan: #29b6f6;
  --ink: #262626;
  --ink-soft: #55595e;
  --line: #e4e6e9;
  --bg-soft: #f2f3f4;
  --white: #fff;

  --container: 1200px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);
  --header-h: 84px;

  --font: "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    Roboto, Arial, sans-serif;

  /* ztmavení přes fotku v úvodním slideru, aby byl bílý text čitelný */
  --hero-overlay: linear-gradient(
    100deg,
    rgba(10, 30, 45, 0.82) 0%,
    rgba(10, 30, 45, 0.45) 55%,
    rgba(10, 30, 45, 0.15) 100%
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: 1.375rem;
}
h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1.1em;
}

ul {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.4em;
}

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

.section {
  padding: 84px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__lead {
  max-width: 720px;
  font-size: 1.0625rem;
}

.center {
  text-align: center;
}

.center .section__lead {
  margin-inline: auto;
}

/* --------------------------------------------------------- tlačítka ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--red);
}

.btn--outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline:hover {
  background: var(--red);
  color: var(--white);
}

/* ------------------------------------------------------------ header ---- */

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

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.header__logo img {
  width: 168px;
  height: auto;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.header__toggle span,
.header__toggle span::before,
.header__toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}

.header__toggle span {
  margin: 0 auto;
  position: relative;
}

.header__toggle span::before,
.header__toggle span::after {
  content: "";
  position: absolute;
}

.header__toggle span::before {
  top: -7px;
}
.header__toggle span::after {
  top: 7px;
}

.header__toggle[aria-expanded="true"] span {
  background: transparent;
}
.header__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.header__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  background: #16344a;
}

.hero__slide {
  position: relative;
  display: none;
  min-height: min(70vh, 620px);
  padding: 90px 0;
  background-color: #16344a;
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  display: block;
  animation: fade 0.7s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Obrázek každého snímku nastavuje generátor (web/build.js) přímo v HTML,
   ztmavení nad fotkou je společné a řídí se proměnnou --hero-overlay. */

.hero__content {
  max-width: 620px;
  color: var(--white);
}

.hero__content h1,
.hero__content h2 {
  color: var(--white);
}

.hero__content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.6em;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero__dot.is-active {
  background: var(--white);
  transform: scale(1.25);
}

/* -------------------------------------------------------- podstránky ---- */

.pagehead {
  padding: 74px 0 66px;
  background: linear-gradient(115deg, #123a52 0%, #1f6d94 55%, var(--blue) 100%);
  color: var(--white);
}

.pagehead h1 {
  color: var(--white);
  margin-bottom: 0.35em;
}

.pagehead p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

.breadcrumb {
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------------------------------------- karty ---- */

.grid {
  display: grid;
  gap: 30px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(21, 155, 215, 0.1);
  color: var(--blue);
}

.card__icon svg {
  width: 30px;
  height: 30px;
}

.card__icon strong {
  font-size: 1.5rem;
  font-weight: 800;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card ul {
  margin-bottom: 1.4em;
}

.card__link {
  margin-top: auto;
  font-weight: 700;
  color: var(--red);
}

/* -------------------------------------------------------- CTA proužek ---- */

.cta {
  padding: 46px 0;
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 0.7em;
}

/* --------------------------------------------------------- split blok ---- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}

.split__media {
  min-height: 380px;
  border-radius: var(--radius);
  background-color: #dfe5e9;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.split__media--about {
  background-image: url("../img/o-spolecnosti.jpg"),
    linear-gradient(140deg, #cfd9e0, #9fb4c1);
}

.split__media--career {
  background-image: url("../img/kariera.jpg"),
    linear-gradient(140deg, #d7dee3, #a8bcc8);
}

.split--reverse .split__media {
  order: -1;
}

.fact {
  margin-bottom: 26px;
}

.fact h4 {
  margin-bottom: 0.35em;
  color: var(--ink);
}

.fact p {
  margin: 0;
}

/* ------------------------------------------------------------- čísla ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.9375rem;
}

/* -------------------------------------------------------- reference ---- */

.reflist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reflist li {
  margin: 0;
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  color: var(--ink);
}

.reflist li span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ pozice ---- */

.job {
  padding: 30px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.job__head h3 {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(21, 155, 215, 0.12);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------- formulář ---- */

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd4d9;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 155, 215, 0.18);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}

.field--check input {
  width: auto;
  margin-top: 4px;
}

.form__note {
  font-size: 0.8125rem;
}

.form__status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.form__status.is-ok {
  display: block;
  background: rgba(28, 145, 74, 0.1);
  color: #16713a;
}

.form__status.is-chyba {
  display: block;
  background: rgba(225, 54, 42, 0.09);
  color: var(--red-dark);
}

/* past na roboty – pro člověka neviditelná, ale ne display:none,
   aby ji roboti neodhalili */
.past {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- kontakty ---- */

.contact-box {
  padding: 34px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--blue);
}

.contact-list strong {
  display: block;
  color: var(--ink);
}

/* karty osob */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.person {
  padding: 28px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.person:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.person__role {
  margin: 0 0 0.45em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.person__name {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--ink);
}

.person__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.person__links li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  word-break: break-word;
}

.person__links li:last-child {
  margin-bottom: 0;
}

.person__links svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--red);
}

.person__links a {
  color: var(--ink-soft);
}

.person__links a:hover {
  color: var(--red);
}

.dept {
  margin-top: 64px;
}

.dept:first-of-type {
  margin-top: 0;
}

.dept > h2 {
  margin-bottom: 0.2em;
}

.map {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.emergency {
  padding: 26px 30px;
  border-left: 4px solid var(--red);
  background: #fff5f4;
  border-radius: var(--radius);
}

.emergency h3 {
  margin-bottom: 0.3em;
}

.emergency p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------ footer ---- */

.footer {
  padding: 70px 0 34px;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.95);
}

.footer a {
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 1.1fr;
  gap: 40px;
}

.footer__logo {
  display: inline-block;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
}

.footer__logo img {
  width: 150px;
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav li {
  margin-bottom: 14px;
}

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__contact svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 5px;
}

.footer__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
}

/* ------------------------------------------------------- nahoru / on ---- */

.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, background 0.2s;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
}

.totop:hover {
  background: var(--red-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--red);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

/* ----------------------------------------------------------- responsivní */

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .header__toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .nav__list li {
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 0;
  }

  .header__actions {
    display: none;
  }

  .header__inner {
    position: relative;
  }

  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .section {
    padding: 60px 0;
  }

  .split {
    gap: 36px;
  }

  .split--reverse .split__media {
    order: 0;
  }
}

@media (max-width: 560px) {
  .card {
    padding: 30px 24px;
  }

  .hero__slide {
    padding: 64px 0 74px;
    min-height: 460px;
  }

  .split__media {
    min-height: 260px;
  }
}

@media print {
  .header,
  .footer,
  .totop,
  .cta {
    display: none;
  }
}
