/* File: assets/css/retouchclub.css */

/* запрет горизонтального скролла */
html, body {
  overflow-x: hidden;
}

/* =======================
   Hero секция
======================= */
.hero-section {
  width: 100%;
  min-height: 80vh;        /* минимум 80% высоты экрана */
  height: auto;            /* высота подстраивается под содержимое */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;         /* отступ сверху и снизу */
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  gap: 1.5rem;             /* чуть более плотный отступ между колонками */
}

/* Левая колонка: картинка */
.hero-image {
  flex: 0 0 35%;           /* занимает 35% ширины */
  max-width: 35%;
}
.hero-image img {
  width: 100%;
  max-height: 80vh;        /* не выше 80% экрана */
  object-fit: contain;
  display: block;
}

/* Правая колонка: текст */
.hero-text {
  flex: 0 0 60%;           /* занимает 60% ширины */
  max-width: 60%;
  align-self: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  color: #000;
}

.hero-paragraph {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  text-transform: uppercase;
  color: #666;
}

.highlight {
  color: #e33;
  font-weight: 600;
}

/* адаптив Hero */
@media (max-width: 1200px) {
  .hero-content {
    gap: 2rem;
    padding: 0 20px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-image,
  .hero-text {
    flex: 0 0 auto;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-paragraph {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* стартовые состояния для анимации */
.hero-image,
.hero-text {
  opacity: 0;
}
.hero-image {
  transform: translateX(-100px);
}
.hero-text {
  transform: translateX(100px);
}

/* keyframes Hero */
@keyframes fadeInLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* запуск анимации при появлении .in-view */
.hero-section.in-view .hero-image {
  animation: fadeInLeft 0.8s ease-out forwards 0.3s;
}
.hero-section.in-view .hero-text {
  animation: fadeInRight 0.8s ease-out forwards 0.5s;
}

/* =======================
   Working Globally секция
======================= */

/* Переменные для карточек */
:root {
  /* размеры */
  --card-width: 320px;
  --card-height: 450px;

  /* смещения от центра для 6 карт */
  --offset-1: -240px;
  --offset-2: -120px;
  --offset-3:    0px;
  --offset-4:  120px;
  --offset-5:  240px;
  --offset-6:  360px;

  /* углы наклона */
  --angle-1: -5deg;
  --angle-2:  -19deg;
  --angle-3:  16deg;
  --angle-4:   -8deg;
  --angle-5:   15deg;
  --angle-6:  0deg;

  /* прозрачность и фон последней карточки */
  --last-opacity: 0.6;
  --last-bg: rgb(0 0 0 / 86%);

  /* полоса под карточками */
  --strip-height: 1px;
  --strip-color: #1f1f1f;
}

.working-section {
  position: relative;
  padding: 100px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.section-subtitle,
.section-title,
.brands-wrapper,
.working-footer .read-more {
  opacity: 0;
  transform: translateY(30px);
}

.section-subtitle {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 60px;
}

/* Контейнер карточек */
.cards-wrapper {
  position: relative;
  width: 100%;
  height: var(--card-height);
  margin: 0 auto 60px;
  overflow: visible;
}

/* полоса под карточками */
.cards-wrapper::after {
  content: "";
  position: absolute;
  bottom: -40px;            /* опускаем чуть вниз под тенью карточек */
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  max-width: 200px;
  height: var(--strip-height);
  background: var(--strip-color);
}

/* Карточка */
.card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-width);
  height: var(--card-height);
  margin-left: calc(-1 * var(--card-width) / 2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);

  /* стартовая анимация */
  opacity: 0;
  transform: translateX(100vw) rotate(var(--angle));
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* индивидуальные смещения и углы */
.card-1 { --offset: var(--offset-1); --angle: var(--angle-1); z-index: 1; }
.card-2 { --offset: var(--offset-2); --angle: var(--angle-2); z-index: 2; }
.card-3 { --offset: var(--offset-3); --angle: var(--angle-3); z-index: 3; }
.card-4 { --offset: var(--offset-4); --angle: var(--angle-4); z-index: 4; }
.card-5 { --offset: var(--offset-5); --angle: var(--angle-5); z-index: 5; }
.card-6 {
  --offset: var(--offset-6);
  --angle: var(--angle-6);
  z-index: 6;
  opacity: var(--last-opacity);
  background: var(--last-bg);
}

/* текст поверх последней (6-й) карточки */
.overlay-card .card-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

/* логотипы брендов */
.brands-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 40px;
}
.brands-wrapper img {
  max-height: 100px;
  object-fit: contain;
}

/* кнопка */
.working-footer .read-more {
  padding: 8px 15px;
  font-size: 0.7rem;
  border: 1px solid #333;
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s;
  border-radius: 6px; /* <-- вот здесь */
}
.working-footer .read-more:hover {
  background: #333;
  color: #fff;
}

/* keyframes */
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardsIn {
  to {
    opacity: 1;
    transform: translateX(var(--offset)) rotate(var(--angle));
  }
}

/* запуск анимаций */
.working-section.in-view .section-subtitle {
  animation: slideUp .6s ease forwards .2s;
}
.working-section.in-view .section-title {
  animation: slideUp .6s ease forwards .4s;
}
.working-section.in-view .card-1 {
  animation: cardsIn .7s ease-out forwards .6s;
}
.working-section.in-view .card-2 {
  animation: cardsIn .7s ease-out forwards .7s;
}
.working-section.in-view .card-3 {
  animation: cardsIn .7s ease-out forwards .8s;
}
.working-section.in-view .card-4 {
  animation: cardsIn .7s ease-out forwards .9s;
}
.working-section.in-view .card-5 {
  animation: cardsIn .7s ease-out forwards 1s;
}
.working-section.in-view .card-6 {
  animation: cardsIn .7s ease-out forwards 1.1s;
}
.working-section.in-view .brands-wrapper {
  animation: slideUp .6s ease forwards 1.3s;
}
.working-section.in-view .working-footer .read-more {
  animation: slideUp .6s ease forwards 1.5s;
}

/* адаптив */
@media (max-width: 768px) {
  .cards-wrapper { height: calc(var(--card-height)*0.7); }
  .card {
    width: calc(var(--card-width)*0.7);
    height: calc(var(--card-height)*0.7);
    margin-left: calc(-1 * var(--card-width)*0.35);
  }
  .card-1 { --offset: -140px; }
  .card-2 { --offset:  -70px; }
  .card-3 { --offset:    0px; }
  .card-4 { --offset:   70px; }
  .card-5 { --offset:  140px; }
  .card-6 { --offset:  210px; }
  .section-title { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .cards-wrapper { height: calc(var(--card-height)*0.5); }
  .card {
    width: calc(var(--card-width)*0.5);
    height: calc(var(--card-height)*0.5);
    margin-left: calc(-1 * var(--card-width)*0.25);
  }
  .card-1 { --offset: -100px; }
  .card-2 { --offset:  -50px; }
  .card-3 { --offset:    0px; }
  .card-4 { --offset:   50px; }
  .card-5 { --offset:  100px; }
  .card-6 { --offset:  150px; }
  .section-title { font-size: 2rem; margin-bottom: 40px; }
}

/* ====== Модальное окно ====== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}

/* Контейнер содержимого */
.modal-content {
  position: relative;
  background: rgba(30,30,30,0.85);
  border-radius: 8px;
  padding: 40px 30px;
  max-height: calc(100vh - 250px);
  max-width: 800px;
  width: 100%;
  overflow-y: auto;
  text-align: center;
  color: #fff;
  overflow: visible;
  padding-top: 150px; /* отступ для “венчания” логотипа */
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.modal-close:hover {
  opacity: 1;
}

/* Логотип сверху */
.modal-logo {
  position: absolute;
  top: -55px;        /* вылезает на 60px вверх */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 180px;  /* по желанию */
}

/* Заголовок */
.modal-title {
  margin: 0 0 16px;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Текст */
.modal-text {
  margin: 0 0 12px;
  font-size: 0.55rem;
  line-height: 1.6;
}
.modal-text strong {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}

/* Разделительная полоска */
.modal-divider {
  width: 130px;
  height: 1px;
  background: #ffffff;
  margin: 24px auto 16px;
  opacity: 0;
  transform: translateX(100px);
}

/* ===== стили соц‑иконок в кружках ===== */
.modal-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgb(255 255 255 / 55%);
  border-radius: 50%;
  transition: background .3s;
}

.modal-social a:hover {
  background: rgba(255,255,255,0.4);
}

.modal-social a img {
  width: 40px;
  height: 40px;
  display: block;
}

.modal-divider,
.modal-social {
  opacity: 0;
  transform: translateX(100px);
}

/* Анимация въезда справа */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 3) Запуск анимации, когда у overlay появляется класс .active */
.modal-overlay.active .modal-divider {
  animation: slideInRight 0.6s ease-out forwards 0.4s;
}
.modal-overlay.active .modal-social {
  animation: slideInRight 0.6s ease-out forwards 0.6s;
}

/* ===== Post‑Production секция ===== */
.post-production-section {
  background: #fff;
  text-align: center;
  --delay-step: 0.2s;
}
.post-production-section .section-subtitle-rc,
.post-production-section .section-title-rc,
.post-production-section .post-gallery,
.post-production-section .post-text,
.post-production-section .post-buttons {
  /* начальные состояния */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* сдвиги влево/вправо */
.post-production-section .post-gallery {
  transform: translateX(-100px) translateY(30px);
}
.post-production-section .post-text,
.post-production-section .post-buttons {
  transform: translateX(100px) translateY(30px);
}

.post-production-section .section-subtitle-rc {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: -30px;
}
.post-production-section .section-title-rc {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* общий контейнер */
.post-production-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .post-production-content {
    flex-direction: column;
  }
}

/* — Слайдер — */
.post-gallery {
  position: relative;
  flex: 0 0 45%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.post-gallery .slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 155%; /* соотношение 4:5 */
}
.post-gallery .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
}
.post-gallery .slide.active {
  opacity: 1;
}
.post-gallery .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* стрелки навигации */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover {
  background: rgba(255,255,255,1);
}
.gallery-nav.prev {
  left: 16px;
}
.gallery-nav.next {
  right: 16px;
}

/* — Текст и список — */
.post-text {
  text-align: left;
}
.post-text h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 50px;
}
.post-text h3 .highlight {
  color: #e33;
  font-weight: 900;
  text-transform: lowercase;
}

.post-text .features-list {
  list-style: none;
  margin: 0 0 220px;
  padding: 0;
}
/* ==== Список преимуществ: вариант B ==== */

/* Базовые стили списка */
.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.features-list li {
  margin-bottom: 24px;
}

/* Заголовок-пункт */
.features-list li > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

/* Описание-подпункт: отдельный класс, очень маленький шрифт */
.features-list li .feature-desc {
  display: block;
  margin-left:   0;     /* без отступа, сразу под заголовком */
  font-size:     0.85rem;
  line-height:   1.4;
  color:         #666;
}


.feature-desc {
  display: inline-block;
  font-size: 0.75rem;    /* очень маленький шрифт */
  color: #666;
  line-height: 1.4;
  margin-left: 8px;      /* отступ от заголовка */
}


/* — Кнопки — */
.post-buttons {
  display: flex;
  gap: 16px;
  margin-top: -3rem;
}
.btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background .3s, color .3s;
}
.btn-primary {
  background: #e33;
  color: #fff;
}
.btn-primary:hover {
  background: #c22;
}
.btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #585858;
}
.btn-secondary:hover {
  background: #f5f5f5;
}

/* когда секция видна — «выезжаем» */
.post-production-section.in-view .section-subtitle-rc {
  transition-delay: calc(var(--delay-step) * 1);
  opacity: 1;
  transform: translateY(0);
}
.post-production-section.in-view .section-title-rc {
  transition-delay: calc(var(--delay-step) * 2);
  opacity: 1;
  transform: translateY(0);
}
.post-production-section.in-view .post-gallery {
  transition-delay: calc(var(--delay-step) * 3);
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.post-production-section.in-view .post-text {
  transition-delay: calc(var(--delay-step) * 4);
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.post-production-section.in-view .post-buttons {
  transition-delay: calc(var(--delay-step) * 5);
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ===== Process Section (1.5 экрана) ===== */
/* базовая стилизация */
.process-section {
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

.process-subtitle {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(-20px);
}

.process-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(-20px);
}

/* контейнер шагов */
.process-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(40px);
}

/* отдельный шаг */
.process-item {
  max-width: 280px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.process-icon {
  display: block;
  margin: 0 auto 16px;
  width: 130px;
  height: 130px;
}
.process-step {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #999;
  margin: 0 0 8px;
}
.process-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.process-item-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* точки‑разделители */
.process-dots {
  font-size: 2rem;
  color: #ccc;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

/* когда секция в зоне видимости */
.process-section.in-view .process-subtitle {
  animation: fadeInTop .6s forwards .2s;
}
.process-section.in-view .process-title {
  animation: fadeInTop .6s forwards .4s;
}
.process-section.in-view .process-items {
  animation: fadeInUp .6s forwards .6s;
}

/* сами шаги и точки */
.process-section.in-view .process-item:nth-child(1) {
  animation: fadeInUp .6s forwards .8s;
}
.process-section.in-view .process-dots:nth-of-type(1) {
  animation: fadeInUp .6s forwards 1s;
}
.process-section.in-view .process-item:nth-child(3) {
  animation: fadeInUp .6s forwards 1.2s;
}
.process-section.in-view .process-dots:nth-of-type(2) {
  animation: fadeInUp .6s forwards 1.4s;
}
.process-section.in-view .process-item:nth-child(5) {
  animation: fadeInUp .6s forwards 1.6s;
}

/* ключевые кадры */
@keyframes fadeInTop {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* сброс анимации при выходе */
.process-section:not(.in-view) .process-subtitle,
.process-section:not(.in-view) .process-title,
.process-section:not(.in-view) .process-items,
.process-section:not(.in-view) .process-item,
.process-section:not(.in-view) .process-dots {
  opacity: 0;
}

.process-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

.process-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.portfolio-section {
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  background: #fff;
}

/* Секция с 3-мя картинками и свайпом влево */
.portfolio-section {
  padding: 100px 20px;
  text-align: center;
}

.portfolio-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #777;
  margin-bottom: -18px;
}

.portfolio-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 40px;
}

.portfolio-swiper {
  width: 100%;
  padding: 20px 0 40px;
}

.swiper-slide {
  width: auto;
  max-width: 360px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-right: 24px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

.portfolio-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  border-radius: 6px;
  transition: background 0.3s;
}
.portfolio-button:hover {
  background: #000;
  color: #fff;
}

/* Базовые стили анимаций */
.anim-section .anim-fade-top,
.anim-section .anim-fade-in,
.anim-section .anim-fade-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Появление сверху */
.anim-section.active .anim-fade-top {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Появление блока (слайды) */
.anim-section.active .anim-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Кнопка снизу */
.anim-section.active .anim-fade-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.upload-section {
  padding: 100px 20px;
  text-align: center;
}

.upload-subtitle {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: -25px; /* было 8px */
}

.upload-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: -8px; /* было 12px */
}

.upload-instruction {
  font-size: 0.7rem; /* Сделаем текст немного крупнее */
  font-weight: 500;  /* Придаст плотности как на скриншоте */
  color: #333;
  text-align: center;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 24px auto; /* Центрируем и добавим отступ снизу */
  padding: 0 16px; /* Немного отступов по бокам на мобилке */
}


.upload-note {
  background-color: #007BFF;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 14px; /* было 40px */
}


.upload-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px 10px;
  justify-content: center;
  max-width: 900px; /* ограничение ширины */
  margin: 0 auto; /* центрирование */
  padding: 0 20px; /* отступы по краям */
}



.upload-card {
  display: block;
  width: 100%;
  max-width: 200px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.upload-card img {
  width: 100%;
  display: block;
  border-radius: 20px;
  min-height: 300px
}

.upload-card:hover {
  transform: scale(1.05);
}

.upload-price {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.upload-price span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Анимация */
.anim-section .anim-fade-top,
.anim-section .anim-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-section.active .anim-fade-top,
.anim-section.active .anim-fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .upload-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .upload-cards {
    grid-template-columns: 1fr;
  }
}

/* File: assets/css/retouchclub.css */

/* запрет горизонтального скролла */
html, body {
  overflow-x: hidden;
}

/* =======================
   Hero секция
======================= */
.hero-section {
  width: 100%;
  min-height: 80vh;        /* минимум 80% высоты экрана */
  height: auto;            /* высота подстраивается под содержимое */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;         /* отступ сверху и снизу */
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  gap: 1.5rem;             /* чуть более плотный отступ между колонками */
}

/* Левая колонка: картинка */
.hero-image {
  flex: 0 0 35%;           /* занимает 35% ширины */
  max-width: 35%;
}
.hero-image img {
  width: 100%;
  max-height: 80vh;        /* не выше 80% экрана */
  object-fit: contain;
  display: block;
}

/* Правая колонка: текст */
.hero-text {
  flex: 0 0 60%;           /* занимает 60% ширины */
  max-width: 60%;
  align-self: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  color: #000;
}

.hero-paragraph {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  text-transform: uppercase;
  color: #666;
}

.highlight {
  color: #e33;
  font-weight: 600;
}

/* адаптив Hero */
@media (max-width: 1200px) {
  .hero-content {
    gap: 2rem;
    padding: 0 20px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-image,
  .hero-text {
    flex: 0 0 auto;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-paragraph {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* стартовые состояния для анимации */
.hero-image,
.hero-text {
  opacity: 0;
}
.hero-image {
  transform: translateX(-100px);
}
.hero-text {
  transform: translateX(100px);
}

/* keyframes Hero */
@keyframes fadeInLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* запуск анимации при появлении .in-view */
.hero-section.in-view .hero-image {
  animation: fadeInLeft 0.8s ease-out forwards 0.3s;
}
.hero-section.in-view .hero-text {
  animation: fadeInRight 0.8s ease-out forwards 0.5s;
}

/* =======================
   Working Globally секция
======================= */

/* Переменные для карточек */
:root {
  /* размеры */
  --card-width: 320px;
  --card-height: 450px;

  /* смещения от центра для 6 карт */
  --offset-1: -240px;
  --offset-2: -120px;
  --offset-3:    0px;
  --offset-4:  120px;
  --offset-5:  240px;
  --offset-6:  360px;

  /* углы наклона */
  --angle-1: -5deg;
  --angle-2:  -19deg;
  --angle-3:  16deg;
  --angle-4:   -8deg;
  --angle-5:   15deg;
  --angle-6:  0deg;

  /* прозрачность и фон последней карточки */
  --last-opacity: 0.6;
  --last-bg: rgb(0 0 0 / 86%);

  /* полоса под карточками */
  --strip-height: 1px;
  --strip-color: #1f1f1f;
}

.working-section {
  position: relative;
  padding: 100px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.section-subtitle,
.section-title,
.brands-wrapper,
.working-footer .read-more {
  opacity: 0;
  transform: translateY(30px);
}

.section-subtitle {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 60px;
}

/* Контейнер карточек */
.cards-wrapper {
  position: relative;
  width: 100%;
  height: var(--card-height);
  margin: 0 auto 60px;
  overflow: visible;
}

/* полоса под карточками */
.cards-wrapper::after {
  content: "";
  position: absolute;
  bottom: -40px;            /* опускаем чуть вниз под тенью карточек */
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  max-width: 200px;
  height: var(--strip-height);
  background: var(--strip-color);
}

/* Карточка */
.card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-width);
  height: var(--card-height);
  margin-left: calc(-1 * var(--card-width) / 2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);

  /* стартовая анимация */
  opacity: 0;
  transform: translateX(100vw) rotate(var(--angle));
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* индивидуальные смещения и углы */
.card-1 { --offset: var(--offset-1); --angle: var(--angle-1); z-index: 1; }
.card-2 { --offset: var(--offset-2); --angle: var(--angle-2); z-index: 2; }
.card-3 { --offset: var(--offset-3); --angle: var(--angle-3); z-index: 3; }
.card-4 { --offset: var(--offset-4); --angle: var(--angle-4); z-index: 4; }
.card-5 { --offset: var(--offset-5); --angle: var(--angle-5); z-index: 5; }
.card-6 {
  --offset: var(--offset-6);
  --angle: var(--angle-6);
  z-index: 6;
  opacity: var(--last-opacity);
  background: var(--last-bg);
}

/* текст поверх последней (6-й) карточки */
.overlay-card .card-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

/* логотипы брендов */
.brands-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 40px;
}
.brands-wrapper img {
  max-height: 100px;
  object-fit: contain;
}

/* кнопка */
.working-footer .read-more {
  padding: 8px 15px;
  font-size: 0.7rem;
  border: 1px solid #333;
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s;
  border-radius: 6px; /* <-- вот здесь */
}
.working-footer .read-more:hover {
  background: #333;
  color: #fff;
}

/* keyframes */
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardsIn {
  to {
    opacity: 1;
    transform: translateX(var(--offset)) rotate(var(--angle));
  }
}

/* запуск анимаций */
.working-section.in-view .section-subtitle {
  animation: slideUp .6s ease forwards .2s;
}
.working-section.in-view .section-title {
  animation: slideUp .6s ease forwards .4s;
}
.working-section.in-view .card-1 {
  animation: cardsIn .7s ease-out forwards .6s;
}
.working-section.in-view .card-2 {
  animation: cardsIn .7s ease-out forwards .7s;
}
.working-section.in-view .card-3 {
  animation: cardsIn .7s ease-out forwards .8s;
}
.working-section.in-view .card-4 {
  animation: cardsIn .7s ease-out forwards .9s;
}
.working-section.in-view .card-5 {
  animation: cardsIn .7s ease-out forwards 1s;
}
.working-section.in-view .card-6 {
  animation: cardsIn .7s ease-out forwards 1.1s;
}
.working-section.in-view .brands-wrapper {
  animation: slideUp .6s ease forwards 1.3s;
}
.working-section.in-view .working-footer .read-more {
  animation: slideUp .6s ease forwards 1.5s;
}

/* адаптив */
@media (max-width: 768px) {
  .cards-wrapper { height: calc(var(--card-height)*0.7); }
  .card {
    width: calc(var(--card-width)*0.7);
    height: calc(var(--card-height)*0.7);
    margin-left: calc(-1 * var(--card-width)*0.35);
  }
  .card-1 { --offset: -140px; }
  .card-2 { --offset:  -70px; }
  .card-3 { --offset:    0px; }
  .card-4 { --offset:   70px; }
  .card-5 { --offset:  140px; }
  .card-6 { --offset:  210px; }
  .section-title { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .cards-wrapper { height: calc(var(--card-height)*0.5); }
  .card {
    width: calc(var(--card-width)*0.5);
    height: calc(var(--card-height)*0.5);
    margin-left: calc(-1 * var(--card-width)*0.25);
  }
  .card-1 { --offset: -100px; }
  .card-2 { --offset:  -50px; }
  .card-3 { --offset:    0px; }
  .card-4 { --offset:   50px; }
  .card-5 { --offset:  100px; }
  .card-6 { --offset:  150px; }
  .section-title { font-size: 2rem; margin-bottom: 40px; }
}

/* ====== Модальное окно ====== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}

/* Контейнер содержимого */
.modal-content {
  position: relative;
  background: rgba(30,30,30,0.85);
  border-radius: 8px;
  padding: 40px 30px;
  max-height: calc(100vh - 250px);
  max-width: 800px;
  width: 100%;
  overflow-y: auto;
  text-align: center;
  color: #fff;
  overflow: visible;
  padding-top: 150px; /* отступ для “венчания” логотипа */
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}
.modal-close:hover {
  opacity: 1;
}

/* Логотип сверху */
.modal-logo {
  position: absolute;
  top: -55px;        /* вылезает на 60px вверх */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 180px;  /* по желанию */
}

/* Заголовок */
.modal-title {
  margin: 0 0 16px;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Текст */
.modal-text {
  margin: 0 0 12px;
  font-size: 0.55rem;
  line-height: 1.6;
}
.modal-text strong {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}

/* Разделительная полоска */
.modal-divider {
  width: 130px;
  height: 1px;
  background: #ffffff;
  margin: 24px auto 16px;
  opacity: 0;
  transform: translateX(100px);
}

/* ===== стили соц‑иконок в кружках ===== */
.modal-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgb(255 255 255 / 55%);
  border-radius: 50%;
  transition: background .3s;
}

.modal-social a:hover {
  background: rgba(255,255,255,0.4);
}

.modal-social a img {
  width: 40px;
  height: 40px;
  display: block;
}

.modal-divider,
.modal-social {
  opacity: 0;
  transform: translateX(100px);
}

/* Анимация въезда справа */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* 3) Запуск анимации, когда у overlay появляется класс .active */
.modal-overlay.active .modal-divider {
  animation: slideInRight 0.6s ease-out forwards 0.4s;
}
.modal-overlay.active .modal-social {
  animation: slideInRight 0.6s ease-out forwards 0.6s;
}

/* ===== Post‑Production секция ===== */
.post-production-section {
  background: #fff;
  text-align: center;
  --delay-step: 0.2s;
}
.post-production-section .section-subtitle-rc,
.post-production-section .section-title-rc,
.post-production-section .post-gallery,
.post-production-section .post-text,
.post-production-section .post-buttons {
  /* начальные состояния */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* сдвиги влево/вправо */
.post-production-section .post-gallery {
  transform: translateX(-100px) translateY(30px);
}
.post-production-section .post-text,
.post-production-section .post-buttons {
  transform: translateX(100px) translateY(30px);
}

.post-production-section .section-subtitle-rc {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: -30px;
}
.post-production-section .section-title-rc {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* общий контейнер */
.post-production-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .post-production-content {
    flex-direction: column;
  }
}

/* — Слайдер — */
.post-gallery {
  position: relative;
  flex: 0 0 45%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.post-gallery .slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 155%; /* соотношение 4:5 */
}
.post-gallery .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
}
.post-gallery .slide.active {
  opacity: 1;
}
.post-gallery .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* стрелки навигации */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover {
  background: rgba(255,255,255,1);
}
.gallery-nav.prev {
  left: 16px;
}
.gallery-nav.next {
  right: 16px;
}

/* — Текст и список — */
.post-text {
  text-align: left;
}
.post-text h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 50px;
}
.post-text h3 .highlight {
  color: #e33;
  font-weight: 900;
  text-transform: lowercase;
}

.post-text .features-list {
  list-style: none;
  margin: 0 0 220px;
  padding: 0;
}
/* ==== Список преимуществ: вариант B ==== */

/* Базовые стили списка */
.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.features-list li {
  margin-bottom: 24px;
}

/* Заголовок-пункт */
.features-list li > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

/* Описание-подпункт: отдельный класс, очень маленький шрифт */
.features-list li .feature-desc {
  display: block;
  margin-left:   0;     /* без отступа, сразу под заголовком */
  font-size:     0.85rem;
  line-height:   1.4;
  color:         #666;
}


.feature-desc {
  display: inline-block;
  font-size: 0.75rem;    /* очень маленький шрифт */
  color: #666;
  line-height: 1.4;
  margin-left: 8px;      /* отступ от заголовка */
}


/* — Кнопки — */
.post-buttons {
  display: flex;
  gap: 16px;
  margin-top: -3rem;
}
.btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background .3s, color .3s;
}
.btn-primary {
  background: #e33;
  color: #fff;
}
.btn-primary:hover {
  background: #c22;
}
.btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #585858;
}
.btn-secondary:hover {
  background: #f5f5f5;
}

/* когда секция видна — «выезжаем» */
.post-production-section.in-view .section-subtitle-rc {
  transition-delay: calc(var(--delay-step) * 1);
  opacity: 1;
  transform: translateY(0);
}
.post-production-section.in-view .section-title-rc {
  transition-delay: calc(var(--delay-step) * 2);
  opacity: 1;
  transform: translateY(0);
}
.post-production-section.in-view .post-gallery {
  transition-delay: calc(var(--delay-step) * 3);
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.post-production-section.in-view .post-text {
  transition-delay: calc(var(--delay-step) * 4);
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.post-production-section.in-view .post-buttons {
  transition-delay: calc(var(--delay-step) * 5);
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ===== Process Section (1.5 экрана) ===== */
/* базовая стилизация */
.process-section {
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

.process-subtitle {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(-20px);
}

.process-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(-20px);
}

/* контейнер шагов */
.process-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateY(40px);
}

/* отдельный шаг */
.process-item {
  max-width: 280px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.process-icon {
  display: block;
  margin: 0 auto 16px;
  width: 130px;
  height: 130px;
}
.process-step {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #999;
  margin: 0 0 8px;
}
.process-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.process-item-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* точки‑разделители */
.process-dots {
  font-size: 2rem;
  color: #ccc;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

/* когда секция в зоне видимости */
.process-section.in-view .process-subtitle {
  animation: fadeInTop .6s forwards .2s;
}
.process-section.in-view .process-title {
  animation: fadeInTop .6s forwards .4s;
}
.process-section.in-view .process-items {
  animation: fadeInUp .6s forwards .6s;
}

/* сами шаги и точки */
.process-section.in-view .process-item:nth-child(1) {
  animation: fadeInUp .6s forwards .8s;
}
.process-section.in-view .process-dots:nth-of-type(1) {
  animation: fadeInUp .6s forwards 1s;
}
.process-section.in-view .process-item:nth-child(3) {
  animation: fadeInUp .6s forwards 1.2s;
}
.process-section.in-view .process-dots:nth-of-type(2) {
  animation: fadeInUp .6s forwards 1.4s;
}
.process-section.in-view .process-item:nth-child(5) {
  animation: fadeInUp .6s forwards 1.6s;
}

/* ключевые кадры */
@keyframes fadeInTop {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* сброс анимации при выходе */
.process-section:not(.in-view) .process-subtitle,
.process-section:not(.in-view) .process-title,
.process-section:not(.in-view) .process-items,
.process-section:not(.in-view) .process-item,
.process-section:not(.in-view) .process-dots {
  opacity: 0;
}

.process-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

.process-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.portfolio-section {
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  background: #fff;
}

/* Секция с 3-мя картинками и свайпом влево */
.portfolio-section {
  padding: 100px 20px;
  text-align: center;
}


.portfolio-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 40px;
}

.portfolio-swiper {
  width: 100%;
  padding: 20px 0 40px;
}

.portfolio-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  border-radius: 6px;
  transition: background 0.3s;
}
.portfolio-button:hover {
  background: #000;
  color: #fff;
}

/* Базовые стили анимаций */
.anim-section .anim-fade-top,
.anim-section .anim-fade-in,
.anim-section .anim-fade-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Появление сверху */
.anim-section.active .anim-fade-top {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Появление блока (слайды) */
.anim-section.active .anim-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* Кнопка снизу */
.anim-section.active .anim-fade-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.upload-section {
  padding: 100px 20px;
  text-align: center;
}

.upload-subtitle {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: -25px; /* было 8px */
}

.upload-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: -8px; /* было 12px */
}



.upload-note {
  background-color: #007BFF;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 14px; /* было 40px */
}


.upload-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px 10px;
  justify-content: center;
  max-width: 900px; /* ограничение ширины */
  margin: 0 auto; /* центрирование */
  padding: 0 20px; /* отступы по краям */
}



.upload-card {
  display: block;
  width: 100%;
  max-width: 200px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.upload-card img {
  width: 100%;
  display: block;
  border-radius: 20px;
  height: auto;
}

.upload-card:hover {
  transform: scale(1.05);
}

.upload-price {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.upload-price span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Анимация */
.anim-section .anim-fade-top,
.anim-section .anim-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-section.active .anim-fade-top,
.anim-section.active .anim-fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .upload-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .upload-cards {
    grid-template-columns: 1fr;
  }
}

/* === ТЕКСТЫ === */
.ai-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.ai-badge {
  position: absolute;
  top: -10px;
  right: -30px;
  background: red;
  color: white;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  animation: pulse 1.5s infinite;
}

/* === АНИМАЦИЯ ПУЛЬСА === */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* кнопка */
.ai-button-wrapper {
  z-index: 2;
  position: relative;
}

.ai-button {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin: 34px; /* было 40px */
}

.ai-button:hover {
  background: #0056b3;
}

/* ==== Секция и заголовок ==== */
.faq-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.faq-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.faq-header {
  text-align: center;
  margin-bottom: 40px;
}
.faq-subtitle {
  font-size: 14px; text-transform: uppercase; color: #777;
}
.faq-title {
  font-size: 36px; font-family: serif; margin: 8px 0;
}
.faq-desc {
  color: #555;
}

/* ==== Видео‑карточка ==== */
.faq-video-card {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}
.card-content {
  position: relative;
  background: #f8f8f8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 400px;
  width: 100%;
  cursor: pointer;
}
.card-title {
  font-size: 24px;
  color: #555;
  line-height: 1.2;
  flex-shrink: 0;
}
.card-icon {
  flex-shrink: 0;
}
.icon-play {
  width: 48px;
  height: 48px;
  color: #555;
}
.card-play-btn {
  margin-left: auto;
  background: #e6e6e6;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 16px;
  color: #777;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: background .3s;
}
.card-play-btn:hover {
  background: #e8e8e8;
}

/* ==== Аккордеон ==== */
.faq-accordion {
  display: flex;
  gap: 40px;
}
.faq-col {
  flex: 1;
}
.faq-item {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
}
.faq-icon {
  display: inline-block;
  transition: transform .3s;
  font-size: 24px;
  line-height: 1;
  color: #333;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 4px;
}
.faq-item.active .faq-a {
  max-height: 200px;
  padding: 12px 4px;
}

/* ==== Модалка (overlay blur + центрированный плеер) ==== */
/* ==== Модалка: overlay blur через ::before ==== */
.faq-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Убираем прямой background/backdrop‑filter */
  background: transparent;
}
.faq-modal.open {
  display: flex;
}
/* псевдо‑слой под всем контентом */
.faq-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* ==== Контейнер плеера ==== */
/* =============================
   1) Overlay‑блюр для фона
   ============================= */
.faq-modal {
  position: fixed;
  inset: 0;
  display: none;               /* по умолчанию скрыто */
  align-items: center;         /* центрируем плеер */
  justify-content: center;
  z-index: 1000;
  /* Псевдо‑элемент размывает всё, что под ним */
}
.faq-modal.open {
  display: flex;
}

.faq-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* =============================
   2) Центрированный плеер 16:9
   ============================= */
.faq-modal-content {
  position: relative;
  z-index: 2;                  /* выше псевдо‑элемента */
  width: 80vw;                 /* занимает 80% ширины экрана */
  max-width: 900px;            /* максимум 900px */
  aspect-ratio: 16/9;          /* сохраняем пропорции */
  border-radius: 12px;         /* закруглённые углы */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #000;            /* фон под iframe */
}

/* Сам iframe растягиваем на весь контейнер */
.faq-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================
   3) Кнопка закрытия
   ============================= */
.faq-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;                  /* над всем остальным */
  background: rgba(255,255,255,0.8);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.faq-modal-close:hover {
  background: rgba(255,255,255,1);
}

/* ====== Секция и базовые стили ====== */
.zoom-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.zoom-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Заголовки */
.zoom-header {
  text-align: center;
  margin-bottom: 60px;
}
.zoom-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown .6s forwards;
  animation-delay: 0.2s;
}
.zoom-title {
  font-family: serif;
  font-size: 48px;
  margin: 0;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown .6s forwards;
  animation-delay: 0.4s;
}
/* ====== Анимация заголовка ====== */
@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптив */
@media (min-width: 768px) {
  .zoom-content {
    flex-direction: row;
  }
  .zoom-image, .zoom-panel {
    flex: 1;
  }
}

.zoom-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}


@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Card Container (Image + Panel) ====== */
.zoom-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #555;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow: hidden;
  width: 80%;
  opacity: 0;
  transform: translateX(350px);
  transition: opacity .6s ease, transform .6s ease;
}
.zoom-section.visible .zoom-content {
  opacity: 1;
  transform: translateX(470px);
}

/* ====== Left: Image ====== */

.zoom-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== Right: Panel ====== */
.zoom-panel {
  flex: 1;
  position: relative;
  padding: 40px;
  color: #fff;
}

.zoom-panel-content {
  position: relative;
  z-index: 2;
}
.panel-title {
  font-family: serif;
  font-size: 32px;
  margin: 0 0 8px 0;
}
.panel-subtitle {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.panel-list {
  list-style: disc inside;
  margin: 0 0 32px 0;
  padding: 0;
}
.panel-list li {
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ====== Form ====== */
.zoom-form .form-group {
  margin-bottom: 20px;
}
.zoom-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.zoom-form input {
  width: 60%;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}
.btn-submit {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn-submit:hover {
  background: #fff;
  color: #555;
}

/* ====== Mobile Adjustments ====== */
@media (max-width: 767px) {
  .zoom-content {
    flex-direction: column;
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
  .zoom-image img {
    border-radius: 16px 16px 0 0;
  }
  .zoom-panel {
    border-radius: 0 0 16px 16px;
  }
}
