html { scroll-behavior: smooth; }
section, .product { scroll-margin-top: var(--header-h); }

.hero { max-width: 1000px; height: 295px; margin: 0 auto; }
.hero .slide { object-fit: cover; }

.product-bar { display: flex; justify-content: center; border-bottom: 1px solid var(--line); background: #fff; }
.product-bar a { position: relative; display: block; width: 130px; padding: 14px 0 10px; text-align: center; text-decoration: none; border-left: 1px dashed var(--line); transition: background-color .3s ease; }
.product-bar a:last-child { border-right: 1px dashed var(--line); }
.product-bar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); transform: scaleX(0); transition: transform .3s ease; }
.product-bar img { display: block; width: 64px; height: 48px; margin: 0 auto; object-fit: contain; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), filter .3s ease; }
.product-bar span { display: block; margin-top: 8px; color: var(--orange-text); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.product-bar a:hover, .product-bar a:focus-visible { background-color: var(--bg-soft); }
.product-bar a:hover::after, .product-bar a:focus-visible::after { transform: scaleX(1); }
.product-bar a:hover img, .product-bar a:focus-visible img { transform: translateY(-4px) scale(1.1); filter: drop-shadow(0 6px 6px rgba(0, 81, 143, .25)); }

.about { display: grid; grid-template-columns: 1fr 300px; gap: 48px; }
.about ul { padding-left: 18px; }
.about li::marker { color: var(--teal); }
.person { align-self: start; padding: 22px; }
.person h3 { margin: 0 0 2px; font-size: 18px; }
.person .role { margin-bottom: 12px; color: var(--muted); }
.person dl, .card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.person dt, .card dt { color: var(--muted); }
.person dd, .card dd { margin: 0; }

.funds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.fund { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 22px; }
.fund img { width: 110px; height: auto; align-self: start; }
.funds .fund h3 { margin: 0 0 4px; font-size: 17px; }
.fund .when { margin-bottom: 8px; color: var(--orange-text); font-size: 13px; }
.funds .fund p { margin: 0; font-size: 13px; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; border-top: 1px dashed var(--line); }
.product:nth-of-type(even) .shot { order: -1; }
.product h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 24px; }
.product h3 img { width: 46px; height: 40px; object-fit: contain; }
.product .shot:not(.shots) img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-1); }
.product .more { display: inline-block; margin-top: 8px; color: var(--orange-text); }

.shots { aspect-ratio: 16 / 10; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.shots .slide { object-fit: contain; }
.shots .slider-arrow { opacity: 0; transition: opacity .3s; }
.shots:hover .slider-arrow, .shots:focus-within .slider-arrow { opacity: 1; }
@media (hover: none) { .shots .slider-arrow { opacity: 1; } }

.carousel { overflow: hidden; margin-top: 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.carousel-track { display: flex; gap: 48px; width: max-content; animation: logos-scroll 30s linear infinite; }
.carousel:hover .carousel-track, .carousel:focus-within .carousel-track { animation-play-state: paused; }
.carousel img { height: 90px; width: auto; filter: grayscale(1); opacity: .8; transition: .3s; }
.carousel img:hover { filter: none; opacity: 1; }
/* -50 % + polovina mezery: druhá sada log pak začíná přesně tam, kde začínala první. */
@keyframes logos-scroll { to { transform: translateX(calc(-50% - 24px)); } }

.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.card h3 { margin: 0 0 2px; font-size: 18px; }
.card .hours { margin-bottom: 14px; color: var(--orange-text); font-size: 13px; }
.card dl { gap: 6px 12px; }
.card .tv { display: block; width: 180px; margin: 6px 0 14px; }

.contact { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: stretch; }
.contact .card address { margin-bottom: 16px; color: var(--ink); font-size: 15px; font-style: normal; line-height: 1.7; }

@media (max-width: 700px) {
  .hero { height: 200px; }
  .hero .slide { object-position: right; }
  .hero .slider-dots { top: 6px; bottom: auto; }
  .product-bar a { width: 20%; padding: 8px 0; }
  .product-bar img { width: 40px; height: 30px; }
  .product-bar span { margin-top: 4px; font-size: 11px; letter-spacing: .04em; }
  .about, .funds, .product, .support, .contact { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .shot { order: 0; }
  .fund { grid-template-columns: 70px 1fr; }
  .fund img { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .slider .slide, .shots .slider-arrow { transition: none; }
  .carousel { -webkit-mask-image: none; mask-image: none; }
  .carousel-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 24px 48px; animation: none; }
  .carousel img[aria-hidden="true"] { display: none; }
}
