/* Основные стили для страницы "О компании" */

/* История компании - секция 1 */
.about-section {
  padding: 4rem 0;
  background: var(--muted);
}

@media (min-width: 768px) {
  .about-section {
    padding: 6rem 0;
  }
}

.about-header {
  max-width: 48rem;
  margin-bottom: 3rem;
  text-align: center;
}

.about-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 1rem;
  font-family: 'Arial Black', sans-serif;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2.25rem;
  }
}

.about-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
  margin-top: 1rem;
}

/* Сетка преимуществ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-color);
}

.icon-wrapper {
  height: 4rem;
  width: 4rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(250, 204, 21, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary) 100%);
  transform: scale(1.1);
}

.feature-card:hover .icon-wrapper .icon {
  stroke: white;
}

.icon {
  height: 2rem;
  width: 2rem;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all 0.3s ease;
}

.feature-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  font-family: 'Arial Black', sans-serif;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  flex-grow: 1;
}

/* Статистика - секция 4 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: 'Arial Black', sans-serif;
  display: block;
  line-height: 1;
}

.feature-card .icon-wrapper .stat-number {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.feature-card:hover .icon-wrapper .stat-number {
  color: white;
}

/* Миссия и ценности - секция 5 */
.about-section:nth-of-type(3) {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.about-section:nth-of-type(3)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary) 100%);
}

.about-section:nth-of-type(3) .about-title {
  color: var(--primary-color);
}

.about-section:nth-of-type(3) .about-title::after {
  background: var(--secondary);
}

.about-section:nth-of-type(3) .feature-card {
  background: white;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.about-section:nth-of-type(3) .feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary) 100%);
  border-radius: 0.75rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-section:nth-of-type(3) .feature-card:hover::before {
  opacity: 1;
}

.about-section:nth-of-type(3) .feature-card:hover {
  border-color: transparent;
}

/* Адаптивность */
@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
  }
  
  .about-title {
    font-size: 1.75rem;
  }
  
  .about-description {
    font-size: 1rem;
  }
  
  .features-grid {
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .icon-wrapper {
    height: 3.5rem;
    width: 3.5rem;
    margin-bottom: 1rem;
  }
  
  .icon {
    height: 1.75rem;
    width: 1.75rem;
  }
  
  .feature-title {
    font-size: 1.125rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 2rem 0;
  }
  
  .about-title {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-header,
.feature-card {
  animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Дополнительные стили для иконок в секции миссии */
.about-section:nth-of-type(3) .icon {
  stroke-width: 1.5;
}

/* Стили для текста в секции истории */
.about-header p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Декоративные элементы */
.about-section:first-of-type {
  position: relative;
}

.about-section:first-of-type::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Контейнер для центрирования */
.container {
  position: relative;
  z-index: 1;
}