/* ==========================================================================
   Ondřej Duda – Personal Professional Website
   Modern, mobile-first CSS
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --c-dark: #0B1121;
  --c-dark-2: #111827;
  --c-dark-3: #1E293B;
  --c-light: #F8FAFC;
  --c-light-2: #F1F5F9;
  --c-white: #FFFFFF;
  --c-accent: #2966B5;
  --c-accent-light: #3D80C8;
  --c-accent-dark: #1E4E95;
  --c-accent-glow: rgba(41, 102, 181, 0.15);
  --c-cyan: #45A0C2;
  --c-text: #E2E8F0;
  --c-text-muted: #94A3B8;
  --c-text-dark: #0F172A;
  --c-text-dark-muted: #475569;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-light: #E2E8F0;

  /* Typography */
  --f-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --s-section: clamp(5rem, 10vw, 9rem);
  --s-container: min(90%, 1140px);
  --s-container-narrow: min(90%, 740px);

  /* Misc */
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 24px rgba(41, 102, 181, 0.25);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Utility ---------- */
.container {
  width: var(--s-container);
  margin: 0 auto;
}

.container--narrow {
  width: var(--s-container-narrow);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--s-section) 0;
}

.section--dark {
  background: var(--c-dark);
  color: var(--c-text);
}

.section--dark-2 {
  background: var(--c-dark-2);
  color: var(--c-text);
}

.section--light {
  background: var(--c-light);
  color: var(--c-text-dark);
}

.section--white {
  background: var(--c-white);
  color: var(--c-text-dark);
}

.section--accent {
  background: linear-gradient(135deg, var(--c-accent), var(--c-cyan));
  color: var(--c-white);
}

/* ---------- Section Header ---------- */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.section--dark .section-label,
.section--dark-2 .section-label {
  color: var(--c-cyan);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: inherit;
}

.section--dark .section-title,
.section--dark-2 .section-title {
  color: var(--c-white);
}

.section-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text-dark-muted);
  max-width: 640px;
}

.section--dark .section-subtitle,
.section--dark-2 .section-subtitle {
  color: var(--c-text-muted);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(11, 17, 33, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.2);
}

.nav__inner {
  width: var(--s-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav__brand:hover {
  color: var(--c-accent-light);
}

.nav__links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--c-white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 17, 33, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav__mobile.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-white);
  transition: color var(--transition);
}

.nav__mobile a:hover {
  color: var(--c-accent-light);
}

/* Desktop */
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--c-accent-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(41, 102, 181, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn--outline:hover {
  border-color: var(--c-white);
  color: var(--c-white);
  background: rgba(255,255,255,0.05);
}

.btn--outline-dark {
  background: transparent;
  color: var(--c-text-dark);
  border: 1.5px solid var(--c-border-light);
}

.btn--outline-dark:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn--white {
  background: var(--c-white);
  color: var(--c-accent);
}

.btn--white:hover {
  background: var(--c-light);
  color: var(--c-accent-dark);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--c-dark);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient mesh background */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(41, 102, 181, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 20%, rgba(41, 102, 181, 0.06) 0%, transparent 60%);
}

/* Subtle grid pattern */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--s-container);
  margin: 0 auto;
  max-width: 800px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s forwards;
}

.hero__label span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeInUp 0.6s 0.4s forwards;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.6s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.8s forwards;
}

/* ---------- Stats Bar ---------- */
.stats {
  padding: 3rem 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border-light);
}

.stats__grid {
  width: var(--s-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1rem 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--c-text-dark-muted);
  font-weight: 500;
}

@media (min-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .stat:not(:last-child) {
    border-right: 1px solid var(--c-border-light);
  }
}

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Feature List ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-list__item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-top: 0.55em;
}

.section--dark .feature-list__item,
.section--dark-2 .feature-list__item {
  color: var(--c-text);
}

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--c-light);
  border-left: 3px solid var(--c-accent);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 2rem;
}

.highlight-box p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-dark);
  line-height: 1.7;
}

.section--dark .highlight-box,
.section--dark-2 .highlight-box {
  background: rgba(41, 102, 181, 0.08);
  border-left-color: var(--c-accent);
}

.section--dark .highlight-box p,
.section--dark-2 .highlight-box p {
  color: var(--c-text);
}

/* Google Partners variant */
.highlight-box--partner {
  border-left-color: #4285F4;
  border-left-width: 4px;
}

.highlight-box__logo {
  display: block;
  margin-bottom: 0.75rem;
}

.highlight-box__logo img {
  height: 28px;
  width: auto;
}

/* ---------- Tag Cloud ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--c-accent-glow);
  color: var(--c-accent-light);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid rgba(41, 102, 181, 0.2);
  transition: all var(--transition);
}

.section--white .tag,
.section--light .tag {
  background: var(--c-light);
  color: var(--c-accent);
  border-color: var(--c-border-light);
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-light);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-glow);
  border-radius: var(--radius);
  color: var(--c-accent);
}

.service-card__icon svg {
  width: 20px;
  height: 20px;
}

.service-card__text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-dark);
}

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

/* (CTA Banner removed – no longer used) */

/* ---------- Contact Section ---------- */
.contact {
  text-align: center;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-white);
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-sizing: border-box;
}

.contact__link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: var(--c-white);
  transform: translateY(-2px);
}

.contact__link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .contact__methods {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 0;
  background: var(--c-dark);
  border-top: 1px solid var(--c-border);
}

.footer__inner {
  width: var(--s-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--c-white);
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Inline CTA Section ---------- */
.inline-cta {
  text-align: center;
  padding: 2.5rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid var(--c-border-light);
}

.section--dark .inline-cta,
.section--dark-2 .inline-cta {
  border-top-color: var(--c-border);
}

.inline-cta__text {
  font-size: 0.9375rem;
  color: var(--c-text-dark-muted);
  margin-bottom: 1.25rem;
}

.section--dark .inline-cta__text,
.section--dark-2 .inline-cta__text {
  color: var(--c-text-muted);
}

/* ---------- Prose Typography ---------- */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text-dark-muted);
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose strong {
  color: var(--c-text-dark);
  font-weight: 600;
}

.section--dark .prose,
.section--dark-2 .prose {
  color: var(--c-text-muted);
}

.section--dark .prose strong,
.section--dark-2 .prose strong {
  color: var(--c-white);
}

/* ---------- Divider ---------- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--c-accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem 0;
}

.text-center .divider {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.5s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Responsive Fine-Tuning ---------- */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero {
    padding: 5rem 0 3rem;
    min-height: auto;
    min-height: 100svh;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta-banner__inner {
    padding: 2.5rem 1.5rem;
  }
}

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

/* ---------- Specialty Section ---------- */
.specialty {
  position: relative;
}

.specialty__card {
  background: var(--c-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--c-border-light);
}

.specialty__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

/* ---------- Emphasis Quote ---------- */
.emphasis {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text-dark);
  border-left: 3px solid var(--c-accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  line-height: 1.6;
}

.section--dark .emphasis,
.section--dark-2 .emphasis {
  color: var(--c-white);
}

/* ---------- KPI Grid ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.kpi-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(41, 102, 181, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(41, 102, 181, 0.1);
}

.kpi-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
}

.kpi-item__text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-dark);
}

.section--dark .kpi-item,
.section--dark-2 .kpi-item {
  background: rgba(255,255,255,0.04);
  border-color: var(--c-border);
}

.section--dark .kpi-item__text,
.section--dark-2 .kpi-item__text {
  color: var(--c-text);
}

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

/* ---------- Tech Section ---------- */
.tech-section {
  text-align: center;
  border-top: 1px solid var(--c-border-light);
  padding-top: 2.5rem;
}

/* Desktop: show static title, hide toggle button */
.tech-section__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-dark-muted);
  margin-bottom: 1.25rem;
}

.tech-section__toggle {
  display: none;
}

/* ---------- Tech Stack (icon-only) ---------- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  align-items: center;
}

.tech-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition);
}

/* Reset browser button styles on tech-icon buttons */
button.tech-icon {
  background: none;
  border: none;
  font-family: inherit;
}

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

.tech-icon picture {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tech-icon img {
  height: 24px;
  width: auto;
  display: block;
  filter: grayscale(1) opacity(0.4);
  transition: filter var(--transition);
}

.tech-icon:hover img {
  filter: grayscale(0) opacity(1);
}

/* Tooltip on hover (desktop only) */
.tech-icon::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--c-dark);
  color: var(--c-white);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.tech-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile tooltip: fixed to body, avoids any overflow issues */
.tech-tooltip-fixed {
  display: none;
  position: fixed;
  background: var(--c-dark);
  color: var(--c-white);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tech-tooltip-fixed.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 767px) {
  .tech-tooltip-fixed { display: block; }
}

/* "a další" dots icon */
.tech-icon--more {
  color: var(--c-text-dark-muted);
  opacity: 0.4;
}

.tech-icon--more:hover {
  opacity: 0.7;
}

/* Mobile: collapsible section */
@media (max-width: 767px) {
  .tech-section__title {
    display: none;
  }

  .tech-section__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius);
    padding: 0.625rem 1.25rem;
    font-family: var(--f-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-dark-muted);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 0;
  }

  .tech-section__toggle svg {
    transition: transform var(--transition);
  }

  .tech-section__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .tech-section__toggle:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
  }

  .tech-stack {
    max-height: 0;
    overflow: hidden;
    will-change: max-height;
    transition: max-height 0.4s ease, margin 0.3s ease;
    margin-top: 0;
  }

  .tech-stack.open {
    max-height: 1000px;
    margin-top: 1.25rem;
  }

  /* ::after tooltips disabled on mobile – handled by .tech-tooltip-fixed */
  .tech-icon::after {
    display: none;
  }
}

/* Partner box on white background */
.section--white .highlight-box--partner {
  background: var(--c-light);
  border-left-color: #4285F4;
}

.section--white .highlight-box--partner p {
  color: var(--c-text-dark-muted);
}

.section--white .highlight-box--partner strong {
  color: var(--c-text-dark);
}

/* (Key Message removed – no longer used) */

/* ---------- Nav Logo ---------- */
.nav__logo {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}

.nav__logo:hover {
  opacity: 0.85;
}

/* ---------- Medailonek section ---------- */
.medailonek {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.medailonek__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.medailonek__photo {
  flex-shrink: 0;
}

.medailonek__photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(41, 102, 181, 0.3),
    0 8px 32px rgba(0,0,0,0.35);
}

.medailonek__content {
  max-width: 620px;
}

.medailonek__name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.medailonek__role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-accent-light);
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.medailonek__content .divider {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.medailonek__content .prose {
  color: var(--c-text-muted);
}

.medailonek__content .prose strong {
  color: var(--c-white);
}

@media (min-width: 768px) {
  .medailonek__inner {
    flex-direction: row;
    text-align: left;
    gap: 3.5rem;
    align-items: flex-start;
  }

  .medailonek__photo img {
    width: 200px;
    height: 200px;
  }

  .medailonek__content .divider {
    margin-left: 0;
    margin-right: 0;
  }

  .medailonek__content .section-label {
    justify-content: flex-start;
  }
}

/* ---------- Focus States (Accessibility) ---------- */
.btn:focus-visible {
  outline: 2px solid var(--c-accent-light);
  outline-offset: 3px;
}

.nav__link:focus-visible {
  outline: 1px solid var(--c-accent-light);
  outline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact__link:focus-visible {
  outline: 2px solid var(--c-accent-light);
  outline-offset: 3px;
}

.service-card:focus-within {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero Emphasis Line ---------- */
.hero__emphasis {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.55s forwards;
}

/* ---------- Service Feature Blocks ---------- */
.services-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

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

.service-feature {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--c-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border-light);
  transition: all var(--transition);
}

.service-feature:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent-glow);
  border-radius: var(--radius);
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}

.service-feature__icon svg {
  width: 24px;
  height: 24px;
}

.service-feature__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-text-dark);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.service-feature__desc {
  font-size: 0.9375rem;
  color: var(--c-text-dark-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-feature .feature-list {
  margin-top: auto;
}

/* ---------- Pillars (Přístup section) ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

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

.pillar {
  padding: 2rem;
  background: var(--c-light);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--c-accent);
}

.pillar__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pillar__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pillar__text {
  font-size: 0.9375rem;
  color: var(--c-text-dark-muted);
  line-height: 1.75;
}

/* ---------- Audience Cards (Pro koho) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.audience-card {
  padding: 1.5rem;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border-light);
  border-top: 3px solid var(--c-accent);
}

.audience-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-text-dark);
  margin-bottom: 0.5rem;
}

.audience-card__desc {
  font-size: 0.875rem;
  color: var(--c-text-dark-muted);
  line-height: 1.65;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-accent);
  color: var(--c-white);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Email as button (contact__link reset) ---------- */
button.contact__link {
  font-family: var(--f-body);
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

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

/* ---------- Print ---------- */
@media print {
  .nav, .hero__bg, .cta-banner, .inline-cta {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  .section {
    padding: 2rem 0;
  }
}
