/* intensive.css — песочно‑оранжевая палитра, стеклянная плашка, аккуратные анимации
   + центровка композиции на ПК (сдвиг плашки и мокапа левее). Структура и зависимости не менялись. */

/* === ОСНОВНОЙ БЛОК === */
.intensive {
  position: relative;
  height: 40vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  margin: 0;

  /* Управление выравниванием и сдвигом */
  --intensive-justify: flex-start; /* flex-start | center | flex-end */
  --intensive-align: center;       /* flex-start | center | flex-end | stretch */
  --intensive-shift-x: 0px;        /* например: -40px, 2rem, 5% */
  --intensive-shift-y: 0px;        /* например: -20px, 1rem, 2vh */

  justify-content: var(--intensive-justify);
  align-items: var(--intensive-align);
  transform: translate(var(--intensive-shift-x), var(--intensive-shift-y));
}

/* === ФОН === */
.intensive-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden; /* для обрезки мокапа */
}

/* Тёплый песочный тон поверх фонового изображения */
.intensive-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(240, 196, 120, 0.22),
      rgba(233, 184, 110, 0.16) 45%,
      rgba(214, 144, 72, 0.18));
  mix-blend-mode: soft-light; /* мягкий песочный тинт */
}

.intensive-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease-out, filter 1.5s ease-out;
  filter: brightness(0.94) saturate(1.02);
}

.intensive-bg:hover img {
  transform: scale(1.02);
  filter: brightness(0.98) saturate(1.05);
}

/* === ТЕКСТОВАЯ ПЛАШКА (матовое стекло + декоративная обводка) === */
.intensive-overlay {
  position: relative;
  width: 40%;
  max-width: 500px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(43, 31, 21, 0.18); /* тёплая тень */
  margin-left: 80px;
  z-index: 2;
  animation: fadeInLeft 0.9s ease-out forwards;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* сияющая градиентная кайма — песочно‑оранжевые тона */
.intensive-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(223, 139, 43, 0.60),
    rgba(240, 184, 90, 0.35),
    rgba(255, 255, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: borderGlow 8s linear infinite;
  opacity: 0.7;
}

@keyframes borderGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg); }
}

@keyframes fadeInLeft {
  from { transform: translateX(-40px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.intensive-overlay h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.intensive-overlay p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

/* === КНОПКА В ПЛАШКЕ — янтарь → песочный + шиммер === */
.btn-primary.btn-lg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  font-size: 1rem;
  background: linear-gradient(135deg, #df8b2b, #f0b85a);
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(199, 140, 67, 0.28), inset 0 -2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  text-align: center;
  overflow: hidden; /* для эффекта блики */
}

.btn-primary.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(199, 140, 67, 0.34), inset 0 -2px 8px rgba(0,0,0,0.16);
  background: linear-gradient(135deg, #f0b85a, #df8b2b);
}

/* Шиммерная полоска по кнопке */
.btn-primary.btn-lg::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -30%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.0) 100%);
  transform: rotate(25deg);
  transition: transform 0.6s ease;
  opacity: 0.7;
}

.btn-primary.btn-lg:hover::after {
  transform: translateX(260%) rotate(25deg);
}

.btn-primary.btn-lg:focus-visible {
  outline: 3px solid rgba(224, 150, 62, 0.55); /* тёплый фокус */
  outline-offset: 2px;
}

/* Telegram-иконка в кнопке — белая + лёгкий скейл при ховере */
.btn-primary.btn-lg .telegram-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  filter: invert(100%) brightness(200%);
  transition: transform 0.25s ease;
}

.btn-primary.btn-lg:hover .telegram-icon {
  transform: scale(1.08);
}

/* === МОКАП IPHONE 13 === */
.phone-container {
  position: absolute;
  left: 84%;
  bottom: -20%;
  transform: translateX(-50%);
  width: 260px;
  height: 520px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.iphone-mockup {
  width: 100%;
  height: 100%;
  background: #f5f5f7;
  border-radius: 36px;
  border: 8px solid #e0e0e0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: phoneFloat 8s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50%      { transform: translateY(-8px) rotate(0.4deg); }
}

.phone-screenshot {
  width: 100%;
  object-fit: contain;
  border-radius: 28px;
  filter: brightness(1.05);
}

/* === ИКОНКА TELEGRAM НА МОКАПЕ (янтарный градиент) === */
.telegram-icon-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #df8b2b, #f0b85a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(224, 162, 74, 0.45);
  z-index: 3;
  border: 3px solid white;
  animation: float 3s ease-in-out infinite;
  overflow: hidden;
  padding: 6px;
}

.telegram-icon-badge-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: invert(100%) brightness(200%); /* белый цвет */
  transition: transform 0.25s ease;
}

.telegram-icon-badge:hover .telegram-icon-badge-img {
  transform: scale(1.08);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
  .intensive {
    height: auto;
    min-height: 600px;
    flex-direction: column;
    padding: 40px 16px;
    justify-content: flex-start;
  }

  .intensive-overlay {
    width: 90%;
    max-width: 420px;
    margin: 0 auto 24px auto;
    padding: 24px 20px;
    text-align: center;
    border-radius: 20px;
  }

  .intensive-overlay h2 { font-size: 1.6rem; }
  .intensive-overlay p { font-size: 0.95rem; margin-bottom: 20px; }

  .btn-primary.btn-lg {
    width: 100%;
    padding: 14px 0;
    font-size: 0.98rem;
  }

  .phone-container {
    left: 50%;
    bottom: -20%;
    transform: translateX(-50%);
    width: 200px;
    height: 400px;
  }

  .iphone-mockup { border-radius: 28px; border: 6px solid #e0e0e0; }
  .phone-screenshot { border-radius: 24px; }

  .telegram-icon-badge {
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
  }

  .telegram-icon-badge-img { width: 20px; height: 20px; }
}

/* === ПК: смещаем композицию левее, чтобы плашка + мокап были по центру суммарно === */
@media (min-width: 1025px) {
  .intensive-overlay {
    margin-left: 200px; /* было 80px вправо — теперь чуть левее центра */
  }
  .phone-container {
    left: 66%;          /* было 84% — двигаем мокап левее к центру */
  }
}

/* Доп. тонкая подстройка на очень широких экранах */
@media (min-width: 1440px) {
  .intensive-overlay { margin-left: -60px; }
  .phone-container   { left: 64%; }
}

/* Уменьшение движения для системной опции */
@media (prefers-reduced-motion: reduce) {
  .intensive-bg img,
  .iphone-mockup,
  .telegram-icon-badge,
  .btn-primary.btn-lg::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ПК: двигаем плашку и мокап. Меняй значения по вкусу */
@media (min-width: 1600px) {
  .intensive {
    justify-content: flex-start; /* плашка прижимается к левой стороне контейнера */
  }

  .intensive-overlay {
    margin-left: 0;  /* убираем базовый отступ 80px */
    left: 400px;     /* сдвиг плашки влево/вправо: отрицательно влево, положительно вправо */
  }

  .phone-container {
    left: 66%;       /* позиция мокапа. Уменьшай %, чтобы смещать левее, увеличивай — правее */
  }
}

/* Для очень широких экранов можно подправить ещё:
@media (min-width: 1440px) {
  .intensive-overlay { left: -80px; }
  .phone-container   { left: 64%; }
}