/* ==========================================================================
   COMMEX Elektrocentrum – hlavní styly
   ========================================================================== */

/* ---------- Fonty (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-normal-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;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-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;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-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;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-normal-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;
}

/* ---------- Design tokeny ---------- */
:root {
  --ink-hsl: 220 24% 6%;
  --ink-2-hsl: 219 20% 9%;
  --accent-hsl: 210 16% 76%;

  --ink: hsl(var(--ink-hsl));
  --ink-2: hsl(var(--ink-2-hsl));
  --ink-3: hsl(218 17% 13%);
  --paper: hsl(210 25% 98%);
  --paper-dim: hsl(214 16% 68%);
  --accent: hsl(var(--accent-hsl));
  --accent-soft: hsl(210 20% 90%);
  --accent-deep: hsl(210 12% 54%);
  --line: hsl(210 25% 100% / .1);
  --line-strong: hsl(210 25% 100% / .22);
  --danger: hsl(0 72% 64%);
  --success: hsl(148 45% 62%);

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 2px;
  --r-md: 4px;
  --container: 80rem;
  --gutter: 1.25rem;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 1024px) {
  :root { --gutter: 2rem; }
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
address { font-style: normal; }
::selection { background-color: hsl(var(--accent-hsl) / .28); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.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: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: .5rem 1rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Typografie ---------- */
.label-mono {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.display-xl {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .92;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 94;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
  text-transform: uppercase;
}
.font-display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.028em;
}
.accent { color: var(--accent); }
.muted { color: var(--paper-dim); }
.break-all { word-break: break-all; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--paper); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .625rem 1rem; }
.btn-md { padding: .75rem 1.25rem; }
.btn-lg { padding: 1rem 1.5rem; }
.btn[disabled] { cursor: not-allowed; opacity: .7; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent);
  transition: color .16s;
}
.link-arrow:hover, .link-hover-soft:hover { color: var(--accent-soft); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: hsl(var(--ink-hsl) / .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: .75rem;
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-plate {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  background: #fff;
  border-radius: var(--r-sm);
  padding: .5rem .75rem;
}
.brand-plate img { height: 1.5rem; width: auto; }
.brand-tagline { margin-top: .5rem; font-size: .5625rem; color: var(--paper-dim); }
@media (min-width: 768px) {
  .brand-plate img { height: 1.75rem; }
}

.main-nav { display: none; align-items: center; gap: 2rem; }
.nav-link { color: var(--paper-dim); transition: color .16s; }
.nav-link:hover, .nav-link[aria-current="true"] { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--paper);
  transition: color .16s;
}
.header-phone:hover { color: var(--accent); }
.header-cta { display: none; }
@media (min-width: 30rem) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--paper);
  transition: border-color .16s, color .16s;
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: hsl(var(--ink-hsl) / .97);
}
.mobile-menu nav { display: flex; flex-direction: column; padding-block: .5rem 1.5rem; }
.mobile-menu nav > a {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--paper);
}
.mobile-menu nav > a:hover { color: var(--accent); }
.mobile-menu-contact { display: flex; flex-direction: column; gap: .75rem; padding-top: 1.25rem; }
.mobile-menu-contact > a:not(.btn) { font-weight: 600; }
.mobile-menu-contact .btn { padding: .875rem 1.25rem; margin-top: .5rem; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1024px) {
  .header-phone { display: block; }
}

/* ---------- Dekorace ---------- */
.grid-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .7;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(90% 60% at 50% 0, #000 10%, transparent 78%);
  mask-image: radial-gradient(90% 60% at 50% 0, #000 10%, transparent 78%);
}
.card-surface {
  background: linear-gradient(180deg, #ffffff09 0%, #fff0 55%), var(--ink-2);
  border: 1px solid var(--line);
}
.accent-glow {
  position: absolute;
  left: -10rem;
  top: 0;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, hsl(var(--accent-hsl) / .22) 0%, transparent 68%);
}

/* ---------- Animace ---------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse-line {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
.reveal { animation: reveal-up .62s var(--ease-out) both; }
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse-line 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .status-dot { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.hero-copy { position: relative; }
.kicker-status { display: flex; align-items: center; gap: .75rem; color: var(--accent); }
.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.35rem, 6.4vw, 4.5rem);
  font-style: italic;
}
.hero-title-main { display: block; text-transform: none; color: var(--paper); }
.hero-title-sub {
  display: block;
  margin-top: .75rem;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  letter-spacing: .005em;
  color: var(--accent);
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--paper-dim);
}
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.25rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 32rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-stats dd { margin: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.028em;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: var(--paper);
}
.stat-label { display: block; margin-top: .25rem; font-size: .5625rem; color: var(--paper-dim); }

.hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, hsl(var(--ink-hsl) / .85) 0%, hsl(var(--ink-hsl) / .1) 50%, transparent 100%);
}
.hero-media-badge {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: hsl(var(--ink-hsl) / .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero-media { aspect-ratio: 16 / 10; }
}
@media (min-width: 768px) {
  .hero-lead { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; padding-block: 5rem; }
  .hero-title-sub { font-size: clamp(1.35rem, 2.6vw, 2.1rem); }
}
@media (max-width: 380px) {
  .hero-media-badge { flex-direction: column; align-items: flex-start; gap: .25rem; }
}

/* ---------- Pás oborů ---------- */
.repair-strip { border-bottom: 1px solid var(--line); background: hsl(var(--ink-2-hsl) / .6); }
.repair-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  padding-block: 1.25rem;
}
.repair-list { display: contents; }
.repair-list li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--paper); }
.repair-list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Sekce – společné ---------- */
.section {
  position: relative;
  padding-block: 4rem;
  border-bottom: 1px solid var(--line);
}
.section-last { border-bottom: 0; }
@media (min-width: 1024px) {
  .section { padding-block: 6rem; }
}
.section-head { max-width: 42rem; }
.section-title {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--paper);
}
.section-title-sm { font-size: clamp(1.45rem, 3.1vw, 2.35rem); }
.section-lead { margin-top: 1rem; line-height: 1.625; color: var(--paper-dim); }

/* ---------- Služby ---------- */
.services-grid { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.service-card:hover { border-color: hsl(var(--accent-hsl) / .45); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-media-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--ink-2) 0%, hsl(var(--ink-2-hsl) / .25) 50%, transparent 100%);
}
.service-num {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: .25rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: hsl(var(--ink-hsl) / .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper-dim);
}
.service-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.service-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.028em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}
.service-body > p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--paper-dim); }
.tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; padding-top: 1rem; }
.tags li {
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .6875rem;
  color: var(--paper-dim);
}

.workshop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.workshop-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workshop-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--ink) 0%, hsl(var(--ink-hsl) / .6) 50%, hsl(var(--ink-hsl) / .1) 100%);
}
.workshop-body { position: relative; padding: 1.5rem; }
.workshop-title {
  margin-top: .75rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.028em;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}
.workshop-text { margin-top: .5rem; font-size: .875rem; color: var(--paper-dim); }
.workshop-body .link-arrow { margin-top: 1.25rem; }

/* ---------- Postup ---------- */
.steps {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}
.steps li { background: var(--ink-2); padding: 1.5rem; }
.steps h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.028em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}
.steps p { margin-top: .5rem; font-size: .875rem; line-height: 1.625; color: var(--paper-dim); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 1.75rem; }
}

/* ---------- O nás ---------- */
.about-grid { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.about-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.about-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-media-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, hsl(var(--ink-hsl) / .7) 0%, transparent 100%);
}
.about-badge {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: hsl(var(--ink-hsl) / .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.about-badge-value {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.028em;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.about-badge .stat-label { margin-top: 0; }
.about-text { margin-top: 1.25rem; line-height: 1.625; color: var(--paper-dim); }
.checklist { display: grid; gap: .75rem; margin-top: 1.75rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--paper); }
.check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem; height: 1.25rem;
  margin-top: .0625rem;
  border: 1px solid hsl(var(--accent-hsl) / .4);
  border-radius: var(--r-sm);
  color: var(--accent);
}
.about-cta { margin-top: 2rem; }

/* ---------- Poptávka ---------- */
.section-request { overflow: hidden; background: hsl(var(--ink-2-hsl) / .5); }
.request-grid { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .request-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }

.contact-links { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .16s;
}
.contact-links a:hover { border-color: hsl(var(--accent-hsl) / .6); }
.contact-value { font-size: .875rem; font-weight: 600; color: var(--paper); transition: color .16s; }
.contact-links a:hover .contact-value { color: var(--accent); }
.request-note { max-width: 24rem; margin-top: 2rem; font-size: .75rem; line-height: 1.625; color: var(--paper-dim); }

.request-form { position: relative; border-radius: var(--r-md); padding: 1.5rem; }
@media (min-width: 768px) { .request-form { padding: 2rem; } }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-grid + .form-field, .form-field + .form-field { margin-top: 1rem; }
.form-field > label.label-mono { color: var(--paper-dim); }

.field {
  width: 100%;
  padding: .75rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background-color: #ffffff0a;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.5;
  transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.field::placeholder { color: hsl(214 16% 68% / .7); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #ffffff12;
  box-shadow: 0 0 0 3px hsl(var(--accent-hsl) / .16);
}
.field[aria-invalid="true"] { border-color: var(--danger); }
textarea.field { resize: vertical; min-height: 7rem; }
select.field {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3adbb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 1rem;
}
select.field:invalid { color: hsl(214 16% 68% / .7); }
select.field option { background-color: var(--ink-2); color: var(--paper); }

.file-drop {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .16s;
}
.file-drop:hover, .file-drop:focus-within { border-color: hsl(var(--accent-hsl) / .6); }
.file-name { font-size: .875rem; color: var(--paper); word-break: break-all; }
.file-hint { font-size: .75rem; line-height: 1.625; color: var(--paper-dim); }

.field-error { display: none; font-size: .75rem; color: var(--danger); }
.field-error:not(:empty) { display: block; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
.form-consent { max-width: 20rem; font-size: .75rem; line-height: 1.625; color: var(--paper-dim); }
.form-consent a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--accent); }
.btn-submit { padding: .875rem 1.5rem; }

.form-status {
  margin-top: 1.25rem;
  padding: .875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: .875rem;
  line-height: 1.6;
}
.form-status[data-variant="success"] { border-color: hsl(148 45% 62% / .5); color: var(--success); background: hsl(148 45% 62% / .06); }
.form-status[data-variant="error"] { border-color: hsl(0 72% 64% / .5); color: var(--danger); background: hsl(0 72% 64% / .06); }
.form-status a { color: var(--paper); text-decoration: underline; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-cells {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}
@media (min-width: 640px) { .contact-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-cell { background: var(--ink-2); padding: 1.5rem; }
.contact-cell address, .cell-main { margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--paper); }
.cell-list li + li { margin-top: .5rem; }
.contact-cell a { transition: color .16s; }
.contact-cell a:hover { color: var(--accent); }
.cell-meta { margin-top: 1rem; }
.cell-note { margin-top: 1rem; font-size: .75rem; line-height: 1.625; color: var(--paper-dim); }

.map {
  position: relative;
  display: flex;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-2);
}
@media (min-width: 1024px) { .map { min-height: 420px; } }
.map .grid-backdrop { -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 10%, transparent 80%); }
.map-placeholder {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--accent);
}
.map-address { font-size: .9375rem; font-weight: 600; color: var(--paper); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.map-note { font-size: .75rem; color: var(--paper-dim); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); background: hsl(var(--ink-2-hsl) / .7); }
.site-footer > .container { padding-block: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-about { max-width: 20rem; margin-top: 1.25rem; font-size: .875rem; line-height: 1.625; color: var(--paper-dim); }
.footer-list { margin-top: 1rem; font-size: .875rem; }
.footer-list li + li { margin-top: .5rem; }
.footer-list a { color: var(--paper); transition: color .16s; }
.footer-list a:hover { color: var(--accent); }
.footer-address { padding-top: .5rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--paper-dim);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.footer-bottom-links a:not(.label-mono):hover { color: var(--paper); }
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Podstránky (právní texty, 404) ---------- */
.page { padding-block: 3.5rem 5rem; }
@media (min-width: 1024px) { .page { padding-block: 5rem 6rem; } }
.prose { max-width: 46rem; }
.prose h1 { margin-top: 1rem; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--paper); }
.prose h2 {
  margin-top: 2.75rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.02em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
}
.prose p, .prose li { margin-top: .875rem; line-height: 1.7; color: var(--paper-dim); }
.prose ul { padding-left: 1.1rem; list-style: square; }
.prose ul li::marker { color: var(--accent); }
.prose li { margin-top: .5rem; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }
.prose .lead { margin-top: 1.25rem; font-size: 1.0625rem; }

.error-page {
  position: relative;
  display: flex;
  min-height: calc(100vh - var(--header-h));
  align-items: center;
  overflow: hidden;
}
.error-code {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--accent);
}
.error-page .hero-actions { margin-top: 2rem; }
