#scandi-home,
#scandi-home *,
#scandi-home *::before,
#scandi-home *::after {
  box-sizing: border-box;
}

#scandi-home {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  color: #333;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#scandi-home .sc-page {
  width: 100%;
  margin: 0;
  padding: 30px 44px;
  background: #fff;
  border: 1px solid #e0e2e5;
  border-radius: 14px;
}

#scandi-home .sc-inner {
  width: 100%;
  max-width: 1020px;
  min-width: 0;
  margin: auto;
}

#scandi-home h1,
#scandi-home h2,
#scandi-home h3 {
  font-family: "Familjen Grotesk", Arial, sans-serif;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.018em;
  color: #333;
  overflow-wrap: break-word;
}

#scandi-home h1 {
  margin: 0 0 24px;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 5px solid #d0243c;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
  text-wrap: balance;
}

#scandi-home h2 {
  margin: 28px 0 14px;
  padding: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

#scandi-home h3 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

#scandi-home p {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  white-space: normal !important;
  overflow-wrap: break-word;
}

/* Odkazy a zvýraznenia zostávajú súčasťou odseku. */
#scandi-home p a,
#scandi-home p strong,
#scandi-home p b {
  display: inline !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}

/* Ochrana pred nechcenými zalomeniami z editora. */
#scandi-home p br,
#scandi-home p:empty,
#scandi-home .sc-grid > br,
#scandi-home .sc-grid > p:empty {
  display: none !important;
}

#scandi-home strong {
  color: #333;
  font-weight: 600;
}

#scandi-home a {
  color: #d0243c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#scandi-home a:hover {
  color: #b81e34;
}

#scandi-home a:focus-visible {
  outline: 3px solid #d0243c;
  outline-offset: 4px;
}

#scandi-home .sc-help {
  margin-bottom: 26px;
}

#scandi-home .sc-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#scandi-home .sc-card {
  display: block;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 8px 24px -12px rgba(0, 0, 0, 0.16);
}

#scandi-home .sc-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

#scandi-home .sc-top {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

#scandi-home .sc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #fae8eb;
  color: #d0243c;
  border-radius: 9px;
}

#scandi-home .sc-euro {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

#scandi-home .sc-stars {
  width: fit-content;
  max-width: 100%;
  gap: 3px;
  padding: 0 12px;
  background: rgba(128, 128, 128, 0.07);
  color: #fbbc04;
}

#scandi-home .sc-stars > span {
  display: block;
  position: relative;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

#scandi-home .sc-half-star {
  color: #dadce0;
}

#scandi-home .sc-half-star::before {
  content: "★";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  color: #fbbc04;
}

#scandi-home .sc-buddies {
  width: 72px;
  gap: 8px;
}

#scandi-home .sc-person {
  position: relative;
  display: block;
  width: 22px;
  height: 26px;
}

#scandi-home .sc-person::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

#scandi-home .sc-person::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 3px 3px;
}

#scandi-home .sc-compass {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

#scandi-home .sc-compass::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 7px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 65%, 50% 100%, 0 35%);
  transform: rotate(45deg);
}

#scandi-home .sc-compass::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 3px;
  height: 3px;
  background: #fae8eb;
  border-radius: 50%;
}

#scandi-home .sc-cta {
  width: 100%;
  margin: 28px 0 8px;
  text-align: center;
}

#scandi-home .sc-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 15px 26px;
  border: 0;
  border-radius: 9px;
  background: #d0243c;
  color: #fff;
  font-family: "Familjen Grotesk", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  transition: background-color 0.2s;
}

#scandi-home .sc-cta a:hover {
  background: #b81e34;
  color: #fff;
}

#scandi-home .sc-logos,
#scandi-home .sc-media {
  width: 100%;
  margin: 24px 0 10px;
  background: #fff;
  border: 1px solid #e0e2e5;
  border-radius: 14px;
}

#scandi-home .sc-logos {
  padding: 20px 0;
  overflow: hidden;
}

#scandi-home .sc-logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scandi-scroll 30s linear infinite;
}

#scandi-home .sc-logos:hover .sc-logos-track {
  animation-play-state: paused;
}

#scandi-home .sc-logo-item {
  display: flex;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 0 15px;
}

#scandi-home .sc-logo-item img,
#scandi-home .sc-media-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.25s, opacity 0.25s;
}

#scandi-home .sc-logo-item img:hover,
#scandi-home .sc-media-item img:hover {
  filter: none;
  opacity: 1;
}

#scandi-home .sc-logos-caption {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  color: #999;
}

#scandi-home .sc-media {
  padding: 18px 20px;
}

#scandi-home .sc-media-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

#scandi-home .sc-media-item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 60px;
  height: 35px;
}

@keyframes scandi-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Tablet a mobil: plná šírka obrazovky. */
@media (max-width: 1024px) {
  #scandi-home {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
  }

  #scandi-home .sc-page {
    padding: 28px 20px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  #scandi-home .sc-inner {
    max-width: none;
  }

  #scandi-home .sc-card {
    padding: 22px;
  }

  #scandi-home .sc-desktop-only {
    display: none;
  }
}

/* Mobil: jeden stĺpec a malé bočné odsadenie. */
@media (max-width: 640px) {
  #scandi-home .sc-page {
    padding: 24px 12px;
  }

  #scandi-home h1 {
    padding-left: 12px;
    border-left-width: 4px;
    font-size: clamp(26px, 6.5vw, 32px);
    line-height: 1.15;
  }

  #scandi-home h2 {
    margin-top: 24px;
    font-size: 24px;
  }

  #scandi-home p {
    font-size: 16px;
  }

  #scandi-home .sc-help {
    margin-bottom: 22px;
  }

  #scandi-home .sc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #scandi-home .sc-card {
    padding: 20px 18px;
    border-radius: 12px;
  }

  #scandi-home .sc-card p {
    font-size: 16px;
  }

  #scandi-home .sc-cta {
    margin: 24px 0 0;
  }

  #scandi-home .sc-cta a {
    width: 100%;
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #scandi-home .sc-logos-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  #scandi-home .sc-logo-item[aria-hidden="true"] {
    display: none;
  }

  #scandi-home .sc-cta a,
  #scandi-home img {
    transition: none;
  }
}

