/* ==========================================================================
   JIZERSKÁ 50 - EXACT DESIGNER PDF STYLESHEET (100% SEAMLESS INFINITE SKI STEP)
   ========================================================================== */

/* Font Declarations: Google Sans & Alfarn 2 */
@font-face {
  font-family: 'Alfarn 2';
  src: url('assets/fonts/Alfarn2.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
}

@font-face {
  font-family: 'Google Sans';
  src: url('assets/fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --color-magicka-modr: #002037;
  --color-nebe-jizerky: #58ADDC;
  --color-vosk: #E9E9E1;
  --color-stopa: #FFFFFF;
  --color-proste-cerna: #000000;
  --color-jiskra: #F24F00;

  --font-heading: 'alfarn-2', 'alfarn', 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Google Sans', 'Product Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

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

html,
body {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-magicka-modr) !important;
  color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
}

.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--color-magicka-modr);
}

/* Headings typography */
h1,
h2,
h3,
.title-blue,
.title-white,
.title-white-bold,
.big-50,
.j50-huge-title {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Header Banner - Precise Edge-to-Edge Grid Alignment */
.designer-hero-header {
  padding: 55px 0 45px;
  background-color: var(--color-magicka-modr);
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  row-gap: 1px;
  align-items: center;
  width: 100%;
}

.row-1-container {
  grid-row: 1;
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  white-space: nowrap;
}

.row-1-container .double-line-white {
  flex: 1;
}

.row-2-container {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
}

.row-3-container {
  grid-row: 3;
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  white-space: nowrap;
}

.row-3-container .double-line-white {
  flex: 1;
}

.row-3-container .grid-text {
  flex-shrink: 0;
}

.grid-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.double-line-white {
  height: 7px;
  border-top: 1.5px solid #FFFFFF;
  border-bottom: 1.5px solid #FFFFFF;
}

.text-blue {
  color: var(--color-nebe-jizerky);
  font-weight: 900;
}

.text-white {
  color: #FFFFFF;
  font-weight: 900;
}

/* Hero Split Card Container (Full width photo background, cream left card with rounded bottom-right corner showing photo behind!) */
.hero-split-card-container {
  position: relative;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  margin: 25px auto 0;
  height: 533px;
  min-height: 533px;
  max-height: 533px;
  overflow: hidden;
  display: flex;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: var(--color-magicka-modr);
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-bg-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform: translateX(20%);
  display: block;
}

.hero-video-loop-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero-video-loop-overlay span {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-cream-card {
  position: relative;
  z-index: 3;
  width: calc(46% - 25px);
  min-width: 360px;
  background-color: var(--color-vosk);
  padding: 45px clamp(40px, 5vw, 80px);
  color: var(--color-magicka-modr);
  border-bottom-right-radius: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
}

.hero-cream-card p {
  color: var(--color-magicka-modr);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 425px;
  margin: 0;
}

@keyframes ken-burns-effect {
  0% {
    transform: scale(1) translate(0, 0);
  }

  25% {
    transform: scale(1.15) translate(-2%, -1.5%);
  }

  50% {
    transform: scale(1.08) translate(1.5%, -2.5%);
  }

  75% {
    transform: scale(1.2) translate(-1%, 2%);
  }

  100% {
    transform: scale(1.05) translate(2%, 1%);
  }
}

/* Section: JAKO NOVÁ 50 */
.section-jako-nova {
  background-color: var(--color-nebe-jizerky);
  padding: 68px clamp(40px, 5vw, 85px);
  height: 533px;
  min-height: 533px;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  margin: 0 auto;
  color: var(--color-magicka-modr);
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 60px;
  align-items: center;
  box-sizing: border-box;
}

.jako-nova-left {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 55px 0 0;
}

.jako-nova-left img {
  max-width: 310px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.jako-nova-right {
  display: flex;
  align-items: center;
}

.jako-nova-right p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-magicka-modr);
  font-weight: 400;
  max-width: 375px;
  margin: 0;
  padding-left: 40px;
}

/* Section: J JAKO JIZERSKÁ */
.section-j-jizerska {
  background-color: var(--color-vosk);
  padding: 68px clamp(40px, 5vw, 85px);
  height: 533px;
  min-height: 533px;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  margin: 0 auto;
  color: var(--color-magicka-modr);
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: center;
  border-bottom-right-radius: 75px;
  box-sizing: border-box;
}

.j-jizerska-left {
  padding-left: 0;
  max-width: 520px;
  overflow: hidden;
}

.crop-j {
  display: inline-block;
  clip-path: inset(0 0 0 0.22em);
}

.j-jizerska-left h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--color-nebe-jizerky);
  margin-bottom: 18px;
}

.j-jizerska-left p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-magicka-modr);
  font-weight: 400;
  margin-left: 0.55em;
}

.j-jizerska-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  position: relative;
  height: 320px;
}

.logo-switch-stack {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-switch-stack img {
  position: absolute;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.logo-standalone-j {
  height: 250px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  opacity: 0;
  transform: translate(-20px, 30px) scale(0.97);
}

.logo-historical {
  height: 360px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  opacity: 0;
  transform: translate(-15px, -27px) scale(0.97);
}

.logo-switch-stack img.active {
  opacity: 1;
}

.logo-standalone-j.active {
  transform: translate(-20px, 30px) scale(1);
}

.logo-historical.active {
  transform: translate(-15px, -27px) scale(1);
}

/* Section: EVOLUUJEME */
.section-evoluujeme {
  background-color: var(--color-magicka-modr);
  padding: 68px clamp(40px, 5vw, 85px);
  height: 533px;
  min-height: 533px;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 40px;
  align-items: center;
  box-sizing: border-box;
}

.evoluujeme-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.evoluujeme-left img {
  max-width: 250px;
  max-height: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateX(-20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.evoluujeme-right {
  transform: translateX(-14px);
}

.evoluujeme-right h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--color-nebe-jizerky);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.evoluujeme-right p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #FFFFFF;
  font-weight: 400;
  max-width: 520px;
}

/* Section: VÍCE PODOB JIZERSKÉ */
.section-vice-podob {
  background-color: var(--color-magicka-modr);
  padding: 0 0 40px;
}

.cards-scroll-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: auto;
  padding-bottom: 25px;
  scrollbar-width: none;
  width: 100%;
}

.cards-scroll-container::-webkit-scrollbar {
  display: none;
}

.card-cell {
  flex-shrink: 0;
}

.card-cell-1 {
  background-color: var(--color-nebe-jizerky);
}

.card-cell-2 {
  background-color: #FFFFFF;
}

.card-cell-3 {
  background-color: var(--color-vosk);
}

.card-cell-4 {
  background-color: var(--color-magicka-modr);
}

.card-text-side {
  width: clamp(400px, 34vw, 480px);
  height: 533px;
  background-color: var(--color-vosk);
  border-radius: 0 0 75px 0;
  padding: 60px 48px;
  color: var(--color-magicka-modr);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-text-side h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--color-nebe-jizerky);
  margin-bottom: 24px;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.card-text-side p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-magicka-modr);
  font-weight: 500;
}

.card-logo-item {
  width: clamp(400px, 34vw, 480px);
  height: 533px;
  border-radius: 0 0 75px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.card-logo-item.sky-blue {
  background-color: var(--color-nebe-jizerky);
}

.card-logo-item.white-bg {
  background-color: #FFFFFF;
}

.card-logo-item.cream-bg {
  background-color: var(--color-vosk);
}

.card-logo-label {
  position: absolute;
  top: 32px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
}

.card-logo-item.white-bg .card-logo-label,
.card-logo-item.cream-bg .card-logo-label {
  color: var(--color-nebe-jizerky);
}

.card-logo-item img {
  max-width: 320px;
  max-height: 240px;
  object-fit: contain;
}

/* Fast Draggable Slider Bar ("bobík" - Double Ski Track Line + Blue Circle Knob) */
.scroll-progress-bar {
  margin: 35px auto 0;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.section-mosaic-layout .scroll-progress-bar,
.section-muj-zavod .scroll-progress-bar {
  width: 100%;
  max-width: 1150px;
  margin-top: 0;
}

.scroll-track-line {
  width: 100%;
  height: 8px;
  background: transparent;
  border-top: 2px solid var(--color-nebe-jizerky);
  border-bottom: 2px solid var(--color-nebe-jizerky);
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
}

.scroll-knob {
  width: 24px;
  height: 24px;
  background-color: var(--color-nebe-jizerky);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-knob::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2.2px solid var(--color-magicka-modr);
  border-top: 2.2px solid var(--color-magicka-modr);
  transform: rotate(45deg) translate(-1px, 1px);
  box-sizing: border-box;
}

.scroll-knob:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.scroll-knob:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.3);
}

/* Section J50 Visual */
.section-j50-visual {
  padding: 80px 40px 60px;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  margin: 0 auto;
  background-color: var(--color-magicka-modr);
}

.j50-grid {
  display: grid;
  grid-template-columns: 36% 64%;
  gap: 40px;
  align-items: center;
}

.j50-left {
  transform: translateX(-15px);
}

.j50-left h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  color: var(--color-nebe-jizerky);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.j50-left p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #FFFFFF;
  font-weight: 400;
  max-width: 440px;
  margin: 0;
}

.j50-right-mask {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.j50-svg-masked-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
}

/* SECTION TICKER & TALL VIDEO BOX WITH 100% SEAMLESS INFINITE SKI STEP ANIMATION */
.section-ticker-video {
  background-color: var(--color-magicka-modr);
}

.double-ski-marquee-banner {
  background-color: var(--color-magicka-modr);
  color: var(--color-nebe-jizerky);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  line-height: 1;
  white-space: nowrap;
}

.ticker-svg-item {
  height: 16px;
  width: auto;
  margin-right: 2px;
  display: inline-block;
  vertical-align: middle;
}

.ticker-svg-item[src*="jizerska"] {
  margin-right: -3px;
}

.section-ticker-video .double-ski-marquee-banner:first-child {
  padding-top: 15px;
  padding-bottom: 30px;
}

.section-ticker-video .double-ski-marquee-banner:last-of-type {
  padding-top: 30px;
  padding-bottom: 15px;
}

.marquee-line {
  white-space: nowrap;
  display: flex;
  overflow: hidden;
}

.marquee-track.ski-step-1 {
  display: inline-block;
  animation: ski-step-seamless-1 12s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.marquee-track.ski-step-2 {
  display: inline-block;
  animation: ski-step-seamless-2 12s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Střídavý pohyb na běžkách (Alternating Cross-Country Ski Kick & Glide) */
@keyframes ski-step-seamless-1 {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-25%);
  }

  50% {
    transform: translateX(-25%);
  }

  75% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes ski-step-seamless-2 {
  0% {
    transform: translateX(-25%);
  }

  25% {
    transform: translateX(-25%);
  }

  50% {
    transform: translateX(-50%);
  }

  75% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(-75%);
  }
}

/* Tall Video Box (Height: 700px, No VIDEO text overlay) */
.tall-video-box {
  width: 100%;
  height: 700px;
  overflow: hidden;
  position: relative;
}

.tall-video-box img,
.tall-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken-burns-effect 28s ease-in-out infinite alternate;
}

/* Section: Mosaic Layout (Horizontal Carousel with Slider) */
.section-mosaic-layout {
  padding: 40px clamp(40px, 6vw, 95px) 40px;
  background-color: var(--color-magicka-modr);
}

.mosaic-scroll-container {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: auto;
  padding-bottom: 25px;
  scrollbar-width: none;
  align-items: stretch;
}

.mosaic-scroll-container::-webkit-scrollbar {
  display: none;
}

.mosaic-left-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.mosaic-left-top {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.mosaic-card-snih {
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: none;
}

.mosaic-card-snih img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-marquee {
  width: 688px;
  max-width: 688px;
  padding: 8px 0;
  overflow: hidden;
  color: #FFFFFF;
  opacity: 0.87;
}

.mosaic-marquee .marquee-track {
  animation: none !important;
}

.mosaic-photo-full {
  width: 380px;
  height: 500px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: none;
}

.mosaic-photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-stacked-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 244px;
  height: 500px;
  flex-shrink: 0;
}

.mosaic-stacked-card {
  height: 244px;
  width: 100%;
  overflow: hidden;
  box-shadow: none;
}

.mosaic-stacked-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Merchandise Collage Container */
.mosaic-collage-container {
  width: 780px;
  height: 500px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-outline-bg {
  position: absolute;
  width: 82%;
  height: auto;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

.collage-item {
  position: absolute;
  z-index: 2;
  filter: none;
  transition: transform 0.3s ease;
}

.collage-item:hover {
  transform: scale(1.05);
}

.collage-hrnek {
  top: 35px;
  left: 40px;
  width: 185px;
}

.collage-oznak {
  top: 100px;
  left: 350px;
  width: 118px;
}

/* Zákaz nativního označování a ghost dragu obrázků v prohlížeči při tažení myší */
.mosaic-scroll-container,
.cards-scroll-container,
.headlines-scroll-wrapper {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.mosaic-scroll-container img,
.cards-scroll-container img,
.headlines-scroll-wrapper img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.mini-swatch,
.color-swatch,
.headline-scroll-item {
  pointer-events: auto !important;
}

.collage-kulich {
  bottom: 20px;
  left: 260px;
  width: 215px;
}

.collage-triko {
  top: 80px;
  right: 15px;
  width: 325px;
}

.swatches-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  flex-shrink: 0;
  justify-content: space-between;
}

.mini-swatch {
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mini-swatch:hover {
  transform: translateX(4px);
}

.mini-swatch-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Section: MŮJ OSOBNÍ ZÁVOD 2.0 */
.section-muj-zavod {
  padding: 80px 0 60px;
  width: calc(100% - clamp(85px, 12vw, 210px));
  max-width: 1150px;
  margin: 0 auto;
  background-color: var(--color-magicka-modr);
}

.zavod-header-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  transform: none;
}

.zavod-divider-line {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto 0;
  border-top: 2px solid var(--color-nebe-jizerky);
  opacity: 1;
}

.zavod-title-huge {
  font-size: clamp(3.4rem, 5.8vw, 5.2rem);
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-nebe-jizerky);
  line-height: 0.92;
  letter-spacing: -0.01em;
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
}

.zavod-title-huge .line-1 {
  align-self: flex-start;
}

.zavod-title-huge .line-2 {
  align-self: flex-end;
  text-align: right;
  width: 100%;
}

.zavod-title-huge .line-3 {
  align-self: flex-start;
}

.zavod-description p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #FFFFFF;
  font-weight: 400;
  max-width: 520px;
  margin: 0;
}

.headlines-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 65px 0 50px;
  scrollbar-width: none;
  width: 100%;
}

.headlines-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.headlines-track {
  display: inline-flex;
  gap: clamp(60px, 6vw, 100px);
  align-items: flex-start;
  padding-left: clamp(10px, 1.5vw, 16px);
  padding-right: clamp(250px, 40vw, 600px);
}

.headline-scroll-item {
  font-family: var(--font-heading);
  font-size: clamp(2.55rem, 3.5vw, 3.5rem);
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1.04;
  padding-top: 15px;
  padding-bottom: 5px;
  text-align: left;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.headline-scroll-item:hover,
.headline-scroll-item.active {
  opacity: 1;
  color: #FFFFFF;
  transform: scale(1.03);
}

.headline-scroll-item.dummy-preview {
  opacity: 0.9;
  pointer-events: none;
}

.story-hero-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 2360 / 1080;
  overflow: hidden;
  box-shadow: none;
  margin-top: 80px;
}

.story-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.story-hero-content {
  position: absolute;
  inset: 0;
  padding: 45px 55px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 3;
}

.story-title-stacked {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 6.5vw, 6.0rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  align-self: flex-end;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0, 32, 55, 0.7);
}

.story-title-stacked .last-word-indent {
  display: inline-block;
  margin-left: 0.62em;
}

.story-logo-badge {
  width: clamp(90px, 9vw, 130px);
  height: auto;
  flex-shrink: 0;
}

/* Section: SKOL! */
.section-skol {
  background-color: var(--color-magicka-modr) !important;
  color: #FFFFFF !important;
  padding: 100px 40px;
}

.skol-wrapper {
  display: grid;
  grid-template-columns: 294px 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  transform: translateX(90px);
}

.skol-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skol-left img {
  width: 100%;
  max-width: 294px;
  height: auto;
  display: block;
}

.skol-right h2 {
  font-size: 4.5rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-nebe-jizerky);
  margin-bottom: 20px;
}

.skol-right p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #FFFFFF;
  font-weight: 400;
  max-width: calc(100% - 70px);
}

/* Section: PARTNEŘI */
.section-partneri {
  background-color: var(--color-magicka-modr) !important;
  padding: 100px 40px 120px;
  color: #FFFFFF !important;
  border-top: none;
}

.partneri-title {
  text-align: center;
  font-family: 'Google Sans', 'Roboto', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-nebe-jizerky);
  letter-spacing: 0.5px;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 50px;
}

.partneri-layout-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 85px;
}

.partner-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.partner-category-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 650px;
  gap: 24px;
  font-family: 'Google Sans', 'Roboto', sans-serif !important;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 3px;
  color: #FFFFFF;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.9;
}

.partner-category-label::before,
.partner-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.partner-general-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 360px;
  height: 130px;
  margin-top: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-general-box:hover,
.partner-premium-box:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

.partner-general-box img {
  width: auto;
  height: 100%;
  max-height: 130px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.partner-premium-box {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  height: 80px;
  margin-top: 8px;
}

.partner-premium-box img {
  height: 80px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.partner-other-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  gap: 72px;
}

/* Speciální úprava pro hlavního partnery na obrazovkách 1200px - 1500px: zvětšené mezery a zmenšená loga */
@media (min-width: 1200px) and (max-width: 1500px) {
  .partner-other-row {
    gap: 48px !important;
  }

  .partner-item {
    height: 40px !important;
  }
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.partner-item:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

.partner-item img {
  height: 100%;
  width: auto;
  max-height: 55px;
  object-fit: contain;
}

.partner-category-link {
  font-family: 'Google Sans', 'Roboto', sans-serif !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2.2px;
  color: #FFFFFF;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  margin-top: 15px;
}

.partner-category-link:hover {
  background-color: #FFFFFF;
  color: var(--color-magicka-modr);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--color-magicka-modr);
  padding: 35px 20px;
  text-align: center;
  border-top: none;
}

.footer-link {
  color: var(--color-nebe-jizerky);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  opacity: 0.85;
}

/* Mobile & Tablet Responsiveness (< 1200px) */
@media (max-width: 1200px) {
  .designer-hero-header {
    padding: 24px 24px 16px 24px !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .row-1-container,
  .row-2-container,
  .row-3-container {
    white-space: normal !important;
    flex-wrap: wrap !important;
  }

  .grid-text {
    font-size: 2.15rem !important;
    letter-spacing: -0.01em !important;
  }

  .hero-split-card-container {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .hero-cream-card {
    order: 1 !important;
    width: 100% !important;
    max-width: 650px !important;
    position: static !important;
    padding: 36px 24px !important;
    border-bottom-right-radius: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .hero-bg-photo {
    order: 2 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    height: 520px !important;
    min-height: 520px !important;
    inset: auto !important;
  }

  .section-jako-nova,
  .section-evoluujeme,
  .section-j50,
  .section-j50-visual,
  .section-skol {
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    padding: 50px 24px 40px !important;
    border-bottom-right-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    box-sizing: border-box !important;
  }

  .section-j-jizerska {
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    padding: 40px 24px !important;
    border-bottom-right-radius: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    box-sizing: border-box !important;
  }

  .j-jizerska-left p,
  .jako-nova-right p,
  .evoluujeme-right p,
  .j50-left p,
  .hero-cream-card p,
  .skol-right p,
  .card-text-side p {
    max-width: 520px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Sekce JAKO NOVÁ 50 mobilní seřazení */
  .jako-nova-right {
    order: 1 !important;
    transform: none !important;
  }

  .jako-nova-left {
    order: 2 !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 20px auto 10px !important;
    width: 100% !important;
  }

  .jako-nova-left img {
    max-width: 260px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Sekce J JAKO JIZERSKÁ mobilní seřazení */
  .j-jizerska-left {
    order: 1 !important;
  }

  .hero-bg-photo img,
  .hero-bg-photo video {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    display: block !important;
  }

  .hero-video-loop-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-video-loop-overlay span {
    font-size: clamp(1.8rem, 5.5vw, 3.0rem) !important;
    text-align: center !important;
  }

  .j-jizerska-right {
    order: 2 !important;
    width: 100% !important;
    height: 240px !important;
    margin: 15px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .logo-switch-stack {
    width: 200px !important;
    height: 200px !important;
  }

  .logo-standalone-j {
    height: 171px !important;
    transform: translate(-10px, 25px) scale(0.97) !important;
  }

  .logo-standalone-j.active {
    transform: translate(-10px, 25px) scale(1) !important;
  }

  .logo-historical {
    height: 250px !important;
    transform: translate(-8px, -12px) scale(0.97) !important;
  }

  .logo-historical.active {
    transform: translate(-8px, -12px) scale(1) !important;
  }

  /* Sekce PŘIROZENÁ EVOLUCE mobilní seřazení */
  .evoluujeme-right {
    order: 1 !important;
    transform: none !important;
  }

  .evoluujeme-left {
    order: 2 !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 10px 0 !important;
    height: 200px !important;
  }

  .evoluujeme-left img {
    max-width: 200px !important;
    height: 200px !important;
    transform: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  /* Sekce VIZUÁLNÍ IDENTITA pod sebe */
  .j50-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
  }

  .j50-left {
    transform: none !important;
    width: 100% !important;
  }

  .j50-right-mask {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .j50-svg-masked-image {
    max-width: 340px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* Video box a stopy běžkování měly max-width 650px */
  .section-ticker-video,
  .tall-video-box,
  .double-ski-marquee-banner {
    max-width: 650px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .tall-video-box {
    height: 320px !important;
  }

  .ticker-svg-item {
    height: 12px !important;
  }

  /* Můj osobní závod 2.0 pod sebe a max-width 650px */
  .section-muj-zavod {
    max-width: 650px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 60px 24px !important;
    box-sizing: border-box !important;
  }

  .zavod-header-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    transform: none !important;
    margin-bottom: 40px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .zavod-title-huge {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .zavod-title-huge .line-1,
  .zavod-title-huge .line-3 {
    align-self: flex-start !important;
    text-align: left !important;
  }

  .zavod-description p {
    text-align: left !important;
  }

  .zavod-top-row,
  .zavod-bottom-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .osobni-zavod-card {
    height: auto !important;
    min-height: 240px !important;
    padding: 24px 20px !important;
  }

  /* Fotka závodníka v Můj osobní závod 2.0 - zmenšování textu a usazení vlevo dole */
  .story-hero-preview {
    max-width: 650px !important;
    width: 100% !important;
    margin: 30px auto 0 !important;
  }

  .story-hero-content {
    padding: clamp(14px, 3.5vw, 36px) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
  }

  .story-title-stacked {
    font-size: 2.8rem !important;
    line-height: 0.95 !important;
    align-self: flex-end !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .story-logo-badge {
    width: clamp(42px, 10vw, 60px) !important;
    align-self: flex-start !important;
  }

  .mosaic-left-block {
    width: 688px !important;
    height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
  }

  .mosaic-left-top {
    display: flex !important;
    flex-direction: row !important;
    gap: 28px !important;
    align-items: stretch !important;
    height: 420px !important;
    flex-shrink: 0 !important;
  }

  .mosaic-card-snih {
    width: 420px !important;
    height: 420px !important;
    flex-shrink: 0 !important;
  }

  .swatches-column {
    width: 240px !important;
    height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
  }

  .mosaic-marquee {
    width: 688px !important;
    max-width: 688px !important;
    flex-shrink: 0 !important;
  }

  .section-skol {
    padding: 48px 20px !important;
  }

  .skol-wrapper {
    grid-template-columns: 1fr !important;
    transform: none !important;
    margin: 0 auto !important;
    gap: 30px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  .skol-left img {
    max-width: 190px !important;
    margin: 0 auto !important;
  }

  .skol-right {
    text-align: center !important;
  }

  .skol-right h2 {
    font-size: clamp(2.2rem, 7vw, 3.2rem) !important;
    margin-bottom: 16px !important;
    text-align: center !important;
  }

  .skol-right p {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .partners-section {
    padding: 36px 20px !important;
  }

  .partner-main-row {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .partner-other-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 28px 36px !important;
  }

  .partner-item img {
    height: 34px !important;
  }
}

/* Lineární responzivní škálování hlavního nadpisu (.grid-text) spuštěné až od šířky 650px dolů */
@media (max-width: 650px) {
  .grid-text {
    font-size: clamp(1.0rem, 5.58vw - 0.115rem, 2.15rem) !important;
  }

  .story-title-stacked {
    font-size: clamp(1.1rem, 5.4vw - 0.1rem, 2.2rem) !important;
  }
}

/* Speciální pravidlo pod 400px: o něco rychlejší zmenšování písma, aby nápis JIZERSKÁ neodskočil na nový řádek */
@media (max-width: 400px) {
  .grid-text {
    font-size: clamp(0.85rem, 6.5vw - 0.35rem, 1.28rem) !important;
  }
}

/* Speciální pravidlo pod 500px: proporční zmenšení obrázků a barevných vzorníků v karuselu mozaiky */
@media (max-width: 500px) {
  .mosaic-left-block {
    width: 500px !important;
    height: 380px !important;
  }

  .mosaic-left-top {
    height: 310px !important;
    gap: 16px !important;
  }

  .mosaic-card-snih {
    width: 310px !important;
    height: 310px !important;
  }

  .swatches-column {
    width: 174px !important;
    height: 310px !important;
  }

  .mini-swatch {
    padding: 5px 8px !important;
    font-size: 0.68rem !important;
  }

  .mini-swatch-name {
    font-size: 0.72rem !important;
  }

  .mosaic-marquee {
    width: 500px !important;
    max-width: 500px !important;
  }

  .mosaic-photo-full {
    width: 280px !important;
    height: 380px !important;
  }

  .mosaic-stacked-column {
    width: 180px !important;
    height: 380px !important;
    gap: 10px !important;
  }

  .mosaic-stacked-card {
    height: 185px !important;
  }

  .mosaic-collage-container {
    width: 580px !important;
    height: 380px !important;
  }

  .collage-hrnek {
    top: 25px !important;
    left: 20px !important;
    width: 135px !important;
  }

  .collage-oznak {
    top: 60px !important;
    left: 240px !important;
    width: 85px !important;
  }

  .collage-kulich {
    bottom: 15px !important;
    left: 170px !important;
    width: 155px !important;
  }

  .collage-triko {
    top: 50px !important;
    right: 10px !important;
    width: 235px !important;
  }
}

/* Ochrana slova JIZERSKÁ před rozdělením písmene J na nový řádek */
.word-jizerska {
  white-space: nowrap !important;
}

/* Speciální pravidlo pod 380px: ještě o trochu menší fotka a karusel v mozaice */
@media (max-width: 380px) {
  .mosaic-left-block {
    width: 420px !important;
    height: 330px !important;
  }

  .mosaic-left-top {
    height: 260px !important;
    gap: 12px !important;
  }

  .mosaic-card-snih {
    width: 260px !important;
    height: 260px !important;
  }

  .swatches-column {
    width: 148px !important;
    height: 260px !important;
  }

  .mini-swatch {
    padding: 4px 6px !important;
    font-size: 0.62rem !important;
  }

  .mini-swatch-name {
    font-size: 0.65rem !important;
  }

  .mosaic-marquee {
    width: 420px !important;
    max-width: 420px !important;
  }

  .mosaic-photo-full {
    width: 240px !important;
    height: 330px !important;
  }

  .mosaic-stacked-column {
    width: 150px !important;
    height: 330px !important;
    gap: 8px !important;
  }

  .mosaic-stacked-card {
    height: 160px !important;
  }

  .mosaic-collage-container {
    width: 550px !important;
    height: 330px !important;
  }

  .collage-hrnek {
    top: 20px !important;
    left: 30px !important;
    width: 130px !important;
  }

  .collage-oznak {
    top: 50px !important;
    left: 230px !important;
    width: 90px !important;
  }

  .collage-kulich {
    bottom: 10px !important;
    left: 140px !important;
    width: 150px !important;
  }

  .collage-triko {
    top: 40px !important;
    right: 10px !important;
    width: 220px !important;
  }
}

/* Přizpůsobení šířky textové karty v sekci Více podob Jizerské displeji (< 360px) bez přetékání doprava */
@media (max-width: 360px) {

  .hero-cream-card {
    padding-right: 60px !important;
  }

  .card-text-side,
  .card-cell-1 {
    width: calc(100vw) !important;
  }
}

/* Speciální pravidlo pod 550px: lineární plynulé zmenšování mezer v hlavním titulu mezi čárkami a písmem */
@media (max-width: 550px) {

  .row-1-container,
  .row-3-container {
    gap: clamp(4px, 2.5vw, 16px) !important;
  }

  .row-2-container {
    gap: clamp(0.12em, 1.2vw, 0.35em) !important;
  }

  .double-line-white {
    height: clamp(4px, 1.2vw, 7px) !important;
  }
}