/* ==========================================================================
   K SERVIS MH — base: fonty, tokeny, reset, typografie, utility
   ========================================================================== */

/* Archivo (SIL Open Font License), self-hosted — žádný externí request */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.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-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/archivo-latin.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;
}

/* Metrický fallback (stejné hodnoty jako generoval next/font) — minimalizuje posun layoutu při swapu */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  ascent-override: 88.96%;
  descent-override: 21.28%;
  line-gap-override: 0%;
  size-adjust: 98.7%;
}

:root {
  --ink: #0e1012;
  --ink-secondary: #16191c;
  --offwhite: #f1f0eb;
  --white: #ffffff;
  --mist: #e6e5e0;
  --muted: #5c6168;
  --muted-strong: #2f343a;
  --line: #d2d1cb;
  --line-dark: #2c3036;
  --accent: #1a4f8c;
  --warning: #e8b931;
  --header-height: 4.75rem;

  --font-sans: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, sans-serif;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --tracking-tight: -0.025em;
}

/* --- Reset (odpovídá Tailwind preflight, který zdroj používal) --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  height: 100%;
  max-width: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ol, ul, menu {
  list-style: none;
}

img, svg, video {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgb(204.62 216.28 229.7);
  color: var(--ink);
}

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

#kontakt {
  scroll-margin-top: var(--header-height);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  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: 0.75rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--offwhite);
  font-size: 0.875rem;
  font-weight: 600;
}

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

.container-site {
  width: min(100% - 1.5rem, 72rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container-site {
    width: min(100% - 2.5rem, 80rem);
  }
}

@media (min-width: 1280px) {
  .container-site {
    width: min(100% - 3.5rem, 88rem);
  }
}

/* --- Typografie --- */
.display-hero {
  font-size: clamp(2.35rem, 6.2vw, 5.35rem);
  line-height: 0.86;
  letter-spacing: -0.046em;
  font-weight: 700;
  max-width: min(100%, 11.2em);
}

.display-section {
  font-size: clamp(2.15rem, 4.8vw, 4.85rem);
  line-height: 0.9;
  letter-spacing: -0.038em;
  font-weight: 700;
  text-wrap: balance;
}

@media (max-width: 430px) {
  .display-hero {
    font-size: clamp(2.15rem, 12vw, 2.85rem);
    max-width: min(100%, 10.5em);
  }
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

/* Label sekce „01 — Servis“ */
.section-label {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  color: var(--muted);
}

.section-title {
  margin-top: 1.25rem;
}

.section-lead {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.625;
  color: var(--muted-strong);
}
