header {
  gap: clamp(18px, 3vw, 42px);
}

header nav {
  min-width: 0;
}

.language-switcher {
  position: relative;
  margin-left: 0;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 92px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #3b82f666;
  border-radius: 13px;
  background: linear-gradient(180deg, #0b203bcc 0%, #06172bcc 100%);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 22px #00000026;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .16s;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  border-color: #60a5fa99;
  background: linear-gradient(180deg, #102f57e6 0%, #09213ee6 100%);
  box-shadow: 0 14px 26px #00000034;
  transform: translateY(-1px);
}

.language-flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  background: #dbeafe;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .5),
    0 0 0 2px rgba(8, 26, 47, .38);
}

.language-flag--de {
  background: linear-gradient(to bottom, #000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.language-flag--en {
  background:
    linear-gradient(28deg, transparent 42%, #fff 42% 49%, #c8102e 49% 55%, #fff 55% 62%, transparent 62%),
    linear-gradient(152deg, transparent 42%, #fff 42% 49%, #c8102e 49% 55%, #fff 55% 62%, transparent 62%),
    linear-gradient(to bottom, transparent 35%, #fff 35% 65%, transparent 65%),
    linear-gradient(to right, transparent 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(to bottom, transparent 43%, #c8102e 43% 57%, transparent 57%),
    linear-gradient(to right, transparent 45%, #c8102e 45% 55%, transparent 55%),
    #012169;
}

.language-flag--hu {
  background: linear-gradient(to bottom, #ce2939 0 33.333%, #fff 33.333% 66.666%, #477050 66.666% 100%);
}

.language-flag--fr {
  background: linear-gradient(to right, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666% 100%);
}

.language-flag--es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.language-flag--it {
  background: linear-gradient(to right, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666% 100%);
}

.language-flag--nl {
  background: linear-gradient(to bottom, #ae1c28 0 33.333%, #fff 33.333% 66.666%, #21468b 66.666% 100%);
}

.language-flag--pl {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}

.language-flag--pt {
  background: linear-gradient(to right, #006600 0 40%, #ff0000 40% 100%);
}

.language-flag--cs {
  background:
    linear-gradient(146deg, #11457e 0 40%, transparent 40%),
    linear-gradient(to bottom, #fff 0 50%, #d7141a 50% 100%);
}

.language-flag--ro {
  background: linear-gradient(to right, #002b7f 0 33.333%, #fcd116 33.333% 66.666%, #ce1126 66.666% 100%);
}

.language-chevron {
  color: var(--muted);
  font-size: 0.72rem;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 300;
  display: none;
  width: 228px;
  max-height: min(72vh, 430px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #3a6da899;
  border-radius: 14px;
  background: linear-gradient(160deg, #0d2847fa 0%, #071b33fa 100%);
  box-shadow: 0 24px 60px #00000088;
}

.language-menu.open {
  display: grid;
  gap: 4px;
}

.language-option {
  display: grid;
  grid-template-columns: 28px 42px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option.active {
  border-color: #3b82f666;
  background: #3b82f614;
}

.language-code {
  color: #c8e1f8;
  font-weight: 800;
}

.language-name {
  color: var(--muted);
  font-size: 0.8rem;
}

.section-eyebrow {
  margin: 0 0 10px;
  color: #33d17a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.program-gallery {
  padding: clamp(64px, 9vh, 110px) clamp(20px, 5vw, 60px);
  background:
    radial-gradient(44rem 24rem at 10% 5%, #3b82f61f, transparent 60%),
    linear-gradient(180deg, #071426 0%, #0a1f38 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.gallery-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #3a6da866;
  border-radius: 999px;
  background: #0b203bcc;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.gallery-tab:hover,
.gallery-tab.active {
  border-color: #55b8ffaa;
  background: #3b82f61c;
  color: var(--text);
  transform: translateY(-1px);
}

.gallery-panel {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  perspective: 1400px;
}

.gallery-panel[hidden] {
  display: none;
}

.gallery-panel.is-entering {
  animation: gallery-panel-in .58s cubic-bezier(.18,.86,.32,1) both;
}

.gallery-panel.is-leaving {
  animation: gallery-panel-out .22s ease both;
  pointer-events: none;
}

.gallery-copy {
  align-self: center;
  min-width: 0;
  max-width: 300px;
  padding: 24px;
  border: 1px solid #3a6da85c;
  border-radius: 18px;
  background: #0e2848a8;
  box-shadow: 0 18px 42px #00000042;
}

.gallery-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 1.6vw, 1.48rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.gallery-copy p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.program-shot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 360px;
  border: 1px solid #d7e0ec;
  border-radius: 14px;
  background: #f6f8fb;
  color: #101827;
  box-shadow:
    0 0 0 1px #ffffff12,
    0 28px 70px #00000066;
  transform: rotateX(5deg);
  transform-origin: center top;
  transition: transform .5s cubic-bezier(.25,.8,.25,1), box-shadow .5s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

.program-shot::after {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.56) 48%, transparent 62%);
  transform: translateX(-64%) skewX(-12deg);
}

.gallery-panel.is-entering .program-shot::after {
  animation: gallery-shot-wipe .82s cubic-bezier(.22,.82,.34,1) .08s both;
}

.gallery-panel:hover .program-shot,
.program-shot:hover {
  box-shadow:
    0 0 0 1px #ffffff16,
    0 30px 80px #00000088,
    0 60px 120px #00000044;
  transform: rotateX(0deg);
}

@keyframes gallery-panel-in {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(26px, 10px, 0) scale(.975) rotateX(6deg);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  }
}

@keyframes gallery-panel-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(-14px, -4px, 0) scale(.985);
  }
}

@keyframes gallery-shot-wipe {
  0% {
    opacity: 0;
    transform: translateX(-64%) skewX(-12deg);
  }
  18% {
    opacity: .62;
  }
  100% {
    opacity: 0;
    transform: translateX(64%) skewX(-12deg);
  }
}

.branchen-card .bc-img,
.dd-thumb {
  perspective: 1400px;
}

.branchen-card .bc-img svg,
.dd-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotateX(5deg);
  transform-origin: center top;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

.branchen-card:hover .bc-img svg,
.dd-card:hover .dd-thumb svg {
  transform: rotateX(0deg);
}

.shot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #d9e0ea;
  background: #fbfcfe;
}

.shot-header strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.shot-header span:not(.shot-icon) {
  display: block;
  margin-top: 4px;
  color: #5f6c7d;
  font-size: 0.82rem;
}

.shot-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  border: 1px solid #36a269;
  border-radius: 14px;
  color: #287a55;
  font-size: 1.1rem;
}

.shot-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr)) auto;
  gap: 10px;
  padding: 16px 20px 10px;
  align-items: center;
}

.shot-filters span,
.shot-filters button {
  height: 30px;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  background: #fff;
}

.shot-filters button {
  min-width: 54px;
  color: #526071;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.shot-table {
  display: grid;
  padding: 0 20px 20px;
  min-width: 740px;
}

.shot-table-docs {
  padding-top: 22px;
}

.shot-row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-bottom: 1px solid #dbe2ec;
  font-size: 0.86rem;
}

.shot-head {
  min-height: 38px;
  color: #18263a;
  background: #f2f5f9;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shot-row.selected {
  background: #dce2ee;
}

.shot-row.danger {
  background: #f5cfd4;
}

.shot-table-docs .shot-row {
  grid-template-columns: 0.7fr 2.5fr 0.7fr 1fr 1.5fr 0.9fr;
}

.shot-table-projects .shot-row {
  grid-template-columns: 1.5fr 1.1fr 1.6fr 0.9fr 0.7fr 0.8fr;
}

.shot-table-wpqr .shot-row {
  grid-template-columns: 1.35fr 1.35fr 1.25fr 1fr 0.8fr;
}

.shot-table-wps .shot-row {
  grid-template-columns: 1.05fr 0.7fr 1.8fr 1fr 1fr 1fr 0.9fr;
}

.shot-table-consumables .shot-row {
  grid-template-columns: 1.2fr 1fr 0.8fr 1.3fr 1.1fr 0.7fr 0.8fr;
}

.shot-table-people .shot-row {
  grid-template-columns: 0.9fr 1.35fr 1.4fr 0.8fr 1.15fr 0.8fr 0.8fr;
}

.shot-group {
  padding: 11px 14px;
  background: #304257;
  color: #fff;
  font-weight: 800;
}

.badge {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 7px;
  background: #1f4268;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.ok {
  background: #287a55;
}

.badge.done {
  background: #5a6676;
}

.shot-actions {
  display: inline-flex;
  gap: 7px;
  color: #526071;
}

.shot-actions span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border: 1px solid #b9c5d4;
  border-radius: 9px;
  font-size: 0.8rem;
}

.app-shot {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  background: #e8eef6;
}

.shot-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 14px;
  background: linear-gradient(180deg, #132a47, #0c2139);
  color: #d9e7f7;
}

.shot-logo {
  margin-bottom: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  background: #081526;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.shot-sidebar span {
  padding: 8px 10px;
  border-radius: 9px;
  color: #c6d5e8;
  font-size: 0.82rem;
  font-weight: 700;
}

.shot-sidebar span:first-of-type {
  background: #ffffff14;
}

.shot-main {
  min-width: 0;
  padding: 18px;
}

.shot-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e8888d;
  border-radius: 8px;
  background: #f9d5d8;
  color: #682127;
  font-size: 0.82rem;
  font-weight: 800;
}

.shot-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.shot-stats div {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dce3ec;
  box-shadow: 0 6px 16px #11182714;
}

.shot-stats strong {
  min-height: 20px;
}

.shot-stats span {
  color: #18263a;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.shot-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shot-card {
  min-height: 210px;
  padding: 14px;
  border: 1px solid #dce3ec;
  background: #fff;
}

.shot-card > strong {
  display: block;
  margin-bottom: 16px;
  font-size: 0.84rem;
}

.donut-demo {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#1f73f0 0 58%, #73808e 58% 100%);
  position: relative;
}

.donut-demo::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: #fff;
}

.progress-demo {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(#28c99f 0 40%, #dff7ef 40% 100%);
}

.progress-ring::before {
  content: "";
  position: absolute;
}

.progress-bars {
  display: grid;
  gap: 12px;
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f73f0, #28c99f 46%, #c8d2df 46%);
}

.mask {
  display: inline-block;
  width: 72px;
  max-width: 100%;
  height: 0.82em;
  border-radius: 999px;
  background: #05070b;
  box-shadow: inset 0 0 0 1px #ffffff10;
  vertical-align: -0.08em;
}

.mask.w-xs { width: 34px; }
.mask.w-sm { width: 54px; }
.mask.w-md { width: 92px; }
.mask.w-lg { width: 138px; }
.mask.w-xl { width: 190px; }

.privacy-note {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.form-success .check {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #14532d66;
  color: var(--ok);
  font-size: 2rem;
  font-weight: 900;
}

@media (max-width: 1120px) {
  header {
    padding-inline: 18px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding-inline: 10px;
  }
}

@media (max-width: 920px) {
  header {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding-block: 10px;
  }

  header nav {
    flex: 1 1 100%;
    justify-content: flex-end;
    overflow: visible;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
  }

  .gallery-copy {
    padding: 20px;
    max-width: none;
  }

  .program-shot {
    overflow-x: auto;
  }

  .app-shot {
    min-width: 760px;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: clip;
  }

  .hero > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 7.8vw, 2.15rem);
    overflow-wrap: break-word;
  }

  .hero h1 em,
  .hero-sub {
    overflow-wrap: anywhere;
  }

  .hero h1 em {
    display: inline-block;
    font-size: 0.82em;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .reg-card {
    width: 100%;
  }

  .language-button {
    min-width: 86px;
    min-height: 40px;
    padding-inline: 10px;
  }

  .language-menu {
    position: fixed;
    top: 74px;
    right: 14px;
    width: min(260px, calc(100vw - 28px));
  }

  .gallery-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .gallery-tab {
    white-space: nowrap;
  }

  .shot-filters {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) auto;
    min-width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-panel.is-entering,
  .gallery-panel.is-leaving,
  .gallery-panel.is-entering .program-shot::after {
    animation: none;
  }
}
