.section-about {
  position: relative;
  background: #000;
  display: flex;
  height: 100%;
  width: 100%;
  padding-bottom: 5rem;
}

.section-about .container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  justify-content: space-between;
}

/* ===================== ЗАГОЛОВОК СЕКЦИИ ===================== */
.section-line {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.section-line h2 {
  position: relative;
  color: rgb(255, 255, 255, 0.6);
  font-size: clamp(1.5rem, 6.3vw + 0.38rem, 5.5rem);
  flex-shrink: 0;
  z-index: 2;
  font-weight: 500;
  white-space: nowrap;
}

.title-line {
  height: 3px;
  flex: 1;
  overflow: visible;
  min-width: 0;
}

/* ===================== ОСНОВНАЯ СЕТКА (текст + визуал) ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 10rem;
  align-items: center;
  flex-grow: 1;
  margin-bottom: 5rem;
}

.about-text {
  color: #fff;
  font-size: clamp(1.25rem, 1.123rem + 0.5645vw, 1.6875rem);
}

.about-text--top {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.about-text--bottom {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

/* ===================== ВИЗУАЛЬНЫЙ БЛОК (таймлайн + фото) ===================== */
.about-visual {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 10rem;
  align-items: center;
}

.about-visual .timeline {
  grid-column: 2;
  grid-row: 1 / 3;
}

.photo-group--istanbul {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.photo-group--antalya {
  grid-column: 3;
  grid-row: 1;
}

.photo-group--bodrum-single {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
}

.photo-group--bodrum-pair {
  grid-column: 3;
  grid-row: 2;
}

/* ===================== ФОТО ===================== */
.photo-group {
  position: relative;
}

.photo-group img {
  position: absolute;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.photo-group--single {
  width: 150px;
  height: 150px;
}

.photo-group--single img {
  width: 100%;
  height: 100%;
  bottom: 20px;
}

.photo-group--pair {
  --big: 150px;
  --small: 120px;
  --overlap: 60px;
  width: calc(var(--big) + var(--overlap));
  height: calc(var(--big) + var(--overlap) * 0.7);
}

.photo-group--pair img:first-child {
  position: absolute;
  top: 70px;
  left: 0;
  width: var(--big);
  height: var(--big);
  z-index: 1;
}

.photo-group--pair img:last-child {
  position: absolute;
  bottom: 0;
  right: 0;
  width: var(--small);
  height: var(--small);
  z-index: 2;
}

.photo-group--istanbul img:last-child {
  bottom: -60px;
  right: -15px;
}

.photo-group--bodrum-pair {
  bottom: 80px;
}

.photo-group--bodrum-pair img:last-child {
  bottom: 10px;
  left: -20px;
}

/* ===================== ТАЙМЛАЙН ===================== */
.timeline {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1rem 0;
  min-height: 100%;
  width: 100%;
  height: 700px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.timeline .timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
}

.timeline-item:nth-of-type(even) .timeline-label {
  margin-left: auto;
  text-align: left;
  align-items: flex-start;
}

.timeline-item:nth-of-type(odd) .timeline-label {
  margin-right: auto;
  text-align: right;
  align-items: flex-end;
}

.timeline-label {
  width: calc(40% - 1rem);
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.2;
}

.timeline-days {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.timeline-city {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}




/* ===================== ≤1024px: About в один столбец ===================== */
@media (max-width: 1024px) {

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 5rem;
    margin-bottom: 3rem;
   justify-items: center;
  }


  .about-text--top,
  .about-text--bottom,
  .about-visual {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .about-visual {
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 1rem;
  }

  .about-visual .timeline {
    grid-column: 2;
    grid-row: 1 / 3;
    max-width: 220px;
    margin: 0 auto;
    height: 600px;
  }

  .photo-group--istanbul {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    top: -30px;
    margin-right: -10px;
  }

  .photo-group--antalya {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    top: -30px;
    margin-left: -3rem;
  }

  .photo-group--bodrum-single {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-right: -3rem;
    top: 30px;
  }

  .photo-group--bodrum-pair {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }


  .photo-group--single {
       width: clamp(60px, 20vw, 100px);
        height: clamp(60px, 20vw, 100px);
    }

    .photo-group--pair {
        --big: clamp(60px, 20vw, 130px);
        --small: clamp(48px, 16vw, 100px);
        --overlap: clamp(24px, 8vw, 36px);
    }
   


  .section-about .container {
    min-height: auto;
    justify-content: flex-start;
    padding-bottom: 2rem;
  }



}