:root {
  --black: #050505;
  --orange: #FF5B35;
  --white: #FFFFFF;
  --gray-1: #F2F1F0;
  --ink-soft: rgba(5, 5, 5, 0.68);
  --line-soft: rgba(5, 5, 5, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 30px 80px rgba(5, 5, 5, 0.09);
  --orange-glow: 0 20px 48px rgba(255, 91, 53, 0.28);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  /* Theme tokens (light defaults) */
  --bg-page: #ffffff;
  --bg-page-soft: #fafafa;
  --bg-section-light: #ffffff;
  --bg-section-gray: #F2F1F0;
  --text-default: #050505;
  --text-soft: rgba(5, 5, 5, 0.68);
  --text-muted: rgba(5, 5, 5, 0.5);
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --border-soft: rgba(5, 5, 5, 0.08);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg-page: #0a0a0c;
  --bg-page-soft: #111114;
  --bg-section-light: #111114;
  --bg-section-gray: #16171b;
  --text-default: #f5f5f7;
  --text-soft: rgba(245, 245, 247, 0.72);
  --text-muted: rgba(245, 245, 247, 0.5);
  --surface-card: #1a1b20;
  --surface-glass: rgba(20, 21, 26, 0.7);
  --border-soft: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 21, 26, 0.66);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --line-soft: rgba(255, 255, 255, 0.08);
  --ink-soft: rgba(245, 245, 247, 0.7);
}

/* Smooth theme transition for primary surfaces */
body,
.site-header,
.site-footer,
.section-light,
.section-gray,
.feature-card,
.reference-card,
.contact-form,
.cta-card,
.theme-toggle {
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Stable scrollbar — prevents layout shift when content height changes */
  overflow-y: scroll;
  /* Better text rendering on high-DPI screens */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Tap highlight */
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  color: var(--black);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 91, 53, 0.045), transparent 24vw),
    linear-gradient(180deg, #ffffff 0%, #fafafa 54%, #ffffff 100%);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.62;
  opacity: 1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

body.menu-open {
  overflow: hidden;
}

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

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

:focus-visible {
  outline: 3px solid rgba(255, 91, 53, 0.42);
  outline-offset: 5px;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1,
.h1 {
  font-family: "Epilogue", sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

h2,
.h2 {
  font-family: "Epilogue", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

h3,
.h3 {
  font-family: "Epilogue", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

h4,
.h4 {
  font-family: "Epilogue", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

h5,
.h5 {
  font-family: "Epilogue", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

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

.section-light {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #f8f9fa 0%, #f3f4f5 100%);
}

.section-gray {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.92), transparent 32%),
    linear-gradient(135deg, #f5f4f3 0%, var(--gray-1) 48%, #ebecea 100%);
}

.section-label {
  color: var(--orange);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 186px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease, color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 42%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 520ms var(--ease-out);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--orange-glow);
}

/* Note: motion-ready class previously disabled CSS transitions because
   Motion library animated these elements via JS. Reveal animation is
   now CSS-only (Motion-driven reveal caused Safari flicker), so we keep
   CSS transitions active even when Motion lib is loaded. Hover
   animations on buttons/cards still use CSS only. */

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff744f);
  color: var(--white);
}

.btn-primary:hover {
  background: #f14b25;
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange);
  border-color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.center {
  display: flex;
  justify-content: center;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  margin: 18px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 28px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 25px rgba(5, 5, 5, 0.025);
  backdrop-filter: blur(12px) saturate(1.08);
  transition: height 240ms ease, box-shadow 240ms ease, background 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  height: 76px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 9px 30px rgba(5, 5, 5, 0.045);
  backdrop-filter: blur(13px) saturate(1.1);
}

.site-logo {
  width: 196px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
}

.site-nav > a:not(.btn),
.footer-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav > a:not(.btn)::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav > a:not(.btn):hover,
.site-nav > a:not(.btn).active,
.footer-nav a:hover {
  color: var(--orange);
}

.site-nav > a:not(.btn):hover::after,
.site-nav > a:not(.btn).active::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-divider {
  width: 1px;
  height: 38px;
  background: #d4d4d4;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 17px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  color: var(--black);
  transition: color 180ms ease, transform 180ms ease;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 180ms ease;
}

.social-links a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.social-links a:hover img {
  filter: brightness(0) saturate(100%) invert(48%) sepia(91%) saturate(2771%) hue-rotate(339deg) brightness(104%) contrast(101%);
}

.nav-cta {
  min-width: 169px;
}

.nav-cta.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: var(--black);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 990px;
  overflow: hidden;
  padding: 186px 24px 0;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 92px 0 auto;
  z-index: 0;
  height: 420px;
  background:
    radial-gradient(circle at 38% 42%, rgba(255, 91, 53, 0.065), transparent 28%),
    radial-gradient(circle at 62% 50%, rgba(255, 255, 255, 0.9), transparent 34%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(5, 5, 5, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 76%, transparent 100%);
  pointer-events: none;
}

.hero-slider {
  padding: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 186px 24px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease, transform 900ms var(--ease-out);
  transform: scale(1.012);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-slide::before {
  bottom: -165px;
  z-index: 1;
  width: min(1080px, 82vw);
  height: 470px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 50%, rgba(255, 91, 53, 0.22), transparent 34%),
    radial-gradient(circle at 67% 44%, rgba(255, 116, 79, 0.18), transparent 32%),
    radial-gradient(circle at 50% 70%, rgba(255, 91, 53, 0.11), transparent 46%);
  filter: blur(42px);
  opacity: 0.52;
  animation: heroGradientDrift 8.5s ease-in-out infinite;
}

.hero-slide::after {
  bottom: -8px;
  z-index: 1;
  width: min(560px, 52vw);
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 91, 53, 0.16), transparent 70%);
  filter: blur(34px);
  opacity: 0.42;
  animation: heroGradientPulse 7.8s ease-in-out infinite;
}

.hero-slide:nth-of-type(2)::before {
  bottom: -118px;
  width: min(1260px, 90vw);
  height: 390px;
  animation-delay: -2.2s;
}

.hero-slide:nth-of-type(2)::after {
  bottom: 6px;
  width: min(760px, 68vw);
  animation-delay: -2.2s;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero .section-label {
  margin-bottom: 25px;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.12;
}

.platform-badges {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 57px;
}

.platform-badges img {
  width: 74px;
  height: 74px;
  transition: transform 260ms var(--ease-out);
}

.platform-badges img:hover {
  transform: translateY(-6px);
}

.web-badges img {
  width: 86px;
  height: 86px;
}

.hero-brace {
  position: absolute;
  top: 181px;
  z-index: 1;
  width: 72px;
  height: auto;
}

.hero-brace-left {
  left: calc(50% - 532px);
}

.hero-brace-right {
  right: calc(50% - 532px);
}

.hero-phone {
  position: absolute;
  left: 50%;
  bottom: -205px;
  z-index: 2;
  width: 298px;
  filter: drop-shadow(0 22px 32px rgba(5, 5, 5, 0.18));
  transform: translate3d(-50%, 0, 0);
  transition: transform 720ms var(--ease-out), opacity 720ms ease;
}

.hero-phone.reveal {
  opacity: 0;
  transform: translate3d(-50%, 34px, 0);
}

.hero-phone.reveal.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.hero-laptop {
  position: absolute;
  left: 50%;
  bottom: -95px;
  z-index: 2;
  width: 1080px;
  max-width: none;
  filter: drop-shadow(0 26px 34px rgba(5, 5, 5, 0.16));
  transform: translate3d(-50%, 0, 0);
  transition: transform 720ms var(--ease-out), opacity 720ms ease;
}

.hero-laptop.reveal {
  opacity: 0;
  transform: translate3d(-50%, 34px, 0);
}

.hero-laptop.reveal.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(5, 5, 5, 0.07);
  transform: translateX(-50%);
}

.hero-indicators button {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.2);
  cursor: pointer;
  transition: width 260ms var(--ease-out), background 260ms ease, transform 260ms ease;
}

.hero-indicators button::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.hero-indicators button:hover {
  background: rgba(255, 91, 53, 0.58);
  transform: scale(1.12);
}

.hero-indicators button.is-active {
  width: 34px;
  background: var(--orange);
  transform: none;
}

@keyframes heroGradientDrift {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translate3d(-18px, 10px, 0) scale(0.96);
  }

  50% {
    opacity: 0.62;
    transform: translateX(-50%) translate3d(22px, -12px, 0) scale(1.04);
  }
}

@keyframes heroGradientPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.92);
  }

  50% {
    opacity: 0.46;
    transform: translateX(-50%) scale(1.06);
  }
}

.split-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 80vh;
  overflow: hidden;
  background: var(--white);
}

body[data-page="kontakt"] .split-hero,
body[data-page="reference"] .split-hero,
body[data-page="nagrade"] .split-hero {
  height: 80vh;
  min-height: 720px;
}

.split-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(100% - 96px, 650px);
  margin-left: auto;
  padding: 80px 0 0;
}

.split-hero-copy .section-label {
  margin-bottom: 29px;
}

.split-hero-copy h1,
.split-hero-copy h2 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.split-hero-copy .btn {
  margin-top: 67px;
}

.split-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.split-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-hero-media.awards-hero img {
  width: 84%;
  height: auto;
  align-self: flex-end;
  object-fit: contain;
}

.split-hero-media.contact-hero img {
  width: 106%;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
}

.service-section {
  padding: 214px 0 190px;
}

.service-mobile {
  padding-top: 320px;
}

.service-web {
  padding-top: 236px;
  padding-bottom: 205px;
}

.service-page-mobile {
  padding-top: 330px;
}

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: 82px;
}

.service-intro.reverse {
  grid-template-columns: 1.12fr 1fr;
  gap: 94px;
}

.service-copy {
  max-width: 514px;
}

.service-copy .section-label {
  margin-bottom: 11px;
}

.service-copy p:not(.section-label) {
  max-width: 510px;
  margin-top: 36px;
  color: var(--ink-soft);
}

.service-image {
  display: flex;
  justify-content: center;
}

.service-mobile .service-image img {
  width: 435px;
  filter: drop-shadow(0 22px 24px rgba(5, 5, 5, 0.18));
}

.laptop-image img {
  width: 660px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 86px;
  margin-top: 145px;
}

.feature-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 39px;
}

.feature-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46));
  box-shadow: 0 20px 70px rgba(5, 5, 5, 0.045);
  backdrop-filter: blur(18px);
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease, border-color 280ms ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 91, 53, 0.22);
  box-shadow: 0 34px 90px rgba(5, 5, 5, 0.09);
}

.feature-card h5 {
  margin-bottom: 22px;
}

.feature-card p {
  max-width: 349px;
  color: var(--ink-soft);
}

.service-section .center {
  margin-top: 100px;
}

.alternating-section {
  padding: 80px 0 250px;
  background: var(--white);
}

.alternating-row,
.award-row,
.contact-info-grid,
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 120px;
}

.alternating-row + .alternating-row,
.award-row + .award-row {
  margin-top: 230px;
}

.media-placeholder,
.reference-placeholder {
  width: 100%;
  border-radius: 56px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(242, 241, 240, 0.9));
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
}

.media-placeholder {
  min-height: 500px;
}

.alternating-copy,
.award-copy {
  max-width: 520px;
}

.alternating-copy .section-label,
.award-copy .section-label {
  margin-bottom: 12px;
}

.alternating-copy p:not(.section-label),
.award-copy p:not(.section-label) {
  margin-top: 38px;
  color: var(--ink-soft);
}

.award-copy a {
  display: inline-flex;
  margin-top: 39px;
  color: var(--orange);
  font-size: 18px;
}

.references-section {
  padding: 231px 0 232px;
  background: var(--white);
}

.references-page {
  padding-top: 263px;
}

/* Filter tabs — minimalist underline style */
.filter-tabs {
  position: relative;
  display: inline-flex;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 101px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(5, 5, 5, 0.08);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 24px rgba(5, 5, 5, 0.04);
  backdrop-filter: blur(14px);
  justify-content: center;
}

.filter-tabs-wrap {
  display: flex;
  justify-content: center;
}

.filter-tabs button {
  position: relative;
  z-index: 1;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(5, 5, 5, 0.6);
  font: 600 14px/1 "Inter", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: color 240ms ease;
}

.filter-tabs button:hover {
  color: var(--black);
}

.filter-tabs button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #ff744f);
  box-shadow: 0 6px 18px rgba(255, 91, 53, 0.28);
  transition: color 240ms ease, background 320ms ease, box-shadow 320ms ease;
}

.section-heading {
  text-align: center;
}

.section-heading .section-label {
  margin-bottom: 8px;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px 32px;
  margin-top: 112px;
}

.reference-card img {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--gray-1);
  box-shadow: 0 20px 70px rgba(5, 5, 5, 0.055);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease, filter 300ms ease;
}

.reference-card:hover img {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 34px 84px rgba(5, 5, 5, 0.12);
  filter: saturate(1.04);
}

.reference-card h5 {
  margin-top: 23px;
}

.reference-card p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
}

.reference-card.is-hidden {
  display: none;
}

.reference-placeholder {
  aspect-ratio: 1 / 1.13;
  border-radius: 18px;
}

.awards-section {
  padding: 270px 0 260px;
  background: var(--white);
}

.awards-section .media-placeholder {
  min-height: 520px;
}

.contact-info-section {
  padding: 185px 0 210px;
  background: var(--white);
}

.contact-info-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 76px;
}

.contact-card {
  position: relative;
  min-height: 590px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--orange), #ff744f);
  box-shadow: var(--orange-glow);
}

.contact-card > img:first-child {
  position: absolute;
  left: 40px;
  bottom: 0;
  z-index: 2;
  width: 520px;
  max-width: 92%;
}

.contact-card-brace {
  position: absolute;
  top: 156px;
  z-index: 1;
  width: 72px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  pointer-events: none;
}

.contact-card-brace-left {
  left: 72px;
}

.contact-card-brace-right {
  right: 72px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 590px; /* match .contact-card */
  padding: 34px;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
}

.contact-details h3 {
  margin-bottom: 58px;
}

.contact-details p + p {
  margin-top: 36px;
}

.contact-details p {
  color: var(--ink-soft);
}

.contact-details .social-links {
  margin-top: 52px;
}

.contact-form-section {
  padding: 150px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 91, 53, 0.06), transparent 28%),
    linear-gradient(180deg, #f6f6f5 0%, var(--gray-1) 100%);
}

.contact-form-grid {
  align-items: start;
}

.contact-form-copy {
  max-width: 640px;
}

.contact-form-copy .section-label {
  margin-bottom: 22px;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 74px;
  padding: 42px;
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
  box-shadow: 0 28px 70px rgba(5, 5, 5, 0.07);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form label span {
  color: rgba(5, 5, 5, 0.62);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 17px 18px;
  color: var(--black);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 91, 53, 0.12);
}

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

.form-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 13px;
  color: rgba(5, 5, 5, 0.66);
  font-size: 13px;
  line-height: 1.55;
}

.form-consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--orange);
}

.contact-form .form-consent span {
  color: inherit;
  font-size: inherit;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 14px;
}

.contact-form-image {
  position: relative;
  min-height: 620px;
  overflow: visible;
}

.contact-form-image img {
  position: absolute;
  right: -180px;
  bottom: -160px;
  width: 880px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(5, 5, 5, 0.18));
}

/* ── 404 page · minimalistic ── */
/* ── 404 page · minimalistic ── */
body[data-page="404"] { background: var(--white); }

.error404 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  padding: 80px 24px 120px;
}

.error404-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  animation: error404FadeIn 700ms cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes error404FadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Number with brackets */
.error404-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  margin: 0;
  line-height: 1;
}

.error404-digits {
  font-family: "Epilogue", sans-serif;
  font-weight: 500;
  font-size: clamp(120px, 18vw, 220px);
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 0.9;
  user-select: none;
}

.error404-brace {
  width: clamp(34px, 5vw, 64px);
  height: auto;
  opacity: 0.92;
  filter: brightness(0) saturate(100%) invert(48%) sepia(91%) saturate(2771%) hue-rotate(339deg) brightness(104%) contrast(101%);
  animation: error404BraceFloat 4s ease-in-out infinite;
}
.error404-brace-r { animation-delay: 0.4s; }

@keyframes error404BraceFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.error404-text {
  margin: 28px 0 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(5, 5, 5, 0.65);
  max-width: 460px;
}

/* Back button — uses standard .btn .btn-primary, just adds spacing */
.error404-back {
  margin-top: 40px;
}

@media (max-width: 560px) {
  .error404 { padding: 60px 24px 80px; }
  .error404-text { font-size: 16px; margin-top: 22px; }
  .error404-back { margin-top: 32px; }
}

.clients-section {
  padding: 151px 0 185px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 53px 72px;
  margin-top: 97px;
}

.clients-grid img {
  max-width: 163px;
  max-height: 62px;
  margin: auto;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.clients-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-4px) scale(1.04);
}

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 394px;
  margin-top: 160px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, var(--orange) 0%, #ff5837 56%, #ff6b48 100%);
  color: var(--white);
  box-shadow: var(--orange-glow);
  isolation: isolate;
}

.cta-card::after {
  content: "";
  position: absolute;
  right: clamp(70px, 10vw, 132px);
  top: 77px;
  z-index: 1;
  width: 72px;
  aspect-ratio: 72 / 299;
  background: url("assets/graphic/Graphic element right.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.94;
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 3;
  width: 54%;
  padding-left: 103px;
}

.cta-copy p {
  max-width: 594px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.84);
}

.cta-copy .btn {
  margin-top: 43px;
}

.cta-brace {
  position: absolute;
  right: clamp(330px, 31vw, 390px);
  top: 77px;
  z-index: 1;
  width: 72px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
  pointer-events: none;
}

.cta-hand {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  width: 520px;
  max-width: none;
  pointer-events: none;
}

.site-footer {
  background: var(--gray-1);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.6fr;
  gap: 80px;
  padding: 82px 0 186px;
  font-style: normal;
}

.footer-logo {
  width: 171px;
}

.footer-main address {
  font-style: normal;
}

.footer-main a {
  transition: color 180ms ease;
}

.footer-main a:hover {
  color: var(--orange);
}

.footer-nav {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.footer-bottom {
  border-top: 1px solid #d4d4d4;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 108px;
  font-size: 12px;
}

.footer-bottom-inner > p {
  justify-self: start;
}

.footer-bottom-inner > .social-links {
  justify-self: center;
}

.footer-legal {
  justify-self: end;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  transition: color 200ms ease;
}
.footer-legal:hover { color: var(--orange); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 720ms ease, transform 720ms var(--ease-out);
}

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

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: var(--bg-page);
  opacity: 0;
  transition: opacity 220ms ease;
}

body.is-transitioning .page-transition {
  opacity: 1;
}

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

  .hero-slide::before,
  .hero-slide::after {
    animation: none !important;
    opacity: 0.28;
  }
}

@media (max-width: 1100px) {
  h1,
  .h1 {
    font-size: clamp(48px, 8vw, 80px);
  }

  h2,
  .h2 {
    font-size: clamp(38px, 6vw, 56px);
  }

  .split-hero-copy h2 {
    font-size: clamp(38px, 6vw, 56px);
  }

  .hero-brace-left {
    left: 56px;
  }

  .hero-brace-right {
    right: 56px;
  }

  .service-intro,
  .service-intro.reverse {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .service-copy {
    max-width: 650px;
  }

  .feature-grid,
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-hero {
    grid-template-columns: 1fr;
    min-height: 80vh;
  }

  body[data-page="kontakt"] .split-hero {
    height: auto;
    min-height: 80vh;
  }

  .split-hero-copy {
    width: min(100% - 64px, 700px);
    min-height: 620px;
    margin-inline: auto;
    padding-top: 120px;
  }

  .split-hero-media {
    min-height: 560px;
  }

  .alternating-row,
  .award-row,
  .contact-info-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .alternating-row.reverse .alternating-copy,
  .award-row.reverse .award-copy {
    order: -1;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-copy {
    width: 62%;
    padding-left: 56px;
  }

  .cta-hand {
    width: 450px;
  }

  .cta-brace {
    right: 290px;
    top: 92px;
    width: 56px;
  }

  .cta-card::after {
    right: 64px;
    top: 92px;
    width: 56px;
  }
}

@media (max-width: 820px) {
  /* ── Mobile header — same glass pill as desktop, smaller ── */
  .site-header {
    position: sticky;
    top: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    margin: 12px 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 20px;
    padding: 0 16px 0 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 25px rgba(5, 5, 5, 0.04);
    backdrop-filter: blur(12px) saturate(1.08);
    transform: none;
    transition: height 220ms ease, box-shadow 220ms ease, background 220ms ease;
  }

  .site-header.is-scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 9px 28px rgba(5, 5, 5, 0.06);
    backdrop-filter: blur(14px) saturate(1.1);
  }

  .logo-link {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
  }

  .site-logo {
    width: 142px;
    height: auto;
    display: block;
  }

  /* Hamburger — classic 3-line, animates to X */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 102;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background 200ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(5, 5, 5, 0.05);
  }

  .nav-toggle:active {
    transform: scale(0.92);
  }

  .nav-toggle.is-open {
    background: rgba(255, 91, 53, 0.1);
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 999px;
    margin: 0;
    transform-origin: center;
    transition:
      transform 360ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
      opacity 200ms ease,
      background 220ms ease;
  }

  /* Open state → form X */
  .nav-toggle.is-open span { background: var(--orange); }
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Backdrop (sits BELOW header so hamburger stays clickable) ── */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(5, 5, 5, 0.45);
    backdrop-filter: blur(6px) saturate(0.9);
    animation: backdropFade 240ms ease both;
  }

  /* When menu is open: body becomes position:fixed for scroll lock.
     Header was sticky → would get pulled off-screen with body offset.
     Switch to position:fixed at viewport top to keep header anchored. */
  body.menu-open .site-header {
    position: fixed !important;
    top: 12px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 24px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 100 !important;
  }
  @keyframes backdropFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  body.menu-open { overflow: hidden; }

  /* ── Popup card menu — anchored 12px below header, right-aligned ── */
  .site-nav {
    position: fixed;
    top: calc(12px + 64px + 12px); /* header top + height + 12px gap */
    right: 24px;
    left: 24px;
    bottom: auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    max-width: 420px;
    margin-left: auto;
    min-height: 48vh;
    max-height: calc(100svh - 120px);
    padding: 22px 22px 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow:
      0 24px 60px rgba(5, 5, 5, 0.2),
      0 6px 20px rgba(5, 5, 5, 0.08);
    backdrop-filter: blur(16px) saturate(1.1);
    transform-origin: top right;
    transform: translateY(-18px) scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition:
      transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 240ms ease,
      visibility 0s linear 360ms;
  }

  .site-nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 280ms ease,
      visibility 0s linear 0s;
  }

  /* Stagger fade-in of menu items when popup opens */
  .site-nav > a:not(.btn),
  .site-nav .nav-cta,
  .site-nav .social-links {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 320ms ease,
      transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .site-nav.is-open > a:not(.btn),
  .site-nav.is-open .nav-cta,
  .site-nav.is-open .social-links {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open > a:not(.btn):nth-of-type(1) { transition-delay: 80ms; }
  .site-nav.is-open > a:not(.btn):nth-of-type(2) { transition-delay: 140ms; }
  .site-nav.is-open > a:not(.btn):nth-of-type(3) { transition-delay: 200ms; }
  .site-nav.is-open .social-links { transition-delay: 260ms; }
  .site-nav.is-open .nav-cta { transition-delay: 320ms; }

  /* Header shrinks 4px when scrolled — adjust popup position to match */
  body:has(.site-header.is-scrolled) .site-nav {
    top: calc(12px + 60px + 12px);
  }

  /* Menu rows — chevron right, divider underneath */
  .site-nav > a:not(.btn) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 16px 6px;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid rgba(5, 5, 5, 0.08);
    transition: color 180ms ease, padding-left 240ms var(--ease-spring);
  }

  .site-nav > a:not(.btn) + a:not(.btn) { margin-top: 0; }

  .site-nav > a:not(.btn)::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 12px;
    order: 2;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.83 5l5 5-5 5'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.83 5l5 5-5 5'/></svg>") center/contain no-repeat;
    opacity: 0.45;
    transition: transform 280ms var(--ease-spring), opacity 200ms ease;
  }

  .site-nav > a:not(.btn):hover,
  .site-nav > a:not(.btn).active {
    color: var(--orange);
    padding-left: 10px;
  }

  .site-nav > a:not(.btn):hover::before,
  .site-nav > a:not(.btn).active::before {
    opacity: 1;
    transform: translateX(3px);
  }

  .site-nav > a:not(.btn)::after { display: none; }

  .nav-divider { display: none; }

  /* Social + CTA inside popup — pushed to bottom */
  .site-nav .social-links {
    position: static;
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: auto 0 0; /* margin-top: auto pushes to bottom */
    padding: 22px 0 0;
    transform: none;
  }

  /* Remove bottom border from the last text link (just before social icons) */
  .site-nav > a:not(.btn):has(+ .nav-divider),
  .site-nav > a:not(.btn):nth-of-type(3) {
    border-bottom: 0;
  }

  .site-nav .social-links a {
    width: 22px;
    height: 22px;
    opacity: 1;
    transition: transform 200ms ease;
  }
  .site-nav .social-links a:hover { transform: translateY(-2px); }

  .site-nav .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    /* uses standard .btn .btn-primary visual — only override layout */
  }

  .hero {
    min-height: 880px;
    padding-top: 124px;
  }

  .hero-slider {
    padding-top: 0;
  }

  .hero-slide {
    padding-top: 124px;
  }

  .hero-brace {
    display: none;
  }

  .platform-badges {
    margin-top: 38px;
    position: relative;
    z-index: 4; /* keep above phone */
  }

  .hero-phone {
    width: 210px;
    bottom: -90px;
  }

  .hero-laptop {
    width: 650px;
    bottom: -45px;
  }

  .hero-slide::before {
    bottom: -125px;
    width: 620px;
    height: 320px;
    opacity: 0.42;
  }

  .hero-slide::after {
    bottom: 18px;
    width: 360px;
    height: 130px;
  }

  .hero-indicators {
    bottom: 28px;
    padding: 8px 10px;
    gap: 10px;
  }

  .hero-indicators button {
    width: 8px;
    height: 8px;
  }

  .hero-indicators button.is-active {
    width: 28px;
  }

  .service-section,
  .service-mobile,
  .service-web,
  .references-section,
  .references-page,
  .awards-section,
  .alternating-section,
  .contact-info-section,
  .contact-form-section,
  .clients-section {
    padding-block: 110px;
  }

  .service-mobile {
    padding-top: 190px;
  }

  .feature-grid,
  .references-grid,
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .references-grid,
  .clients-grid,
  .feature-grid {
    margin-top: 64px;
  }

  .filter-tabs {
    margin-bottom: 64px;
  }

  .media-placeholder,
  .awards-section .media-placeholder {
    min-height: 360px;
    border-radius: 32px;
  }

  .contact-card {
    min-height: 460px;
  }

  .contact-card > img:first-child {
    left: 22px;
    width: 470px;
  }

  .contact-card-brace {
    top: 118px;
    width: 54px;
  }

  .contact-card-brace-left {
    left: 38px;
  }

  .contact-card-brace-right {
    right: 38px;
  }

  .contact-form-image {
    min-height: 320px;
    margin-top: 32px;
  }

  .contact-form-image img {
    position: absolute;
    right: -120px;
    bottom: -80px;
    width: 600px;
    max-width: none;
  }

  .error-card {
    padding: 58px 32px;
    border-radius: 34px;
  }

  .error-brace {
    top: 90px;
    width: 48px;
  }

  .error-brace-left {
    left: 34px;
  }

  .error-brace-right {
    right: 34px;
  }

  .error-visual {
    min-height: 220px;
  }

  .error-visual img {
    right: -92px;
    width: 260px;
  }

  .feature-card p {
    max-width: none;
  }

  .cta-card {
    min-height: 720px;
    align-items: flex-start;
    border-radius: 32px;
  }

  .cta-copy {
    width: 100%;
    padding: 56px 36px 0;
  }

  /* Hand centered at bottom of card */
  .cta-hand {
    right: auto;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 500px;
    max-width: 110%;
  }

  /* Left bracket — symmetric, around hand */
  .cta-brace {
    right: auto;
    left: 32px;
    top: auto;
    bottom: 90px;
    width: 60px;
    height: auto;
  }

  /* Right bracket — symmetric mirror */
  .cta-card::after {
    left: auto;
    right: 32px;
    top: auto;
    bottom: 90px;
    width: 60px;
    aspect-ratio: 72 / 299;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 82px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 48px, 1180px); /* 24px gutter each side */
  }

  h1,
  .h1 {
    font-size: 44px;
  }

  .split-hero-copy h1,
  .split-hero-copy h2 {
    font-size: 40px;
    line-height: 1.14;
  }

  h2,
  .h2 {
    font-size: 36px;
  }

  h3,
  .h3 {
    font-size: 34px;
  }

  .section-label {
    font-size: 16px;
  }

  .hero {
    min-height: 800px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .platform-badges img {
    width: 64px;
    height: 64px;
  }

  .web-badges img {
    width: 72px;
    height: 72px;
  }

  .hero-indicators {
    bottom: 24px;
  }

  .hero-slide::before {
    bottom: -120px;
    width: 520px;
    height: 285px;
  }

  .hero-slide::after {
    bottom: 24px;
    width: 300px;
    height: 110px;
  }

  .service-copy p:not(.section-label) {
    margin-top: 25px;
  }

  .references-grid {
    gap: 56px;
  }

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

  .split-hero-copy {
    width: min(100% - 48px, 700px); /* 24px gutter each side */
  }

  .filter-tabs {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
  }

  .filter-tabs button {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 13px;
  }

  .clients-grid img {
    max-width: 130px;
  }

  .contact-form {
    padding: 28px;
  }

  .contact-form-image img {
    right: -80px;
    bottom: -50px;
    width: 460px;
  }

  .error-hero {
    padding-inline: 16px;
  }

  .error-card {
    padding: 48px 22px;
  }

  .error-brace {
    width: 40px;
  }

  .error-brace-left {
    left: 20px;
  }

  .error-brace-right {
    right: 20px;
  }

  .error-visual {
    min-width: 100%;
  }

  .error-visual img {
    right: -120px;
    bottom: -62px;
    width: 230px;
  }

  .cta-card {
    margin-top: 95px;
    min-height: 700px;
    border-radius: 28px;
  }

  .cta-copy {
    padding: 50px 28px 0;
  }

  .cta-copy p {
    margin-top: 22px;
  }

  .cta-copy .btn {
    margin-top: 30px;
  }

  /* Hand centered at bottom */
  .cta-hand {
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 440px;
    max-width: 110%;
  }

  /* Left bracket */
  .cta-brace {
    left: 24px;
    right: auto;
    bottom: 80px;
    width: 50px;
  }

  /* Right bracket */
  .cta-card::after {
    left: auto;
    right: 24px;
    top: auto;
    bottom: 80px;
    width: 50px;
  }

  .footer-bottom-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    text-align: center;
  }
  .footer-bottom-inner > p,
  .footer-bottom-inner > .social-links,
  .footer-legal {
    justify-self: center;
  }
}

/* ─────────────────────────────────────────────
   Theme toggle button (bottom-left fixed)
   ───────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--text-default);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(5, 5, 5, 0.12);
  backdrop-filter: blur(14px) saturate(1.1);
  overflow: hidden;
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 240ms ease,
              background 240ms ease,
              border-color 240ms ease;
}

.theme-toggle:hover {
  transform: translateY(-3px) rotate(-12deg);
  box-shadow: 0 16px 36px rgba(255, 91, 53, 0.22);
  border-color: rgba(255, 91, 53, 0.4);
}

.theme-toggle:active {
  transform: translateY(-1px) scale(0.94);
}

.theme-toggle-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 460ms cubic-bezier(0.68, -0.55, 0.27, 1.55),
              opacity 260ms ease;
}

/* Light mode → show sun, hide moon (rotated out) */
.theme-icon-sun  { transform: rotate(0deg) scale(1);    opacity: 1; }
.theme-icon-moon { transform: rotate(90deg) scale(0.4); opacity: 0; }

/* Dark mode → flip */
[data-theme="dark"] .theme-icon-sun  { transform: rotate(-90deg) scale(0.4); opacity: 0; }
[data-theme="dark"] .theme-icon-moon { transform: rotate(0deg) scale(1);     opacity: 1; }

/* Subtle scale on theme switch — no flashy ring */
.theme-toggle.is-switching {
  animation: themeSwitchPulse 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes themeSwitchPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────
   Dark mode overrides
   ───────────────────────────────────────────── */
[data-theme="dark"] body {
  color: var(--text-default);
  background: #0a0a0c;
}

/* All sections — solid dark base, no clashing gradients */
[data-theme="dark"] .section-light,
[data-theme="dark"] .hero,
[data-theme="dark"] .clients-section,
[data-theme="dark"] .references-section,
[data-theme="dark"] .awards-section,
[data-theme="dark"] .service-section,
[data-theme="dark"] .alternating-section,
[data-theme="dark"] .contact-info-section,
[data-theme="dark"] .contact-form-section,
[data-theme="dark"] .split-hero,
[data-theme="dark"] .error404 {
  background: #0a0a0c;
}

[data-theme="dark"] .section-gray,
[data-theme="dark"] .split-hero-media.section-gray,
[data-theme="dark"] .contact-form-section.section-gray {
  background: #131418;
}

/* Hero slide — soften orange glow on dark (keep same blur to avoid layout shift) */
[data-theme="dark"] .hero-slide::before { opacity: 0.32; }
[data-theme="dark"] .hero-slide::after  { opacity: 0.28; }

/* Homepage hero — soften gradient + add mask to avoid hard edge */
[data-theme="dark"] .hero::before {
  inset: 0;
  height: auto;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(255, 91, 53, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.025), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
}
[data-theme="dark"] .hero::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 0.55;
}

/* Platform badges (iOS / Android) — invert to white on dark.
   SVGs have transparent bg + black fill, so brightness(0)+invert(1)
   makes the visible content pure white without affecting transparency. */
[data-theme="dark"] .platform-badges img {
  filter: brightness(0) invert(1);
  box-shadow: none;
}

/* ── Reference cards — kill light img bg + glass border ── */
[data-theme="dark"] .reference-card img {
  background: #15161a;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .reference-card:hover img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ── Split-hero media border (white edge bug) ── */
[data-theme="dark"] .split-hero-media {
  border-left-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Header ── */
[data-theme="dark"] .site-header {
  background: rgba(20, 21, 26, 0.72);
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(20, 21, 26, 0.86);
}
[data-theme="dark"] .site-logo,
[data-theme="dark"] .footer-logo {
  filter: brightness(0) invert(1);
}
[data-theme="dark"] .site-nav > a:not(.btn) {
  color: var(--text-default);
}
[data-theme="dark"] .nav-divider {
  background: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .nav-toggle span {
  background: var(--text-default);
}

/* ── Mobile nav popup ONLY — scoped to mobile media query ── */
@media (max-width: 820px) {
  [data-theme="dark"] .site-nav {
    background: rgba(20, 21, 26, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.5),
      0 6px 20px rgba(0, 0, 0, 0.3);
  }
  [data-theme="dark"] .site-nav > a:not(.btn) {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  [data-theme="dark"] body.menu-open::before {
    background: rgba(0, 0, 0, 0.55);
  }
}

/* ── Footer ── */
[data-theme="dark"] .site-footer {
  background: #0d0d10;
  color: var(--text-default);
}
[data-theme="dark"] .site-footer address,
[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer a:not(.btn) {
  color: var(--text-soft);
}
[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* ── Cards ── */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .reference-card {
  background: #15161a;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .feature-card h5,
[data-theme="dark"] .reference-card h5 {
  color: var(--text-default);
}
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .reference-card p {
  color: var(--text-soft);
}
[data-theme="dark"] .reference-placeholder,
[data-theme="dark"] .media-placeholder {
  background: linear-gradient(135deg, #1a1b20 0%, #131418 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Award rows / alternating rows ── */
[data-theme="dark"] .award-copy h2,
[data-theme="dark"] .alternating-copy h2,
[data-theme="dark"] .service-copy h2,
[data-theme="dark"] .section-heading h2,
[data-theme="dark"] .contact-details h3 {
  color: var(--text-default);
}
[data-theme="dark"] .award-copy p,
[data-theme="dark"] .alternating-copy p,
[data-theme="dark"] .service-copy p,
[data-theme="dark"] .contact-details p {
  color: var(--text-soft);
}
[data-theme="dark"] .award-copy a:not(.btn),
[data-theme="dark"] .alternating-copy a:not(.btn) {
  color: var(--orange);
}

/* ── Forms ── */
[data-theme="dark"] .contact-form {
  background: #15161a;
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-default);
}
[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
  color: rgba(245, 245, 247, 0.35);
}
[data-theme="dark"] .contact-form span,
[data-theme="dark"] .contact-form label {
  color: var(--text-soft);
}

/* ── Filter tabs (reference page) ── */
[data-theme="dark"] .filter-tabs {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .filter-tabs button {
  color: var(--text-soft);
}
[data-theme="dark"] .filter-tabs button:hover {
  color: var(--text-default);
}
[data-theme="dark"] .filter-tabs button.is-active {
  color: var(--white);
}

/* ── Logos / icons inversion ── */
[data-theme="dark"] .clients-grid img {
  filter: brightness(0) invert(1) opacity(0.7);
  transition: opacity 220ms ease;
}
[data-theme="dark"] .clients-grid img:hover {
  filter: brightness(0) invert(1) opacity(1);
}
[data-theme="dark"] .social-links img {
  filter: brightness(0) invert(1);
}


/* ── Hero braces (orange filtered SVGs) — already orange, leave alone ── */

/* ── 404 page ── */
[data-theme="dark"] .error404-digits {
  color: var(--text-default);
}
[data-theme="dark"] .error404-text {
  color: var(--text-soft);
}

/* ── Theme toggle in dark ── */
[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-default);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 91, 53, 0.12);
  border-color: rgba(255, 91, 53, 0.5);
}

/* ── Page transition overlay matches dark ── */
[data-theme="dark"] .page-transition {
  background: #0a0a0c;
}

/* ── Btn-light (used in CTA card) — keep light for contrast on orange ── */
/* No override needed — btn-light stays white on orange CTA card in both themes */

/* Theme toggle position on small screens */
@media (max-width: 560px) {
  .theme-toggle {
    bottom: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
  }
  .theme-toggle-icon { width: 18px; height: 18px; }
}

/* ─────────────────────────────────────────────
   Dark mode · industry polish pass
   ───────────────────────────────────────────── */

/* Selection color */
[data-theme="dark"] ::selection {
  background: rgba(255, 91, 53, 0.35);
  color: #ffffff;
}

/* Custom scrollbar */
[data-theme="dark"] {
  color-scheme: dark;
}
[data-theme="dark"] ::-webkit-scrollbar { width: 12px; height: 12px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0a0a0c; }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid #0a0a0c;
  border-radius: 999px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Focus outline matches dark surface */
[data-theme="dark"] :focus-visible {
  outline-color: rgba(255, 91, 53, 0.6);
}

/* CTA card stays orange — but inner btn-light should not pick up dark overrides */
[data-theme="dark"] .cta-card {
  /* keep original orange — no override needed, but ensure shadow is visible */
  box-shadow: 0 24px 70px rgba(255, 91, 53, 0.25);
}
[data-theme="dark"] .cta-copy h3,
[data-theme="dark"] .cta-copy p {
  color: var(--white);
}

/* Footer bottom border */
[data-theme="dark"] .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Footer nav links subtle */
[data-theme="dark"] .footer-nav a {
  color: var(--text-soft);
}
[data-theme="dark"] .footer-nav a:hover {
  color: var(--orange);
}

/* Reference card placeholder (DM, RS MZK, Etrust on reference page) */
[data-theme="dark"] .reference-placeholder {
  background: linear-gradient(135deg, #1a1b20, #131418);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Contact card hand image bg + braces */
[data-theme="dark"] .contact-card {
  background: linear-gradient(135deg, var(--orange), #ff6b48);
}

/* Form privacy checkbox */
[data-theme="dark"] .form-consent input[type="checkbox"] {
  accent-color: var(--orange);
}

/* Hero indicators (slider dots) */
[data-theme="dark"] .hero-indicators button {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] .hero-indicators button.is-active {
  background: var(--orange);
  border-color: var(--orange);
}

/* Glass section bleed cleanup — references-section bg fix when section-light classed */
[data-theme="dark"] .references-section.references-page {
  background: #0a0a0c;
}

/* Reveal class — ensure no light bg flicker on transitions */
[data-theme="dark"] .reveal { background: transparent; }

/* Contact details links keep orange accent */
[data-theme="dark"] .contact-details a {
  color: var(--orange);
}

/* Btn-light on dark CTA card — keep light, but border subtle */
[data-theme="dark"] .btn-light {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Service / award copy section labels still orange (no change needed) */

/* ─────────────────────────────────────────────
   Legal page (pravna obvestila)
   ───────────────────────────────────────────── */
.legal-page {
  position: relative;
  padding-bottom: 120px;
}

.legal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 180px 24px 80px;
}

.legal-hero .section-label { margin-bottom: 18px; }

.legal-hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: -0.04em;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-section {
  margin-top: 64px;
}
.legal-section:first-of-type { margin-top: 0; }

.legal-section h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-default);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-section h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-default);
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-section p { margin-bottom: 18px; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 220ms ease;
}
.legal-section a:hover { opacity: 0.7; }

.legal-section ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-section ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-section ul.legal-links { padding-left: 22px; }
.legal-section ul.legal-links li::marker { color: var(--orange); }

.legal-table {
  margin: 16px 0 22px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}
.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
}
.legal-table code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 91, 53, 0.08);
  color: var(--orange);
}

.legal-address {
  margin: 14px 0;
  padding: 22px 26px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-card);
  font-style: normal;
  line-height: 1.7;
}

[data-theme="dark"] .legal-table th { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .legal-table code { background: rgba(255, 91, 53, 0.14); }

@media (max-width: 820px) {
  .legal-hero { padding: 140px 24px 56px; }
  .legal-content { font-size: 15px; }
  .legal-section { margin-top: 48px; }
  .legal-section h2 { font-size: 26px; }
  .legal-section h3 { font-size: 19px; }
  .legal-table th,
  .legal-table td { padding: 12px 14px; }
}

/* ─────────────────────────────────────────────
   CTA mini-popup (bottom-right, after delay)
   ───────────────────────────────────────────── */
.cta-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(calc(100vw - 48px), 320px);
  padding: 22px 24px 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(5, 5, 5, 0.14),
    0 6px 18px rgba(5, 5, 5, 0.06);
  backdrop-filter: blur(16px) saturate(1.1);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 320ms ease,
    visibility 0s linear 460ms;
}

.cta-popup.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 320ms ease,
    visibility 0s linear 0s;
}

.cta-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 240ms var(--ease-out);
}
.cta-popup-close svg { width: 16px; height: 16px; }
.cta-popup-close:hover {
  background: rgba(5, 5, 5, 0.06);
  color: var(--text-default);
  transform: rotate(90deg);
}

.cta-popup-title {
  font-family: "Epilogue", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-default);
  margin: 0 28px 8px 0;
}

.cta-popup-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.cta-popup-btn {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}

/* When mobile menu is open, hide popup so it doesn't compete */
body.menu-open .cta-popup {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

/* Dark theme */
[data-theme="dark"] .cta-popup {
  background: rgba(20, 21, 26, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .cta-popup-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile: slightly smaller, ensure doesn't overlap theme toggle */
@media (max-width: 560px) {
  .cta-popup {
    bottom: 18px;
    right: 18px;
    left: 86px; /* leave room for theme toggle on left */
    width: auto;
    max-width: none;
    padding: 18px 20px;
  }
  .cta-popup-title { font-size: 18px; }
  .cta-popup-text { font-size: 13px; }
}

/* ─────────────────────────────────────────────
   Skip-to-content (a11y)
   ───────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid rgba(255, 91, 53, 0.4);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────
   Reading progress bar (top of page)
   ───────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #ff744f);
  z-index: 200;
  pointer-events: none;
  transition: width 80ms linear;
  opacity: 0;
}
.reading-progress.is-visible { opacity: 1; }

/* ─────────────────────────────────────────────
   Back-to-top button (bottom-right of theme toggle)
   ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--text-default);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(5, 5, 5, 0.12);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover {
  border-color: rgba(255, 91, 53, 0.4);
  box-shadow: 0 16px 36px rgba(255, 91, 53, 0.22);
  color: var(--orange);
}

[data-theme="dark"] .back-to-top {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* When CTA popup visible, push back-to-top a bit higher to avoid overlap on mobile */
@media (max-width: 560px) {
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
  .cta-popup.is-visible ~ .back-to-top {
    opacity: 0;
    pointer-events: none;
  }
}

/* ─────────────────────────────────────────────
   Cookie consent banner (GDPR)
   ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  z-index: 150;
  width: min(calc(100vw - 32px), 720px);
  padding: 22px 26px;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(5, 5, 5, 0.18),
    0 6px 20px rgba(5, 5, 5, 0.08);
  backdrop-filter: blur(16px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 320ms ease,
    visibility 0s linear 460ms;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 320ms ease,
    visibility 0s linear 0s;
}

.cookie-banner-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookie-banner-text strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-default);
}

.cookie-banner-text p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border-soft);
}
.cookie-btn-secondary:hover {
  border-color: var(--text-default);
  color: var(--text-default);
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff744f);
  color: var(--white);
}
.cookie-btn-primary:hover {
  background: #f14b25;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 18px;
    left: 18px;
    right: 18px;
    transform: translateY(40px);
    width: auto;
    padding: 18px 20px;
  }
  .cookie-banner.is-visible { transform: translateY(0); }
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn { flex: 1; }
}

/* ─────────────────────────────────────────────
   Stats section (homepage) — premium upgrade
   ───────────────────────────────────────────── */
.stats-section {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

/* Decorative orbs in bg */
.stats-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stats-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite;
}
.stats-orb-1 {
  width: 420px;
  height: 420px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 91, 53, 0.18), transparent 70%);
}
.stats-orb-2 {
  width: 540px;
  height: 540px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 116, 79, 0.14), transparent 70%);
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -30px); }
}

.stats-container {
  position: relative;
  z-index: 1;
}

.stats-heading {
  text-align: center;
  margin-bottom: 80px;
}
.stats-heading .section-label { margin-bottom: 18px; }
.stats-heading h2 { margin-bottom: 22px; }

.stats-intro {
  max-width: 540px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  position: relative;
  padding: 36px 28px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--surface-card);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: transform 380ms var(--ease-out), border-color 240ms ease, box-shadow 380ms ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 91, 53, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 380ms ease;
  z-index: -1;
}
.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 91, 53, 0.3);
  box-shadow: 0 24px 60px rgba(5, 5, 5, 0.08);
}
.stat-card:hover::before { opacity: 1; }

/* Featured (middle) card with subtle orange tint */
.stat-card-featured {
  background: linear-gradient(180deg, rgba(255, 91, 53, 0.04), var(--surface-card) 60%);
  border-color: rgba(255, 91, 53, 0.18);
}
.stat-card-featured .stat-icon {
  background: linear-gradient(135deg, var(--orange), #ff744f);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(255, 91, 53, 0.32);
}
.stat-card-featured .stat-value {
  background: linear-gradient(135deg, var(--orange), #ff744f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 91, 53, 0.1);
  color: var(--orange);
  margin-bottom: 24px;
  transition: transform 380ms var(--ease-out);
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-card:hover .stat-icon {
  transform: rotate(-6deg) scale(1.06);
}

.stat-value {
  font-family: "Epilogue", sans-serif;
  font-size: clamp(44px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-default);
  margin-bottom: 10px;
}

.stat-label {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-default);
  margin-bottom: 6px;
}

.stat-desc {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

[data-theme="dark"] .stat-card {
  background: #15161a;
  border-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .stat-card:hover {
  border-color: rgba(255, 91, 53, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .stat-card-featured {
  background: linear-gradient(180deg, rgba(255, 91, 53, 0.08), #15161a 60%);
  border-color: rgba(255, 91, 53, 0.3);
}
[data-theme="dark"] .stat-icon {
  background: rgba(255, 91, 53, 0.15);
}

@media (max-width: 1100px) {
  .stats-section { padding: 120px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-heading { margin-bottom: 56px; }
}
@media (max-width: 560px) {
  .stats-section { padding: 80px 0; }
  .stat-card { padding: 28px 22px 24px; }
  .stat-icon { width: 42px; height: 42px; margin-bottom: 18px; }
  .stat-icon svg { width: 22px; height: 22px; }
  .stats-orb-1, .stats-orb-2 { width: 280px; height: 280px; filter: blur(60px); }
}

/* ─────────────────────────────────────────────
   Active nav state — visible underline on current page
   ───────────────────────────────────────────── */
.site-nav > a:not(.btn).active::after {
  transform: scaleX(1) !important;
  transform-origin: left;
}

/* ─────────────────────────────────────────────
   Form validation (Kontakt obrazec)
   ───────────────────────────────────────────── */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #e54b3a;
  box-shadow: 0 0 0 3px rgba(229, 75, 58, 0.12);
}

.contact-form input:user-valid,
.contact-form textarea:user-valid {
  border-color: rgba(34, 167, 94, 0.5);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e54b3a;
  min-height: 16px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.contact-form label.has-error .field-error {
  opacity: 1;
  transform: translateY(0);
}

/* Success state for whole form */
.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(34, 167, 94, 0.1);
  border: 1px solid rgba(34, 167, 94, 0.3);
  color: #1a8c4e;
  font-size: 14px;
  font-weight: 500;
}

[data-theme="dark"] .form-success {
  background: rgba(34, 167, 94, 0.15);
  color: #4dd089;
}

/* Cookie preferences panel on legal page */
.cookie-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 24px;
  padding: 22px 26px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-card);
}
.cookie-prefs-status {
  font-size: 14px;
  color: var(--text-soft);
}
.cookie-prefs-status strong {
  color: var(--text-default);
  font-weight: 600;
}
.cookie-prefs-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-prefs-btn {
  min-width: auto;
  min-height: 42px;
  padding: 0 22px;
  font-size: 13px;
}

/* ─────────────────────────────────────────────
   Safari flicker fixes (surgical)
   ───────────────────────────────────────────── */

/* 1. -webkit-backdrop-filter aliases (Safari < 18 needs prefix) */
.site-header                  { -webkit-backdrop-filter: blur(12px) saturate(1.08); }
.site-header.is-scrolled      { -webkit-backdrop-filter: blur(13px) saturate(1.1); }
.cta-popup                    { -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.cookie-banner                { -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.back-to-top                  { -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.theme-toggle                 { -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.contact-form                 { -webkit-backdrop-filter: blur(18px); }
.filter-tabs                  { -webkit-backdrop-filter: blur(14px); }
.cta-card                     { -webkit-backdrop-filter: blur(8px); }

/* 2. Remove backdrop-filter from header transition list.
   Safari can't smoothly animate it → causes scroll flicker. */
.site-header {
  transition: height 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

/* 3. Promote sticky header to its own compositing layer */
.site-header {
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 4. Hero animated images — prevent sub-pixel jitter */
.hero-phone,
.hero-laptop {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 5. Reveal elements — backface hidden + cleanup */
.reveal {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 6. Page-transition overlay smooth fade */
.page-transition {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 7. Theme switch — Safari sometimes flashes during data-theme swap.
   `color-scheme` hint reduces native UI flicker. */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
