/* Globeye — palette derived from globeye_logo.svg */
:root {
  --color-deep: #002976;
  --color-teal: #1d5a63;
  --color-teal-dark: #1f5b64;
  --color-blue: #076cae;
  --color-cyan: #10b6da;
  --color-sky: #0d95cd;
  --color-accent: #a9cd54;
  --color-white: #fafbfc;
  --color-paper: #ffffff;
  --color-text: #1a2d33;
  --color-muted: #5a6f76;
  --font-sans: "Roboto", system-ui, sans-serif;
  --text-body: 1rem;
  --text-subheading: 1.125rem;
  --text-heading-sm: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(0, 41, 118, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 41, 118, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 41, 118, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 88px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchor offsets via scroll-margin on headings (not scroll-padding here). */
  scroll-padding-top: 0;
}

/* Nav targets: sticky bar + small gap above the section title */
#about-heading,
#products-heading,
#dudo-badge,
#contact-heading {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Same visual alignment for old links #about, #products, #contact */
#about,
#products,
#contact {
  scroll-margin-top: calc(var(--header-h) + 16px - 88px);
}

/* #dudo-software: section padding only (badge is first in the content box) */
#dudo-software {
  scroll-margin-top: calc(var(--header-h) + 16px - 96px);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

/* Nižší náklad na prvé vykreslenie: obsah mimo hero sa skladá až pri priblížení (moderné prehliadače). */
.section,
.dudo-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/*
 * Nav-linked sections: skip content-visibility so in-page anchors (#dudo-badge, etc.)
 * use real layout height (auto + intrinsic size skews scroll position).
 */
#about.section,
#products.section,
#dudo-software.dudo-section,
#contact.section {
  content-visibility: visible;
  contain-intrinsic-size: unset;
}

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

a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-deep);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--color-deep);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29, 90, 99, 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-link img {
  height: 67px;
  width: auto;
  max-width: min(224px, 85vw);
  display: block;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-main a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-body);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-main a:hover,
.nav-main a:focus-visible {
  background: rgba(16, 182, 218, 0.12);
  color: var(--color-teal);
  outline: none;
}

.lang-switch {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(29, 90, 99, 0.15);
  margin-left: 8px;
}

.lang-switch button {
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-body);
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: none;
  background: var(--color-paper);
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  color: #fff;
}

.lang-switch button:not([aria-pressed="true"]):hover {
  background: rgba(7, 108, 174, 0.08);
  color: var(--color-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(29, 90, 99, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-teal);
  border-radius: 1px;
  transition: transform 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-paper);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(29, 90, 99, 0.1);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }

  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-main a {
    padding: 14px 16px;
  }

  .lang-switch {
    margin: 12px 0 0;
    align-self: flex-start;
  }
}

/* Hero */
.hero {
  margin-top: var(--header-h);
  min-height: min(88vh, 900px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 24px 80px;
}

.hero-copy h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-deep);
  margin: 0 0 16px;
}

.hero-tagline {
  font-size: var(--text-subheading);
  color: var(--color-teal);
  font-weight: 600;
  margin: 0 0 24px;
}

.hero-lead {
  color: var(--color-muted);
  font-size: var(--text-body);
  max-width: 42ch;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-body);
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  color: #fff;
  box-shadow: 0 4px 20px rgba(7, 108, 174, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(7, 108, 174, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid rgba(29, 90, 99, 0.25);
}

.btn-ghost:hover {
  border-color: var(--color-teal);
  background: rgba(29, 90, 99, 0.04);
}

/* Hero visual — eye motif, logo colours */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-eye {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(16, 182, 218, 0.35) 0%,
    transparent 45%
  ),
    radial-gradient(
      circle at 60% 60%,
      rgba(169, 205, 84, 0.2) 0%,
      transparent 40%
    ),
    linear-gradient(145deg, #e8f4f8 0%, #fff 50%, #eef6fb 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.hero-eye::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid rgba(7, 108, 174, 0.15);
  animation: pulse-ring 5s ease-in-out infinite;
}

.hero-eye::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    var(--color-deep),
    var(--color-blue),
    var(--color-cyan),
    var(--color-accent),
    var(--color-deep)
  );
  opacity: 0.92;
  animation: iris-rotate 28s linear infinite;
}

.hero-pupil {
  position: absolute;
  width: 22%;
  height: 22%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a4a6a, #0a1f3d);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.hero-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  top: 42%;
  left: 44%;
  z-index: 3;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.9);
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes iris-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  pointer-events: none;
  opacity: 0.55;
}

.hero-float--1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  top: -5%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}

.hero-float--2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-sky));
  bottom: 10%;
  left: -8%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -16px);
  }
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    grid-template-columns: unset;
    gap: 20px;
    padding: 24px 24px 28px;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
  }

  .hero-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    width: 100%;
  }

  .hero-visual {
    order: -1;
    flex: 0 0 auto;
    max-width: min(300px, 72vw);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Sections */
.section {
  padding: 88px 24px;
}

.section--alt {
  background: linear-gradient(180deg, #f0f7fa 0%, var(--color-white) 100%);
}

.section--contact {
  background: linear-gradient(
    180deg,
    #e4f0f8 0%,
    #edf4fa 28%,
    #f3f8fb 55%,
    #f8fafc 82%,
    var(--color-white) 100%
  );
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--color-deep);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-subheading);
  font-weight: 500;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(29, 90, 99, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(16, 182, 218, 0.2),
    0 12px 40px rgba(7, 108, 174, 0.08);
  border-color: rgba(16, 182, 218, 0.35);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 182, 218, 0.2), rgba(7, 108, 174, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: var(--text-subheading);
  font-weight: 700;
  color: var(--color-teal-dark);
}

.pillar-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-body);
}

/* DUDO dedicated block */
.dudo-section {
  position: relative;
  padding: 96px 24px;
  background: linear-gradient(
    120deg,
    #0d3d52 0%,
    var(--color-teal) 45%,
    #1a6b78 100%
  );
  color: #e8f4f8;
  overflow: hidden;
}

.dudo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.dudo-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.dudo-aside-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  min-width: 0;
}

@media (max-width: 900px) {
  .dudo-inner {
    grid-template-columns: 1fr;
  }
}

/* Block wrapper so scroll-margin targets the green badge reliably. */
.dudo-badge-anchor {
  margin: 0;
  padding: 0;
}

.dudo-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.dudo-section h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: -0.02em;
}

.dudo-section .lead {
  font-size: var(--text-body);
  opacity: 0.95;
  margin: 0 0 20px;
  line-height: 1.65;
}

.dudo-section .sub {
  font-size: var(--text-body);
  opacity: 0.9;
  line-height: 1.7;
}

.dudo-aside-sub {
  margin: 0 0 20px;
}

.dudo-highlight {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.dudo-highlight h3 {
  margin: 0 0 12px;
  font-size: var(--text-subheading);
  font-weight: 700;
  color: var(--color-accent);
}

.dudo-highlight ul {
  margin: 0;
  padding-left: 1.2em;
  opacity: 0.92;
}

.dudo-highlight li {
  margin-bottom: 8px;
  font-size: var(--text-body);
}

.dudo-screen-figure {
  margin: 20px 0 28px;
}

.dudo-screen-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dudo-screen-figure--main {
  margin: 0 0 8px;
  display: flex;
  justify-content: center;
}

.dudo-screen-figure--main img {
  width: 70%;
  max-width: 70%;
  height: auto;
}

@media (max-width: 600px) {
  .dudo-screen-figure--main img {
    width: 85%;
    max-width: 85%;
  }
}

.dudo-screen-figure--half {
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.dudo-screen-figure--half img {
  width: 50%;
  max-width: 50%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 600px) {
  .dudo-screen-figure--half img {
    width: min(50%, 260px);
    max-width: min(50%, 260px);
  }
}

/* Product grid & accordions */
.product-intro {
  margin-bottom: 40px;
  max-width: 800px;
}

.product-intro--brand {
  margin-top: 48px;
}

#products .section-head + .product-intro--brand {
  margin-top: 0;
}

.vsy-from-xlsx {
  margin-bottom: 8px;
}

.vsy-from-xlsx .accordion-header .accordion-title {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: normal;
  font-weight: 700;
}

.vsy-xlsx-body {
  border-top-color: rgba(29, 90, 99, 0.08);
}

.vsy-ucel {
  margin: 0;
}

.product-subheading {
  margin: 48px 0 16px;
  font-size: var(--text-subheading);
  font-weight: 700;
  color: var(--color-deep);
}

.product-accordion-inner {
  display: grid;
  grid-template-columns: 1fr minmax(72px, 104px);
  gap: 16px 20px;
  align-items: start;
}

.product-accordion-main {
  min-width: 0;
}

.product-accordion-main > p.vsy-ucel,
.product-accordion-main > p[data-i18n] {
  margin: 0;
}

.product-thumb {
  margin: 0;
  justify-self: end;
  text-align: center;
  max-width: 104px;
}

.product-thumb img {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Wide SVG logos: more reliable sizing in <img> than raster */
.product-thumb img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: center top;
}

.product-accordion-link {
  margin: 14px 0 0;
  font-size: var(--text-body);
}

.product-accordion-link a {
  font-weight: 600;
}

.accordion-body--product .product-accordion-main > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .product-accordion-inner {
    grid-template-columns: 1fr;
  }

  .product-thumb {
    justify-self: center;
    order: -1;
    max-width: 120px;
  }

  .product-thumb img {
    max-height: 64px;
  }
}

.product-brand-figure {
  margin: 0 0 4px;
  max-width: 100%;
}

.product-brand-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(29, 90, 99, 0.08);
}

.product-brand-figure--vsy {
  display: block;
  width: 100%;
}

.product-brand-figure--vsy img {
  width: 49%;
  max-width: 49%;
  height: auto;
  margin: 0;
  object-position: left center;
}

.product-brand-figure--compact img {
  width: auto;
  max-width: min(100%, 432px);
  max-height: 135px;
  object-fit: contain;
  object-position: left center;
}

.product-intro h3 {
  margin: 48px 0 12px;
  font-size: var(--text-heading-sm);
  font-weight: 700;
  color: var(--color-deep);
}

.product-intro--brand h3 {
  margin-top: 16px;
}

.product-intro.product-intro--brand > h3:first-of-type {
  margin-top: 0;
}

.product-intro p {
  color: var(--color-muted);
  margin: 0 0 16px;
  font-size: var(--text-body);
}

.accordion {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(29, 90, 99, 0.1);
  background: var(--color-paper);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s;
}

.accordion:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 182, 218, 0.22);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 700;
  text-align: left;
  color: var(--color-deep);
  background: var(--color-paper);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(16, 182, 218, 0.06);
}

.accordion-header[aria-expanded="true"] {
  background: rgba(7, 108, 174, 0.06);
}

.accordion-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(29, 90, 99, 0.08);
  position: relative;
}

.accordion-chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-teal);
  border-bottom: 2px solid var(--color-teal);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.45s var(--ease-out);
}

.accordion-header[aria-expanded="true"] .accordion-chevron::after {
  transform: translate(-50%, -35%) rotate(-135deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--color-muted);
  font-size: var(--text-body);
  border-top: 1px solid rgba(29, 90, 99, 0.08);
  padding-top: 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.accordion-panel.is-open .accordion-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.accordion-body--text-only p:last-child {
  margin-bottom: 0;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: var(--text-body);
}

.tech-table th,
.tech-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(29, 90, 99, 0.08);
}

.tech-table th {
  color: var(--color-teal-dark);
  font-weight: 700;
  width: 38%;
}

/* Contact */
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
}

.contact-card {
  background: var(--color-paper);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(29, 90, 99, 0.06);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(16, 182, 218, 0.18);
  border-color: rgba(16, 182, 218, 0.3);
}

.contact-card h3 {
  margin: 0 0 16px;
  color: var(--color-deep);
  font-size: var(--text-heading-sm);
  font-weight: 700;
  line-height: 1.35;
}

.contact-card h3 a {
  color: var(--color-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-card--company .contact-company-name {
  margin: 0 0 12px;
  font-size: var(--text-heading-sm);
  font-weight: 700;
  color: var(--color-deep);
  line-height: 1.3;
}

.contact-addr-block {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.55;
}

.contact-id-line {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.5;
}

.contact-id-line:last-child {
  margin-bottom: 0;
}

.contact-id-line strong {
  color: var(--color-text);
  font-weight: 600;
}

.contact-mail-line a {
  font-weight: 600;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: var(--text-body);
}

.contact-list strong {
  color: var(--color-text);
  display: block;
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-addr-lines {
  white-space: pre-line;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--text-body);
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: var(--text-body);
  border: 1px solid rgba(29, 90, 99, 0.2);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(16, 182, 218, 0.2);
}

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

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--text-body);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: rgba(169, 205, 84, 0.2);
  color: #3d5c1f;
}

.form-status--err {
  background: rgba(242, 77, 61, 0.12);
  color: #a32a20;
}

/* Footer — vlna nad modrým pásom (absolútne nad pätičkou) */
.site-footer {
  position: relative;
  margin-top: -1px;
  padding: 10px 24px 12px;
  background: var(--color-deep);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: var(--text-body);
  min-height: 0;
}

.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(18px, 3vw, 26px);
  line-height: 0;
  pointer-events: none;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2px 0;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

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

/* ========== Visual enhancements (noise, mesh, reveals, links) ========== */

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.section--alt {
  position: relative;
  isolation: isolate;
}

.section--alt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 12% 25%, rgba(16, 182, 218, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 50% at 88% 75%, rgba(7, 108, 174, 0.11), transparent 55%);
  animation: mesh-drift 22s ease-in-out infinite alternate;
}

.section--alt .section-inner {
  position: relative;
  z-index: 1;
}

.section--contact {
  position: relative;
  isolation: isolate;
}

.section--contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(16, 182, 218, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 45% at 85% 70%, rgba(13, 149, 205, 0.1), transparent 52%);
  animation: mesh-drift 26s ease-in-out infinite alternate-reverse;
}

.section--contact .section-inner {
  position: relative;
  z-index: 1;
}

@keyframes mesh-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(2%, -1.5%) scale(1.03);
    opacity: 1;
  }
}

.dudo-section {
  isolation: isolate;
}

.dudo-section::after {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 25% 35%, rgba(16, 182, 218, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 78% 65%, rgba(169, 205, 84, 0.1), transparent 50%);
  animation: dudo-aurora 24s ease-in-out infinite alternate;
}

.dudo-inner {
  z-index: 1;
}

@keyframes dudo-aurora {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.75;
  }
  100% {
    transform: translate(-3%, 2%) rotate(3deg);
    opacity: 1;
  }
}

.hero-copy,
.hero-visual {
  will-change: transform;
}

main a:not(.btn):not(.logo-link):not(.skip-link),
.site-footer a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.28s var(--ease-out), color 0.2s;
}

main a:not(.btn):not(.logo-link):not(.skip-link):hover,
main a:not(.btn):not(.logo-link):not(.skip-link):focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  background-size: 100% 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

.reveal.reveal--soft {
  transform: none;
}

.reveal.reveal--soft.is-visible {
  transform: none;
}

.hero-copy > .reveal:nth-child(1) {
  --reveal-delay: 0.05s;
}

.hero-copy > .reveal:nth-child(2) {
  --reveal-delay: 0.1s;
}

.hero-copy > .reveal:nth-child(3) {
  --reveal-delay: 0.15s;
}

.hero-copy > .reveal:nth-child(4) {
  --reveal-delay: 0.2s;
}

.pillars .pillar-card.reveal:nth-child(1) {
  --reveal-delay: 0.06s;
}

.pillars .pillar-card.reveal:nth-child(2) {
  --reveal-delay: 0.14s;
}

.pillars .pillar-card.reveal:nth-child(3) {
  --reveal-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .noise-overlay {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section--alt::after,
  .section--contact::after,
  .dudo-section::after {
    animation: none;
  }

  .hero-copy,
  .hero-visual {
    will-change: auto;
  }
}
