.quoteBlock {
  padding: 112px 0;
  background: #1c1c1c;
  color: #fff;
}
.quoteBlock__container {
  max-width: 1280px;
  margin: 0 auto;
  width: 90%;
  text-align: center;
}
.quoteBlock__title {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 32px 0;
}

.quoteBlock__viewport {
  position: relative;
}
.quoteBlock__slide {
  display: none;
}
/* Fallback: keep first quote visible if JS is delayed/disabled */
.quoteBlock__slide:first-child {
  display: block;
}
.quoteBlock__quote {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 auto 32px auto;
  max-width: 768px;
  color: #fff;
}

.quoteBlock__meta {
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  gap: 20px;
  align-items: center;
  justify-items: flex-start;
  width: fit-content;
  margin: 0 auto;
}
.quoteBlock__author {
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: flex-end;
  text-align: end;
  width: 100%;
}
.quoteBlock__authorInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: end;
}
.quoteBlock__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.quoteBlock__name {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-wrap: nowrap;
}
.quoteBlock__role {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  opacity: 0.85;
  text-wrap: nowrap;
}
.quoteBlock__divider {
  width: 1px;
  height: 60px;
  background: #009bad;
}
.quoteBlock__logo {
  height: 52px;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(1.1);
}

.quoteBlock__controls {
  margin-top: 32px;
  display: inline-flex;
  gap: 25px;
}
.quoteBlock__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
}
.quoteBlock__arrow:hover {
  opacity: 1;
}

/* Tablet scaling while keeping desktop untouched */
@media (max-width: 1200px) {
  .quoteBlock__container {
    width: 92%;
  }
  .quoteBlock__quote {
    max-width: 700px;
    line-height: 1.6;
  }
  .quoteBlock__logo {
    width: 128px;
    height: 48px;
  }
  .quoteBlock__arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .quoteBlock__quote {
    font-size: 20px;
    line-height: 1.6;
    max-width: 620px;
  }
  .quoteBlock__meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quoteBlock__divider {
    display: none;
  }
  .quoteBlock__author {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .quoteBlock__avatar {
    width: 48px;
    height: 48px;
  }
  .quoteBlock__logo {
    width: 120px;
    height: 44px;
  }
  .quoteBlock__controls {
    gap: 10px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .quoteBlock {
    padding: 80px 0;
  }
  .quoteBlock__title {
    font-size: 18px;
  }
  .quoteBlock__quote {
    font-size: 18px;
    max-width: 92%;
  }
  .quoteBlock__author {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }
  .quoteBlock__avatar {
    width: 44px;
    height: 44px;
  }
  .quoteBlock__name {
    font-size: 14px;
  }
  .quoteBlock__role {
    font-size: 13px;
  }
  .quoteBlock__logo {
    width: 110px;
    height: 40px;
  }
  .quoteBlock__arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
