/* =====================================
   Base styles
===================================== */
:root {
  --black: 272727;
  --swiper-navigation-color: #f1f1ec;
  --swiper-pagination-color: #f1f1ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Сбрасываем отступы и растягиваем тело на весь экран */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Паттерн на всё тело */
body {
  background-color: #f1f1ec;
  background-image: url("https://www.transparenttextures.com/patterns/handmade-paper.png");
  background-repeat: repeat; /* повторяем по X и Y */
  background-position: top center; /* смещаем паттерн по вертикали наверх */
  background-size: auto; /* по умолчанию — натуральный размер паттерна */
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 2vw;
  box-sizing: border-box;
}

div {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  text-transform: uppercase;
}

ul,
li {
  padding: 0;
  margin: 0;
  display: block;
}
/* -------------------------------------
   Header & navigation
------------------------------------- */

/* Header styles */
.header a {
  color: rgb(136, 41, 41);
}

.header_2 a {
  color: black;
}

.header {
  display: flex;
  margin: 0;
  padding: 0;
  padding-top: 4vw;
}

.nav {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;

  display: flex;
  align-items: center;
  padding-top: 15px;
  justify-content: space-between;
  height: 100%;
  padding: 10px 10px; /* Регулируй отступы по краям */
}

.nav a,
.nav .title_mark,
.nav .instagram_mark {
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav,
.nav2 {
  padding: 0;
}

.nav a,
.nav .title_mark,
.nav .instagram_mark {
  vertical-align: middle;
  line-height: 1;
}

.nav2 {
  display: flex;
  justify-content: center; /* Центрируем меню */
  align-items: center;
  padding-top: 15px;
  height: 100%;
  padding: 15px 10px; /* Регулируй отступы по краям */
}

.nav2 a {
  display: flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

.menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li a {
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.3em;
  font-size: clamp(10px, 2vw, 17px);
}

.menu li {
  margin-right: 12px;
}

.menu ul {
  margin-bottom: 0;
}

.instagram_mark {
  text-decoration: none;
  margin-left: auto;
  font-size: clamp(8px, 2vw, 17px);
  letter-spacing: 0.1em;
  margin-right: 10px; /* Небольшой отступ от края */
}

.title_mark {
  text-decoration: none;
  margin-right: auto;
  font-size: clamp(8px, 2vw, 17px);
  letter-spacing: 0.1em;
  margin-left: 10px; /* Небольшой отступ от края */
}

/* Top section - Start */

.top {
  /* отступ между меню и секцией */
  padding-top: 20px; /* или любое другое значение под дизайн */
}

.top > .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column; /* ← теперь колонки, а не ряд */
    align-items: center;/* ← по левому краю; или center, если нужно центрировать */
}

.top-portfolio-sign {
  display: block;
  width: 100%; /* или 100vw, как надо */
  max-width: 2200px;
  height: auto;
  margin: 20px auto 0; /* ← 20px сверху, auto по бокам, 0 снизу */
  pointer-events: none;
  z-index: 1;
}

.portfolio-visual-storytelling-sign {
  display: block;
  width: 100%; /* или 100vw, как надо */
  max-width: 2200px;
  height: auto;
  margin: 20px auto 0; /* ← 20px сверху, auto по бокам, 0 снизу */
  pointer-events: none;
  z-index: 1;
}

.portfolio-brands-through-my-lens-sign {
  display: block;
  width: 100%; /* или 100vw, как надо */
  max-width: 2200px;
  height: auto;
  margin: 20px auto 0; /* ← 20px сверху, auto по бокам, 0 снизу */
  pointer-events: none;
  z-index: 1;
}

.portfolio-real-feedback-sign {
  display: block;
  width: 100%; /* или 100vw, как надо */
  max-width: 2200px;
  height: auto;
  margin: 20px auto 0; /* ← 20px сверху, auto по бокам, 0 снизу */
  pointer-events: none;
  z-index: 1;
}

.top_desc {
    margin-top: 10px;      /* оставляем только вертикальный отступ */
    /* margin-left: 20px; */ /* убрали, теперь текст лево вровень с контейнером */
    /* font-family: "Inter", sans-serif; */
    /* 20% ширины экрана */
    /* margin-left: 10vw; */
    width: 77vw;
}

.top_desc b {
  color: #272727; /* цвет текста */
  text-decoration: none; /* убираем подчёркивание */
  font-family: "Poppins", sans-serif;
  font-size: clamp(10px, 2vw, 13px);
  letter-spacing: 0.1em;
  opacity: 0.9;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 400px) {
    .top_desc b {
        font-size: clamp(10px, 1vw, 13px);
    }
}

/* Top Section - End */

/* About section - Start */

/* сам контейнер — флекс на всю ширину, без жёсткой высоты */
.colors-section {
  /*width: 100vw;   */ /* растянуть на всю ширину вьюпорта */

  width: 90%;
  max-width: none; /* снять ограничение */
  padding: 0;
  margin: 0; /* если не нужен автоконстрейн */
  display: flex; /* чтобы удобно центрировать */
  justify-content: center;
  margin-left: 5vw;
}
.colors-abs {
  display: flex;
  width: 100%;
  margin-left: 6vw;
  margin-right: 6vw;

  /* но не больше 1170 */
  /* max-width: 1170px;  */
}

/* Левая общий контейнер */
.left-col {
  display: flex;
  flex-direction: column;
  width: 50%;
}

/* Жёлтый блок: 75% высоты */
.left-col .yellow {
  flex: 3; /* 3 части (75%) от общей flex-высоты left-col */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.left-col .yellow img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Синий блок: 25% высоты */
.left-col .blue {
  flex: 1; /* 1 часть (25%) */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.intro-text {
  font-family: "Poppins", sans-serif;
  font-size: clamp(12px, 2vw, 16px);
  line-height: 1.4;
  margin: 0;
  text-align: left;
  margin-left: 6vw;
}

/* Правая колонка: фото, 50% ширины */
.red {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.red img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* About Section - End */

/* PORTFOLIO */
/* Базовая сетка: 3 в ряд на десктопе, 2—1 на мобилках */
/* Сетка галереи */

#sprite-plyr {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Обёртка каждого плеера */
.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}
/* 1) Основной селектор плеера */
.js-player {
  width: 90%;
  aspect-ratio: 9 / 16;
  border-radius: 16px; /* желаемый радиус */
  overflow: hidden; /* чтобы видео не вылезало за рамку */
}

/* 1) Скругляем весь плеер и скрываем «лишнее» */
.plyr {
  border-radius: 12px; /* общий радиус */
  overflow: hidden; /* обрезаем всё, что выходит за рамки */
  background: transparent; /* прозрачный фон на случай override-переменных */

  /* размер иконок: по умолчанию ~2rem */
  --plyr-control-size: 1.25rem;
  /* расстояние между кнопками: по умолчанию ~1rem */
  --plyr-control-spacing: 0.5rem;
  /* высота бегунка прогресса: по умолчанию ~0.375rem */
  --plyr-range-track-height: 0.25rem;
  /* размер «ползунка» по умолчанию ~1rem */
  --plyr-range-thumb-size: 0.5rem;

  /* переменная, которая задаёт фон под панелью контролов */
  --plyr-control-background: transparent;
}

/* 2) Делим: видео остаётся без фона, контролы — с небольшим полупрозрачным */
.plyr__video-wrapper,
.plyr__poster {
  background: transparent !important;
}

/* 3) Контролы: прозрачный фон и скругление только снизу */
.plyr__controls {
  background: rgba(0, 0, 0, 0.6) !important; /* или совсем transparent */
  border-radius: 0 0 12px 12px !important; /* только нижние углы */
  padding: 0.25rem 0.5rem; /* по вертикали 0.25, по горизонтали 0.5 */
  background: none !important;
}

/* Подпись под телефоном */
.phone-caption {
  margin-top: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  color: #333;
  text-align: center;
}

.video-item:hover {
  transform: scale(1.01);
  transition: transform 0.3s;
}

/* Responsive Gallery Styles */
.responsive-gallery-video {
  display: grid;
  gap: 1rem;
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  width: 90vw;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  row-gap: 3rem;
}

.responsive-gallery-video .video-item {
  width: 100%;
  max-width: 100%;
  padding: 0 0.5rem;
}

.responsive-gallery-video .js-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.responsive-gallery-video .phone-caption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: clamp(12px, 2vw, 16px);
  font-family: "Poppins", sans-serif;
}

/* 1. Принудительно ограничим вложенные элементы */
.responsive-gallery-video .video-item > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* 2. Убедимся, что видео и его обёртки не превышают границы */
.responsive-gallery-video .js-player,
.responsive-gallery-video .plyr__video-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* SwiperJS - Start */
.responsive-gallery-photo {
  width: 90vw;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.photo-grid {
  display: grid;
  gap: 2rem;
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.swiper {
  border-radius: 16px;
  overflow: hidden;
}

.swiper:hover {
  transform: scale(1.01);
  transition: transform 0.3s;
}

.photo-grid .swiper {
  width: 100%;
  max-width: 360px;
  margin: 0 auto; /* по центру колонки */
  border-radius: 16px; /* как у тебя уже прописано */
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.swiper-button-next,
.swiper-button-prev {
  /* розовый */
  /* color: #f59ac0; 
   */
  color: black; /* или #000 */
}

/* Стиль всех точек */
.swiper-pagination-bullet {
  background: black;
  opacity: 0.4;
}

/* Активная точка */
.swiper-pagination-bullet-active {
  background: black;
  opacity: 1;
}

ySwiper {
  /* задаём стандартный размер стрелок */
  --swiper-navigation-size: 44px;
}

/* Планшет — чуть меньше */
@media (max-width: 1024px) {
  .mySwiper {
    --swiper-navigation-size: 36px;
  }
}

/* Мобильник — ещё компактнее */
@media (max-width: 600px) {
  .mySwiper {
    --swiper-navigation-size: 25px;
  }
}

/* SwiperJS - End */

/* Contacts Section - Start */
.contact-section {
  width: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 2fr;
  /* gap: 2rem; */
  max-width: 1200px;
  margin: 0 auto;
}

.contact-heading {
  grid-column: span 2;
  max-width: 100%;
  /* text-align: left; */
  /* font-size: clamp(24px, 5vw, 72px); */
  /* font-family: 'Bebas Neue', sans-serif; */
  /* color: #f59ac0; */
  /* padding-left: 2vw; */
  
  padding: 0;
  margin: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.contact-heading img {
  width: 50vw;
  /* min-width: 200px;  чтобы не стало слишком маленьким на мобилках */
  /* max-width: 480px; */
  height: auto;
    /* margin-right: 500px; */
    margin-left: 5vw;
}

/* Desktop */
@media (max-width: 1024px) {
    .contact-heading img {
        width: 50vw;
        /* margin-right: auto; */
    }
}

/* Планшет */
@media (max-width: 800px) {
    .contact-heading img {
        width: 80vw;
        margin-left: 0vw;
    }
}

/* Мобильник */
@media (max-width: 400px) {
    .contact-heading img {
        width: 80vw;
        margin-left: 0vw;
    }
}


.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-left: 10vw;
  padding-bottom: 3vw;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  color: #272727;
  line-height: 1.6;
}


.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
}

.contact-info a {
  color: var(--black);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}


/* CONTACT IMAGE: не отлипает от футера, ведёт себя адекватно на узких экранах */
.contact-image {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 100%;
  height: 100%;
}

.contact-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0;
}
@media (max-width: 500px) {
  .contact-image img {
    max-width: 70vw;
  }
}

/* Contact Section - End */

/* Social Buttons Section - Start */
.social-buttons-block {
  display: flex; /* Makes the container a flexbox */
  justify-content: center; /* Centers items horizontally */
  margin-top: 2vw;
  gap: 6vw; /* Space between buttons */
}

.social-icon {
    width: 3vw;
}

.social-icon:hover {
  transform: scale(1.08);
  transition: transform 0.3s;
}

@media (max-width: 1024px) {
    .social-icon {
        width: 4vw; /* Уменьшаем размер иконок на Desktop */
    }
    .social-buttons-block {
        gap: 7vw; 
    }
}

@media (max-width: 800px) {
  .social-icon {
    width: 5vw; /* Увеличиваем размер иконок на планшетах */
  }
    .social-buttons-block {
        gap: 7vw; 
    }
}

@media (max-width: 400px) {
  .social-icon {
    width: 6vw; /* Увеличиваем размер иконок на мобильных */
  }
    .social-buttons-block {
        gap: 8vw; 
    }
}
/* Social Buttons Section - End */


/* 2 в ряд на телефонах */
@media (max-width: 1024px) {
  .responsive-gallery-video {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .responsive-gallery-video {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Уменьшение размеров самого плеера */
  .responsive-gallery-video .js-player {
    width: 80%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box !important;
  }

  .plyr {
    min-width: 36vw !important;
  }
}

/* Reviews Section - Start */

/* .reviews-section { */
  /* margin: 4rem auto; */
  /* padding: 0 2vw; */
/* } */

.reviews-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* justify-content: center; */
  flex-wrap: nowrap; /* ❗️ Важно: не переносить отзывы на новую строку */
}

@media (max-width: 800px) {
  .reviews-grid {
    margin-top: 5vw;
  }
}


.review-card {
  flex: 0 0 auto;
  width: clamp(100px, 25vw, 320px); /* адаптивная ширина */
  scroll-snap-align: start;
}


.reviews-grid::-webkit-scrollbar {
  display: none;
}

/* .reviews-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
} */

.reviews-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */

  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2vw;
  max-width: 1170px;
  margin: 0 auto;
}


.review-card:hover {
  transform: translateY(-2px);
}

.review-image {
  width: 8vw;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 50%;
  max-width: 120px;
  min-width: 60px;
}

@media (max-width: 800px) {
  .review-image {
    width: 10vw;
  }
}

.stars {
  /* font-size: 1rem; */
  font-size: clamp(12px, 2vw, 16px);
  /* золотой */
  /* color: #f5a623;  */
  color: --black; /* золотой */
  margin-bottom: 0.5rem;
}

.review-title {
  font-weight: 600;
  /* font-size: 1.1rem; */
  font-size: clamp(12px, 1.2vw, 18px);
  margin-bottom: 0.5rem;
}

.review-text {
  /* font-size: 0.95rem; */
  font-size: clamp(12px, 1vw, 16px);
  color: #444;
  margin-bottom: 0.8rem;
}

.review-author {
  font-size: 0.9rem;
  color: #999;
}

.reviews-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}



.as-seen-on-sign {
  width: auto;
  max-width: 300px;
  height: clamp(15px, 5vw, 50px);
  margin-left: 1.2vw;
}

.reviews-footer-sources {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1vw;
  margin-left: 1vw;
}

.as-seen-on-logo {
  height: clamp(15px, 5vw, 35px);
  width: auto;
  object-fit: contain;
}


/* Reviews Section - End */

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #f59ac0; /* нежно-розовый */
  background: white;
  color: #f59ac0;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: #f59ac0;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(245, 154, 192, 0.6);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Scroll To Top Button - End */


/* Footer - Start */
.footer {
  width: 100%;
  padding: 2rem 1rem;
  /* соответствует цвету фона сайта */
  /* background-color: #f1f1ec;  */
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(12px, 1.5vw, 14px);
  color: #888;
  border-top: 1px solid #ccc;
  /* отступ сверху, чтобы отделить от контента */
  /* margin-top: 3rem;  */
}

.footer p {
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
/* Footer - End */


/* Divider */
.divider {
  border: none; /* убираем стандартный <hr> */
  height: 2px; /* толщина линии */
  width: 80vw; /* длина линии, регулируйте под дизайн */
  background-color: #ccc; /* цвет линии (можно ваш розовый или серый) */
  margin: 30px auto; /* вертикальный отступ + центрирование */
}

@media (max-width: 1024px) {
    .divider {
        margin: 25px auto; /* вертикальный отступ + центрирование */
    }
}

@media (max-width: 800px) {
    .divider {
        margin: 20px auto; /* вертикальный отступ + центрирование */
    }
}

@media (max-width: 400px) {
    .divider {
        margin: 12px auto; /* вертикальный отступ + центрирование */
    }
}

/* Fonts */
@font-face {
  font-family: "Fostgard";
  src: url("assets/fonts/FostgardRegular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
