/* =========================================================
   FOUNÁRNA – hero „Barevná Founárna“ (varianta B)
   Samostatná vrstva pro homepage blok generovaný founarna_v46 JS.
   ========================================================= */

.fn-model-finder,
.fn-model-finder * {
  box-sizing: border-box;
}

.fn-model-finder {
  width: 100%;
  max-width: 1540px;
  margin: 26px auto 46px;
  padding: 0 20px;
  font-family: inherit;
}

/* Pokud hero vzniká uvnitř stávajícího bloku Inspirace V5, využije jeho okraj
   a nepřidává další vnořené odsazení. Karty pod hero zůstávají beze změny. */
#founarna-inspire-v5 .fn-model-finder {
  max-width: none;
  margin: 0;
  padding: 0;
}

.fn-model-finder__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  align-items: center;
  min-height: 630px;
  overflow: hidden;
  padding: clamp(46px, 4.8vw, 74px);
  border: 1px solid rgba(75, 83, 112, .08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 83% 18%, rgba(126, 232, 225, .56) 0, rgba(126, 232, 225, 0) 30%),
    radial-gradient(circle at 94% 83%, rgba(174, 168, 255, .54) 0, rgba(174, 168, 255, 0) 34%),
    radial-gradient(circle at 62% 88%, rgba(255, 193, 154, .48) 0, rgba(255, 193, 154, 0) 30%),
    linear-gradient(112deg, #fff8e9 0%, #fffaf3 44%, #f4fbff 71%, #f1f1ff 100%);
  box-shadow: 0 22px 58px rgba(58, 62, 93, .1);
  isolation: isolate;
}

.fn-model-finder__inner::before,
.fn-model-finder__inner::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.fn-model-finder__inner::before {
  top: -150px;
  right: 18%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .54);
  background: rgba(255, 255, 255, .13);
}

.fn-model-finder__inner::after {
  right: -120px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, .18);
}

.fn-model-finder__content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 760px;
}

.fn-model-finder__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 16px;
  padding: 7px 13px;
  border: 1px solid rgba(84, 68, 120, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #5a5067;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .035em;
}

.fn-model-finder h2,
.fn-model-finder #fn-model-finder-title {
  max-width: 750px;
  margin: 0;
  color: #111827;
  font-family: inherit;
  font-size: clamp(44px, 4.35vw, 72px);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.052em;
  text-align: left;
  text-transform: none;
}

.fn-model-finder h2 span {
  display: block;
}

.fn-model-finder__lead {
  max-width: 650px;
  margin: 22px 0 24px;
  color: #525b6b;
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.48;
}

.fn-model-finder__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  margin: 0;
  padding: 15px 25px 15px 28px;
  border: 1px solid rgba(173, 125, 0, .16);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd84f 0%, #ffc400 100%);
  box-shadow: 0 14px 26px rgba(239, 177, 0, .24);
  color: #161616;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fn-model-finder__button:hover,
.fn-model-finder__button:focus-visible {
  color: #111;
  text-decoration: none;
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow: 0 18px 34px rgba(239, 177, 0, .31);
}

.fn-model-finder__button:focus-visible,
.fn-model-finder__brand-grid a:focus-visible {
  outline: 3px solid rgba(57, 75, 185, .4);
  outline-offset: 3px;
}

.fn-model-finder__button-arrow {
  font-size: 24px;
  font-weight: 700;
  line-height: .8;
}

.fn-model-finder__brands {
  width: 100%;
  max-width: 730px;
  margin-top: 27px;
}

.fn-model-finder__brands-label {
  margin: 0 0 9px;
  color: #222936;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.fn-model-finder__brand-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.fn-model-finder__brand-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(58, 66, 90, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 7px 17px rgba(48, 54, 76, .07);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.fn-model-finder__brand-grid a:hover,
.fn-model-finder__brand-grid a:focus-visible {
  background: #fff;
  box-shadow: 0 10px 22px rgba(48, 54, 76, .12);
  transform: translateY(-2px);
}

.fn-model-finder__brand-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 27px;
  margin: 0;
  border: 0;
  object-fit: contain;
}

.fn-model-finder__brand-toggle {
  display: none;
}

.fn-model-finder__visual {
  position: relative;
  z-index: 3;
  align-self: stretch;
  min-height: 500px;
  margin: -24px -38px -24px -34px;
  pointer-events: none;
}

.fn-model-finder__visual::before {
  display: none;
  content: none;
}

.fn-model-finder__hero-artwork {
  position: absolute;
  top: -3%;
  right: -6%;
  bottom: -3%;
  left: -12%;
  display: block;
  width: 118%;
  height: 106%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center right;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .42) 11%, rgba(0, 0, 0, .88) 18%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .42) 11%, rgba(0, 0, 0, .88) 18%, #000 22%, #000 100%);
  user-select: none;
}

.fn-model-finder__signature {
  position: absolute;
  right: 1%;
  bottom: 3%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #171927;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(19px, 1.7vw, 29px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(255, 255, 255, .7);
  transform: rotate(-5deg);
}

.fn-model-finder__signature b {
  margin-top: 4px;
  color: #9b76e8;
  font-family: inherit;
  font-size: 1.55em;
  font-weight: 700;
  line-height: 1;
}

.fn-model-finder__orb,
.fn-model-finder__product-stage,
.fn-model-finder__sparkle,
.fn-model-finder__product {
  position: absolute;
  display: block;
}

.fn-model-finder__orb {
  border-radius: 50%;
  filter: blur(.1px);
}

.fn-model-finder__orb--cyan {
  top: 5%;
  left: 6%;
  width: 72%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(109, 228, 223, .68), rgba(99, 173, 255, .25));
}

.fn-model-finder__orb--peach {
  right: 4%;
  bottom: 12%;
  width: 54%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255, 204, 142, .76), rgba(255, 155, 177, .3));
}

.fn-model-finder__orb--violet {
  top: 25%;
  right: -5%;
  width: 60%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(126, 145, 255, .55), rgba(231, 133, 242, .51));
}

.fn-model-finder__product-stage {
  z-index: 2;
  right: 3%;
  bottom: 2%;
  width: 83%;
  height: 24%;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 245, 193, .78);
  box-shadow: 0 25px 40px rgba(78, 76, 107, .18);
}

.fn-model-finder__sparkle {
  z-index: 8;
  color: rgba(255, 255, 255, .95);
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(88, 98, 160, .18);
}

.fn-model-finder__sparkle--one {
  top: 11%;
  right: 6%;
}

.fn-model-finder__sparkle--two {
  bottom: 31%;
  left: 0;
  color: rgba(255, 123, 153, .8);
  font-size: 27px;
}

.fn-model-finder__product {
  z-index: 4;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(38, 42, 67, .19));
  user-select: none;
}

.fn-model-finder__product--case {
  top: 4%;
  left: 5%;
  z-index: 5;
  width: 64%;
  transform: rotate(-6deg);
}

.fn-model-finder__product--glass {
  top: 2%;
  right: -7%;
  width: 55%;
  transform: rotate(5deg);
}

.fn-model-finder__product--charger {
  bottom: 3%;
  left: 2%;
  z-index: 7;
  width: 35%;
  transform: rotate(-7deg);
}

.fn-model-finder__product--earbuds {
  right: 0;
  bottom: 5%;
  z-index: 7;
  width: 34%;
  transform: rotate(7deg);
}

@media (max-width: 1260px) {
  .fn-model-finder__inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    min-height: 610px;
    padding: 48px;
  }

  .fn-model-finder h2,
  .fn-model-finder #fn-model-finder-title {
    font-size: clamp(42px, 4.7vw, 60px);
  }

  .fn-model-finder__brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .fn-model-finder__visual {
    min-height: 470px;
    margin-right: -42px;
  }
}

@media (max-width: 1023px) {
  .fn-model-finder__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 48px 30px;
  }

  .fn-model-finder__content {
    max-width: 780px;
  }

  .fn-model-finder__brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .fn-model-finder__visual {
    width: 100%;
    max-width: 650px;
    min-height: 390px;
    margin: 10px auto -24px;
  }

  .fn-model-finder__visual::before {
    display: none;
  }

  .fn-model-finder__hero-artwork {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .fn-model-finder__product--case {
    width: 53%;
    left: 11%;
  }

  .fn-model-finder__product--glass {
    width: 47%;
    right: 4%;
  }

  .fn-model-finder__product--charger {
    left: 8%;
    width: 29%;
  }

  .fn-model-finder__product--earbuds {
    right: 6%;
    width: 29%;
  }
}

@media (max-width: 767px) {
  .fn-model-finder {
    margin: 10px auto 24px;
    padding: 0 8px;
  }

  .fn-model-finder__inner {
    min-height: auto;
    padding: 25px 16px 12px;
    border-radius: 21px;
    box-shadow: 0 14px 34px rgba(58, 62, 93, .09);
  }

  .fn-model-finder__inner::before,
  .fn-model-finder__inner::after {
    display: none;
  }

  .fn-model-finder__eyebrow {
    display: none;
  }

  .fn-model-finder h2,
  .fn-model-finder #fn-model-finder-title {
    max-width: 540px;
    font-size: clamp(34px, 9.7vw, 43px);
    line-height: 1.035;
    letter-spacing: -.041em;
    text-wrap: balance;
  }

  .fn-model-finder__lead {
    margin: 15px 0 17px;
    font-size: 15px;
    line-height: 1.45;
  }

  .fn-model-finder__button {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 13px 17px 13px 19px;
    border-radius: 12px;
    font-size: 15.5px;
    box-shadow: 0 10px 22px rgba(239, 177, 0, .23);
  }

  .fn-model-finder__brands {
    margin-top: 20px;
  }

  .fn-model-finder__brands-label {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .fn-model-finder__brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .fn-model-finder__brand-grid a {
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 9px;
  }

  .fn-model-finder__brand-grid img {
    max-height: 24px;
  }

  .fn-model-finder__brand-grid .fn-model-finder__brand--extra {
    display: none;
  }

  .fn-model-finder__brands.is-expanded .fn-model-finder__brand--extra {
    display: flex;
  }

  .fn-model-finder__brand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 8px 0 0;
    padding: 9px 14px;
    border: 1px solid rgba(58, 66, 90, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .58);
    box-shadow: none;
    color: #353c4c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .fn-model-finder__brand-toggle:focus-visible {
    outline: 3px solid rgba(57, 75, 185, .4);
    outline-offset: 2px;
  }

  .fn-model-finder__brand-toggle-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .18s ease;
  }

  .fn-model-finder__brand-toggle[aria-expanded="true"] .fn-model-finder__brand-toggle-arrow {
    transform: rotate(180deg);
  }

  .fn-model-finder__visual {
    width: 100%;
    max-width: 280px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 10px auto -8px;
  }

  .fn-model-finder__hero-artwork {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .fn-model-finder__signature {
    right: 1%;
    bottom: 1%;
    font-size: 16px;
  }

  .fn-model-finder__orb--cyan {
    top: 4%;
    left: 10%;
    width: 51%;
  }

  .fn-model-finder__orb--violet {
    top: 21%;
    right: 8%;
    width: 40%;
  }

  .fn-model-finder__orb--peach {
    display: none;
  }

  .fn-model-finder__product-stage {
    right: 10%;
    bottom: 1%;
    width: 78%;
    height: 24%;
  }

  .fn-model-finder__product--case {
    top: 0;
    left: 15%;
    width: 49%;
  }

  .fn-model-finder__product--glass,
  .fn-model-finder__product--charger {
    display: none;
  }

  .fn-model-finder__product--earbuds {
    right: 9%;
    bottom: 2%;
    width: 26%;
  }

  .fn-model-finder__sparkle--one {
    top: 7%;
    right: 10%;
    font-size: 26px;
  }

  .fn-model-finder__sparkle--two {
    display: none;
  }
}

@media (max-width: 380px) {
  .fn-model-finder__inner {
    padding: 22px 14px 10px;
    border-radius: 19px;
  }

  .fn-model-finder h2,
  .fn-model-finder #fn-model-finder-title {
    font-size: 33px;
  }

  .fn-model-finder__lead {
    margin-top: 13px;
    font-size: 14.5px;
  }

  .fn-model-finder__button {
    padding-right: 15px;
    padding-left: 17px;
    font-size: 15px;
  }

  .fn-model-finder__brand-grid a {
    min-height: 44px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .fn-model-finder__brand-grid img {
    max-height: 23px;
  }

  .fn-model-finder__visual {
    max-width: 260px;
    min-height: 0;
  }
}

@media (max-width: 340px) {
  .fn-model-finder h2,
  .fn-model-finder #fn-model-finder-title {
    font-size: 30px;
  }

}

@media (hover: none) {
  .fn-model-finder__button:hover,
  .fn-model-finder__brand-grid a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-model-finder__button,
  .fn-model-finder__brand-grid a,
  .fn-model-finder__brand-toggle-arrow {
    transition: none;
  }
}
