.about {
  display: flex;
  position: relative;
  color: var(--text-color);
  font-family: var(--default-font-family);
  padding-bottom: 80px;
  background-color: white;
  z-index: 0;
}

.about-container {
  position: relative;
  width: 100%;
  margin-left: 70px;
  margin-right: 70px;
  margin-top: 20px; /* Уменьшаем отступ сверху */
  margin-bottom: 50px;
}

.about-heading {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-heading-left {
  width: 50%;
  position: relative;
}

.about-heading-left::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: rgba(83, 97, 189, 0.1);
  border-radius: 50%;
  top: -20px;
  left: -30px;
  z-index: -1;
}

.about-heading-left-title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-background);
  line-height: 1.4;
  position: relative;
  display: inline-block;
}

.about-heading-left-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  bottom: -10px;
  left: 0;
}

.about-heading-left-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.about-heading-left-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  transition: transform 0.3s ease;
}

.about-heading-left-list-item:hover {
  transform: translateX(5px);
}

.about-heading-left-list-item img {
  width: 22px;
  transition: transform 0.3s ease;
}

.about-heading-left-list-item:hover img {
  transform: scale(1.2);
}

.about-heading-left-list-item p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
}

.about-heading-right {
  width: 50%;
  position: relative;
  padding: 30px;
  background-color: var(--light-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-heading-right::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: rgba(83, 97, 189, 0.1);
  border-radius: 50%;
  bottom: -30px;
  right: -30px;
  z-index: -1;
}

.about-heading-right p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-color);
}

.about-heading-right-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dark-background);
  color: white;
  font-family: var(--primary-font-family);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 200px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.about-heading-right-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.about-heading-right-button:hover {
  background: var(--dark-background-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-heading-right-button:hover::before {
  left: 100%;
}

.about-heading-right-button:active {
  transform: translateY(0);
}

.about-heading-right-button-arrow {
  width: 22px;
  transition: transform 0.3s ease;
}

.about-heading-right-button:hover .about-heading-right-button-arrow {
  animation: slideRight 0.3s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes slideRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(10px);
  }
}

.about-cards {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 120px;
}

.about-card-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid #dee2e6;
  width: 25%;
  padding: 30px 20px;
  cursor: pointer;
  transition: border 0.3s ease-in-out;
}

.about-card-item.active {
  background-color: var(--brand);
  color: white;
  border: 1px solid var(--brand);
}

.about-card-item.active .about-card-item-icon {
  fill: white;
}

.about-card-item.active:hover .about-card-item-icon {
  fill: white;
}

.about-card-item:hover {
  border: 1px solid var(--brand);
}

.about-card-item:hover .about-card-item-icon {
  fill: var(--brand);
}

.about-card-item-icon {
  width: 60px;
  fill: black;
  transition: fill 0.3s ease-in-out;
}

.about-card-item-text {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--primary-font-family);
  line-height: 1.2;
}

.about-description {
  display: flex;
  gap: 30px;
  padding-top: 20px;
}

.about-description-left {
  width: 50%;
}

.about-description-left-title {
  color: var(--dark-background);
  font-weight: 700;
  font-size: 26px;
  font-family: var(--primary-font-family);
  line-height: 1.2;
  padding-bottom: 0.2rem;
}

.about-description-left-annotation {
  font-style: italic;
}

.about-description-left-list {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 1rem;
}

.about-description-left-list-item {
  display: flex;
  align-items: start;
  gap: 5px;
}

.about-description-left-list-item-icon {
  width: 22px;
  flex-shrink: 0;
}

.about-description-left-list-item-text {
  flex: 1;
}

.about-description-right {
  width: 50%;
}

.about-description-right-image {
  width: 100%;
}

@media (max-width: 1200px) {
  .about-container {
    margin: 40px 20px;
  }

  .about-heading {
    flex-direction: column;
    gap: 40px;
  }

  .about-heading-left {
    width: 100%;
  }

  .about-heading-right {
    width: 100%;
  }

  .about-cards {
    flex-direction: column;
  }

  .about-card-item {
    width: 100%;
  }

  .about-description {
    flex-direction: column;
  }

  .about-description-left {
    width: 100%;
  }

  .about-description-right {
    width: 100%;
  }
}

/* Медиа-запросы для планшетов */
@media (max-width: 768px) {
  .about-container {
    margin: 30px 20px;
  }

  .about-heading-left-title {
    font-size: 20px;
  }

  .about-heading-left-list {
    gap: 10px;
  }

  .about-heading-left-list-item p {
    font-size: 15px;
  }

  .about-heading-right {
    padding: 20px;
  }

  .about-heading-right p {
    font-size: 15px;
  }

  .about-heading-right-button {
    width: 180px;
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 480px) {
  .about-container {
    margin: 20px 15px;
  }

  .about-heading-left-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .about-heading-left-list {
    gap: 8px;
  }

  .about-heading-left-list-item p {
    font-size: 14px;
  }

  .about-heading-right {
    padding: 15px;
  }

  .about-heading-right p {
    font-size: 14px;
    text-align: left;
  }

  .about-heading-right-button {
    width: 100%;
    font-size: 14px;
    padding: 10px 15px;
    margin: 0 auto;
    display: flex;
  }
}