/* ---------- Písma hostovaná na vlastním webu ----------
   Variabilní řezy oříznuté na znaky, které web používá.
   Nic se nenačítá od Googlu, takže se neodesílají IP adresy návštěvníků. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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: 500 600;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1f2933;
  --muted-text: #5d6b78;
  --line: #e2e8ef;
  --line-strong: #cfd8e2;
  --soft: #f5f7f9;
  --soft-strong: #edf2f6;
  --accent: #1769d2;
  --accent-dark: #0f4fa6;
  --accent-soft: rgba(23, 105, 210, 0.1);
  --anthracite: #101722;
  --ink: #0b111a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.32);
  --shadow-soft: 0 12px 30px -16px rgba(15, 23, 42, 0.24);
  --container: min(1180px, calc(100vw - 40px));
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(23, 105, 210, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  min-width: 0;
}

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

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

p,
a,
span,
dd {
  overflow-wrap: anywhere;
}

::selection {
  background: rgba(23, 105, 210, 0.18);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(207, 216, 226, 0.7);
  box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  height: 84px;
  width: auto;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 56px;
  }
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--anthracite), #232f40);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-soft);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted-text);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted-text);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: var(--anthracite);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--anthracite);
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 260ms ease, opacity 180ms ease, background 200ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-6px);
}

.nav-toggle span:nth-child(2) {
  width: 13px;
  transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(6px);
}

.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Otevřeno: tlačítko se pootočí a proužky se složí do křížku */
.nav-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
  border-color: rgba(23, 105, 210, 0.4);
  background: var(--accent-soft);
}

.nav-toggle[aria-expanded="true"] span {
  background: var(--accent);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  width: 20px;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.2);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- Layout ---------- */
.section,
.section-grid {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 64px;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 72px);
  padding-top: 72px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.eyebrow-location::before {
  display: none;
}

a.eyebrow-location {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

a.eyebrow-location:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.eyebrow-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.eyebrow-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  color: var(--anthracite);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h1 .accent {
  color: var(--accent);
}

h2 {
  margin-bottom: 16px;
  color: var(--anthracite);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 12px;
  color: var(--anthracite);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.about-text p {
  color: var(--muted-text);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats dt {
  color: var(--anthracite);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.86rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(23, 105, 210, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px -12px rgba(23, 105, 210, 0.75);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--anthracite);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero media ---------- */
.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px -16px 28px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(150deg, rgba(23, 105, 210, 0.16), transparent 55%);
  z-index: -1;
}

.hero-media img {
  width: 100%;
  /* height:auto je nutná — jinak by se uplatnil atribut height="900" z HTML
     a obrázek by byl všude 900 px vysoký bez ohledu na aspect-ratio */
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

/* ---------- Section heading ---------- */
.section-heading {
  max-width: 60ch;
  margin-bottom: 44px;
}

.muted {
  position: relative;
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, var(--bg-alt), #eef3f8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.muted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 105, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 210, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(900px 400px at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}

.muted > * {
  position: relative;
}

.muted.section-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tech-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 8px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}

/* Zvednutí při najetí mají jen karty v Technologiích — ty jsou klikací
   (otevírají fotky). Karty služeb nikam nevedou, tak nesmí vypadat jako tlačítka. */
.tech-cards .card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 105, 210, 0.34);
  box-shadow: var(--shadow);
}

.tech-cards .card:hover::after {
  transform: scaleX(1);
}

.card-index {
  display: block;
  margin-bottom: auto;
  padding-bottom: 40px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p,
.reason span:not(.reason-icon) {
  color: var(--muted-text);
  line-height: 1.62;
}

a.card {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.card-photo {
  cursor: pointer;
}

.tech-cards .card {
  padding: 0;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.tech-cards .card:hover .card-media img {
  transform: scale(1.04);
}

.card-media-product {
  background: #fff;
}

.card-media-product img {
  object-fit: contain;
  padding: 14px;
}

.card-media-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 17, 26, 0.55);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.card-media-split {
  display: flex;
  gap: 2px;
}

.card-media-split img {
  width: calc(50% - 1px);
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 26px 26px;
}

.card-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.card-action {
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}

.card-action::after {
  content: "→";
  margin-left: 6px;
  display: inline-block;
  transition: transform 220ms ease;
}

.tech-cards .card:hover .card-action::after {
  transform: translateX(3px);
}

/* ---------- Technology group headings ---------- */
.tech-group-heading {
  margin: 40px 0 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.tech-group-heading:first-of-type {
  margin-top: 28px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 26, 0.72);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.lightbox-title {
  margin: 0 40px 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.lightbox-title:empty {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

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

.lightbox-figures figure {
  margin: 0;
}

.lightbox-figures img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.lightbox-carousel {
  display: grid;
  gap: 14px;
}

.lightbox-carousel[hidden] {
  display: none;
}

.carousel-main {
  position: relative;
}

.carousel-stage {
  margin: 0;
}

.carousel-stage img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.carousel-caption {
  position: static;
  margin-top: 8px;
  color: var(--muted-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: none;
}

.carousel-caption:empty {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  color: var(--anthracite);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, border-color 160ms ease;
}

.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.carousel-thumbs button {
  width: 86px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.carousel-thumbs button:hover {
  opacity: 1;
}

.carousel-thumbs button.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.carousel-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-figures figcaption {
  position: static;
  margin-top: 8px;
  color: var(--muted-text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: normal;
  text-shadow: none;
  text-align: center;
}

/* ---------- Reasons ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.reason {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.reason-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.reason-icon svg {
  width: 22px;
  height: 22px;
}

.reason strong,
.reason span:not(.reason-icon) {
  display: block;
}

.reason strong {
  color: var(--anthracite);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

/* ---------- Materials ---------- */
.materials {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.materials .section-heading {
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--anthracite);
  font-weight: 600;
  font-size: 0.96rem;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -10px;
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 270px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--soft-strong);
  box-shadow: var(--shadow-soft);
}

.gallery-large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 17, 26, 0.55));
  opacity: 0.8;
  transition: opacity 300ms ease;
}

.gallery-item:nth-child(1) img { object-position: 28% center; }
.gallery-item:nth-child(2) img { object-position: 58% center; }

.gallery-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

figcaption,
.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- About ---------- */
.about {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.about .section-heading {
  max-width: 34ch;
  margin-bottom: 0;
}

.about-text {
  max-width: 76ch;
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}

.about-text p {
  font-size: 1.14rem;
}

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

/* ---------- Contact ---------- */
.contact {
  align-items: start;
}

address {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  color: var(--muted-text);
  font-style: normal;
  line-height: 1.5;
}

address a {
  width: fit-content;
  color: var(--anthracite);
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 600;
  transition: color 160ms ease;
}

address a:hover {
  color: var(--accent);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 0 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-meta div {
  display: grid;
  gap: 3px;
}

.contact-meta dt {
  color: var(--muted-text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-meta dd {
  margin: 0;
  color: var(--anthracite);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

label {
  display: grid;
  gap: 8px;
  color: var(--anthracite);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form .btn {
  margin-top: 4px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted-text);
}

.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Legal page ---------- */
.legal .section-heading {
  margin-bottom: 8px;
}

.legal-body {
  max-width: 760px;
  color: var(--text);
  line-height: 1.7;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 1.3rem;
}

.legal-body p {
  margin: 0 0 16px;
  color: var(--muted-text);
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted-text);
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-body strong {
  color: var(--anthracite);
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.contact-map {
  align-self: stretch;
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Náhrada mapy, dokud ji návštěvník sám nevyžádá kliknutím */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding: 28px 24px;
  border: 0;
  background:
    linear-gradient(rgba(23, 105, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 210, 0.05) 1px, transparent 1px),
    linear-gradient(160deg, var(--soft-strong), #fff);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--muted-text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 200ms ease;
}

.map-placeholder:hover {
  background:
    linear-gradient(rgba(23, 105, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 210, 0.08) 1px, transparent 1px),
    linear-gradient(160deg, var(--accent-soft), #fff);
  background-size: 32px 32px, 32px 32px, auto;
}

.map-placeholder strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.map-pin {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.map-pin svg {
  width: 24px;
  height: 24px;
}

.map-note {
  max-width: 34ch;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  width: var(--container);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-text);
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-name {
  color: var(--anthracite);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--anthracite);
  font-weight: 600;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-contact a {
  font-weight: 500;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .reveal:nth-child(2) { transition-delay: 80ms; }
.cards .reveal:nth-child(3) { transition-delay: 160ms; }
.cards .reveal:nth-child(4) { transition-delay: 240ms; }
.reasons .reveal:nth-child(2) { transition-delay: 80ms; }
.reasons .reveal:nth-child(3) { transition-delay: 160ms; }
.reasons .reveal:nth-child(4) { transition-delay: 240ms; }
.steps .reveal:nth-child(2) { transition-delay: 80ms; }
.steps .reveal:nth-child(3) { transition-delay: 160ms; }
.steps .reveal:nth-child(4) { transition-delay: 240ms; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section,
  .section-grid {
    width: min(100% - 56px, 1180px);
  }

  .muted.section-grid {
    width: 100%;
    padding-right: 28px;
    padding-left: 28px;
  }

  .section-grid,
  .materials {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about .section-heading {
    max-width: 60ch;
  }

  .about-text {
    max-width: 78ch;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .cards,
  .reasons,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 4px 16px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .section,
  .section-grid {
    width: min(100% - 32px, 1180px);
    padding: 64px 0;
  }

  .section-grid,
  .materials {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .muted {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .muted.section-grid {
    width: 100%;
    padding: 64px 16px;
  }

  .cards,
  .reasons,
  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-auto-rows: 240px;
  }

  .gallery-large {
    grid-row: span 1;
  }

  /* Na mobilu nižší obrázek a popisek položený přímo na něj */
  .hero-media img {
    aspect-ratio: 16 / 11;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    width: min(100% - 32px, 1180px);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 48px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .card,
  .reason,
  .step,
  .contact-form {
    padding: 20px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

@media (min-width: 1600px) {
  .hero {
    min-height: 860px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Poznámka u pole formuláře */
.field-note {
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.7;
}

/* Honeypot proti spamu — skryté pro lidi, viditelné pro boty */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Stavové stránky (děkujeme / chyba) */
.status-page {
  display: flex;
  justify-content: center;
  min-height: 60vh;
  align-items: center;
}
.status-card {
  max-width: 540px;
  text-align: center;
}
.status-card h1 {
  margin: 0.4em 0 0.5em;
}
.status-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 0.6rem;
}
.status-icon svg {
  width: 100%;
  height: 100%;
}
.status-ok { color: #2faa6a; }
.status-err { color: #d9534f; }
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.status-note {
  margin-top: 1.25rem;
  font-size: 0.9em;
  opacity: 0.75;
}
