/* ==========================================================================
   Obsah
   1. Font-face
   2. Tokeny (:root)
   3. Base
   4. Přepisy Materialize
   5. Utility
   6. Komponenty (v pořadí na stránce)
      navbar/sidenav, hero, trust, about, služby, reference carousel,
      lightbox, testimonials, proces, kontakt, footer, duotón fotek
   7. Pohyb (odhalování při scrollu, no-preference / reduce, tisk)
   ========================================================================== */

/* ==========================================================================
   1. Font-face
   ========================================================================== */

@font-face {
  font-family: "TG Regular";
  src: url("font/texgyre.woff") format("woff");
  font-display: block;
}

/* ==========================================================================
   2. Tokeny
   ========================================================================== */

:root {
  /* Noc – neutrální tóny */
  --noc-950: #070b0e;
  --noc-950-rgb: 7, 11, 14;
  --noc-850: #131a20;
  --noc-800: #1a232b;
  --noc-700: #26323c;
  --noc-400: #8b98a3;
  --noc-300: #b3bec6;
  --noc-100: #e6ecf0;

  /* LED modrá – hlavní akcent */
  --led-300: #5cb2ff;
  --led-500: #0084ff;
  --led-500-rgb: 0, 132, 255;
  --led-600: #006bd6;
  --led-700: #0054aa;
  --led-700-rgb: 0, 84, 170;

  /* Typografie a animace */
  --font-heading: "TG Regular", serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Modrý duotón fotek (převzato z navrh-wireframe.css) */
  --duotone-ease: 700ms var(--ease-out);
  --duotone-filter: grayscale(1) contrast(1.15) brightness(0.8);
  --duotone-tint: linear-gradient(160deg, rgba(var(--led-500-rgb), 0.55), rgba(var(--led-700-rgb), 0.25) 55%, rgba(var(--noc-950-rgb), 0.6));
}

/* ==========================================================================
   3. Base
   ========================================================================== */

html {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--noc-950);
  color: var(--noc-100);
}

main {
  position: relative;
  margin-top: -64px;
  /* Boční nájezdy nesmí vytvořit horizontální scroll */
  overflow-x: clip;
}

a {
  color: var(--led-300);
  cursor: pointer;
}

a:hover {
  color: white;
}

a .material-symbols-outlined {
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
.logo,
.footer-heading {
  color: white;
  font-family: var(--font-heading);
  font-weight: normal;
}

h1,
.logo {
  margin: 0;
  padding: 0;
}

/* Logo (dříve h1) – zachovává původní vzhled nadpisu */
.logo {
  font-size: 4.2rem;
  line-height: 110%;
}

h2,
.footer-heading {
  align-items: center;
  color: var(--led-500);
  display: flex;
  font-size: 1.1rem;
  gap: 1rem;
  margin-top: 1rem;
}

h2::after,
.footer-heading::after {
  background: var(--led-500);
  content: "";
  height: 1px;
  width: 3rem;
}

/* Animace přes šířku místo scaleX – 1px linka se během animace nerozmaže */
.motion-heading::after {
  transition: width 800ms var(--ease-out);
  width: 0;
}

.motion-heading--visible::after {
  width: 3rem;
}

h3 {
  font-size: 2.2rem;
  margin: 0 0 3rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  font-size: 1.1rem;
  text-align: justify;
}

/* ==========================================================================
   4. Přepisy Materialize
   ========================================================================== */

nav {
  background: rgba(var(--noc-950-rgb), 0.6);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.section {
  background: var(--noc-950);
}

.page-footer {
  background: var(--noc-950);
  border-top: 1px solid var(--noc-700);
}

.page-footer .logo {
  font-size: 3rem;
}

/* Širší obsah na desktopu (base.css má 70 % / max 1280px) */
@media (min-width: 993px) {
  .container {
    max-width: 1320px;
    width: 80%;
  }
}

/* Jednotný styl tlačítek (Materialize .btn i vlastní tlačítka) */
.btn,
.btn-large,
.contact-form__submit {
  background-color: var(--led-600);
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  letter-spacing: 0;
  line-height: 1.5;
  padding: 0.85rem 1.6rem;
  text-transform: none;
  transition: background-color 290ms ease, box-shadow 290ms ease, transform 290ms var(--ease-out);
}

.btn:hover,
.btn-large:hover,
.contact-form__submit:hover {
  background-color: var(--led-700);
  transform: translateY(-2px);
}

.btn:focus,
.btn-large:focus {
  background-color: var(--led-700);
}

.btn:focus-visible,
.btn-large:focus-visible,
.contact-form__submit:focus-visible {
  background-color: var(--led-700);
  outline: 2px solid #fff;
  outline-offset: 2px;
  transform: translateY(-2px);
}

.btn:active,
.btn-large:active,
.contact-form__submit:active {
  transform: translateY(0);
}

/* Sekundární tlačítko – tmavá plná plocha */
.btn.btn--secondary {
  background-color: var(--noc-800);
  color: #fff;
}

.btn.btn--secondary:hover,
.btn.btn--secondary:focus {
  background-color: var(--noc-700);
  color: #fff;
}

/* ==========================================================================
   5. Utility
   ========================================================================== */

.big {
  font-size: 3.5rem;
}

.w100 {
  width: 100%;
}

.kotva {
  position: relative;
  top: -80px;
}

.rlogo {
  color: var(--led-500);
  display: inline-block;
  transform: scale(-1, 1);
}

.material-symbols-outlined {
  display: block;
}

.section-cta {
  text-align: center;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-head h3 {
  margin: 0;
}

.head-detailtext {
  color: var(--noc-300);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Úvodní text co nejvíc vpravo – blok končí na pravém okraji obsahu */
.section-head > .head-detailtext {
  margin-left: auto;
  min-width: 0;
}

@media (max-width: 600px) {
  .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .section-head > .head-detailtext {
    margin-left: 0;
  }
}

/* Vizuálně skryté, ale dostupné čtečkám */
.visually-hidden,
.reference-carousel__visually-hidden,
.reference-lightbox__title {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ==========================================================================
   6. Komponenty
   ========================================================================== */

/* --- Navbar / sidenav ---------------------------------------------------- */

#nav-mobile a {
  position: relative;
}

#nav-mobile a::after {
  background: var(--led-500);
  bottom: 8px;
  content: "";
  height: 1px;
  left: 15px;
  position: absolute;
  right: calc(100% - 15px);
  transition: right 400ms var(--ease-out);
}

#nav-mobile a:hover::after,
#nav-mobile a:focus-visible::after,
#nav-mobile a.nav-link--active::after {
  right: 15px;
}

nav .sidenav-trigger i {
  font-size: 2rem;
}

nav .brand-logo {
  font-size: 2.5rem;
  padding-top: 12px;
}

.brand-logo a {
  color: white;
}

.sidenav .logo {
  padding-bottom: 2rem;
  padding-top: 1.2rem;
  text-shadow: 0 0 5px #000;
}

/* Mobilní menu: skleněný panel (varianta A z navrh-mobilni-menu.html) */
.sidenav.sidenav--glass {
  background: linear-gradient(160deg, rgba(19, 26, 32, 0.72), rgba(7, 11, 14, 0.84));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--noc-100);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 26px 28px;
  width: min(84vw, 340px);
}

.sidenav--glass::before {
  background: linear-gradient(transparent, var(--led-500), transparent);
  content: "";
  height: 30%;
  position: absolute;
  right: -1px;
  top: 20%;
  width: 1px;
}

.sidenav-overlay {
  background-color: rgba(0, 0, 0, 0.35);
}

.sidenav__head {
  align-items: center;
  display: flex;
  flex: none;
  height: 64px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sidenav__logo {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.9rem;
}

.sidenav__close {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: grid;
  height: 44px;
  margin-right: -10px;
  place-items: center;
  width: 44px;
}

.sidenav__close .material-symbols-outlined {
  font-size: 28px;
}

.sidenav__eyebrow {
  color: var(--noc-400);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidenav--glass .sidenav__links {
  list-style: none;
  margin: 10px 0 32px;
  padding: 0;
}

.sidenav--glass .sidenav__links li {
  line-height: normal;
  opacity: 0;
  transition: opacity 0.35s, translate 0.5s var(--ease-out);
  translate: -20px 0;
}

.sidenav--glass.sidenav--open .sidenav__links li {
  opacity: 1;
  translate: 0 0;
}

.sidenav--glass.sidenav--open .sidenav__links li:nth-child(2) {
  transition-delay: 0.05s;
}

.sidenav--glass.sidenav--open .sidenav__links li:nth-child(3) {
  transition-delay: 0.1s;
}

.sidenav--glass.sidenav--open .sidenav__links li:nth-child(4) {
  transition-delay: 0.15s;
}

.sidenav--glass.sidenav--open .sidenav__links li:nth-child(5) {
  transition-delay: 0.2s;
}

.sidenav--glass li > a.sidenav__link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  height: auto;
  line-height: 1.2;
  padding: 13px 0;
  position: relative;
  transition: color 0.2s;
}

.sidenav--glass li > a.sidenav__link:hover {
  background: none;
}

.sidenav--glass li > a.sidenav__link:hover,
.sidenav--glass li > a.sidenav__link.nav-link--active {
  color: var(--led-300);
}

.sidenav--glass li > a.sidenav__link::after {
  background: var(--led-500);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transition: width 0.4s var(--ease-out);
  width: 0;
}

.sidenav--glass li > a.sidenav__link.nav-link--active::after,
.sidenav--glass li > a.sidenav__link:focus-visible::after {
  width: 3rem;
}

.sidenav__foot {
  display: grid;
  gap: 16px;
  margin-top: auto;
}

.sidenav__cta {
  text-align: center;
  width: 100%;
}

.sidenav__contacts {
  display: grid;
}

.sidenav__contact {
  align-items: center;
  color: var(--noc-300);
  display: flex;
  font-size: 0.95rem;
  gap: 12px;
  padding: 6px 0;
}

.sidenav__contact .material-symbols-outlined {
  color: var(--led-300);
  font-size: 22px;
}

.sidenav__socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sidenav__socials a {
  color: var(--noc-300);
  display: grid;
  height: 48px;
  place-items: center;
  transition: color 0.2s;
  width: 48px;
}

.sidenav__socials a:hover {
  color: var(--led-300);
}

.sidenav__socials svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 24px;
}

/* --- Hero ---------------------------------------------------------------- */

.stovh {
  height: calc(100vh - 56px);
}

@media (min-width: 601px) {
  .stovh {
    height: 100vh;
  }
}

.indexcontainer {
  height: 100%;
  text-shadow: 0 0 5px #000;
}

.frontText {
  isolation: isolate;
  position: relative;
}

.hero-intro__title::after {
  display: none;
}

.hero-intro {
  max-width: 100%;
  width: fit-content;
}

.hero-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .hero-intro__actions {
    justify-content: flex-start;
  }
}

.hero-intro__title,
.hero-intro__lead,
.hero-intro__tagline,
.hero-intro__actions {
  animation: hero-intro-in 700ms var(--ease-out) both;
}

.hero-intro__lead {
  animation-delay: 120ms;
}

.hero-intro__tagline {
  animation-delay: 240ms;
}

.hero-intro__actions {
  animation-delay: 360ms;
}

@keyframes hero-intro-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D drátová animace místo fotky mixpultu v hero sekci */
.hero-3d {
  background: var(--noc-950);
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: -2;
}

/* Záloha, když prohlížeč nespustí WebGL */
.hero-3d[data-koncert-hero="failed"] {
  background: var(--noc-950) url("webp/hero/7_blue.webp") center bottom / cover no-repeat;
}

/* Efekty nad fotkou a pod textem; ztmavení leží přes celou sekci */
.hero-fx {
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.15) 65%,
    transparent 85%
  );
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

/* Parallax fotka: centrování přes flex místo left: 50 % + translateX(-50 %),
   transform zůstává volný pro posun parallaxu. */
.parallax-container .parallax {
  align-items: flex-end;
  display: flex;
  justify-content: center;
}

.parallax-container .parallax img {
  flex: none;
  position: static;
  transform: none;
}

/* Parallax řízený scrollem (běží v kompozitoru, neškube). Posun odpovídá
   výpočtu z main.js: 0 při vstupu kontejneru do okna, --parallax-distance
   při jeho opuštění. Prohlížeče bez podpory používají JS v main.js. */
@supports (animation-timeline: view()) {
  .parallax-container {
    view-timeline: --parallax block;
  }

  .parallax-container .parallax img {
    animation: parallax-scroll linear both;
    animation-timeline: --parallax;
  }
}

@keyframes parallax-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, var(--parallax-distance, 0px), 0);
  }
}

/* --- Trust strip --------------------------------------------------------- */

.trust-strip {
  background: var(--noc-950);
  border-top: 1px solid var(--noc-700);
  padding: 1.6rem 0;
}

.trust-row {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip .material-symbols-outlined {
  color: var(--led-500);
}

.trust-item {
  align-items: center;
  display: flex;
  float: none;
  gap: 1rem;
  margin: 0;
  min-width: 0;
  padding: 0;
  width: auto;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--noc-700);
  padding-left: 2rem;
}

.trust-item .material-symbols-outlined {
  flex: none;
  font-size: 3.5rem;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.2;
}

.trust-item strong + span {
  color: var(--noc-300);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

@media (min-width: 993px) {
  .trust-row {
    gap: 0;
  }

  .trust-item,
  .trust-item + .trust-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    text-align: center;
  }

  .trust-item strong {
    font-size: 1.25rem;
  }

  .trust-item .material-symbols-outlined {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .trust-row {
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-left: 0;
    padding-left: 0;
  }

  .trust-item .material-symbols-outlined {
    font-size: 2.75rem;
  }
}

/* --- O nás --------------------------------------------------------------- */

/* Tónovaná fotka v pozadí, okraje plynule přechází do barvy okolních sekcí */
.section.about {
  background:
    linear-gradient(180deg, var(--noc-950) 0%, rgba(var(--noc-950-rgb), 0) 18%, rgba(var(--noc-950-rgb), 0) 82%, var(--noc-950) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%),
    url("webp/about/01.webp") center / cover no-repeat,
    var(--noc-950);
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.about__grid {
  display: grid;
  gap: 2rem;
}

.about__title {
  margin-top: 0;
}

.about__content p {
  color: var(--noc-100);
  margin: 0 0 1.25rem;
  text-align: left;
}

.about__content p:last-of-type {
  margin-bottom: 2rem;
}

.about__media {
  margin: 0;
}

.about__media img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 993px) {
  .about__grid {
    align-items: start;
    column-gap: 3rem;
    grid-template-areas:
      "title media"
      "content media";
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto 1fr;
    row-gap: 0;
  }

  .about__title {
    grid-area: title;
  }

  .about__content {
    grid-area: content;
  }

  .about__media {
    grid-area: media;
  }
}

@media (max-width: 992px) {
  .about__title {
    margin-bottom: 1rem;
  }
}

/* --- Služby / tech-card / service-details -------------------------------- */

.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  background: var(--noc-850);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  transition: background-color 400ms ease, transform 400ms var(--ease-out);
}

.tech-card__media {
  overflow: hidden;
}

.tech-card p {
  color: var(--noc-100);
  font-size: 1rem;
  margin-top: 0;
}

@media (hover: hover) {
  .tech-card:hover {
    background: rgba(var(--led-500-rgb), 0.075);
    transform: translateY(-4px);
  }

  .tech-card:hover .tech-card__media .service-image {
    transform: scale(1.04);
  }

  .tech-card__more-button:hover .material-symbols-outlined {
    transform: translateY(3px);
  }

  .tech-card__more-button[aria-expanded="true"]:hover .material-symbols-outlined {
    transform: rotate(180deg) translateY(3px);
  }
}

.tech-card:focus-within {
  background: rgba(var(--led-500-rgb), 0.075);
}

.tech-card:focus-within .tech-card__media .service-image {
  filter: none;
  transform: scale(1.04);
}

.tech-card__more-button {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  color: var(--led-500);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-top: auto;
  padding: 0.75rem 0 0;
  text-align: right;
}

.tech-card__more-button .material-symbols-outlined {
  transition: transform 400ms var(--ease-out);
}

.tech-card__more-button[aria-expanded="true"] .material-symbols-outlined {
  transform: rotate(180deg);
}

.tech-card__more-button:hover,
.tech-card__more-button:focus-visible {
  color: #fff;
}

.tech-card__more-button:focus-visible {
  outline: 2px solid var(--led-500);
  outline-offset: 4px;
}

.service-image {
  display: block;
  height: auto;
  width: 100%;
}

.service-row h3::after {
  background: var(--led-500);
  content: "";
  display: block;
  height: 3px;
  margin-top: 0.55rem;
  width: 4rem;
}

.service-details {
  height: 0;
  overflow: hidden;
  position: relative;
  transition: height 300ms ease;
}

.service-detail {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 180ms ease;
  width: 100%;
}

.service-detail--open {
  opacity: 1;
  pointer-events: auto;
}

.service-detail__content {
  min-height: 0;
  overflow: hidden;
}

.service-detail:focus {
  outline: none;
}

/* Odkaz zpět na karty služeb (vkládá service-details.js) */
.service-detail__back {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--led-500);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.35rem;
  margin: 0.5rem auto 0.25rem;
  width: fit-content;
  padding: 0.5rem 0;
}

.service-detail__back:hover,
.service-detail__back:focus-visible {
  color: #fff;
}

.service-detail__back:focus-visible {
  outline: 2px solid var(--led-500);
  outline-offset: 4px;
}

/* --- Reference carousel -------------------------------------------------- */

.reference-carousel__track {
  display: flex;
  height: clamp(420px, 52vw, 620px);
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.reference-carousel__track::-webkit-scrollbar {
  display: none;
}

.reference-carousel__track:focus-visible {
  outline: 3px solid var(--led-500);
  outline-offset: 3px;
}

.reference-carousel__page {
  display: grid;
  flex: 0 0 100%;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reference-carousel__card {
  background: var(--noc-850);
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.reference-carousel__card::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.reference-carousel__card--page-one-featured {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
}

.reference-carousel__card--page-one-top-left {
  grid-column: 6 / span 4;
  grid-row: 1;
}

.reference-carousel__card--page-one-top-right {
  grid-column: 10 / span 3;
  grid-row: 1;
}

.reference-carousel__card--page-one-bottom {
  grid-column: 6 / span 7;
  grid-row: 2;
}

.reference-carousel__card--page-two-featured {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}

.reference-carousel__card--page-two-top,
.reference-carousel__card--page-two-bottom {
  grid-column: 8 / span 5;
}

.reference-carousel__card--page-two-top {
  grid-row: 1;
}

.reference-carousel__card--page-two-bottom {
  grid-row: 2;
}

.reference-carousel__image {
  cursor: zoom-in;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.reference-carousel__image:focus-visible {
  outline: 3px solid var(--led-500);
  outline-offset: -4px;
}

.reference-carousel__label {
  background: rgba(var(--noc-950-rgb), 0.78);
  bottom: 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  left: 0.9rem;
  line-height: 1;
  padding: 0.55rem 0.75rem;
  pointer-events: none;
  position: absolute;
  transition: background-color 400ms ease, transform 400ms var(--ease-out);
  z-index: 2;
}

@media (hover: hover) {
  .reference-carousel__card:hover .reference-carousel__image {
    transform: scale(1.035);
  }

  .reference-carousel__card:hover .reference-carousel__label {
    background: rgba(var(--led-700-rgb), 0.92);
    transform: translateY(-3px);
  }
}

.reference-carousel__card:focus-within .reference-carousel__image {
  transform: scale(1.035);
}

.reference-carousel__card:focus-within .reference-carousel__label {
  background: rgba(var(--led-700-rgb), 0.92);
  transform: translateY(-3px);
}

.reference-carousel__controls {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.reference-carousel__button {
  align-items: center;
  background: var(--noc-850);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  width: 44px;
}

.reference-carousel__button i {
  font-size: 2rem;
}

.reference-carousel__button:hover:not(:disabled),
.reference-carousel__button:focus-visible {
  background: var(--led-600);
  border-color: var(--led-600);
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.reference-carousel__button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.reference-carousel__indicators {
  align-items: center;
  display: flex;
  gap: 0.1rem;
  justify-content: center;
  margin-right: 0.25rem;
}

.reference-carousel__indicator {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.reference-carousel__indicator::before {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  content: "";
  height: 7px;
  transition: background-color 0.2s ease, width 0.2s ease;
  width: 7px;
}

.reference-carousel__indicator:hover::before,
.reference-carousel__indicator:focus-visible::before,
.reference-carousel__indicator--active::before {
  background: var(--led-500);
}

.reference-carousel__indicator:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.reference-carousel__indicator--active {
  cursor: default;
}

.reference-carousel__indicator--active::before {
  width: 22px;
}

@media (max-width: 600px) {
  .reference-carousel__track {
    height: clamp(300px, 80vw, 420px);
  }

  .reference-carousel__page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reference-carousel__card--page-one-featured,
  .reference-carousel__card--page-two-featured {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .reference-carousel__card--page-one-top-left {
    grid-column: 3;
    grid-row: 1;
  }

  .reference-carousel__card--page-one-top-right {
    grid-column: 4;
    grid-row: 1;
  }

  .reference-carousel__card--page-one-bottom,
  .reference-carousel__card--page-two-top,
  .reference-carousel__card--page-two-bottom {
    grid-column: 3 / span 2;
  }

  .reference-carousel__card--page-one-bottom,
  .reference-carousel__card--page-two-bottom {
    grid-row: 2;
  }

  .reference-carousel__card--page-two-top {
    grid-row: 1;
  }

  .reference-carousel__label {
    bottom: 0.5rem;
    font-size: 0.72rem;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    overflow: hidden;
    padding: 0.4rem 0.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reference-carousel__button {
    height: 40px;
    width: 40px;
  }
}

/* --- Lightbox ------------------------------------------------------------ */

html.reference-lightbox-open,
body.reference-lightbox-open {
  overflow: hidden !important;
}

body.reference-lightbox-open {
  position: fixed;
  width: 100%;
}

.reference-lightbox {
  background: transparent;
  border: 0;
  color: #fff;
  height: min(82vh, calc(100dvh - 48px));
  margin: auto;
  max-height: none;
  max-width: 1200px;
  overflow: visible;
  padding: 0;
  width: calc(100vw - 48px);
}

.reference-lightbox::backdrop {
  animation: reference-lightbox-backdrop-in 0.22s ease-out;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.86);
}

.reference-lightbox__content,
.reference-lightbox__figure,
.reference-lightbox__media {
  height: 100%;
  width: 100%;
}

.reference-lightbox__content {
  position: relative;
}

.reference-lightbox__figure {
  margin: 0;
}

.reference-lightbox__media {
  overflow: hidden;
  position: relative;
}

.reference-lightbox__image {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.reference-lightbox__image--next {
  animation: reference-lightbox-next 0.22s ease;
}

.reference-lightbox__image--previous {
  animation: reference-lightbox-previous 0.22s ease;
}

.reference-lightbox__caption {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  inset: auto 1rem 1rem;
  justify-content: space-between;
  pointer-events: none;
  position: absolute;
}

.reference-lightbox__label,
.reference-lightbox__counter {
  background: rgba(var(--noc-950-rgb), 0.8);
  line-height: 1;
  padding: 0.6rem 0.8rem;
}

.reference-lightbox__button,
.reference-lightbox__close {
  align-items: center;
  background: rgba(var(--noc-950-rgb), 0.74);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: absolute;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  width: 48px;
  z-index: 3;
}

.reference-lightbox__button i,
.reference-lightbox__close i {
  font-size: 2rem;
}

.reference-lightbox__button:hover:not(:disabled),
.reference-lightbox__button:focus-visible,
.reference-lightbox__close:hover,
.reference-lightbox__close:focus-visible {
  background: var(--led-600);
  border-color: var(--led-600);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.reference-lightbox__button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.reference-lightbox__button--previous,
.reference-lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
}

.reference-lightbox__button--previous {
  left: 1rem;
}

.reference-lightbox__button--next {
  right: 1rem;
}

.reference-lightbox__close {
  right: 1rem;
  top: 1rem;
}

@keyframes reference-lightbox-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes reference-lightbox-next {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reference-lightbox-previous {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .reference-lightbox {
    height: calc(100dvh - 112px);
    width: calc(100vw - 24px);
  }

  .reference-lightbox__button,
  .reference-lightbox__close {
    height: 44px;
    width: 44px;
  }

  .reference-lightbox__button--previous {
    left: 0.5rem;
  }

  .reference-lightbox__button--next,
  .reference-lightbox__close {
    right: 0.5rem;
  }

  .reference-lightbox__close {
    top: 0.5rem;
  }

  .reference-lightbox__caption {
    inset: auto 0.75rem 0.75rem;
  }

  .reference-lightbox__label,
  .reference-lightbox__counter {
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
  }
}

/* --- Testimonials -------------------------------------------------------- */

.testimonials-carousel__track {
  --testimonials-gap: 2rem;
  --testimonials-visible-cards: 3;
  display: flex;
  gap: var(--testimonials-gap);
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.testimonials-carousel__track::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel__track:focus-visible {
  outline: 3px solid var(--led-500);
  outline-offset: 3px;
}

.reference-item {
  background: linear-gradient(rgba(var(--noc-950-rgb), 0.68), rgba(var(--noc-950-rgb), 0.92)), url(webp/about/01.webp) center / cover;
  display: flex;
  flex: 0 0 calc(33.333333% - 1.333333rem);
  flex-direction: column;
  min-height: 280px;
  min-width: 0;
  padding: 1.5rem;
  scroll-snap-stop: always;
}

.reference-item:nth-child(3n + 1) {
  scroll-snap-align: start;
}

.reference-item .reference-item__quote {
  color: var(--led-500);
}

.reference-item__quote--closing {
  align-self: flex-end;
}

.reference-item__text {
  flex: 1;
  font-size: 1.2rem;
  margin: 0;
  padding: 0.5rem 1rem;
}

.reference-author,
.reference-des {
  text-align: right;
}

.reference-des {
  color: var(--noc-300);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .testimonials-carousel__track {
    --testimonials-visible-cards: 2;
  }

  .reference-item:nth-child(n) {
    flex-basis: calc(50% - 1rem);
    scroll-snap-align: none;
  }

  .reference-item:nth-child(2n + 1) {
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .testimonials-carousel__track {
    --testimonials-gap: 1rem;
    --testimonials-visible-cards: 1;
  }

  .reference-item:nth-child(n) {
    flex-basis: 100%;
    min-height: 260px;
    padding: 1.25rem;
    scroll-snap-align: start;
  }
}

/* --- Proces spolupráce --------------------------------------------------- */

.process__steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  position: relative;
}

.process__step {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  position: relative;
}

.process__number {
  align-items: center;
  background: var(--noc-950);
  border: 1px solid var(--led-500);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  height: 3.5rem;
  justify-content: center;
  position: relative;
  width: 3.5rem;
  z-index: 1;
}

.process__step:not(:last-child)::before {
  background: var(--noc-700);
  bottom: -1rem;
  content: "";
  left: calc(1.75rem - 0.5px);
  position: absolute;
  top: 3.5rem;
  width: 1px;
}

.process__card {
  background: var(--noc-850);
  min-width: 0;
  padding: 1rem;
}

.process__card .process__icon {
  color: var(--led-500);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.process__title {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.process__card .process__text {
  color: var(--noc-100);
  font-size: 1rem;
  margin: 0;
  text-align: left;
}

.process__cta-text {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  text-align: center;
}

@media (min-width: 1201px) {
  .process__steps {
    gap: 1.5rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .process__steps::before {
    background: var(--noc-700);
    content: "";
    height: 1px;
    left: calc(100% / 12);
    position: absolute;
    right: calc(100% / 12);
    top: calc(1.75rem - 0.5px);
  }

  .process__step {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .process__step:not(:last-child)::before {
    display: none;
  }

  .process__number {
    flex-shrink: 0;
    margin: 0 auto 1rem;
  }

  .process__card {
    flex: 1;
  }

  .process__card .process__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .process__card .process__text {
    text-align: center;
  }
}

/* --- Kontakt / formulář -------------------------------------------------- */

.contact {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 100%;
  width: fit-content;
}

.contact .material-symbols-outlined {
  margin-left: 2rem;
  margin-right: 2rem;
}

.contact-item {
  align-items: start;
  column-gap: 3rem;
  display: grid;
  grid-template-columns: 6rem auto;
}

.contact-item > .material-symbols-outlined {
  color: var(--led-500);
  font-size: 4rem;
  text-align: center;
  width: 4rem;
}

.contact-label {
  color: var(--noc-400);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.contact-link {
  color: var(--noc-100);
  text-decoration: none;
  text-underline-offset: 0.25em;
  transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--led-300);
  text-decoration: underline;
}

.contact-link:focus-visible {
  outline: 2px solid var(--led-500);
  outline-offset: 2px;
}

.contact-form {
  background: var(--noc-850);
  margin-top: 2rem;
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 2rem;
}

.contact-form__field {
  margin-bottom: 1.5rem;
}

.contact-form__field label {
  color: var(--noc-100);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.contact-form__control {
  background: rgba(var(--noc-950-rgb), 0.55);
  border: none;
  color: white;
  font: inherit;
  margin: 0;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.2s ease;
  width: 100%;
}

.contact-form textarea.contact-form__control {
  min-height: 10rem;
  resize: vertical;
}

.contact-form__control::placeholder {
  color: var(--noc-400);
}

.contact-form__control:focus {
  box-shadow: 0 0 0 3px rgba(var(--led-500-rgb), 0.22);
  outline: none;
}

.contact-form__submit {
  display: block;
  margin-left: auto;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 1.25rem;
  }
}

/* --- Footer -------------------------------------------------------------- */

.footer-tagline {
  color: var(--noc-300);
  font-size: 1rem;
  max-width: 32rem;
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.footer-social__link {
  align-items: center;
  color: var(--noc-100);
  display: inline-flex;
  height: 56px;
  justify-content: center;
  transition: color 0.2s ease;
  width: 56px;
}

/* stroke-width odpovídá tenkým Material Symbols (wght 100) */
.footer-social__link svg {
  fill: none;
  height: 44px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.75;
  width: 44px;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  color: var(--led-300);
}

.footer-social__link:focus-visible {
  outline: 2px solid var(--led-500);
  outline-offset: 2px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

/* --- Duotón fotek -------------------------------------------------------- */

/* Fotky v modrém duotónu, na hover ožijí (paralax pásy bez hoveru) */
.about__media,
.tech-card__media,
.reference-carousel__card,
.service-row .col:has(> .service-image) {
  position: relative;
}

.about__media img,
.tech-card__media .service-image,
.reference-carousel__image,
.service-row .service-image,
.parallax-container .parallax img {
  filter: var(--duotone-filter);
}

.about__media img,
.tech-card__media .service-image,
.reference-carousel__image,
.service-row .service-image {
  transition: filter var(--duotone-ease), transform var(--duotone-ease);
}

/* Modrý tón přes fotku */
.about__media::after,
.tech-card__media::after,
.service-row .col:has(> .service-image)::after,
.parallax-container .parallax::after,
.reference-carousel__card::before {
  background: var(--duotone-tint);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  transition: opacity var(--duotone-ease);
}

/* Detail služby: sloupec má boční padding 0.75rem */
.service-row .col:has(> .service-image)::after {
  inset: 0 0.75rem;
}

.reference-carousel__card::before {
  background: linear-gradient(160deg, rgba(var(--led-500-rgb), 0.45), rgba(var(--led-700-rgb), 0.2) 60%, transparent);
  z-index: 1;
}

.tech-card:focus-within .tech-card__media::after {
  opacity: 0;
}

@media (hover: hover) {
  .about__media:hover img,
  .tech-card:hover .tech-card__media .service-image,
  .reference-carousel__card:hover .reference-carousel__image,
  .service-row .col:has(> .service-image):hover .service-image {
    filter: none;
  }

  .about__media:hover::after,
  .tech-card:hover .tech-card__media::after,
  .reference-carousel__card:hover::before,
  .service-row .col:has(> .service-image):hover::after {
    opacity: 0;
  }
}

/* ==========================================================================
   7. Pohyb
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reference-carousel__track,
  .testimonials-carousel__track {
    scroll-behavior: smooth;
  }
}

/* Odhalování při scrollu: motion.js přidá .reveal + data-reveal a po vstupu do viewportu .is-revealed.
   Bez JS nebo s prefers-reduced-motion se třídy nepřidají a obsah je vidět hned. */
.reveal {
  --reveal-delay: 0ms;
  --reveal-duration: 950ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal:not(.is-revealed) {
  opacity: 0;
}

.reveal.is-revealed {
  animation: var(--reveal-name, reveal-up) var(--reveal-duration) var(--reveal-ease) var(--reveal-delay) both;
}

.reveal[data-reveal="up-soft"] {
  --reveal-name: reveal-up-soft;
}

.reveal[data-reveal="left"] {
  --reveal-name: reveal-left;
}

.reveal[data-reveal="right"] {
  --reveal-name: reveal-right;
}

.reveal[data-reveal="pop"] {
  --reveal-duration: 750ms;
  --reveal-name: reveal-pop;
}

/* Opona na fotce v O nás: animuje se obrázek a modrá vrstva, figura sama zůstává viditelná */
.reveal[data-reveal="curtain"] {
  overflow: hidden;
}

.reveal[data-reveal="curtain"]:not(.is-revealed) {
  opacity: 1;
}

.reveal[data-reveal="curtain"].is-revealed {
  animation: none;
}

.reveal[data-reveal="curtain"]:not(.is-revealed) img,
.reveal[data-reveal="curtain"]:not(.is-revealed)::after {
  clip-path: inset(0 0 100% 0);
}

.reveal[data-reveal="curtain"].is-revealed img {
  animation: reveal-curtain 1300ms var(--reveal-ease) var(--reveal-delay) both;
}

.reveal[data-reveal="curtain"].is-revealed::after {
  animation: reveal-clip 1300ms var(--reveal-ease) var(--reveal-delay) both;
}

@keyframes reveal-up {
  from {
    filter: blur(10px);
    opacity: 0;
    scale: 0.94;
    translate: 0 90px;
  }

  to {
    filter: none;
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes reveal-up-soft {
  from {
    opacity: 0;
    scale: 0.9;
    translate: 0 110px;
  }

  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes reveal-left {
  from {
    opacity: 0;
    translate: -120px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-right {
  from {
    opacity: 0;
    translate: 120px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-pop {
  0% {
    opacity: 0;
    scale: 0.4;
  }

  70% {
    opacity: 1;
    scale: 1.08;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes reveal-curtain {
  from {
    clip-path: inset(0 0 100% 0);
    scale: 1.12;
  }

  to {
    clip-path: inset(0);
    scale: 1;
  }
}

@keyframes reveal-clip {
  from {
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reference-carousel__button,
  .reference-carousel__indicator::before,
  .reference-carousel__image,
  .reference-carousel__label,
  .reference-lightbox__button,
  .reference-lightbox__close,
  .service-details,
  .service-detail,
  .tech-card,
  .tech-card__media .service-image,
  .tech-card__more-button .material-symbols-outlined,
  .motion-heading::after,
  #nav-mobile a::after,
  .btn,
  .btn-large,
  .contact-form__submit,
  .about__media img,
  .service-row .service-image,
  .about__media::after,
  .tech-card__media::after,
  .reference-carousel__card::before,
  .service-row .col:has(> .service-image)::after,
  .sidenav--glass .sidenav__links li,
  .sidenav--glass li > a.sidenav__link::after {
    transition: none;
  }

  .reference-lightbox::backdrop,
  .reference-lightbox__image--next,
  .reference-lightbox__image--previous {
    animation: none;
  }

  .hero-intro__title,
  .hero-intro__lead,
  .hero-intro__tagline,
  .hero-intro__actions {
    animation: none;
  }

  .motion-heading::after {
    width: 3rem;
  }

  .reference-carousel__card:hover .reference-carousel__image,
  .reference-carousel__card:focus-within .reference-carousel__image,
  .reference-carousel__card:hover .reference-carousel__label,
  .reference-carousel__card:focus-within .reference-carousel__label,
  .tech-card:hover,
  .tech-card:focus-within,
  .tech-card:hover .tech-card__media .service-image,
  .tech-card:focus-within .tech-card__media .service-image,
  .btn:hover,
  .btn-large:hover,
  .btn:focus-visible,
  .btn-large:focus-visible,
  .contact-form__submit:hover,
  .contact-form__submit:focus-visible {
    transform: none;
  }
}

/* Tisk: nedoscrollované prvky musí být vidět */
@media print {
  .reveal,
  .reveal[data-reveal="curtain"] img,
  .reveal[data-reveal="curtain"]::after {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   7. Cookie lišta, doplňky formuláře a podstránky (dekujeme, ochrana údajů)
   ========================================================================== */

/* --- Doplňky kontaktního formuláře --------------------------------------- */

.contact-form__note {
  color: var(--noc-400);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

/* Widget hCaptcha má pevně ~303 px; zmenšení podle šířky sloupce řeší main.js (initContactFormCaptcha). */
/* Captcha a tlačítko vedle sebe; když se nevejdou, tlačítko se zalomí pod captchu. */
.contact-form__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
}

/* Když je místo, drží main.js captchu a tlačítko v jednom řádku (captcha se jen mírně zmenší). */
.contact-form__actions--inline {
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.contact-form__actions--inline .contact-form__submit {
  flex: 0 0 auto;
}

.contact-form .h-captcha {
  flex: 0 1 304px;
  min-width: 0;
  transform-origin: 0 50%;
}

.contact-form__error {
  color: #e8908f;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0.75rem 0 0;
}

.contact-form__error[hidden] {
  display: none;
}

/* --- Odkazy v patičce (ochrana údajů, nastavení cookies) ----------------- */

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-left: 1.5rem;
}

.footer-legal__button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* --- Cookie lišta --------------------------------------------------------- */

/* Skleněný efekt stejný jako hlavička (nav) */
.cookie-bar {
  background: rgba(var(--noc-950-rgb), 0.6);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  bottom: 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  color: var(--noc-100);
  left: 0;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  padding: 1.25rem 0;
  position: fixed;
  right: 0;
  z-index: 1000;
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0 auto;
  max-width: 1320px;
  width: 80%;
}

.cookie-bar__text {
  flex: 1 1 24rem;
  min-width: 0;
}

.cookie-bar__title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.cookie-bar__desc {
  color: var(--noc-300);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-bar__actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Přijmout i odmítnout mají stejný styl a velikost (.btn) */
.cookie-bar__actions .btn {
  font-size: 0.95rem;
  min-width: 9.5rem;
  padding: 0.75rem 1.25rem;
}

.cookie-bar__options {
  border-top: 1px solid var(--noc-700);
  flex: 1 0 100%;
  padding-top: 1rem;
}

.cookie-bar__options[hidden] {
  display: none;
}

.cookie-bar__option {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cookie-bar__option input {
  accent-color: var(--led-500);
  flex: none;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  width: 1.15rem;
}

.cookie-bar__option label {
  color: var(--noc-100);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-bar__option label small {
  color: var(--noc-400);
  display: block;
  font-size: 0.85rem;
}

.cookie-bar__option input:disabled + label {
  cursor: default;
}

.cookie-bar__links {
  white-space: nowrap;
}

.cookie-bar__more,
.cookie-bar__link {
  font-size: 0.95rem;
}

.cookie-bar__link {
  background: none;
  border: 0;
  color: var(--led-500);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__link:hover {
  color: #fff;
}

.cookie-bar__link:focus-visible,
.cookie-bar a:focus-visible,
.cookie-bar input:focus-visible,
.cookie-bar__options:focus-visible {
  outline: 2px solid var(--led-300);
  outline-offset: 2px;
}

.cookie-bar__save {
  margin-top: 0.25rem;
}

@media (min-width: 601px) {
  .cookie-bar {
    animation: cookie-bar-in 350ms var(--ease-out);
  }
}

@keyframes cookie-bar-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@media (max-width: 992px) {
  .cookie-bar__inner {
    width: calc(100% - 2.5rem);
  }
}

/* Mobil: nízká lišta – Přijmout a Odmítnout vedle sebe, stejně široké */
@media (max-width: 600px) {
  .cookie-bar {
    padding: 0.85rem 0;
  }

  .cookie-bar__inner {
    gap: 0.75rem;
  }

  .cookie-bar__title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  .cookie-bar__desc,
  .cookie-bar__more,
  .cookie-bar__link {
    font-size: 0.875rem;
  }

  .cookie-bar__desc {
    line-height: 1.45;
  }

  .cookie-bar__actions {
    flex-wrap: nowrap;
    width: 100%;
  }

  .cookie-bar__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.5rem;
  }
}

/* --- Podstránky ----------------------------------------------------------- */

.subpage {
  background: var(--noc-950);
  margin-top: 0;
  min-height: calc(100vh - 56px);
}

.subpage--center {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

.thanks {
  margin: 0 auto;
  max-width: 40rem;
  text-align: center;
}

.thanks h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.thanks p {
  text-align: center;
  color: var(--noc-300);
  font-size: 1.1rem;
  line-height: 1.6;
}

.thanks__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.thanks__contacts .contact-item {
  text-align: left;
}

.thanks .btn {
  margin-top: 0.5rem;
}

.legal {
  margin: 0 auto;
  max-width: 72ch;
  padding: 5rem 0 4rem;
}

.legal h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin: 2.5rem 0 1rem;
}

.legal p,
.legal li {
  text-align: left;
  color: var(--noc-300);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 1rem;
}

.legal strong {
  color: var(--noc-100);
}

.legal ul:not(.browser-default) {
  list-style: disc;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal__meta {
  color: var(--noc-400);
}

.legal__link-button {
  background: none;
  border: 0;
  color: var(--led-300);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.legal__link-button:hover {
  color: #fff;
}

.legal__link-button:focus-visible {
  outline: 2px solid var(--led-500);
  outline-offset: 2px;
}

/* Místa k doplnění v návrhu textu */
.todo {
  background: rgba(255, 213, 0, 0.22);
  border-radius: 2px;
  color: #ffe566;
  padding: 0 0.2em;
}

@media (max-width: 600px) {
  .thanks h1,
  .legal h1 {
    font-size: 2rem;
  }

  .legal {
    padding: 3rem 0 3rem;
  }

  .footer-legal {
    display: flex;
    margin: 0.5rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar {
    animation: none;
  }
}
