/* autáta s.r.o. – styly webu
   Nadpisy: Montserrat (odpovídá písmu v logu)
   Text:    Atkinson Hyperlegible Next (navrženo pro maximální čitelnost) */

/* ---------- Písma (self-hosted, podmnožina latinka + čeština) ---------- */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cs.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+010C-010F, U+011A-011B, U+0147-0148, U+0158-0161, U+0164-0165, U+016E-016F, U+017D-017E;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-cs.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+010C-010F, U+011A-011B, U+0147-0148, U+0158-0161, U+0164-0165, U+016E-016F, U+017D-017E;
}

/* ---------- Proměnné ---------- */

:root {
  /* barvy z loga */
  --navy: #17194a;
  --yellow: #fabd09;

  --text: var(--navy);
  --text-muted: #4a4c72;
  --bg: #ffffff;
  --surface: #f5f5f9;
  --tint: #fff7df;
  --line: #e2e2ec;

  --font-heading: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --radius: 1rem;
}

/* ---------- Základ ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--yellow);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
}

.brand img {
  width: auto;
  height: 3rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--yellow);
}

/* ---------- Úvod ---------- */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section-space);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

.lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #ffcb33;
}

.link-arrow {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: " →";
}

.link-arrow:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
}

.hero__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 26rem;
  border-radius: calc(var(--radius) * 2);
  background: var(--navy);
}

.hero__visual img {
  width: 58%;
}

@media (min-width: 56rem) {
  .hero__inner {
    grid-template-columns: 1.35fr 1fr;
    gap: 4rem;
  }

  .hero__visual {
    width: 100%;
    justify-self: end;
  }
}

@media (max-width: 55.99rem) {
  .hero__visual {
    display: none;
  }
}

/* ---------- Sekce ---------- */

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section--tint {
  border-top: 0;
  background: var(--tint);
}

.section--tint + .section {
  border-top: 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section__head p,
.split__head p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
    align-items: start;
  }
}

/* ---------- Služby ---------- */

.services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.service__num {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service p {
  margin-top: 0.625rem;
  color: var(--text-muted);
}

/* ---------- Podpora PAS ---------- */

.support {
  display: grid;
  gap: 0;
}

.support li {
  padding-block: 1.25rem;
  border-top: 1px solid rgb(23 25 74 / 0.14);
}

.support li:first-child {
  padding-top: 0;
  border-top: 0;
}

.support h3 {
  font-size: 1.125rem;
}

.support p {
  margin-top: 0.375rem;
  color: var(--text-muted);
}

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

.contact-email {
  margin-top: 1.5rem;
}

.contact-email a {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.company {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.company h3 {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.company dl {
  display: grid;
  gap: 0.875rem;
  margin: 0;
}

.company dl > div {
  display: grid;
  gap: 0.125rem 1.5rem;
}

@media (min-width: 30rem) {
  .company dl > div {
    grid-template-columns: 9rem 1fr;
  }
}

.company dt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-top: 0.125rem;
}

.company dd {
  margin: 0;
}

/* ---------- Patička ---------- */

.site-footer {
  background: var(--navy);
  color: #fff;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem;
}

.site-footer p:last-child {
  color: rgb(255 255 255 / 0.75);
}

.site-footer a {
  margin-left: 1rem;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Textová stránka (ochrana osobních údajů) ---------- */

.prose-page {
  padding-block: clamp(2rem, 5vw, 4rem) var(--section-space);
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}

.prose p,
.prose ul {
  margin-top: 0.875rem;
}

.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose li::marker {
  color: var(--yellow);
}

.prose__meta {
  margin-top: 3rem !important;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Chybová stránka ---------- */

.error-page {
  padding-block: var(--section-space);
}

.error-page p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.error-page .button {
  margin-top: 2rem;
}

/* ---------- Tisk ---------- */

@media print {
  .site-nav,
  .hero__visual,
  .hero__actions,
  .skip-link {
    display: none !important;
  }

  .section {
    padding-block: 1.5rem;
  }

  .site-footer {
    background: none;
    color: inherit;
  }
}
