/* ERA — design from podklady „Zachování pískové“ + oficiální logo */
:root {
  --navy: #111b32;
  --navy-deep: #0a1224;
  --navy-soft: #39445c;
  --red: #e4003a;
  --red-deep: #be0031;
  --red-soft: rgba(228, 0, 58, 0.1);
  --ivory: #faf9f6;
  --sand: #f1eee8;
  --cream: #f1eee8;
  --lavender: #f1eee8;
  --mist: #faf9f6;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #111b32;
  --muted: #727783;
  --line: #ddd9d1;
  --shadow: 0 28px 70px rgba(17, 27, 50, 0.11);
  --radius: 0;
  --radius-sm: 0;
  --container: 1240px;
  --header-h: 108px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Manrope", "Segoe UI", sans-serif;
  --font-mono: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --lilac: #e9e2ee;
  --lilac-light: #f5f1f7;
  --lilac-deep: #d7cadd;
  --plum: #2c1735;
  --plum-dark: #1d0f24;
  --plum-soft: #5a4361;
  --crimson: #e4003a;
  --red-light: #ff7797;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 0.55em;
  color: var(--navy);
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

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

.container {
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--red);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 200;
  text-decoration: none;
  font-weight: 700;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 27, 50, 0.12);
}

.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.98);
}

.site-header.is-open {
  z-index: 120;
  background: var(--ivory);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img,
.brand__mark {
  width: auto;
  height: auto;
  max-height: 70px;
  max-width: min(244px, 52vw);
  object-fit: contain;
  background: transparent !important;
  display: block;
}

.nav-desktop {
  display: none;
  margin-left: auto;
  gap: 0.15rem;
}

.nav-desktop a {
  position: relative;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  padding: 0.55rem 0.85rem;
  transition: color 0.18s var(--ease);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--navy);
  background: transparent;
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.btn--lang {
  min-width: 42px;
  min-height: 42px;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  justify-content: center;
  border: 1px solid var(--navy) !important;
  background: transparent !important;
  color: var(--navy) !important;
  border-radius: 0 !important;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn--lang:hover {
  background: var(--navy) !important;
  color: #fff !important;
}

.btn--lang-mobile {
  width: 100%;
  margin-top: 0.5rem;
}

.btn--lang-footer {
  width: auto !important;
  min-width: 2.6rem !important;
  height: auto !important;
  min-height: 42px !important;
  padding: 0 1rem !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}

.btn--lang-footer:hover {
  background: #fff !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--navy);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  z-index: 120;
  box-sizing: border-box;
}

.nav-toggle:hover {
  background: var(--navy);
}

.nav-toggle:hover .nav-toggle__lines span {
  background: #fff;
}

.site-header.is-open .nav-toggle {
  background: var(--navy);
}

.site-header.is-open .nav-toggle .nav-toggle__lines span {
  background: #fff;
}

.nav-toggle__lines {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}

.nav-toggle__lines span {
  position: absolute;
  left: 0;
  display: block;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
}

.nav-toggle__lines span:nth-child(1) {
  top: 2px;
  width: 22px;
}

.nav-toggle__lines span:nth-child(2) {
  top: 10px;
  width: 14px;
}

.nav-toggle:hover .nav-toggle__lines span:nth-child(2) {
  width: 22px;
}

.site-header.is-open .nav-toggle__lines span:nth-child(1) {
  top: 7px;
  width: 22px;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle__lines span:nth-child(2) {
  top: 7px;
  width: 22px;
  transform: rotate(-45deg);
}

/* Fullscreen mobile menu — clean & quiet */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
}

.nav-overlay.is-open {
  pointer-events: auto;
}

.nav-overlay__panel {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.28s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-overlay.is-open .nav-overlay__panel {
  opacity: 1;
  transform: none;
}

.nav-overlay__inner {
  width: min(100% - 2rem, 420px);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.75rem) 0 2rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-overlay__nav {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  align-content: start;
}

.nav-overlay__nav a {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.nav-overlay__nav a:first-child {
  border-top: 1px solid var(--line);
}

.nav-overlay__nav a:hover,
.nav-overlay__nav a[aria-current="page"] {
  color: var(--red);
  padding-left: 0.55rem;
}

.nav-overlay__nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 1.1rem;
  background: var(--red);
  transform: translateY(-50%);
}

.nav-overlay__foot {
  margin-top: auto;
  display: grid;
  gap: 1.15rem;
  padding-top: 0.5rem;
}

.nav-overlay__foot .btn {
  justify-content: center;
  width: 100%;
}

.nav-overlay__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav-overlay__meta a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

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

.nav-mobile {
  display: none;
}

@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none !important;
  }
  .nav-overlay {
    display: none !important;
  }
  .header-actions {
    margin-left: 0.75rem;
  }
}

@media (max-width: 979px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn--primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-overlay__panel {
    transition: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn span[aria-hidden] {
  color: #ff6b8f;
  transition: transform 0.18s var(--ease);
}

.btn:hover span[aria-hidden] {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--navy);
}

.btn--light {
  background: #fff;
  color: var(--navy);
}

.btn--light:hover {
  background: var(--sand);
}

.panel .btn--light:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn--small {
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.8rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.75rem 0 1.25rem;
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.text-link:hover {
  color: var(--red);
}

button.text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

/* ---------- Project modal ---------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.project-modal[hidden] {
  display: none;
}

.project-modal:not([hidden]) {
  display: grid;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.55);
}

.project-modal__dialog {
  position: relative;
  width: min(100%, 36rem);
  max-height: min(88vh, 44rem);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 28, 46, 0.18));
  padding: 1.75rem 1.6rem 1.6rem;
  transform: translateY(12px);
  transition: transform 0.28s var(--ease);
}

.project-modal.is-open .project-modal__dialog {
  transform: translateY(0);
}

.project-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.project-modal__close:hover {
  border-color: var(--red);
  color: var(--red);
}

.project-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal:not([hidden]) {
  display: grid;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.55);
}

.contact-modal__dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(15, 28, 46, 0.18));
  padding: 1.75rem 1.6rem 1.6rem;
  transform: translateY(12px);
  transition: transform 0.28s var(--ease);
}

.contact-modal.is-open .contact-modal__dialog {
  transform: translateY(0);
}

.contact-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.contact-modal__close:hover {
  border-color: var(--red);
  color: var(--red);
}

.contact-modal__title {
  margin: 0 2.5rem 0.5rem 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-modal__intro {
  margin-bottom: 1.25rem;
}

.team-card__btn {
  width: 100%;
  justify-content: center;
}

.project-modal__title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  padding-right: 2rem;
  color: var(--navy);
}

.project-modal__body {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-modal__body p {
  margin: 0 0 0.85rem;
}

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

.project-modal__link {
  margin-top: 0.25rem;
}

body.project-modal-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  background: var(--white);
  overflow: hidden;
}

.hero--home {
  padding: 0;
}

.hero--home .hero__grid--home {
  min-height: 690px;
}

.hero--home .hero__grid--home {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hero--home .hero__grid--home {
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  }
}

.hero--home .hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0;
}

@media (min-width: 900px) {
  .hero--home .hero__copy {
    padding: 5.5rem 5.5rem 5.5rem 0;
  }
}

.hero--home .eyebrow {
  color: var(--plum-soft);
  font-size: 0.69rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.hero--home .eyebrow::before {
  width: 38px;
  height: 3px;
}

.hero--home h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 6.6vw, 7.2rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin-bottom: 0;
}

.hero__footer {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .hero__footer {
    grid-template-columns: minmax(0, 560px) auto;
    gap: 3.75rem;
  }
}

.hero--home .hero__lead {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-width: 225px;
  min-height: 56px;
  padding: 0 1.35rem 0 1.45rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.hero__cta span {
  color: #ff7a99;
  font-size: 1.05rem;
}

.hero__cta:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.hero__visual--circles {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--white);
  display: block;
}

.hero-visual-field {
  position: absolute;
  inset: 0;
  background: var(--white);
}

.hero-visual-field::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 15%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
}

.hero-visual-field::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -4%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.hero-visual-line {
  position: absolute;
  z-index: 3;
  top: 9%;
  right: 10%;
  bottom: 9%;
  width: 1px;
  background: rgba(255, 255, 255, 0.52);
}

.hero-visual-copy {
  position: absolute;
  z-index: 4;
  right: 3.6rem;
  bottom: 3.4rem;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  color: var(--white);
}

.hero-visual-copy strong {
  max-width: 270px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.hero-visual-copy span {
  align-self: flex-end;
  transform: translateX(1.5rem);
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.hero:not(.hero--home)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: var(--sand);
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: 5rem;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
  color: var(--navy-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
}

.hero h1 strong,
.hero h1 .accent {
  color: var(--red);
  font-weight: 500;
}

.hero__lead {
  max-width: 48ch;
  color: var(--navy-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero__visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.orb {
  display: none;
}

.hero-map,
.hero__visual img,
.hero__visual object,
.hero__visual svg {
  width: min(100%, 420px);
  height: auto;
  color: var(--red);
  position: relative;
  z-index: 2;
}

.hero-panel {
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 2.5rem 2.4rem 2.2rem;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 96px;
  height: 96px;
  border-top: 1px solid var(--red);
  border-right: 1px solid var(--red);
}

.hero-panel::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 3px;
  height: 76px;
  background: var(--red);
}

.hero-panel__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel__meta .status {
  color: var(--red);
}

.hero-panel h2 {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-panel p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.hero-panel__rows {
  border-top: 1px solid var(--line);
}

.hero-panel__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.hero-panel__row span:first-child {
  color: var(--muted);
}

.hero-panel__row span:last-child {
  font-weight: 700;
  text-align: right;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 2rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 0.92rem;
  max-width: 48ch;
}

.notice strong {
  color: var(--red);
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section--white {
  background: var(--white);
}

.section--navy {
  background: var(--navy);
  color: #fff;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section--navy .step-card h3 {
  color: var(--navy);
}

.section--navy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.section--navy .steps {
  border-color: rgba(255, 255, 255, 0.18);
}

.section--navy .step-card {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.section--lavender {
  background: var(--sand);
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section__head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
}

.h2-content {
  font-size: 1.5em;
  font-weight: 500;
}

.section__head h2.h2-content {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.section__head:has(h2.h2-content) {
  margin-bottom: 2rem;
}

.section__head p {
  color: var(--muted);
}

.section--navy .section__head p {
  color: rgba(255, 255, 255, 0.68);
}

.section__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section__head-row .section__head {
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 > * {
  min-width: 0;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.container.grid-2 {
  align-items: stretch;
}

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

.service-card,
.step-card,
.project-card,
.news-card,
.social-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.75rem 1.6rem;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.service-card:hover,
.project-card:hover,
.news-card:hover,
.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.service-card,
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h2,
.service-card h3,
.project-card__title,
.news-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.service-card p,
.project-card__text,
.news-card__text {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card__cta {
  margin-top: auto;
  padding-top: 1.25rem;
  align-self: flex-start;
}

.service-card__list {
  flex: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.project-card--interactive {
  cursor: pointer;
}

.project-card--interactive:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Projects in-page detail (shared pattern with services) */
.projects-app {
  position: relative;
}

.projects-app__detail[hidden] {
  display: none !important;
}

.projects-app--detail-open .projects-app__index {
  display: none;
}

.projects-app__detail {
  animation: services-detail-in 0.38s var(--ease) both;
}

html.projects-detail-open [data-projects-hero][hidden],
html.projects-detail-open [data-projects-completed][hidden],
html.projects-detail-open [data-projects-cta][hidden] {
  display: none !important;
}

.projects-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.projects-detail-body {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 52rem;
}

.projects-detail-body p {
  margin: 0 0 1rem;
}

.projects-detail-body p:last-child {
  margin-bottom: 0;
}

.projects-detail-contact {
  margin-top: 1.75rem;
}

.projects-detail-content {
  padding-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .projects-app__detail {
    animation: none;
  }
}

.service-card--interactive {
  cursor: pointer;
}

.service-card--interactive:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Services in-page detail */
.services-app {
  position: relative;
}

.services-app__detail[hidden] {
  display: none !important;
}

.services-app--detail-open .services-app__index {
  display: none;
}

.services-app__detail {
  animation: services-detail-in 0.38s var(--ease) both;
}

@keyframes services-detail-in {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.services-detail-head,
.projects-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.services-detail-head__back,
.projects-detail-head__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.services-detail-head__back:hover,
.projects-detail-head__back:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.services-detail-head__title,
.projects-detail-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.services-detail-content__intro {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.services-panel-source {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .services-app__detail {
    animation: none;
  }
}

.service-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem;
}

.service-block h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-block p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-block .text-link {
  display: inline-block;
  margin-top: 1rem;
}

[id] {
  scroll-margin-top: 6rem;
}

#kontakt-form {
  scroll-margin-top: 5.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 0.3rem 0.65rem;
}

.chip--muted {
  color: var(--muted);
  background: var(--sand);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.project-card__trigger {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 1.25rem;
}

.news-card__date {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card--embed {
  padding: 0;
  overflow: hidden;
  min-width: 0;
}

.news-card--embed:hover {
  transform: none;
}

.news-card__embed {
  line-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.news-card__embed iframe {
  display: block;
  min-width: 0;
  min-height: 200px;
  margin: 0 auto;
  border: none;
}

/* Aktuality — split layout (pinned | Facebook feed) */
.news-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.news-split__head {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.news-split__head .h2-content {
  margin-bottom: 0.35rem;
}

.news-split__head p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.news-pinned {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  min-width: 0;
}

.news-pinned .news-card--embed {
  display: flex;
  flex-direction: column;
}

.news-card__link-wrap {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.news-feed-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.news-feed-frame iframe {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: none;
}

@media (min-width: 640px) {
  .news-pinned {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .news-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }

  .news-split__feed {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.social-card {
  text-decoration: none;
  display: grid;
  gap: 0.4rem;
  color: inherit;
}

.social-card__network {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.social-card__desc {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* Process */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding: 1.75rem 1.35rem;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.steps {
  counter-reset: step;
}

.step-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.split .panel {
  padding-top: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.trust-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.trust-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--navy-soft);
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.panel {
  position: relative;
  background: var(--sand);
  padding: 2.5rem;
  min-height: 280px;
  overflow: hidden;
}

.panel h2,
.panel h3 {
  position: relative;
  z-index: 1;
}

.panel p {
  position: relative;
  z-index: 1;
  color: var(--navy-soft);
}

.panel .orb {
  display: none;
}

/* Team (O nás) */
.team-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42rem;
}

.team-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.team-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.team-card__media {
  flex-shrink: 0;
}

.team-card__photo {
  width: 7.5rem;
  height: 9.375rem;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--sand);
}

.team-card__body {
  min-width: 0;
}

.team-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
}

.team-card__role {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.team-card__bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--navy-soft);
}

.team-card__action {
  align-self: center;
}

.team-card__btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .team-card {
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding: 1rem 1.1rem;
  }

  .team-card__photo {
    width: 5.5rem;
    height: 6.875rem;
  }

  .team-card__action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .team-card__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Page hero */
.page-hero {
  background: var(--sand);
  padding: 3.5rem 0 2.75rem;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 54ch;
}

.page-hero--compact {
  padding: 2.5rem 0 1.25rem;
}

.page-hero--compact h1 {
  margin-bottom: 0;
}

.section--tight-top {
  padding-top: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
}

.info-card h2,
.info-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.container.grid-2 > .info-card {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.container.grid-2 > .info-card .trust-list {
  flex: 1;
  align-content: center;
}

.container.grid-2 > .info-card h2.h2-content {
  font-size: 1.5em;
  font-weight: 500;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.info-card dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-card dd {
  margin: 0;
}

.info-card a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

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

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 0.45rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.85rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 0;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--red);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .cf-turnstile {
  margin: 0.25rem 0 0.5rem;
}

.form-status {
  font-size: 0.9rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
}

.form-status--ok {
  color: #0d4d2e;
  background: #e8f5ee;
  border: 1px solid #b8dfc8;
}

.form-status--error {
  color: #7a1a1a;
  background: #fdeeee;
  border: 1px solid #f0c4c4;
}

/* CTA */
.cta-band {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: start;
  padding: 2.5rem 2rem 2.25rem 2.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.35rem;
  width: 3px;
  height: 4.5rem;
  background: var(--red);
}

.cta-band__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-band h2 {
  color: var(--navy);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  max-width: 22ch;
}

.cta-band p {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.65;
}

.cta-band .btn-row {
  margin: 0;
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    padding: 2.75rem 2.75rem 2.75rem 2.85rem;
  }

  .cta-band::before {
    top: 50%;
    transform: translateY(-50%);
    height: 5rem;
  }
}

/* Credibility / stats strip */
.credibility {
  background: var(--navy);
  color: #fff;
}

.credibility-grid {
  display: grid;
  min-height: 220px;
}

@media (min-width: 900px) {
  .credibility-grid {
    grid-template-columns: 1.08fr 1.92fr;
  }

  .credibility-grid--home {
    grid-template-columns: 1.65fr repeat(3, 0.9fr);
  }
}

.credibility-intro {
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 900px) {
  .credibility-intro {
    padding-right: 3rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .credibility-grid--home .credibility-intro,
  .credibility-grid--home .stat {
    padding: 2.6rem 2.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .credibility-grid--home .stat:last-child {
    border-right: none;
  }

  .credibility-grid--home .stat {
    padding-left: 2.5rem;
  }
}

.credibility-intro p {
  margin: 0;
  max-width: 430px;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2vw, 1.42rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.035em;
  color: #fff;
}

/* Homepage statement */
.home-statement {
  padding: 6.875rem 0;
  background: var(--lilac-light);
}

.home-statement__inner {
  display: grid;
  gap: 2.1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .home-statement__inner {
    grid-template-columns: 190px minmax(0, 850px);
    gap: 5rem;
  }
}

.home-statement__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-statement__label::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.home-statement h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.home-statement h2 .accent {
  color: var(--red);
}

@media (max-width: 899px) {
  .credibility-grid--home {
    grid-template-columns: 1fr 1fr;
  }

  .credibility-grid--home .credibility-intro {
    grid-column: 1 / -1;
    padding: 2.1rem 0;
  }

  .credibility-grid--home .stat {
    min-height: 150px;
    padding: 2rem 1.5rem 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .credibility-grid--home .stat:nth-child(odd) {
    border-right: none;
    padding-left: 1.5rem;
  }

  .credibility-grid--home .stat:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .credibility-grid--home {
    grid-template-columns: 1fr;
  }

  .credibility-grid--home .stat,
  .credibility-grid--home .stat:nth-child(odd),
  .credibility-grid--home .stat:last-child {
    grid-column: auto;
    min-height: auto;
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .credibility-grid--home .stat:last-child {
    border-bottom: none;
  }
}

.statistics {
  display: grid;
}

@media (min-width: 700px) {
  .statistics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 700px) {
  .stat {
    padding-left: 2.5rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }
  .stat:last-child {
    border-right: none;
  }
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
}

.stat-number span {
  color: #f05a7c;
}

.stat-label {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1fr;
  }
  .footer-grid--compact {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-brand img,
.footer-logo {
  margin-bottom: 1rem;
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  background: #fff;
  padding: 0.55rem 0.75rem;
}

.footer-heading {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.45rem;
}

.site-footer .footer-links a,
.site-footer .footer-contact a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover {
  color: #f05a7c;
}

.link-list {
  display: grid;
  gap: 0.45rem;
}

.link-list a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social__link:hover {
  color: #fff;
  border-color: rgba(240, 90, 124, 0.85);
  background: rgba(196, 18, 48, 0.22);
  transform: translateY(-1px);
}

.footer-social__link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}

/* Social embed (Aktuality) */
.social-embed {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.social-embed--full {
  display: block;
  width: 100%;
}

.social-embed--split {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .social-embed--split {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .social-embed--split .social-embed__aside {
    min-height: 680px;
  }
}

.social-embed__frame,
.social-embed__aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  height: auto;
}

.social-embed__frame {
  overflow: hidden;
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--paper);
}

.social-embed__frame iframe {
  display: block;
  border: 0;
  min-width: 0;
  min-height: 280px;
  margin: 0 auto;
}

.social-embed__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  align-self: stretch;
  box-sizing: border-box;
  overflow: visible;
  background: var(--paper) !important;
}

.social-embed__aside-title {
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0;
}

.social-embed__note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.social-stack {
  display: grid;
  grid-template-rows: repeat(4, minmax(5.25rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
  flex: 1;
  min-height: 0;
}

.social-stack .social-card {
  margin: 0;
  min-height: 5.25rem;
  height: 100%;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.social-stack .social-card__network {
  font-size: 1.02rem;
}

.social-stack .social-card__desc {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.social-stack .social-card .text-link {
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.social-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 760px) {
  .social-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 899px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .header-inner {
    min-height: 72px;
    gap: 0.75rem;
  }

  .brand img,
  .brand__mark {
    max-height: 48px;
    max-width: min(165px, 46vw);
  }

  .home-statement {
    padding: 4.75rem 0;
  }

  .hero-visual-copy {
    right: 1.6rem;
    bottom: 1.75rem;
    width: min(235px, calc(100% - 3rem));
  }

  .hero-visual-copy span {
    transform: translateX(0.6rem);
  }

  .hero--home {
    padding: 0;
    background: var(--white);
  }

  .hero--home .hero__copy {
    padding: 3.75rem 0 4rem;
  }

  .hero--home h1 {
    max-width: none;
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }

  .hero__footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__visual--circles {
    min-height: 500px;
  }

  .hero-visual-copy {
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.75rem;
  }

  .hero {
    padding: 2.25rem 0 2.5rem;
    background: var(--sand);
  }

  .hero::before {
    display: none;
  }

  .hero__grid {
    gap: 1.75rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: -0.04em;
  }

  .hero--home h1 {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    letter-spacing: -0.07em;
    line-height: 0.94;
  }

  .hero__lead {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .eyebrow {
    margin-bottom: 1.1rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .eyebrow::before {
    width: 28px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    margin: 1.35rem 0 1rem;
    gap: 0.75rem;
  }

  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  .notice {
    max-width: none;
    margin-top: 1.25rem;
    font-size: 0.9rem;
  }

  .hero__visual {
    min-height: 0;
    width: 100%;
  }

  .hero-panel {
    width: 100%;
    padding: 1.5rem 1.25rem 1.35rem;
    box-shadow: 0 16px 40px rgba(17, 27, 50, 0.1);
  }

  .hero-panel::before {
    top: -12px;
    right: -12px;
    width: 56px;
    height: 56px;
  }

  .hero-panel::after {
    top: 1.5rem;
    height: 56px;
  }

  .hero-panel h2 {
    font-size: 1.35rem;
  }

  .hero-panel__meta {
    margin-bottom: 1.25rem;
  }

  .hero-panel__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero-panel__row span:last-child {
    text-align: left;
  }

  .section {
    padding: 3rem 0;
  }

  .section__head {
    margin-bottom: 1.5rem;
  }

  .section__head h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .section__head h2.h2-content {
    font-size: 1.5em;
  }

  .credibility-intro {
    padding: 1.75rem 0 1.25rem;
  }

  .credibility-intro p {
    font-size: 1.2rem;
  }

  .stat {
    padding: 1.35rem 0;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .page-hero {
    padding: 2.25rem 0 1.75rem;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .cta-band {
    padding: 1.75rem 1.35rem 1.6rem 1.5rem;
  }

  .cta-band::before {
    top: 1.75rem;
    height: 3.5rem;
  }

  .cta-band h2 {
    max-width: none;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band .btn-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .service-card,
  .step-card,
  .project-card,
  .news-card,
  .info-card {
    padding: 1.35rem 1.2rem;
  }

  .container.grid-2 > .info-card {
    padding-top: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .social-embed__aside {
    padding: 1.15rem;
  }

  .social-stack {
    grid-template-rows: none;
    gap: 0.75rem;
  }

  .social-stack .social-card {
    min-height: 0;
    height: auto;
    padding: 0.75rem 0.85rem;
  }

  .split {
    gap: 1.5rem;
  }

  .panel {
    padding: 0 1.5rem 1.5rem;
    min-height: 0;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .footer-brand img,
  .footer-logo {
    height: 48px;
    max-width: 180px;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 479px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .header-actions {
    gap: 0.45rem;
  }

  .btn--lang {
    min-width: 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0 !important;
    font-size: 0.78rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .brand img,
  .brand__mark {
    height: 42px;
    max-width: min(140px, 40vw);
  }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1200;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 -12px 40px rgba(10, 18, 36, 0.22);
  padding: 1rem 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner__title {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.cookie-banner__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  max-width: 52rem;
}

.cookie-banner__text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-banner .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-banner .btn--ghost:hover {
  background: #fff;
  color: var(--navy);
}

body.cookie-banner-open {
  padding-bottom: 5.5rem;
}

.cookie-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 220px;
  padding: 1.5rem;
  text-align: center;
  background: var(--sand);
  border: 1px dashed var(--line);
}

.cookie-embed-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.news-card--embed .cookie-embed-placeholder {
  min-height: 280px;
}

@media (max-width: 899px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }

  body.cookie-banner-open {
    padding-bottom: 8.5rem;
  }
}

/* Reference page */
.ref-shell {
  display: grid;
  gap: 0;
}

.ref-shell:not(.ref-shell--select-mode) {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ref-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.15rem;
  margin: 0;
  padding: 0.65rem 0.85rem 0;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.ref-tabs__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
  margin: 0;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.ref-tabs__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.18s var(--ease);
}

.ref-tabs__btn:hover:not(.ref-tabs__btn--active) {
  color: var(--navy);
}

.ref-tabs__btn--active,
.ref-tabs__btn[aria-selected="true"] {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
  margin-bottom: -1px;
  padding-bottom: calc(0.8rem + 1px);
  z-index: 1;
}

.ref-tabs__btn--active::before,
.ref-tabs__btn[aria-selected="true"]::before {
  background: var(--red);
}

.ref-tabs__select {
  display: none;
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 2.75rem 1rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  background-color: var(--sand);
  color: var(--navy);
  border-radius: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111b32' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 0.7rem;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--red);
}

.ref-tabs__select:focus {
  outline: none;
  background-color: var(--ivory);
}

.ref-shell--select-mode {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ref-shell--select-mode .ref-tabs {
  display: none;
}

.ref-shell--select-mode .ref-tabs__select {
  display: block;
}

.ref-panels {
  padding: 2rem 2.25rem 2.5rem;
  background: var(--white);
}

.ref-panel[hidden] {
  display: none !important;
}

.ref-grid--quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
}

.quote-card {
  margin: 0;
  padding: 1.35rem 1.4rem;
  background: var(--sand);
  border-left: 3px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.quote-card__org {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.65;
}

.quote-card__footer {
  display: grid;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.quote-card__footer span {
  color: var(--muted);
}

.ref-groups {
  display: grid;
  gap: 2rem;
}

.ref-group__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.ref-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.ref-list li {
  line-height: 1.6;
}

.ref-stories {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
}

.ref-story {
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.ref-story:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ref-own {
  max-width: 40rem;
}

/* Reference – Projekty (loga + příběhy) */
.ref-projects {
  display: grid;
  gap: 2rem;
}

.ref-projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 1rem;
}

.ref-projects__item {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.ref-projects__item:hover,
.ref-projects__item:focus-visible {
  border-color: var(--navy);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 27, 50, 0.08);
}

.ref-projects__item--active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.ref-projects__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.5rem;
}

.ref-projects__logo img {
  max-height: 4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ref-projects__name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-soft);
}

.ref-projects__item--active .ref-projects__name {
  color: var(--navy);
}

.ref-project-detail {
  padding: 1.5rem 1.6rem;
  background: var(--sand);
  border-left: 3px solid var(--red);
}

.ref-project-detail__hint {
  margin: 0;
  color: var(--muted);
}

.ref-project-detail__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.ref-project-detail__grant {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--navy);
}

.ref-project-detail__grant strong {
  font-weight: 800;
}

.ref-project-detail__grant--missing {
  color: var(--muted);
}

.ref-project-detail__subtitle {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ref-project-detail__block--sep {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.ref-project-detail__label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.ref-project-detail__text {
  margin: 0;
  line-height: 1.7;
  max-width: 52rem;
}

.ref-project-detail__text--muted {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .ref-tabs {
    padding: 0.4rem 0.45rem 0;
  }

  .ref-tabs__btn {
    padding: 0.65rem 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .ref-tabs__btn--active,
  .ref-tabs__btn[aria-selected="true"] {
    padding-bottom: calc(0.65rem + 1px);
  }

  .ref-panels {
    padding: 1.35rem 1.15rem 1.75rem;
  }

  /* Projekty: loga 3×4, popis pod mřížkou */
  .ref-projects__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .ref-project-detail {
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
    padding: 1.15rem 1.2rem;
  }

  .ref-projects__item {
    padding: 0.6rem 0.35rem 0.5rem;
  }

  .ref-projects__logo {
    min-height: 3rem;
  }

  .ref-projects__logo img {
    max-height: 2.5rem;
  }

  .ref-projects__name {
    font-size: 0.65rem;
    line-height: 1.25;
  }
}

