/* ============================================================
   BEAUTICK — ABOUT BLOCK  (главная страница)
   Секция «О Beautick»: карусель слева + текст справа
   ============================================================ */

/* ── SECTION ── */
.beautick-about-block {
  overflow: visible !important;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Десктоп: двухколоночная сетка — карусель | текст+кнопки */
.beautick-about-block>div {
  display: grid;
  grid-template-columns: 398px 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 80px;
  row-gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

/* Карусель занимает обе строки (растягивается в высоту) */
.bab-media-wrapper {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  width: 398px;
}

/* Текст — правая колонка, строка 1 */
.bab-text-side {
  grid-column: 2;
  grid-row: 1;
  padding: 8px 0;
}

/* Кнопки — правая колонка, строка 2 (под текстом) */
.bab-links {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── MEDIA INNER ── */
.bab-media-inner {
  position: relative;
  width: 398px;
  aspect-ratio: 9/16;
  max-height: 620px;
  overflow: hidden;
  border-radius: 2px;
  background: #c8bfb5;
}

.bab-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.bab-media-inner:hover img {
  transform: scale(1.03);
}

/* ── WATERMARK ── */
.bab-watermark {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-family: 'lora', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  z-index: 2;
}

/* ── VIDEO OVERLAY — лайтбокс ── */
.bab-video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bab-video-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Белая карточка-лайтбокс */
.bab-video-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #111;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: babLightboxIn 0.3s ease;
}

@keyframes babLightboxIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.bab-video-inner video,
.bab-video-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* Кнопка закрытия — поверх контента */
.bab-video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.bab-video-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

/* ── PLAY BUTTON ── */
.bab-play-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 78px;
  height: 78px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s, opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.bab-play-btn:hover {
  transform: scale(1.08);
  opacity: 0.88;
}

.bab-play-btn.hidden {
  display: none !important;
}

/* ── ARROWS (desktop: снаружи фото) ── */
.bab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(20, 20, 20, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s;
  z-index: 4;
}

.bab-arrow:hover {
  background: rgba(20, 20, 20, 0.07);
}

.bab-arrow-prev {
  left: -52px;
}

.bab-arrow-next {
  right: -52px;
}

.bab-arrow svg {
  width: 10px;
  height: 10px;
  stroke: rgba(20, 20, 20, 1);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── HEADING ── */
.bab-heading {
  font-family: 'lora', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.52px;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #111;
}

/* ── BODY TEXT ── Montserrat по запросу */
.bab-body-text {
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: #3a3a3a;
  /*white-space: pre-line;*/
  width: 480px;
}

/* ── DIVIDER ── */
.bab-divider {
  width: 100%;
  max-width: 520px;
  height: 1px;
  background: rgba(226, 226, 226, 1);
  margin: 28px 0;
}

/* ── LINK BUTTONS ── */
.bab-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 0px;
  background: rgba(226, 226, 226, 1);
  font-family: 'Montserrat', 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(20, 20, 20, 1);
  text-decoration: none;
  transition: background 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.bab-link-btn:hover {
  background: rgba(210, 210, 210, 1);
}

.bab-link-btn svg {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   ПЛАНШЕТ  1100px
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .beautick-about-block>div {
    grid-template-columns: 320px 1fr;
    column-gap: 48px;
  }

  .bab-media-wrapper,
  .bab-media-inner {
    width: 100%;
  }

  .bab-heading {
    font-size: 40px;
  }
}

/* ─────────────────────────────────────────
   МОБИЛЬНЫЙ  768px
───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Секция без паддингов */
  .beautick-about-block {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Flex-колонка для мобильного */
  .beautick-about-block>div {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }

  /* Порядок на мобильном:
     1. Текст (заголовок + параграфы)
     2. Кнопки — над каруселью
     3. Карусель
  */
  .bab-text-side {
    order: 1;
    padding: 28px 24px 0;
  }

  .bab-links {
    order: 2;
    padding: 20px 24px;
  }

  .bab-media-wrapper {
    order: 3;
    width: 100%;
  }

  /* Скрыть watermark на мобиле */
  .bab-watermark {
    display: none !important;
  }

  /* Скрыть разделитель на мобиле */
  .bab-divider {
    display: none !important;
  }

  /* Заголовок */
  .bab-heading {
    font-size: 28px;
    margin-bottom: 12px;
  }

  /* Текст */
  .bab-body-text {
    font-size: 16px;
    width: 100%;
  }

  /* Скрыть иконки SVG в кнопках */
  .bab-link-btn svg {
    display: none !important;
  }

  /* Кнопки — горизонтальная строка */
  .bab-links {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .bab-link-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
  }

  /* Карусель — фиксированная высота 533px */
  .bab-media-inner {
    width: 100%;
    height: 533px;
    max-height: none;
    aspect-ratio: unset;
    border-radius: 0;
  }

  /* Стрелки на мобиле — прижаты к краям, чёрные */
  .bab-arrow-prev {
    left: -25px;
  }

  .bab-arrow-next {
    right: -25px;
  }

  .bab-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(20, 20, 20, 0.9);
  }

  .bab-arrow:hover {
    background: rgba(255, 255, 255, 1);
  }

  .bab-arrow svg {
    stroke: rgba(20, 20, 20, 0.9);
  }
}



/* ── VIDEO OVERLAY — лайтбокс ──────────────────────── */
.bab-video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bab-video-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Обёртка: позиционируемый контейнер для absolute-крестика */
.bab-lightbox-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  /* отступ сверху для кнопки */
  margin-top: 50px;
}

/* Видео-карточка */
.bab-video-inner {
  width: 100%;
  background: #111;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: babLightboxIn 0.3s ease;
}

@keyframes babLightboxIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.bab-video-inner video,
.bab-video-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* Крестик — абсолютно над карточкой, выровнен по правому краю */
.bab-video-close {
  position: absolute !important;
  top: -46px !important;
  right: 0 !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.bab-video-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(90deg);
}

/* Видео-карточка */
.bab-video-inner {
  width: 100%;
  background: #111;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: babLightboxIn 0.3s ease;
}

@keyframes babLightboxIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.bab-video-inner video,
.bab-video-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* Крестик — над видео, выровнен по правому краю */
.bab-video-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.bab-video-close:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(90deg);
}