.about-founder,
.about-origin,
.about-today,
.about-gallery {
  padding-block: var(--section-padding);
}

/* ---------- Засновниця ---------- */

.about-founder__title {
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  font-weight: 500;
  color: #000;
  margin-bottom: clamp(1.5rem, 0.8421rem + 2.6316vw, 4rem);
  text-align: center;
  text-transform: uppercase;
}

.about-founder__grid {
  display: grid;
  gap: clamp(1.5rem, 0.8421rem + 2.6316vw, 4rem);
}

.about-founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-founder__quote {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-founder__quote p {
  font-size: var(--text-lg);
  line-height: var(--leading-xl);
  font-weight: 500;
  color: #000;
}

.about-founder__author {
  font-size: var(--text-lg);
  line-height: var(--leading-base);
  font-weight: 500;
  font-style: normal;
  color: #777881;
}

.about-origin {
  padding-block-start: 0;
}

.about-origin__grid {
  display: grid;
  gap: clamp(1.5rem, 1.1053rem + 1.5789vw, 3rem);
}

.about-origin__grid p {
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: 300;
  color: var(--color-black);
}

.about-origin__col p + p {
  margin-top: var(--leading-base);
}
@media (min-width: 420px) {
  .about-founder__title {
    letter-spacing: 0.2em;
  }
}
@media (min-width: 768px) {
  .about-founder__title {
    font-size: var(--text-2xl);
  }
  .about-origin__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .about-founder__grid {
    grid-template-columns: 337px 1fr;
    align-items: start;
  }

  .about-founder__photo {
    aspect-ratio: 337 / 437;
  }

  .about-founder__author {
    align-self: flex-end;
  }

  .about-founder__quote p {
    font-size: var(--text-xl);
  }

  .about-origin__grid p {
    font-size: var(--text-lg);
  }
}




.about-history {
  position: relative;
  padding-block: var(--section-padding);
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.about-history__inner {
  width: 100%;
}

.about-history__grid {
  display: grid;
  /* minmax(0,…) не дає колонці роздутись під вміст свайпера і вилізти за екран на мобільному */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.3421rem + 2.6316vw, 4.5rem);
}

.about-history__slider {
  width: 100%;
  min-width: 0;
}

.about-history__slider .history-swiper-container {
  height : 400px;
  max-height : 400px;
  overflow: hidden;
}

.about-history__content {
  max-width: 584px;
  padding: 0 16px;
  height: 100%;
}

.about-history__title {
  font-size: var(--text-2xl);
  font-size: 36px;
  line-height: var(--leading-2xl);
  font-weight: 500;
  margin-bottom: clamp(1rem, 0.4737rem + 2.1053vw, 3rem);
}

.about-history__lead {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 500;
  margin-bottom: clamp(1rem, 0.6711rem + 1.3158vw, 2.25rem);
}

.about-history__text{
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: 300;
}

.about-history__text h2,
.about-history__text h3,
.about-history__text h4 {
  font-family: var(--font-cera);
  font-weight: 500;
  font-size: var(--text-xl);
}

.about-history__text p + p {
  margin-top: var(--leading-base);
}

/* слайдер */

.about-history .history-swiper-container {
  position: relative;
}

.about-history .history-media-swiper {
  width: 100%;
  aspect-ratio: 872 / 965;
  /* на широких екранах висота впирається в макетні 965px і далі не росте */
  max-height: 965px;
}

.about-history .history-media-swiper .swiper-wrapper li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-history .history-text-swiper {
  width: 100%;
  margin-inline: 0;
}

.about-history__placeholder {
  width: 100%;
  height: 100%;
  background-color: #ffffff1a;
}

.about-history .history-swiper-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  margin-top: 1.5rem;
}

.about-history .history-swiper-pagination .swiper-pagination-bullet {
  --_dot-size: 14px;

  width: var(--_dot-size);
  height: var(--_dot-size);
  margin: 0;

  background-color: #ffffff40;
  border-radius: 50%;
  opacity: 1;
}

.about-history .history-swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-white);
}

@media (min-width: 1024px) {
  .about-history__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 48px;
  }

  .about-history {
    padding-block: 150px 117px;
  }

  .about-history .history-swiper-pagination {
    margin-top: 100px;
  }

  .about-history__slider .history-swiper-container {
    height : 800px;
    max-height : 800px;
  }

  .about-history__slider,
  .about-history .history-swiper-container,
  .about-history .history-media-swiper {
    height: 100%;
  }

  .about-history .history-media-swiper {
    aspect-ratio: auto;
    max-height: none;
  }

  .about-history__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (min-width: 1360px) {
  .about-history__grid {
    gap: 104px;
  }
}





.about-today__grid {
  display: grid;
  gap: clamp(1.5rem, 0.8421rem + 2.6316vw, 4rem);
}

.about-today__title {
  font-size: var(--text-2xl);
  font-size: 36px;
  line-height: var(--leading-2xl);
  font-weight: 500;
  color: #000;
}

.about-today__text {
  font-size: var(--text-lg);
  line-height: var(--leading-base);
  font-weight: 300;
  color: #242424;
}

.about-today__text p + p {
  margin-top: var(--leading-base);
}

@media (min-width: 1024px) {
  .about-today {
    padding: 200px 0 100px;
  }

  .about-today__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .about-today__text {
    align-self: center;
  }
}




.about-gallery {
  padding-block-start: 0;
}

/* Трек-слайдер: влазять — по центру; не влазять — горизонтальний скрол/свайп.
   safe center не обрізає лівий край, коли контент ширший за контейнер. */
.about-gallery__track {
  display: flex;
  gap: 8px;
  justify-content: safe center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.about-gallery__track::-webkit-scrollbar {
  display: none;
}

/* Обгортка треку — якір для стрілок */
.about-gallery__slider {
  position: relative;
}

.about-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: opacity 0.2s;
}

.about-gallery__arrow svg {
  width: 18px;
  height: 18px;
}

/* Центр кнопки сидить на лівій/правій межі треку */
.about-gallery__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.about-gallery__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

/* Десктоп: більша кнопка */
@media (min-width: 1024px) {
  .about-gallery__arrow {
    width: 44px;
    height: 44px;
  }

  .about-gallery__arrow svg {
    width: 24px;
    height: 24px;
  }
}

/* На краю треку стрілка не активна */
.about-gallery__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Всі фото влазять у ряд — гортати нема куди, стрілки не потрібні */
.about-gallery__slider.no-overflow .about-gallery__arrow {
  display: none;
}

.about-gallery__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* щоб миша тягла трек, а не "привида" картинки */
.about-gallery__item img {
  -webkit-user-drag: none;
  user-select: none;
}

/* фіксований розмір слайда 216×287, не стискається */
.about-gallery__item {
  flex: 0 0 216px;
  width: 216px;
  aspect-ratio: 216 / 287;
}

.about-gallery__item img,
.about-gallery__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.about-gallery__item img {
  object-fit: cover;
  object-position: center;
}

.about-gallery__placeholder {
  background-color: #0505050d;
}

@media (min-width: 1024px) {
  .about-gallery {
    padding-block-start: 100px;
  }

  .about-gallery__track {
    gap: 16px;
  }
}
