.home-page {
  overflow: clip;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 70px 0 58px;
  background-color: var(--ls-primary);
  background-image: url("../images/shapes-background.svg");
  background-position: calc(100% + 90px) 80px;
  background-repeat: no-repeat;
  background-size: min(48vw, 700px) auto;
  color: var(--ls-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--ls-white);
}

.hero-copy p {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  padding: 0 0 34px;
}

.hero-photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 1.02;
  border-radius: 84px 0 84px 0;
  object-fit: cover;
}

.hero-green-shape {
  position: absolute;
  right: -60px;
  bottom: -38px;
  width: 72%;
  height: 86%;
  opacity: 0.85;
}

.customer-strip {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: 70px;
}

.customer-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.locker-mark {
  display: grid;
  width: 18px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ls-lime);
}

.locker-mark svg {
  width: 18px;
  height: 18px;
}

.logo-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  cursor: grab;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}

.logo-marquee::-webkit-scrollbar { display: none; }
.logo-marquee.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 48px;
  padding-inline: clamp(28px, 7vw, 96px);
}

.logo-track .customer-logo {
	display: grid;
	width: 132px;
	height: 64px;
	flex: 0 0 132px;
	place-items: center;
	scroll-snap-align: start;
}

.logo-track a.customer-logo {
	border-radius: 4px;
	transition: opacity var(--ls-motion-fast) ease;
}

.logo-track a.customer-logo:hover { opacity: 0.72; }

.logo-track a.customer-logo:focus-visible {
	outline: 2px solid var(--ls-lime);
	outline-offset: 6px;
}

.logo-track img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 44px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.section-why,
.branches-section,
.products-section {
  background: var(--ls-cream);
}

.section-intro {
  margin-bottom: 62px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 80px;
}

.split-heading p {
  margin: 0;
}

.why-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  min-height: 620px;
}

.why-images {
  position: relative;
  overflow: hidden;
  border-radius: 54px 0 0 0;
  background: var(--ls-white);
}

.why-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 600ms ease, transform 1.1s ease;
}

.why-images img.is-active {
  opacity: 1;
  transform: scale(1);
}

.why-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 42px 50px;
  border-radius: 0 0 54px 0;
  background: var(--ls-white);
}

.why-items > button {
  position: relative;
  display: block;
  padding: 29px 32px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: var(--ls-primary);
  text-align: left;
  transition: background-color 300ms ease;
}

.why-items > button::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 54px;
  height: 56px;
  background: url("../images/usp-check.svg") center / contain no-repeat;
  content: "";
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
  transition: right 300ms ease, opacity 220ms ease, transform 300ms ease;
}

.why-items > button.is-active {
  background: var(--ls-cyan-soft);
}

.why-items > button.is-active::after {
  right: -27px;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.why-items strong {
  display: block;
  font-family: "Sansation", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

.why-body {
  display: grid;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  color: var(--ls-black);
  font-size: 18px;
  opacity: 0;
  transition: max-height 460ms ease, opacity 320ms ease, padding 320ms ease;
}

.why-items button.is-active .why-body {
	max-height: 600px;
  padding-top: 15px;
  opacity: 1;
}

.branches-section {
  position: relative;
  background-image: url("../images/white-squares-wide.svg");
  background-position: center 110px;
  background-repeat: no-repeat;
  background-size: min(100%, 1700px) auto;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 58px;
}

.section-heading-row h2 {
  max-width: 750px;
  margin-bottom: 0;
}

.branches-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.products-grid > .product-card--mobile-only {
  display: none;
}

.grid-toggle,
.branches-toggle {
  display: none;
}

.branch-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 24px 18px 34px;
  border: 1px solid var(--ls-primary);
  border-radius: 50px 0 50px 0;
  background: var(--ls-cream);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform 230ms ease, box-shadow 230ms ease;
}

.branch-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(2, 40, 45, 0.08);
}

.branch-card img {
  width: 100%;
  height: 180px;
  border-radius: 28px 0 0 0;
  object-fit: cover;
}

.branch-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: auto 0 0;
  font-size: 1.42rem;
  font-weight: 400;
  text-align: center;
}

.branch-card__title svg,
.product-card h3 svg {
  width: 19px;
  height: 19px;
  color: var(--ls-cyan);
}

.specialists-section {
  padding-top: 110px;
}

.specialists-wrap {
  position: relative;
}

.specialists-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
  min-height: 358px;
  padding: 0 70px;
  border-radius: 200px 0 200px 0;
  background: var(--ls-primary);
  color: var(--ls-white);
}

.specialist-shape {
  position: absolute;
  top: -13%;
  right: 170px;
  z-index: 1;
  width: 309px;
}

.specialists-image {
  display: flex;
  height: 358px;
  align-items: flex-end;
}

.specialists-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.specialists-copy {
  position: relative;
  z-index: 2;
  padding-block: 50px;
}

.specialists-copy h2 {
  margin-bottom: 32px;
  color: var(--ls-white);
}

.products-section {
  padding-top: 70px;
}

.product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 34px;
  padding: 24px;
  border-radius: 50px 0 50px 0;
  background: var(--ls-white);
  color: inherit;
  text-decoration: none;
  transition: transform 230ms ease, box-shadow 230ms ease;
}

.product-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-card ul {
  margin: 0;
  padding: 0 0 10px 20px;
  border-bottom: 1px solid var(--ls-primary);
  font-size: 18px;
  list-style: disc outside;
  line-height: 28px;
}

.product-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 0;
  font-size: 22px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
  }

  .branches-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specialists-panel {
    gap: 30px;
    padding-inline: 40px;
    border-radius: 100px 0 100px 0;
  }

  .specialist-shape {
    right: 50px;
    width: 260px;
  }
}

@media (max-width: 820px) {
  .hero-section {
    padding: 58px 0 45px;
    background-position: 0 98%;
    background-size: 150% auto;
  }

  .hero-grid,
  .split-heading,
  .why-card,
  .advice-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 55px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-visual {
    width: min(100%, 560px);
  }

  .customer-strip {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .split-heading {
    gap: 28px;
  }

  .why-images {
    min-height: 440px;
    border-radius: 42px 0 0 0;
  }

  .why-items {
    padding: 20px 30px 30px;
    border-radius: 0 0 42px 0;
  }

  .specialists-panel {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 20px 0;
    border-radius: 50px 0 50px 0;
    text-align: center;
  }

  .specialist-shape {
    display: none;
  }

  .specialists-copy {
    grid-row: 1;
    padding: 0 0 20px;
  }

  .specialists-image {
    grid-row: 2;
    height: auto;
  }

}

@media (max-width: 560px) {
  .home-page .button-row {
    align-items: center;
  }

  .home-page .button-row .ls-button {
    flex: 0 0 auto;
  }

  .hero-visual {
    padding: 0 20px 24px 0;
  }

  .hero-photo {
    border-radius: 54px 0 54px 0;
  }

  .hero-green-shape {
    right: -34px;
    bottom: -25px;
  }

  .logo-track {
    gap: 20px;
  }

  .logo-track .customer-logo {
    width: calc((100vw - 36px) / 3);
    max-width: 132px;
    flex-basis: calc((100vw - 36px) / 3);
  }

  .section-intro,
  .section-heading-row {
    margin-bottom: 38px;
  }

  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading-row .ls-button {
    align-self: flex-start;
  }

  .why-images {
    min-height: 350px;
  }

  .why-items {
    padding-inline: 20px;
  }

  .why-items > button {
    padding: 22px 24px;
  }

  .why-items > button::after {
    top: 0;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.72);
  }

  .why-items > button.is-active::after {
    right: auto;
    transform: translate(-50%, -50%) scale(0.82);
  }

  .why-items strong {
    font-size: 1.28rem;
  }

  .why-body {
    font-size: 16px;
  }

  .branches-section .section-heading-row .ls-button,
  .products-section .section-heading-row .ls-button {
    display: none;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    scroll-margin-top: 96px;
  }

  .products-grid > .product-card--mobile-only {
    display: flex;
  }

  .has-js [data-expandable-grid].branches-grid:not(.is-expanded) > .branch-card:nth-child(n + 5),
  .has-js [data-expandable-grid].products-grid:not(.is-expanded) > .product-card:nth-child(n + 5) {
    display: none;
  }

  .has-js .grid-toggle {
    display: flex;
    width: max-content;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    margin: 28px auto 0;
    padding: 7px 7px 7px 14px;
    border: 1px solid var(--ls-cyan);
    border-radius: 7px;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
  }

  .grid-toggle > span:last-child {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 4px;
    background: var(--ls-cyan);
    color: var(--ls-white);
  }

  .grid-toggle svg {
    width: 17px;
    transition: transform 220ms ease;
  }

  .grid-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .branch-card {
    gap: 16px;
    padding: 12px 12px 18px;
    border-radius: 38px 0 38px 0;
  }

  .product-card {
    gap: 14px;
    padding: 12px;
    border-radius: 28px 0 28px 0;
  }

  .product-card ul {
    display: none;
  }

  .product-card h3 {
    font-size: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
