/* ── Секція 002 — Про Батальйон ── */

.about {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  padding: 40px 0 60px;
}

/* На сторінці Про батальйон секція йде після hero без окремого фону */
.about-hero + .about {
  background: transparent !important;
  padding: 0;
}

.about__body {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent !important;
  background-color: transparent !important;
}

.about__inner {
  position: relative;
  z-index: 3; /* над паттерном */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Заголовок */
.about__title {
  font-family: "u3", sans-serif;
  font-weight: 600;
  font-size: 38px;
  color: #ffe7ba;
  text-transform: uppercase;
  text-align: center;
  line-height: normal;
}

.about__title a {
  color: inherit;
  text-decoration: none;
}

/* Інформаційні колонки (характеристики) */
.about__info-cols {
  display: flex;
  gap: 130px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0px;
  position: relative;
  z-index: 1;
}

.about__info-col {
  display: flex;
  flex-direction: column;
  gap: 21px;
  flex-shrink: 0;
}

.about__info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-info-label {
  font-family: "u3", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #c6b48f;
  line-height: 1.4;
  white-space: nowrap;
}

.about-info-value {
  font-family: "u3", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #c6b48f;
  line-height: 1.4;
  white-space: nowrap;
}

/* Враппер: текст + фото з єдиною лінією зліва */
.about__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
}

/* Вертикальна лінія — тягнеться від тексту до низу фото */
.about__content::before {
  content: "";
  position: absolute;
  left: 10px; /* padding-left:50px - 40px gap = 10px */
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 231, 186, 0.35);
}

/* Головний блок: тільки текст */
.about__main {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  padding-left: 50px;
}

/* Текст */
.about__text {
  width: 100%;
  font-family: "u3", sans-serif;
  font-weight: 400;
  color: #ffe7ba;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__text p {
  margin: 0;
  line-height: 1.6;
}

/* Фотографії */
.about__photos {
  display: flex;
  gap: 16px;
  align-items: center;
}

.about__photo {
  position: relative;
  width: 242px;
  height: 184px;
  border: 6px solid rgb(255 229 180 / 24%);
  flex-shrink: 0;
  overflow: hidden;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* White overlay як у Figma rgba(255,255,255,0.12) */
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.about__dots {
  display: none;
}

/* Посилання внизу секції */
.about__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-left: 50px;
  margin-top: -20px;
  background: transparent;
  color: #ffa600;
  text-decoration: none;
  font-family: "u3", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.about__more:hover {
  color: #ffa600;
  transform: translateX(4px);
}

/* ── Планшетна адаптація (768px – 1279px) ── */
@media (min-width: 768px) and (max-width: 1279px) {
  .about {
    padding: 36px 0 48px;
  }

  .about__info-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 24px 40px;
    padding: 24px 28px;
    border: 2px solid rgba(255, 231, 186, 0.35);
    border-radius: 0;
  }

  .about__info-col {
    display: contents;
  }

  .about-info-label {
    font-size: 16px;
  }

  .about-info-value {
    font-size: 18px;
  }

  .about__body {
    padding: 0;
  }

  .about__inner {
    gap: 48px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .about__title {
    font-size: 40px;
    padding: 0;
    text-align: center;
  }

  .about__content {
    gap: 40px;
  }

  .about__main {
    padding: 0 40px;
    width: 100%;
  }

  .about__text {
    width: 100%;
    font-size: 18px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Фото — 2×2 grid замість горизонтальної каруселі */
  .about__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .about__photo {
    flex: none;
    width: 100%;
    max-width: none;
    height: 210px;
    scroll-snap-align: none;
  }

  .about__dots {
    display: none;
  }

  .about__more {
    margin-left: 40px;
    margin-top: -10px;
  }
}

/* ── Мобільна адаптація (до 767px) ── */
@media (max-width: 767px) {
  .about {
    padding: 30px 0 40px;
  }

  .about__info-cols {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    height: auto;
    padding-top: 32px;
    padding-left: 18px;
    align-items: flex-start;
    justify-content: flex-start;
    border-left: 2px solid rgba(255, 231, 186, 0.35);
    margin-left: 30px;
  }

  .about__info-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 20px;
  }

  .about__info-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 4px;
    min-width: 0;
  }

  .about-info-label {
    font-size: 15px;
    line-height: 1.25;
    white-space: normal;
  }

  .about-info-value {
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .about__body {
    padding: 0;
  }

  .about__inner {
    gap: 32px;
    padding: 0 16px;
  }

  .about__title {
    width: 100%;
    font-size: 32px;
    padding: 0 20px;
    text-align: left;
  }

  .about__content {
    width: 100%;
    gap: 32px;
  }

  /* Прибираємо вертикальну лінію зліва */
  .about__content::before {
    display: none;
  }

  .about__main {
    width: 100%;
    padding: 0 40px;
  }

  .about__text {
    width: 100%;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Карусель фото — горизонтальний скрол + scroll-snap */
  .about__photos {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 20px;
    scrollbar-width: none;
  }

  .about__photos::-webkit-scrollbar {
    display: none;
  }

  .about__photo {
    flex: 0 0 auto;
    width: calc(100vw - 56px); /* peek ~16px з боку */
    max-width: 360px;
    height: 210px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Точки під каруселлю фото */
  .about__dots {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .about__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 231, 186, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
  }

  .about__dot.active {
    background: #ffe7ba;
  }

  .about__more {
    margin-left: 20px;
    margin-top: 12px;
    font-size: 14px;
    white-space: normal;
  }
}

/* Watermark clearance pair: pull up into the hero under-box's reserved
   overhang so the 160 OMBr bg-text stays visible (desktop fixed pair,
@media (min-width: 1280px) {
  .about-hero + .about {
    margin-top: -220px;
  }
}

@media (max-width: 1279px) {
  .about-hero + .about {
    margin-top: calc(-1 * 0px);
  }
}
