/* styles.css */
/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --nav-height: 64px; /* můžeš pak doladit podle skutečné výšky top baru */
}


body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #020308;
  color: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* ---- Top nav ---- */
.top-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
}

.nav-logo {
  height: 20px; /* upravíš podle skutečného loga */
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  border: 1px solid #000000;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%, #22d3ee, #0ea5e9 40%, #4f46e5 100%);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(56, 189, 248, 0.55);
}

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: rgba(148,163,184,0.6);
  color: white;
}

.btn-ghost:hover {
  background: rgba(148,163,184,0.08);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;              /* „safe“ výška viewportu i na mobilech */
  padding-top: var(--nav-height);  /* prostor pro fixní navbar */
  display: flex;
  align-items: center;
  overflow: hidden;
}


.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% -10%, rgba(56, 189, 248, 0.5), transparent 60%),
    radial-gradient(circle at 80% 110%, rgba(129, 140, 248, 0.5), transparent 60%);
  opacity: 0.6;
  filter: blur(4px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  /* padding-block: 4rem 3rem; */
}

.hero-logo-wrap {
  display: inline-flex;
  padding: 1.2rem;
  border-radius: 999px;
  /* background: radial-gradient(circle at 30% 0%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6)); */
  /* box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9); */
  margin-bottom: 1.5rem;
}

.hero-logo {
  height: 90px; /* upravíš podle skutečného loga */
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title .hero-sub {
  display: block;
}


.hero-title span {
  background: linear-gradient(120deg, #22d3ee, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: #cbd5f5;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Scroll hint */
.hero-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.scroll-dot {
  width: 8px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  position: relative;
  overflow: hidden;
}

.scroll-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translate(-50%, 2px);
  animation: scrollDot 1.6s infinite ease-in-out;
}

@keyframes scrollDot {
  0%   { transform: translate(-50%, 2px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { transform: translate(-50%, 8px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---- Sections ---- */
.section {
  min-height: calc(100svh - var(--nav-height));
  padding-block: 3rem;
  /* žádný flex – obsah je zarovnán nahoru */
}



.section:nth-of-type(even) {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(2,6,23,1));
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid rgba(148,163,184,0.3);
  padding-block: 1.2rem;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* případně později hamburger menu */
  }

  .hero-inner {
    padding-block: 5rem 3rem;
  }
}


/* ---- Kopule section ---- */
.dome-layout {
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontální centrování všeho */
  gap: 2.5rem;
  text-align: center;    /* texty na střed */
}

.dome-text {
  max-width: 560px;
  margin-inline: auto;
}



.section-title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.section-lead {
  max-width: 40rem;
  color: #cbd5f5;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.dome-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}


.btn-toggle {
  margin-top: 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
  padding-inline: 1.9rem;
}

.btn-toggle:hover {
  background: rgba(148, 163, 184, 0.16);
}

.dome-hint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  opacity: 0.7;
}



.machine-visual {
  position: relative;
  width: min(420px, 80vw);   /* přizpůsobí se stránce, ale nepřeleze viewport */
  aspect-ratio: 4 / 3;       /* uprav podle stroj.png */
  margin-inline: auto;
  /* overflow: hidden;          žádný overflow při některých rozlišeních */

  /* hlavní scale celé scény */
  --visual-scale: 1.1;

  /* jemné ladění stroje a kopule */
  --machine-scale: 0.75;
  --machine-offset-x: 50%;
  --machine-offset-y: 55%;
  --dome-scale: 1.0;
  --dome-offset-x: 50%;
  --dome-offset-y: 50%;
}

/* nic nepotřebujeme kreslit před stroj */
.machine-visual::before {
  content: none;
}

/* základní stroj */
.machine-base {
  position: absolute;
  top: var(--machine-offset-y);
  left: var(--machine-offset-x);
  width: calc(100% * var(--visual-scale) * var(--machine-scale));
  height: auto;
  transform: translate(-50%, -50%);
  max-width: none; /* override globálního img */
  z-index: 2;
}

/* kopule – výchozí stav: nasazená */
.machine-dome {
  position: absolute;
  top: var(--dome-offset-y);
  left: var(--dome-offset-x);
  width: calc(100% * var(--visual-scale) * var(--dome-scale));
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: none;
  transition:
    transform 0.9s ease,
    opacity 0.9s ease,
    filter 0.9s ease;
  max-width: none; /* override globálního img */
  z-index: 4; /* kopule úplně nahoře */
}


.machine-base,
.machine-dome {
  max-width: none;
}

/* stav otevřeno – kopule vysunutá nahoru a zmizí */
.machine-visual.is-open .machine-dome {
  transform: translate(-50%, -200%);
  opacity: 0;
  filter: blur(3px);
}


/* status text a tečka */
.dome-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f97316; /* oranžová jako “pozor / změna” */
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.status-text {
  white-space: normal;
}

/* responsive pro užší displeje */
@media (max-width: 768px) {
  .dome-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .dome-text,
  .dome-visual {
    max-width: 100%;
  }

  .machine-visual {
    max-width: 320px;
  }
}


/* ---- MaMo cloud & datové proudy ---- */

/* cloud nad strojem */
.cloud-visual {
  position: absolute;
  left: 47%;
  top: 12%;
  width: 35%;
  transform: translate(-50%, -140%); /* start vysoko nad scénou */
  opacity: 0;
  pointer-events: none;
   z-index: 3; 
  transition:
    transform 0.9s ease 0.35s,  /* začne trochu po odjetí kopule */
    opacity 0.9s ease 0.35s;
}

/* po sejmutí kopule cloud sjede dolů nad stroj */
.machine-visual.is-open .cloud-visual {
  transform: translate(-50%, -55%);
  opacity: 1;
}

/* vrstva s 0/1 sloupci mezi strojem a cloudem */
.data-streams {
  position: absolute;
  left: 51%;
  bottom: 55%;          /* odkud „vychází“ data ze stroje */
  transform: translateX(-50%);
  /* šířka a výška oblasti s daty – můžeš ladit */
  width: 22%;
  height: 52%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  z-index: 1;           /* za strojem i cloudem */
  transition: opacity 0.5s ease 0.4s; /* jemné naběhnutí po otevření */
}

/* viditelné jen při otevřené kopuli */
.machine-visual.is-open .data-streams {
  opacity: 1;
}

/* jednotlivý „sloupec“ 0/1 */
.bit-column {
  display: flex;
  flex-direction: column;
  gap: 2px;             /* mezera mezi 0/1 v jednom sloupci */
  --col-index: 0;
  --base-offset: 0%;    /* TADY se projeví posun paty sloupce (z JS) */

  animation: bitRise 3.2s linear infinite;
  animation-delay: calc(var(--col-index) * -0.45s); /* rozfázování v čase */
}

/* samotné 0/1 obrázky */
.bit-img {
  width: 8px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.8));
  opacity: 0.9;
}

/* ladění pozic a velikostí (můžeš kdykoliv ručně upravit) */
.machine-visual{
  --iot-x: 45%;
  --iot-y: 73%;
  --iot-w: 2%;

  --tv-x: 0%;
  --tv-y: 46%;
  --tv-w: 35%;
}

.iot-device,
.tv-dashboard{
  position: absolute;
  opacity: 0;
  pointer-events: none;
  max-width: none;
  z-index: 5;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

/* cílové umístění */
.iot-device{
  left: var(--iot-x);
  top: var(--iot-y);
  width: var(--iot-w);
}

.tv-dashboard{
  left: var(--tv-x);
  top: var(--tv-y);
  width: var(--tv-w);
}

/* „přílet“ po otevření */
.machine-visual.is-open .iot-device{
  animation: iotEnter 1500ms cubic-bezier(.16,1,.3,1) both;
  animation-delay: 0.10s;
}
.machine-visual.is-open .tv-dashboard{
  animation: tvEnter 800ms cubic-bezier(.16,1,.3,1) both;
  animation-delay: 0.4s;
}

@keyframes iotEnter{
  0%   { opacity: 0; transform: translate3d(-50%,-50%,0) translateY(-220%) scale(40.0); }
  100% { opacity: 1; transform: translate3d(-50%,-50%,0) translateY(0)      scale(1.0); }
}

@keyframes tvEnter{
  0%   { opacity: 0; transform: translate3d(-50%,-50%,0) translateX(240%) scale(1.5); }
  100% { opacity: 1; transform: translate3d(-50%,-50%,0) translateX(0)     scale(1.0); }
}


@keyframes iotExit{
  0%   { opacity: 1; transform: translate(-50%,-50%) translateY(0)     scale(1.0); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%,-50%) translateY(-220%) scale(1.25); filter: blur(3px); }
}

@keyframes tvExit{
  0%   { opacity: 1; transform: translate(-50%,-50%) translateX(0)     scale(1.0); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%,-50%) translateX(240%)  scale(1.2); filter: blur(3px); }
}

/* během zavírání: nejdřív odlet iot/TV + návrat kopule, a až pak JS odstraní is-open */
.machine-visual.is-open.is-closing .iot-device{ animation: iotExit 650ms ease-in both; }
.machine-visual.is-open.is-closing .tv-dashboard{ animation: tvExit 650ms ease-in both; }

/* ať se při zavírání současně vrací kopule (bez rozbití otevření) */
.machine-visual.is-open.is-closing .machine-dome{
  transform: translate(-50%, -50%);
  opacity: 1;
  filter: none;
  transition-delay: 0s;
}

/* cloud a data proudy při zavírání zhasnout a vyjet nahoru */
.machine-visual.is-open.is-closing .cloud-visual{
  opacity: 0;
  transform: translate(-50%, -140%);
  transition-delay: 0s;
}
.machine-visual.is-open.is-closing .data-streams{
  opacity: 0;
  transition-delay: 0s;
}



/* „Matrix“ efekt – sloupce stoupají nahoru a mizí
   base-offset posouvá celou křivku nahoru/dolů kvůli izometrickému stroji */
@keyframes bitRise {
  0% {
    transform: translateY(calc(40% + var(--base-offset)));
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  80% {
    transform: translateY(calc(-40% + var(--base-offset)));
    opacity: 1;
  }
  100% {
    transform: translateY(calc(-60% + var(--base-offset)));
    opacity: 0;
  }
}

/* ---- Zobrazení section ---- */

.container.container-wide{
  width: min(1240px, 100% - 2.5rem);
}

.section.section-views{
  background:
    radial-gradient(circle at 30% 0%, rgba(56,189,248,0.12), transparent 55%),
    radial-gradient(circle at 70% 110%, rgba(129,140,248,0.10), transparent 55%);
}

.views-layout{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  text-align: center;
}

.section-views .views-header{
  max-width: 860px;
  margin-inline: auto;
}

.section-views .views-header .section-title{
  max-width: 52rem;
  margin-inline: auto;
  line-height: 1.08;
  text-wrap: balance;
}

.section-views .views-header .section-lead{
  max-width: 46rem;
  margin-inline: auto;
  line-height: 1.65;
}

.section-views .views-sublead{
  max-width: 46rem;
  margin: 0.35rem auto 0;
  color: rgba(203,213,245,0.85);
  font-size: 0.95rem;
  opacity: 0.85;
}

.views-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  margin: 0.4rem auto 1.2rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  border: 1px solid rgba(56,189,248,0.45);
  background: rgba(6,10,22,0.92);
  box-shadow: 0 10px 30px rgba(56,189,248,0.12);
}

/* 12-col grid -> při hoveru se karta roztáhne na ~42% */
.views-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.view-card{
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  background: rgb(6, 10, 22); /* neprůhledné */
  border: 1px solid rgba(148,163,184,0.32);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.view-card:hover{
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.view-caption{
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203,213,245,0.85);
  margin: 0;
  text-align: center;
}

.view-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.05rem;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

/* Rozšíření na ~40% při hoveru: ostrý text (bez scale) */
@supports selector(.views-grid:has(.view-card:hover)){
  @media (min-width: 901px){
    .views-grid:has(.view-card:nth-child(1):hover) .view-card:nth-child(1){ grid-column: span 5; z-index: 5; }
    .views-grid:has(.view-card:nth-child(1):hover) .view-card:nth-child(2){ grid-column: span 4; }
    .views-grid:has(.view-card:nth-child(1):hover) .view-card:nth-child(3){ grid-column: span 3; }

    .views-grid:has(.view-card:nth-child(2):hover) .view-card:nth-child(1){ grid-column: span 3; }
    .views-grid:has(.view-card:nth-child(2):hover) .view-card:nth-child(2){ grid-column: span 5; z-index: 5; }
    .views-grid:has(.view-card:nth-child(2):hover) .view-card:nth-child(3){ grid-column: span 4; }

    .views-grid:has(.view-card:nth-child(3):hover) .view-card:nth-child(1){ grid-column: span 3; }
    .views-grid:has(.view-card:nth-child(3):hover) .view-card:nth-child(2){ grid-column: span 4; }
    .views-grid:has(.view-card:nth-child(3):hover) .view-card:nth-child(3){ grid-column: span 5; z-index: 5; }
  }
}

/* responsive */
@media (max-width: 900px){
  .views-grid{ grid-template-columns: 1fr; }
  .view-card{ grid-column: 1 / -1; }
}


/* klikatelnost karet */
.view-card{
  cursor: zoom-in;
}

/* jemný moderní hint */
.view-card::after{
  content: "Klikni pro detail";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(229,231,235,0.95);
  background: rgba(6,10,22,0.78);
  border: 1px solid rgba(56,189,248,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.view-card:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ---- Modal (lightbox) ---- */
.view-modal{
  width: min(1200px, 92vw);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 1.6rem;
  padding: 1rem;
  background: rgb(6,10,22); /* neprůhledné */
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
    position: relative;
  margin: auto;
  max-height: 90vh;
  overflow: hidden;
}

.view-modal::backdrop{
  background: rgba(2,6,23,0.78);
  backdrop-filter: blur(10px);
}

.view-modal-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.75);
  color: #e5e7eb;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.view-modal-close:hover{
  border-color: rgba(56,189,248,0.45);
}

.view-modal-figure{
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.view-modal-img{
  width: 100%;
  max-height: 78vh;
  object-fit: contain;        /* důležité: žádný crop, detail zůstane celý */
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgb(6,10,22);
}

.view-modal-caption{
  text-align: center;
  color: rgba(203,213,245,0.9);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* přístupnost: méně animací */
@media (prefers-reduced-motion: reduce){
  .view-card,
  .view-card::after{
    transition: none !important;
  }
}



/* ---- Hardware / IoT section ---- */

.section.section-hardware{
  background:
    radial-gradient(circle at 15% 0%, rgba(56,189,248,0.10), transparent 55%),
    radial-gradient(circle at 85% 115%, rgba(129,140,248,0.10), transparent 55%);
}

.hardware-layout{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hardware-header{
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}


.hardware-header .section-title,
.hardware-header .section-lead,
.hardware-sublead{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.hardware-grid{
  width: min(1200px, 100%);              /* menší blok = cca „polovina“ */
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.2rem);
  align-items: center;
}
/* 3. a 4. položka: obsah o ~30% menší */
.hardware-grid .hardware-card:nth-child(3) .hardware-img,
.hardware-grid .hardware-card:nth-child(4) .hardware-img{
  width: 70%;
  margin-inline: auto; /* vycentruje v buňce */
  height: auto;
  display: block;
}

.hardware-card{
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.hardware-img{
  width: 100%;
  height: auto;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}


/* responsive */
@media (max-width: 600px){
  .hardware-grid{ grid-template-columns: 2fr; width: min(420px, 100%); }
}



/* ---- Kontakt section ---- */

.section.section-contact{
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(2,6,23,1));

  /* sekce je "poslední obrazovka" + footer v ní */
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  /* aby anchor skok nešel pod fixed navbar */
  padding-top: calc(3rem + var(--nav-height));
  padding-bottom: 0;
}

/* tohle je klíč: obsah roste a odtlačí footer dolů */
.section-contact .contact-inner{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  text-align: center;
}

.section-contact .contact-header{
  max-width: 680px;
}

.section-contact .contact-logo{
  height: 40px;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.section-contact .contact-title{
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem 0;
}

.section-contact .contact-lead{
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #e5e7eb;
  opacity: 0.9;
}

/* kontakt karta */
.section-contact .contact-content{
  width: min(520px, 100%);
}

.section-contact .contact-info{
  padding: 1.6rem 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,0.7));
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  text-align: left;
}

.section-contact .contact-info h3{
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.section-contact .contact-company{
  margin: 0 0 1.1rem 0;
  font-weight: 600;
}

.section-contact .contact-item{
  margin: 0;
}

.section-contact .contact-label{
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.section-contact .contact-item a{
  color: #e5e7eb;
  text-decoration: none;
}

.section-contact .contact-item a:hover{
  text-decoration: underline;
}

/* footer jako full-width pruh uvnitř poslední sekce */
.footer.footer-in-contact{
  margin-top: auto;
  width: 100%;

  border-top: 1px solid rgba(148,163,184,0.3);
  padding-block: 1.2rem;
  font-size: 0.8rem;

  background: rgba(2,6,23,0.35);
  backdrop-filter: blur(10px);
}

/* mobil: karta na plnou šířku */
@media (max-width: 768px){
  .section.section-contact{
    padding-top: calc(2.2rem + var(--nav-height));
  }

  .section-contact .contact-info{
    text-align: left;
  }
}


