/* Main Hero Grid */
#main-hero-grid.banner-wrap {
  display: grid;
  grid-template-columns: 314px 684px 300px;
  grid-template-rows: 475px;
  gap: 6px;
  align-items: stretch;
  width: fit-content;
}

#main-hero-grid .left-column {
  width: 314px;
  height: 475px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#main-hero-grid .left-card {
  width: 314px;
  height: 128px;
  padding: 5px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex: 1;
}

#main-hero-grid .left-card:nth-child(1) { background: #86a0d9; }
#main-hero-grid .left-card:nth-child(2) { background: #86a0d9 linear-gradient(18deg, rgb(207 205 231) 0%, rgb(223 216 234) 14%, rgba(124,142,177,0) 14.5%); }
#main-hero-grid .left-card:nth-child(3) { background: #86a0d9 linear-gradient(18deg, #7b8ed7 0%, #dfd8e9 69%, transparent 69.3%); }
#main-hero-grid .left-card:nth-child(4) { background: linear-gradient(217deg, rgb(168 174 224) 0%, rgb(160 167 225) 55%); }

#main-hero-grid .left-card .title {
  background: #fff;
  display: inline-block;
  padding: 6px 7px 1px;
  border-radius: 5px;
  font-family: 'TBC Contractica', 'TBC Contractica CAPS', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: #2e6ddc;
  box-shadow: 4px 4px 0 #c5d7ec;
  transition: transform 0.6s, box-shadow 0.6s;
}

#main-hero-grid .left-card:hover .title {
  transform: translate(3px, 3px);
  box-shadow: 8px 8px 0 #c5d7ec;
}

#main-hero-grid .left-card .thumb {
  position: absolute;
  transition: transform 0.6s;
}

#main-hero-grid a.left-card:nth-child(1) .thumb { width: 45px; height: 100px; right: 25px; bottom: 5px; }
#main-hero-grid a.left-card:nth-child(2) .thumb { width: 120px; height: 75px; right: 10px; bottom: 20px; }
#main-hero-grid a.left-card:nth-child(3) .thumb { width: 75px; height: 78px; right: 20px; bottom: 15px; }
#main-hero-grid a.left-card:nth-child(4) .thumb { width: 75px; height: 90px; right: 20px; bottom: 5px; }

#main-hero-grid .left-card:hover .thumb { transform: scale(1.1); }

#main-hero-grid .gs-lang-ka,
#main-hero-grid .gs-lang-en { display: none; }

#main-hero-grid[data-gs-lang="ka"] .gs-lang-ka,
#main-hero-grid[data-gs-lang="en"] .gs-lang-en { display: inline; }

#main-hero-grid .middle-slide-spring .middle-img-ka,
#main-hero-grid .middle-slide-spring .middle-img-en { display: none; }

#main-hero-grid[data-gs-lang="ka"] .middle-slide-spring .middle-img-ka,
#main-hero-grid[data-gs-lang="en"] .middle-slide-spring .middle-img-en { display: block; }

#main-hero-grid .right-card,
#main-hero-grid .middle-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

#main-hero-grid .right-card {
  width: 300px;
  height: 475px;
  background: #86a0d9 linear-gradient(358deg, #7b8ed7 0%, #dfd8e9 34%, transparent 34.2%);
}

#main-hero-grid .middle-card {
  width: 684px;
  height: 475px;
  background-color: #86a0d9;
  background-image:
    linear-gradient(15deg, #a2a8e3 0%, #dfd8e9 25%, transparent 25.2%),
    linear-gradient(358deg, #7b8ed7 0%, #dfd8e9 31%, transparent 31.2%);
}

#main-hero-grid .right-card-link,
#main-hero-grid .middle-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

#main-hero-grid .right-carousel,
#main-hero-grid .middle-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

#main-hero-grid .slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#main-hero-grid .right-carousel .depth-obj {
  position: absolute;
  will-change: left, width, opacity, filter;
  transition:
    left 0.85s cubic-bezier(0.77, 0, 0.175, 1),
    width 0.85s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.85s ease,
    filter 0.85s ease;
}

#main-hero-grid .right-carousel .depth-obj-inner {
  width: 100%;
  height: 100%;
  display: block;
}

#main-hero-grid .right-carousel .depth-obj-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@keyframes gs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

#main-hero-grid .right-carousel .depth-obj.is-active .depth-obj-inner {
  animation: gs-float 3.5s ease-in-out infinite;
}

#main-hero-grid .middle-carousel {
  perspective: 1200px;
}

#main-hero-grid .middle-carousel .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

#main-hero-grid .middle-carousel .slide .depth-obj {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

#main-hero-grid .middle-carousel .slide .depth-obj picture,
#main-hero-grid .middle-carousel .slide .depth-obj img {
  width: 100%;
  height: 100%;
}

#main-hero-grid .middle-carousel .slide .depth-obj img {
  object-fit: contain;
  display: block;
}

#main-hero-grid .middle-carousel .slide.active-text .depth-obj {
  opacity: 1;
  transform: none;
}

#main-hero-grid .middle-carousel .slide.exiting-middle .depth-obj {
  opacity: 0;
  transform: translateY(-20px) scale(1.03);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.4, 0, 1, 1);
}

#main-hero-grid .slide-head {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #1a1a2e;
  width: calc(100% - 36px);
  z-index: 6;
  pointer-events: none;
}

#main-hero-grid .slide-head h3 {
  margin: 0;
  font-family: 'TBC Contractica', inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(4px);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}

#main-hero-grid .slide.active-text .slide-head h3 {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.45s ease 0.18s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
    filter 0.45s ease 0.18s;
}

#main-hero-grid .slide-head span {
  display: block;
  font-family: 'TBC Contractica', inherit;
  font-size: 20px;
  font-weight: 200;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#main-hero-grid .slide.active-text .slide-head span {
  opacity: 0.85;
  transform: none;
  transition:
    opacity 0.4s ease 0.3s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

#main-hero-grid .slide-price {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 6;
  pointer-events: none;
  width: max-content;
}

#main-hero-grid .slide-price strong {
  display: block;
  font-family: 'TBC Contractica', inherit;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#main-hero-grid .slide.active-text .slide-price strong {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease 0.42s,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.42s;
}

#main-hero-grid .slide-price del {
  display: block;
  font-family: 'TBC Contractica', inherit;
  font-size: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.4s ease;
}

#main-hero-grid .slide.active-text .slide-price del {
  opacity: 0.7;
  transform: none;
  transition:
    opacity 0.35s ease 0.56s,
    transform 0.4s ease 0.56s;
}

#main-hero-grid .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 9;
}

#main-hero-grid .arrow-left,
#main-hero-grid .arrow-left-middle-slider { left: 4px; }

#main-hero-grid .arrow-right,
#main-hero-grid .arrow-right-middle-slider { right: 4px; }

#main-hero-grid .arrow svg {
  width: 15px;
  height: 18px;
  display: block;
  transition: transform 0.2s;
}

#main-hero-grid .arrow path {
  stroke: rgba(31,46,69,.55);
  stroke-width: 1;
  transition: stroke 0.25s;
}

#main-hero-grid .arrow:hover path { stroke: rgba(31,46,69,.9); }
#main-hero-grid .arrow:hover svg { transform: scale(1.1); }

#main-hero-grid .carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 9;
  align-items: center;
}

#main-hero-grid .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width .4s ease, background .4s ease;
}

#main-hero-grid .dot.active {
  width: 20px;
  background: rgba(255,255,255,.95);
}

#main-hero-grid .slide-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: 'TBC Contractica', inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.6);
  z-index: 9;
  pointer-events: none;
}

#main-hero-grid .slide-counter b {
  color: rgba(255,255,255,.95);
  font-weight: 600;
}

@media (max-width: 1024px) {
  #main-hero-grid.banner-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
  }

  #main-hero-grid .right-card { display: none !important; }

  #main-hero-grid .left-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    height: auto;
    order: 2;
  }

  #main-hero-grid .left-card { width: 100%; height: 170px; }
  #main-hero-grid .middle-card { width: 100%; height: 420px; order: 1; }
}

@media (max-width: 768px) {
  #main-hero-grid .middle-card { height: 260px; }
  #main-hero-grid .left-card { height: 130px; background-image: none; background-color: #bbc2f2; }
  #main-hero-grid .left-card .title { font-size: 13px; }
  #main-hero-grid .slide-head h3 { font-size: 19px; }
  #main-hero-grid .slide-head span { font-size: 17px; }
  #main-hero-grid .slide-price strong { font-size: 30px; }
  #main-hero-grid .slide-price del { font-size: 16px; }
}
