/* Контейнер flex двух колонок */
.about-content {
  display: flex;
  justify-content: space-between;
  gap: 19px;
  flex-wrap: wrap; /* для адаптива */
  margin-top: 48px;
  margin-bottom: 48px;
}

/* Левая колонка: текст */
.about-text {
  flex: 1 1 500px; /* минимальная ширина 500px, растягивается */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}

.about-text h1{ 
    font-weight: 600;
    font-size: 56px;
    line-height: 64px;
    color: var(--color-dark)
}

.about-text h1 strong {
  color: var(--color-primary); 
  font-weight: 600;          
}
/* Абзацы */
.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg)
}

.about-paragraphs p {

  color:var(--color-secondary);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  margin: 0;
}

/* Кнопки */
.about-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* Правая колонка: карта */
.ymap {
  flex: 1 1 400px;       /* минимальная ширина 400px */
  min-height: 656px; 
  height: 656px;     /* высота карты */
  background-color: var(--color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}


@media (max-width: 1440px) {
  .about-content{
    flex-wrap: nowrap;
    
  }
  .about-text{
    gap: 40px;
    flex: none;
    width: calc(50% - 8px);
  }
  .about-text h1{
    font-size: 40px;
    line-height: 48px;
  }
  .about-paragraphs p{
    font-size: 16px;
    line-height: 26px;
  }

  .ymap{
    width: calc(50% - 8px);;
  }
}

@media (max-width: 1280px) {
  .about-content{
    height: fit-content;
  }
  .about-text{
    gap: 16px;
    justify-items: flex-start;
  }

  .about-paragraphs{
    gap: 8px;
  }
  .ymap{
    aspect-ratio: 1;
    height: auto;
    max-height: auto;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .about-content{
    flex-direction: column;
    margin-top: 29px;
    margin-bottom: 32px;
    width: 100%;
    gap: 32px;
    overflow: hidden;
  }
 
  .about-text{
    gap: var(--spacing-lg);
    width: 100%;
  }
  .about-text h1{
    font-size: var(--font-size-xl);
    line-height: 32px;
  }
  .about-paragraphs{
    gap: var(--spacing-sm);
  }
  .about-paragraphs p {
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 20px;
  
  }
  .about-buttons{
    flex-direction: column;
    margin: 0;
    gap: var( --spacing-sm)
  }
  .ymap{
    width: 100%;
    min-height: auto;
    height: auto; 
  }
}