/* ===============================================
   КАСТОМНЫЕ ИСПРАВЛЕНИЯ ДЛЯ KIZ VPN
   =============================================== */

/* Скрыть только верхнюю часть header (логотип и кнопку темы) */
.nav__logo,
.header .change-theme-button#theme-button {
  display: none !important;
}

/* Убрать фон и тень от header */
.header {
  background: transparent !important;
  box-shadow: none !important;
}

/* Убрать фиолетовую рамку за логотипом */
.home__handle {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important; /* Убираем обрезание краев */
  box-shadow: none !important;
}

/* Уменьшить логотип */
.home__img {
  width: 700px !important; /* Увеличили с 550px */
  max-width: 90vw; /* Адаптивность для мобильных */
  transition: all 0.3s ease !important; /* Одинаковая скорость */
  cursor: pointer !important;
  object-fit: contain !important; /* Сохраняем пропорции без обрезания */
  display: block !important; /* Убираем возможные отступы */
}

/* Hover эффект свечения для логотипа - ОЧЕНЬ МЯГКОЕ */
.home__img:hover {
  transform: translateY(-10px) scale(1.02) !important;
  filter: drop-shadow(0 3px 10px rgba(167, 137, 212, 0.2)) !important;
}

/* Для планшетов */
@media screen and (min-width: 768px) {
  .home__img {
    width: 800px !important; /* Увеличили с 650px */
  }
}

/* Для больших экранов */
@media screen and (min-width: 1024px) {
  .home__img {
    width: 900px !important; /* Увеличили с 750px */
  }
}

/* ===============================================
   3 КНОПКИ В HERO
   =============================================== */

.home__button {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.home__button .button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
}

.home__button .button i {
  font-size: 1.2rem;
}

/* Мобильные - кнопки в столбик */
@media screen and (max-width: 767px) {
  .home__button {
    flex-direction: column;
    width: 100%;
  }
  
  .home__button .button {
    width: 100%;
    justify-content: center;
  }
}

/* Планшеты и десктоп - в ряд */
@media screen and (min-width: 768px) {
  .home__button {
    flex-direction: row;
  }
}

/* ===============================================
   ВИДЕО В ABOUT СЕКЦИИ
   =============================================== */

.about__video-wrapper {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease !important; /* Одинаковая скорость */
  cursor: pointer !important;
}

/* Hover эффект свечения для видео */
.about__video-wrapper:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(167, 137, 212, 0.3) !important;
}

.about__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 1.25rem;
}

/* Если это видео - убрать border-radius у video (он у wrapper) */
video.about__img {
  border-radius: 0;
}

/* ===============================================
   ФОТО ОТЗЫВОВ - ОДИНАКОВЫЙ РАЗМЕР И ВЫРЕЗ
   =============================================== */

.testimonial__img {
  width: 100px !important;
  height: 130px !important; /* Вытянуто по вертикали */
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 25px !important; /* Закругленный прямоугольник с большими углами */
  display: block !important;
  margin: 0 !important;
  float: left !important;
  margin-right: 25px !important; /* Отступ от полосы */
  margin-bottom: 0 !important; /* Убрали отступ снизу */
  position: relative !important;
}

/* Убираем ::after - не работает на img */

/* Полоска через карточку */
.testimonial__card {
  position: relative !important;
  padding: 1.5rem !important; /* Уменьшили внутренние отступы */
  min-height: auto !important;
}

.testimonial__card::before {
  content: '';
  position: absolute;
  left: 137px; /* Сдвинуто левее - по центру между фото и текстом */
  top: 25px; /* Чуть выше */
  bottom: 35px; /* Чуть ниже снизу */
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(167, 137, 212, 0.5) 20%,
    rgba(167, 137, 212, 0.5) 80%,
    transparent
  );
}

/* Увеличить расстояние между именем и комментарием */
.testimonial__name {
  margin-bottom: 1.2rem !important; /* Увеличили отступ между именем и текстом */
}

.testimonial__description {
  margin-top: 0 !important;
  line-height: 1.6 !important; /* Увеличили межстрочный интервал */
}

/* ===============================================
   МОДАЛЬНОЕ ОКНО - ВАЖНАЯ ИНФОРМАЦИЯ
   =============================================== */

/* Центрировать иконки по вертикали */
.services__modal-item {
  align-items: center !important; /* Центрирование иконки и текста */
}

.services__modal-item i {
  align-self: flex-start !important;
  margin-top: 0.2rem !important; /* Чуть опустили иконку */
}

/* Красный оттенок для пункта про Telegram */
.services__modal-item:nth-child(5) .services__modal-info {
  color: rgba(255, 100, 100, 0.9) !important; /* Красноватый оттенок */
}

.services__modal-item:nth-child(5) i {
  color: rgba(255, 100, 100, 0.9) !important; /* Красная иконка */
}

/* ===============================================
   КАРТИНКА В СЕКЦИИ ТАРИФОВ (СЛЕВА)
   =============================================== */

.services__wrapper {
  display: grid !important;
  grid-template-columns: 320px 1fr !important; /* Картинка еще уже */
  gap: 4rem !important; /* Как у блока "О KIZ VPN" */
  align-items: start !important;
  max-width: 968px !important; /* Как у других блоков */
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  overflow: visible !important; /* Для модальных окон */
}

/* Убедиться что карточки не ограничивают модальные окна */
.services__card {
  overflow: visible !important;
  position: relative !important;
}

.services__container {
  overflow: visible !important;
}

.services {
  overflow: visible !important;
}

.services__image-wrapper {
  position: sticky;
  top: 100px;
  height: 100%; /* Растянуть на всю высоту */
  display: flex;
  align-items: stretch;
}

.services__image {
  width: 100%;
  height: 100%; /* Растянуть на всю высоту wrapper */
  object-fit: cover; /* Заполнить всё пространство */
  border-radius: 1.25rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease !important; /* Одинаковая скорость */
}

/* Hover эффект для картинки тарифов */
.services__image:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(167, 137, 212, 0.3) !important;
}

/* Уменьшить карточки тарифов */
.services__container {
  grid-template-columns: 1fr !important; /* В столбик */
  gap: 1rem !important;
  max-width: 100% !important; /* Убрали ограничение ширины */
  min-width: 450px !important; /* Увеличили ширину в 2 раза (было ~350px) */
  padding: 0 !important;
  margin-left: auto !important; /* Прижали к правой стороне */
}

.services__card {
  padding: 1.25rem !important; /* Уменьшили padding */
  max-width: 100% !important;
}

.services__title {
  font-size: 1rem !important; /* Уменьшили шрифт */
  line-height: 1.3 !important;
}

/* Красный цвет для "Важная информация" */
.services__card:last-child .services__title {
  color: rgba(255, 100, 100, 0.95) !important; /* Красный оттенок */
}

/* ===============================================
   SKILLS БЛОК - КАРТИНКА СЛЕВА И СЕТКА 2×2
   =============================================== */

.skills__wrapper {
  display: grid !important;
  grid-template-columns: 320px 1fr !important; /* Картинка слева, контент справа */
  gap: 4rem !important; /* Как у блока "О KIZ VPN" */
  align-items: start !important; /* Выравнивание по верху */
  max-width: 968px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

/* Картинка и контейнер выравниваются по верху */
.skills__image-wrapper,
.skills__container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.skills__image-wrapper {
  position: sticky !important;
  top: 100px !important;
  height: 100% !important;
  display: block !important;
  overflow: visible !important;
  z-index: 2 !important;
}

.skills__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
  transition: all 0.3s ease !important; /* Одинаковая скорость */
  cursor: pointer !important;
}

/* Hover эффект свечения для картинки преимуществ */
.skills__image:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(167, 137, 212, 0.3) !important;
}

/* Карточки в сетке 2×2 */
.skills__container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки */
  gap: 1rem !important;
  row-gap: 1rem !important;
  align-self: start !important; /* Выравнивание по верху */
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem !important;
  border-radius: 1.25rem;
}

.skills__title {
  text-align: center !important; /* Заголовок по центру */
}

/* Списки внутри - по центру вертикально и чуть влево */
.skills__box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* По вертикали по центру */
  min-height: 150px !important; /* Минимальная высота для центрирования */
}

.skills__group {
  padding-left: 1rem !important; /* Отступ влево для списков */
  text-align: left !important;
}

/* На мобильных - картинка сверху */
@media screen and (max-width: 1024px) {
  .skills__wrapper {
    grid-template-columns: 1fr !important;
  }
  
  .skills__image-wrapper {
    position: static;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .skills__container {
    grid-template-columns: 1fr !important; /* На мобильных - в столбик */
  }
}

/* На мобильных - картинка сверху */
@media screen and (max-width: 1024px) {
  .services__wrapper {
    grid-template-columns: 1fr !important;
  }
  
  .services__image-wrapper {
    position: static;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Альтернатива - если нужен center center */
/* .testimonial__img {
  object-position: center center !important;
} */

/* ===============================================
   НАВИГАЦИОННОЕ МЕНЮ - УМЕНЬШЕНИЕ РАЗМЕРА
   =============================================== */

.nav__menu {
  width: 70% !important; /* Уменьшили еще больше */
  padding: 0.75rem 1.75rem !important; /* Уменьшили padding */
}

@media screen and (min-width: 630px) {
  .nav__menu {
    width: 300px !important; /* Уменьшили для компактности */
    padding: 0.85rem 1.5rem !important; /* Уменьшили padding */
  }
}

/* Кнопка темы в навигационном меню */
.nav__link.change-theme-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__link.change-theme-button .change-theme {
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

/* ===============================================
   ГЛАВНЫЙ БЛОК - УВЕЛИЧЕНИЕ ИКОНКИ DISCORD
   =============================================== */

.home__social-link:nth-child(3) i {
  font-size: 1.5rem !important; /* Увеличили Discord иконку */
}

/* ===============================================
   БЛОК ABOUT - БОЛЬШЕ ИНФОРМАЦИИ
   =============================================== */

.about__description {
  margin-bottom: 1rem !important;
  line-height: 1.8 !important;
  text-align: justify;
}

.about__description:last-of-type {
  margin-bottom: 2rem !important;
}

/* Кнопка "Инструкция" - видимый текст */
span.button.about__button-contact.services__button,
.about__button-contact.button {
  color: #fff !important; /* Белый текст */
  background: var(--first-color) !important; /* Фиолетовый фон */
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

span.button.about__button-contact.services__button i,
.about__button-contact.button i {
  color: #fff !important; /* Белая иконка */
}

/* ===============================================
   МОДАЛЬНОЕ ОКНО С ИНСТРУКЦИЕЙ - УМЕНЬШЕННЫЕ РАЗМЕРЫ
   =============================================== */

.instruction-section {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(167, 137, 212, 0.05);
  border-radius: 0.4rem;
  border-left: 2px solid var(--first-color);
}

.instruction-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.instruction-icon {
  font-size: 1rem;
  color: var(--first-color);
}

.instruction-text {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text-color);
  font-size: 0.85rem;
}

.instruction-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.instruction-list--numbered {
  counter-reset: step-counter;
}

.instruction-list--numbered .instruction-item {
  counter-increment: step-counter;
  position: relative;
  padding-left: 1.75rem;
}

.instruction-list--numbered .instruction-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--first-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.4rem 0;
  line-height: 1.4;
  font-size: 0.85rem;
}

.instruction-item i {
  font-size: 0.9rem;
  color: var(--first-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.instruction-item strong {
  color: var(--title-color);
}

.instruction-item a {
  color: var(--first-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.instruction-item a:hover {
  color: var(--first-color-alt);
}

.instruction-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.6rem;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 0.3rem;
  border-left: 2px solid #ffc107;
  font-size: 0.8rem;
}

.instruction-note i {
  font-size: 0.9rem;
  color: #ffc107;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.instruction-note strong {
  color: #ffc107;
}

.instruction-download {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  font-size: 0.9rem;
}

.instruction-download i {
  font-size: 1.1rem;
}

/* Заголовок и описание модального окна */
.services__modal-content--wide .services__modal-title {
  font-size: 1.25rem !important;
  margin-bottom: 0.5rem !important;
}

.services__modal-content--wide .services__modal-description {
  font-size: 0.85rem !important;
  margin-bottom: 1rem !important;
}

/* ===============================================
   КНОПКИ "НАПИСАТЬ" В РАЗДЕЛЕ ПОМОЩИ
   =============================================== */

.instruction-help-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.instruction-help-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(167, 137, 212, 0.1);
  border: 1px solid var(--first-color);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.instruction-help-button:hover {
  background: rgba(167, 137, 212, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(167, 137, 212, 0.3);
}

.instruction-help-button i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.instruction-help-button span:first-of-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--title-color);
}

.instruction-help-action {
  font-size: 0.85rem;
  color: var(--first-color);
  padding: 0.4rem 1rem;
  background: rgba(167, 137, 212, 0.15);
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.instruction-help-button:hover .instruction-help-action {
  background: var(--first-color);
  color: #fff;
}

/* Мобильная версия - в столбик */
@media screen and (max-width: 768px) {
  .instruction-help-buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .instruction-help-button {
    padding: 0.75rem;
  }
}

/* ===============================================
   КОНТАКТЫ - СДВИГ ТЕКСТА КНОПОК ВПРАВО
   =============================================== */

.contact__button {
  padding-left: 1.5rem !important; /* Увеличили отступ слева */
}

/* ===============================================
   WORK КНОПКА "ПОДРОБНЕЕ"
   =============================================== */

/* Стиль для span.work__button чтобы выглядел как кнопка */
span.work__button {
  cursor: pointer;
  user-select: none;
}

/* Убедиться что work карточки не ограничивают модальные окна */
.work__card {
  overflow: visible !important;
  position: relative !important;
}

.work__container {
  overflow: visible !important;
}

.work {
  overflow: visible !important;
}

/* ===============================================
   МОДАЛЬНОЕ ОКНО ТЕСТОВОГО ПРИЛОЖЕНИЯ И ИНСТРУКЦИИ
   =============================================== */

/* Исправление z-index и центрирования ДЛЯ ВСЕХ МОДАЛЬНЫХ ОКОН */
.services__modal {
  z-index: 99999 !important; /* МАКСИМАЛЬНЫЙ z-index */
  display: block !important; /* Изменили с flex на block */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow-y: auto !important; /* Скролл для всего модального окна */
  padding: 2rem 0 !important; /* Отступы сверху и снизу */
  text-align: center !important; /* Для центрирования inline-block */
}

/* Псевдоэлемент для вертикального центрирования */
.services__modal::before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

/* Обычные модальные окна тарифов - БЕЗ СКРОЛЛА и ПО ЦЕНТРУ */
.services__modal-content {
  display: inline-block !important;
  vertical-align: middle !important;
  text-align: left !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow: visible !important;
  position: relative !important;
}

/* Убедиться что skills блоки не перекрывают модальное окно */
.skills__content,
.skills__container {
  z-index: 1 !important;
  position: relative !important;
}

.skills,
.section {
  z-index: 1 !important;
  position: relative !important;
  overflow: visible !important; /* Для эффекта hover на картинке */
}

.skills__wrapper {
  overflow: visible !important; /* Для эффекта hover на картинке */
}

/* About секция не должна ограничивать модальное окно */
.about {
  z-index: 1 !important;
  position: relative !important;
  overflow: visible !important; /* Важно для модального окна */
}

.about__container,
.about__data {
  overflow: visible !important;
}

/* Широкое модальное окно для инструкции и тестового приложения - БЕЗ СКРОЛЛА */
.services__modal-content--wide {
  max-width: 968px !important; /* Инструкция - как у других блоков */
  width: 95vw !important;
  max-height: none !important; /* Убираем ограничение высоты */
  min-height: auto !important; /* Убираем минимальную высоту */
  height: auto !important; /* Автоматическая высота */
  overflow: visible !important; /* Убираем весь overflow */
  overflow-y: visible !important; /* Убираем скролл по Y */
  overflow-x: hidden !important; /* Оставляем hidden по X */
  padding: 1.5rem !important; /* Уменьшили padding */
  margin: 0 !important;
  position: relative !important;
  display: inline-block !important; /* Для работы с vertical-align */
  vertical-align: middle !important; /* Вертикальное центрирование */
  text-align: left !important; /* Возвращаем выравнивание текста */
  left: auto !important;
  right: auto !important;
}

/* Тестовое приложение - уже на 30% (680px вместо 968px) */
.work__card .services__modal-content--wide {
  max-width: 680px !important;
}

@media screen and (max-width: 768px) {
  .services__modal-content--wide {
    width: 95vw !important;
    padding: 1rem !important;
  }
}

/* Кнопка скачать внутри текста */
.app-demo__download-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem !important;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem !important;
}

.app-demo__download-inline i {
  font-size: 1.25rem;
  margin-top: -2px; /* Поднимаем иконку чуть выше */
}

/* Центрирование пункта с GitHub кнопкой */
.services__modal-item:last-child .services__modal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Кнопка GitHub по центру */
.app-demo__download-inline {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Демонстрация приложения */
.app-demo {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(167, 137, 212, 0.2);
}

.app-demo__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--title-color);
}

/* Кликабельный заголовок "Демонстрация приложения" */
.app-demo__title--toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(167, 137, 212, 0.1);
  transition: all 0.3s ease;
  font-size: 1.5rem !important;
}

.app-demo__title--toggle:hover {
  background: rgba(167, 137, 212, 0.2);
  transform: translateX(5px);
}

.app-demo__title--toggle i {
  font-size: 1.75rem;
  color: var(--first-color);
  transition: transform 0.3s ease;
}

.app-demo__title--toggle.active i {
  transform: rotate(90deg);
}

/* Контент демонстрации */
.app-demo__content {
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

/* Видео демонстрация - не сильно больше скринов */
.app-demo__video {
  max-width: 250px; /* Ограничили ширину */
  margin: 0 auto 2rem auto; /* Центрируем */
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.app-demo__video:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(167, 137, 212, 0.4);
}

.app-demo__video-player {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Скриншоты в 3 ряда (3 колонки) */
.app-demo__screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Фиксированные 3 колонки */
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-demo__screenshot {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: default; /* Обычный курсор, не pointer */
  transition: all 0.3s ease;
}

/* Убрали hover эффект - скриншоты не кликабельны */
/* .app-demo__screenshot:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 16px rgba(167, 137, 212, 0.4);
} */


/* Мобильная версия */
@media screen and (max-width: 576px) {
  .services__modal-content--wide {
    max-width: 95vw !important;
  }
  
  .app-demo__screenshots {
    grid-template-columns: repeat(2, 1fr); /* На мобильных 2 колонки */
  }
  
  .app-demo__video {
    max-width: 200px; /* На мобильных немного меньше */
  }
}

@media screen and (min-width: 577px) and (max-width: 768px) {
  .app-demo__screenshots {
    grid-template-columns: repeat(3, 1fr); /* На планшетах 3 колонки */
  }
}

/* Fullscreen overlay для изображений и видео */
.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.fullscreen-overlay.active {
  display: flex;
}

.fullscreen-overlay img,
.fullscreen-overlay video {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 50px rgba(167, 137, 212, 0.5);
}

.fullscreen-overlay .close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.fullscreen-overlay .close-fullscreen:hover {
  color: var(--first-color);
  transform: rotate(90deg);
}



/* ===============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ - ВИДЕО И КАРТИНКИ
   =============================================== */

/* Видео в секции About */
@media screen and (max-width: 768px) {
  .about__video-wrapper {
    max-width: 220px !important;
    margin: 0 auto 1.5rem auto !important;
  }
  
  .about__img,
  video.about__img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 480px) {
  .about__video-wrapper {
    max-width: 180px !important;
    margin: 0 auto 1rem auto !important;
  }
}

/* Картинка в секции Skills (Преимущества) */
@media screen and (max-width: 768px) {
  .skills__image-wrapper {
    max-width: 220px !important;
    margin: 0 auto 1.5rem auto !important;
  }
  
  .skills__image {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 480px) {
  .skills__image-wrapper {
    max-width: 180px !important;
  }
}

/* Картинка в секции Services (Тарифы) */
@media screen and (max-width: 768px) {
  .services__image-wrapper {
    max-width: 220px !important;
    margin: 0 auto 1.5rem auto !important;
  }
  
  .services__image {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 480px) {
  .services__image-wrapper {
    max-width: 180px !important;
  }
}
