/* === Главный отзыв (featured) === */
.letter-featured {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 2rem;
  padding: 2.25rem 2.25rem 2.25rem 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.letter-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
}

@media (max-width: 900px) {
  .letter-featured {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem;
  }
}

.letter-featured-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.letter-featured-top {
  margin-bottom: 1rem;
}

.letter-featured-company {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.letter-featured-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

.letter-featured-quote {
  position: relative;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: #e2e8f0;
  font-weight: 500;
  padding-left: 1.25rem;
}

.letter-featured-quote::before {
  content: '"';
  position: absolute;
  top: -0.85rem;
  left: -0.35rem;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.35;
}

.letter-featured-person {
  margin-top: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.letter-role {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.8rem;
}

.letter-featured-cta {
  align-self: flex-start;
  display: inline-block;
  max-width: 100%;
  margin-top: 1.5rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.letter-featured-cta svg {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.35rem;
  vertical-align: -3px;
  color: #8b5cf6;
  transition: transform 0.25s ease;
}

.letter-featured-cta:hover svg {
  transform: translateX(4px);
}

.letter-featured-preview {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  align-self: center;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 900px) {
  .letter-featured-preview {
    align-self: flex-start;
  }
}

.letter-featured-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--surface-shadow-hover);
}

.letter-featured-preview img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.3s ease;
}

.letter-featured-preview:hover img {
  filter: grayscale(0) contrast(1.05);
}

.letter-featured-preview-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  background: linear-gradient(to top, rgba(10, 10, 20, 0.92), rgba(10, 10, 20, 0.55));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.letter-featured-preview-badge svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #c4b5fd;
}

/* === Вторичные отзывы === */
.letters-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .letters-secondary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.letter-compact {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.letter-compact-company {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.letter-compact-quote {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.letter-compact-cta {
  align-self: flex-start;
  display: inline-block;
  max-width: 100%;
  margin-top: 1rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.letter-compact-cta svg {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.3rem;
  vertical-align: -2px;
  color: #8b5cf6;
  transition: transform 0.25s ease;
}

.letter-compact-cta:hover svg {
  transform: translateX(4px);
}

.letters-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Lightbox */
.letter-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 100;
}

.letter-lightbox-content {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.letter-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.letter-lightbox-caption {
  color: #e2e8f0;
  font-weight: 600;
  text-align: center;
}

.letter-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.letter-lightbox-close:hover {
  color: #d946ef;
}
