/* Стили для секции доверия (trusted-by) */


.trusted-by {
  padding: 40px 0;
  background: linear-gradient(135deg, #F8F5F0 0%, #FFFFFF 50%, #F8F5F0 100%);
  position: relative;
}

.trusted-by::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #D4AF37, transparent);
  opacity: 0.6;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}

.logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  cursor: pointer;
  overflow: hidden;
  height: 200px;
  min-height: 200px;
}

.logo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s ease;
}

.logo-item:hover::before {
  left: 100%;
}

.logo-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

.logo-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: none;
  margin-bottom: 15px;
}

.logo-item:hover img {
  filter: none;
  transform: scale(1.1);
}

.logo-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  white-space: nowrap;
}

.logo-item:hover .logo-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
  }

  .logo-item {
    height: 180px;
    min-height: 180px;
    padding: 30px 20px;
  }

  .logo-item img {
    max-width: 100%;
    max-height: 70px;
  }
}

@media (max-width: 768px) {
  .trusted-by {
    padding: 30px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 500px;
  }

  .logo-item {
    padding: 25px 15px;
    height: 160px;
    min-height: 160px;
  }

  .logo-item img {
    max-width: 100%;
    max-height: 60px;
    margin-bottom: 12px;
  }

  .logo-name {
    font-size: 0.9rem;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .trusted-by {
    padding: 25px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }

  .logos-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 300px;
  }

  .logo-item {
    padding: 20px 10px;
    height: 130px;
    min-height: 130px;
  }

  .logo-item img {
    max-width: 100%;
    max-height: 50px;
    margin-bottom: 10px;
  }

  .logo-name {
    font-size: 0.8rem;
    bottom: 10px;
  }
}

