 /* border: 2px dashed red; обводка для понимания что за что отвечает  */
 html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
 body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0d0e37;
  color: #222;
  line-height: 2.45;
}

header {
  background: #111;
  color: #fff;
  text-align: center;
  /*padding: 80px 20px;*/
}

header h1 {
  font-size: 48px;
  margin: 0;
}

header p {
  font-size: 20px;
  margin-top: 10px;
}

.btn {
  height: 30vh;
  width: 100%;
  display: block;
  padding: 12px 25px;
  background: #00b894;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

section {
  /*padding: 60px 30px;*/
  max-width: 100%;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: #ccc; /* основной цвет */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* легкая тень для текста */
}
/*вверху часть 1 адаптация сайта */
/* ===============================
   АДАПТИВНОСТЬ
   (медиа-запросы под мобилку/планшет)
================================*/

/* Для экранов до 768px (мобильные телефоны) */
@media (max-width: 768px) {
  header h1 {
    font-size: 28px;   /* уменьшаем заголовок */
  }
  header p {
    font-size: 16px;   /* уменьшаем подзаголовок */
  }
  .btn {
    height: 20vh;      /* кнопка больше не фиксирована по высоте */
    padding: 14px;     /* делаем комфортный отступ */
    font-size: 16px;   /* текст читаем на мобиле */
  }
  h2 {
    font-size: 24px;   /* заголовки меньше */
  }
}

/* Для планшетов (от 769px до 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  header h1 {
    font-size: 36px;   /* средний размер */
  }
  header p {
    font-size: 18px;
  }
}
/*закончилась адаптация 1 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project {
  overflow: visible; /* тоже важно */
  height: 15vw;      /* не должно быть фиксированной высоты */
   background-color: #1a1a1a; /* тёмный фон по умолчанию */
 color: #fff; /* текст светлый */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project:hover {
  background-color: #2c2c2c; /* подсветка при наведении */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* эффект свечения */
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.project img {
  width: 100%;
  height: auto;
  filter: brightness(40%); /* затемнение по умолчанию */
  object-fit: cover; /* обрезка изображения с сохранением пропорций */
  transition: transform 0.3s ease;
}
.project:hover img {
  filter: brightness(100%); /* осветление при наведении */
}
.project h3 {
  margin: 15px;
}

.project p {
  margin: 0 15px 15px;
  color: #555;
  flex-grow: 1; /* чтобы описание занимало всё свободное пространство, если нужно */
}

.skills-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: #00b894;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
}
/*вверху часть 2 адаптация сайта */
/* === АДАПТАЦИЯ === */
/* Планшеты (до 1024px) */
@media (max-width: 2560px) {
  .project {
    height: 40vh; /* чтобы карточки были выше на планшетах */
  }
}
@media (max-width: 1920px) {
  .project {
    height: 45vh; /* чтобы карточки были выше на планшетах */
  }
 .project p {
    font-size: 14px;
   line-height: 1.6;
 }
 }
@media (max-width: 1440px) {
  .project {
    height: 50vh; /* чтобы карточки были выше на планшетах */
  }
 .project p {
    font-size: 14px;
   line-height: 1.6;
  }
}
/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .project {
    height: 53vh; /* чтобы карточки были выше на планшетах */
  }
  .skills-list {
    gap: 15px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr; /* карточки по одной в ряд */
    gap: 20px;
  }

  .project {
    height:100vh; /* убираем фиксированную высоту */
  }

  .skills-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .skills-list li {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .project h3 {
    font-size: 16px;
   line-height: 1.2;
  }

  .project p {
    font-size: 14px;
   line-height: 1.6;
  }
.project {
    height: 45vh; /* убираем фиксированную высоту */
  }
  .skills-list li {
    font-size: 12px;
    padding: 6px 12px;
  }
}
/* Очень маленькие экраны (до 425px) */
@media (max-width: 425px) {
.project {
    height: 47vh; /* убираем фиксированную высоту */
  }
}
/* Очень маленькие экраны (до 375px) */
@media (max-width: 375px) {
.project {
    height: 50vh; /* убираем фиксированную высоту */
  }
}
/* Очень маленькие экраны (до 320px) */
@media (max-width: 320px) {
.project {
    height: 50vh; /* убираем фиксированную высоту */
  }
}
/*закончилась адаптация 2*/
footer {
   background: none !important; /* убираем наследование */
  text-align: center;
  box-sizing: border-box;
  padding: 150px 20px 0 20px;
  height: 80px;
}
.container {/*
  max-width: 1200px;  максимальная ширина сайта */
  margin: 0 ;     /* автоматические отступы слева и справа = по центру */
  padding: 0 30px;    /* небольшой внутренний отступ с боков на маленьких экранах */
}
.center-btn-wrapper {
  display: flex;
  justify-content: center;  /* Центрирует кнопку по горизонтали */
  align-items: center;      /* Центрирует кнопку по вертикали */
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
   padding-left: 19vh;
  
}
 /* замена логотипа на другой цвет */
.logo-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  display: none; /* спрятать по умолчанию */
  width: 100%;
  height: auto;
}

.logo-area:hover .logo-img {
  display: none; /* спрятать обычный логотип */
}

.logo-area:hover .logo-img-hover {
  display: block; /* показать второй логотип при наведении */
}
/* конец замена логотипа на другой цвет */
.logo-img {
  height: 60px;
  width: auto;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-area {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lang-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}
/*вверху часть 3 адаптация сайта */
/* === АДАПТАЦИЯ === */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .logo-area {
    padding-left: 5vw; /* меньше отступ */
  }

  .footer {
    padding: 80px 15px 0 15px; /* уменьшаем верхний паддинг */
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .header-flex {
    margin-right: 20px;  /* поставь любое значение */
    gap: 15px;
    text-align: center;
    /* 👉 ЭТО МОЖЕШЬ МЕНЯТЬ */
    height: 100%;                /* или 100vh — если хочешь по центру всего экрана */
    margin-top: 20px;            /* регулируется */
    margin-bottom: 20px;         /* регулируется */
    position: relative;          /* позволяет двигать элементы внутри */
  }
  .logo-area {
    justify-content: center; /* по центру */
    padding-left: 0; /* убираем отступ */
  }

  .logo-img {
    height: 45px; /* уменьшаем логотип */
  }

  .footer {
    padding: 50px 10px 0 10px;
    height: auto; /* позволяем увеличиваться по содержимому */
  }

  .lang-box {
    justify-content: center; /* языки по центру */
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }

  .footer {
    padding: 30px 5px 0 5px;
  }
}

/*закончилась адаптация 3*/
.divider {
  height: 100px;
  width: 1px;
  background-color: #444;
}
.lang-select:focus {
  outline: none;
  background-color: #000000; /* светло-жёлтый */
}

.header-photo {
  width: 50px; /* Размер фото */
  height: 50px;
  border-radius: 50%; /* Округлое фото */
  object-fit: cover; /* Чтобы фото не искажалось */
}
/* Стили для фото в правой части */
.photo-area {
  display: flex;
  align-items: center; /* Центрируем фото по вертикали */
  margin-left: auto; /* Оставляем пространство между логотипом и фото */
  position: absolute; /* Фиксируем фото */
  top: 50%; /* Центрируем по вертикали */
  right: 60px; /* Отступ от правого края экрана */
  transform: translateY(-50%); /* Центрируем по вертикали относительно высоты */
}

/* Оформление фото */
.header-photo {
  width: 100px; /* Размер фото */
  height: 100px;
  border-radius: 50%; /* Округлое фото */
  object-fit: cover; /* Чтобы фото не искажалось */
  border: 3px solid #3498db; /* Синий бордер вокруг фото */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Легкая тень вокруг фото */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимация при наведении */
}

/* Эффект при наведении */
.header-photo:hover {
  transform: scale(1.1); /* Увеличение фото при наведении */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* Увеличенная тень при наведении */
}
.line-between {
  border: none;
  border-top: 2px solid #444;
  margin: 0;
}
.about {
  display: none;
}
.scroll-text-wrapper:first-of-type {
}
/*.scroll-text-wrapper::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #333;
  opacity: 0.3;
  margin: 0;*/
}
.center-btn-wrapper {
  display: flex;
  justify-content: center;  /* Центрирует кнопку по горизонтали */
  margin-top: 40px;         /* Отступ сверху */
}
.scroll-text-wrapper {
  width: 100%;
  height: 33vh;
  align-items: center;
  overflow: hidden;
  position: relative;
  font-size: 8vw;
  font-weight: bold;
  color: #ffffff;
  white-space:nowrap;
  background-color: #000;

}
/*вверху часть 4 адаптация сайта */
/* === АДАПТИВНОСТЬ === */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .photo-area {
    right: 40px; /* уменьшаем отступ справа */
  }
  .header-photo {
    width: 80px;
    height: 80px;
  }
  .scroll-text-wrapper {
    font-size: 6vw; /* уменьшаем текст */
    height: 28vh;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .photo-area {
    position: static; /* фото переносим в поток, чтобы не перекрывало контент */
    margin: 20px auto 0 auto;
    display: flex;
    justify-content: center;
  }
  .header-photo {
    display: none;
  align-items: center;     /* Центрирование по вертикали */
  justify-content: flex-start; /* К левому краю горизонтально */
  transform: translateY(50%); /* 👉 перемещение изображения вниз, не растягивает контейнер */

}
  .scroll-text-wrapper {
    font-size: 8vw;
    height: 25vh;
    text-align: center; /* центрируем текст */
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .header-photo {
    display: none;
  }
  .scroll-text-wrapper {
    font-size: 10vw;
    height: 20vh;
  }
}

/*закончилась адаптация 4*/

.scroll-text {
  display: flex;
  width: max-content;
  animation: scroll-left 64s linear infinite;
   align-items: center;
}
.scroll-text.reverse {
  animation: scroll-left 32s linear infinite;
   align-items: center;
}

@keyframes scroll-left {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); } /* высота текста на 4 строки, если больше — увеличь */
}
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}
.scroll-text span {
  display: inline-block;
  margin-right: 50px;
}
.multicolor span:nth-child(1) { color: #e74c3c; } /* красный */
.multicolor span:nth-child(2) { color: #f39c12; } /* оранжевый */
.multicolor span:nth-child(3) { color: #f1c40f; } /* желтый */
.multicolor span:nth-child(4) { color: #2ecc71; } /* зеленый */
.multicolor span:nth-child(5) { color: #3498db; } /* синий */
.multicolor span:nth-child(6) { color: #9b59b6; } /* фиолетовый */
.multicolor span:nth-child(7) { color: #1abc9c; } /* бирюзовый */
.multicolor span:nth-child(8) { color: #e67e22; }
.colored-letter-0 { color: #e74c3c; } /* красный */
.colored-letter-1 { color: #f39c12; } /* оранжевый */
.colored-letter-2 { color: #f1c40f; } /* жёлтый */
.colored-letter-3 { color: #2ecc71; } /* зелёный */
.colored-letter-4 { color: #3498db; } /* синий */
.colored-letter-5 { color: #9b59b6; } /* фиолетовый */
.colored-letter-6 { color: #1abc9c; } /* бирюзовый */
.colored-letter-7 { color: #e67e22; } /* оранжево-коричневый */
.main-header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100vh;
  background: #111;
  border-bottom: 1px solid #333;
  z-index: 1000;
}
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
/*вверху часть 5 адаптация сайта */
/* === АДАПТИВНОСТЬ SCROLL-TEXT и MAIN-HEADER === */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .scroll-text-wrapper {
    font-size: 6vw; /* уменьшаем текст */
    height: 28vh;   /* уменьшаем блок */
  }

  .scroll-text span {
    margin-right: 30px; /* уменьшаем расстояние между словами */
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .scroll-text-wrapper {
    font-size: 8vw; /* текст читаемый на телефоне */
    height: 25vh;
    text-align: center;
  }

  .scroll-text {
    animation-duration: 48s; /* ускоряем анимацию для меньшего экрана */
  }

  .scroll-text.reverse {
    animation-duration: 24s;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .main-header {
    height: 60dvh; /* уменьшаем высоту, но без черной полосы */
  }
  .scroll-text-wrapper {
    font-size: 10vw;
    height: 20vh;
  }

  .scroll-text span {
    margin-right: 20px;
  }
  .background-video {
    height: 60dvh;
    width: 110vw; /* было 100vw — увеличиваем на 10% */
    transform: translate(-7%); /* вместо -50% смещаем левее */
  }
}

/* Супермаленькие экраны (до 360px) */
@media (max-width: 360px) {
  .background-video {
    /*height: 60vh;*/
    width: 110vw; /* было 100vw — увеличиваем на 10% */
    transform: translate(-9%); /* вместо -50% смещаем левее */
  }
}

/* Минимальные экраны (до 320px) */
@media (max-width: 320px) {
  .background-video {
    height: 60vh;
    width: 110vw; /* было 100vw — увеличиваем на 10% */
    transform: translate(-9%); /* вместо -50% смещаем левее */

  }
}
/*закончилась адаптация 5*/
.logo {
  font-weight: bold;
  font-size: 30px;
  text-decoration: none;
  color: white;
  margin-left: 10px;
}

.lang-select {
  background: transparent;
  border: 1px solid #444;
  color: white;
  font-size: 20px;
  padding: 6px 10px;
  border-radius.main-header: 4px;
  cursor: pointer;
  transform: translateX(20px);
}
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 12px 24px;
  background-color: #111;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn:hover {
  background-color: #0d0e37;

}
.container { /*отвечает за колонтитул в верху
  max-width: 1200px;*/
  margin: 0 auto;
  padding: 0 16px;
}
.surname {
  font-size: 30px;
  font-weight: normal;
  color: #ccc;
  display: block;
}
.logo-stack {
  display: inline-block;
  text-align: left; /* Выравнивание текста по левому краю */
  line-height: 1.2;
}

.logo-stack .name,
.logo-stack .surname {
  display: block;
  font-size: 30px;
  color: #ccc;
  font-weight: normal;
  margin: 0;
  padding: 0;
}
/* ==== Скрываем текстовый логотип на мобильных ==== */
@media (max-width: 768px) {
  .logo-stack {
    display: none; /* полностью скрывает блок логотипа */
  }
}
.lang-label {
  color: white;
  font-size: 14px;
  margin-right: 5px;
}
.lang-box {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative; /* Обеспечивает возможность позиционирования вложенных элементов */
}

/* Стиль для контейнера с языковым селектором */
.lang-box {
  display: flex;
  align-items: center;
  position: relative; /* для правильного позиционирования выпадающего списка */
  margin-left: 20px;
}

/* Стиль для элемента с текстом Language */
.lang-select {
  min-width: 120px;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  font-weight: bold;
  color: #fff;
  display: inline-block;
  padding-left: 15px; /* 🔹 вот это добавь */
}

/* Стиль для текста внутри селектора */
.lang-select span {
  padding: 8px 0px;
  background-color: transparent;
  border:none;
  border-radius: 4px;
  display: block;
}

/* Стиль для выпадающего списка */
.lang-select-options {
  display: none; /* Скрыто по умолчанию */
  position: absolute;
  left: 1;
  top: 93%;
  background-color: #222;
  border: 1px solid #444;
  border-radius: 4px;
  min-width: 120px;
  margin-top: 5px;
  z-index: 100;
}

/* Стиль для ссылок внутри выпадающего списка */
.lang-select-options a {
  display: block;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

/* Стиль для последней ссылки без нижней границы */
.lang-select-options a:last-child {
  border-bottom: none;
}

/* Стиль при наведении на ссылку */
.lang-select-options a:hover {
  background-color: #0d0e37;
}

.lang-select:hover .lang-select-options {
  display: block;
}
/* Мобильный: открытое состояние по классу .open */
.lang-select.open .lang-select-options {
  display: block;
}
.lang-select {
  align-items: center;       /* выравнивает по вертикали */
  gap: 6px;                  /* отступ между иконкой и словом */
}

.lang-select svg {
  order: 0;                  /* ставит иконку первой (слева) */
  flex-shrink: 0;            /* предотвращает сжатие иконки */
}

.lang-select span {
  order: 1;                  /* текст после иконки */
  display: inline-block;
}

/* Стили для анимации всплывания */
.project {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/*вверху часть 6 адаптация сайта */
/* === АДАПТИВНОСТЬ HEADER, LOGO, LANG, BUTTONS === */
/* Планшеты (до 1024px) */
@media (max-width: 1440px) {
  /* Логотип и текст уменьшаем */
  .logo, .logo-stack .name, .logo-stack .surname {
    display:none;
  }

  /* Кнопка смены языка */
  .lang-box {
    gap: 0.5em;           /* отступ между иконкой и текстом */
    margin-left: 0.5em;   /* небольшой отступ слева */
  }

  .lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.1em 0.8em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    padding: 0.7em 1.4em;   /* пропорционально уменьшено */
    font-size: 0.875em;
  }

  .lang-select svg {
    width: 1em;             /* иконка масштабируется вместе со шрифтом */
    height: 1em;
    margin-right: 0.4em;
  }
}
/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  /* Логотип и текст уменьшаем */
  .logo, .logo-stack .name, .logo-stack .surname {
    display:none;
  }

  /* Кнопка смены языка */
  .lang-box {
    gap: 0.5em;           /* отступ между иконкой и текстом */
    margin-left: 0.5em;   /* небольшой отступ слева */
  }

  .lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.1em 0.8em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    padding: 0.7em 1.4em;   /* пропорционально уменьшено */
    font-size: 0.875em;
  }

  .lang-select svg {
    width: 1em;             /* иконка масштабируется вместе со шрифтом */
    height: 1em;
    margin-right: 0.4em;
  }
}


/* Смартфоны (до 768px) */
/* ==== Адаптация для мобильных ==== */
  /* Мобильная версия: фиксируем кнопку в правом верхнем углу */
@media (max-width: 768px) {
  .lang-box {       
    top: 0px;             /* Отступ сверху */
    left: 10vh;           /* Отступ справа */
    margin-left: 0;        /* Сбрасываем левый отступ */
    z-index: 9999;         /* Поверх всех элементов */
    padding: 5px 10px;
    border-radius: 8px;
  }
.lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.1em 0.8em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-select span {
    padding: 6px 12px;
    font-size: 14px;
  }

  .lang-select-options {
    left: auto;            /* Сбрасываем левый отступ */
  }
  .divider {
    display: none;
  }
  }
/* ==== Адаптация для мобильных ==== */
  /* Мобильная версия: фиксируем кнопку в правом верхнем углу */
@media (max-width: 480px) {
  .lang-box {
  position: absolute;       
    top: 0px;             /* Отступ сверху */
    left: auto;           /* Отступ справа */
    right: 3vh; 
    margin-left: 0;        /* Сбрасываем левый отступ */
    z-index: 9999;         /* Поверх всех элементов */
    padding: 5px 10px;
    border-radius: 8px;
  }
.lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.8em 1.5em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-select span {
    padding: 6px 12px;
    font-size: 14px;
  }

  .lang-select-options {
    right: 0;            /* Сбрасываем левый отступ */
  }
  .divider {
    display: none;
  }
  }
  /* ==== Адаптация для мобильных ==== */
  /* Мобильная версия: фиксируем кнопку в правом верхнем углу */
  @media (max-width: 425px) {
  .lang-box {
  position: absolute;       
    top: 0px;             /* Отступ сверху */
    left: auto;           /* Отступ справа */
    right: 2vh; 
    margin-left: 0;        /* Сбрасываем левый отступ */
    z-index: 9999;         /* Поверх всех элементов */
    padding: 5px 10px;
    border-radius: 8px;
  }
.lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.8em 0.8em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-select span {
    padding: 6px 12px;
    font-size: 14px;
  }

  .lang-select-options {
    right: 0;            /* Сбрасываем левый отступ */
  }
  .divider {
    display: none;
  }
  }
  /* ==== Адаптация для мобильных ==== */
  /* Мобильная версия: фиксируем кнопку в правом верхнем углу */
  @media (max-width: 375px) {
  .lang-box {
  position: absolute;       
    top: 0px;             /* Отступ сверху */
    left: auto;           /* Отступ справа */
    right: 3vh; 
    margin-left: 0;        /* Сбрасываем левый отступ */
    z-index: 9999;         /* Поверх всех элементов */
    padding: 5px 10px;
    border-radius: 8px;
  }
.lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.8em 1.5em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-select span {
    padding: 6px 12px;
    font-size: 14px;
  }

  .lang-select-options {
    right: 0;            /* Сбрасываем левый отступ */
  }
  .divider {
    display: none;
  }
  }
  /* ==== Адаптация для мобильных ==== */
  /* Мобильная версия: фиксируем кнопку в правом верхнем углу */
  @media (max-width: 320px) {
  .lang-box {
  position: absolute;       
    top: 0px;             /* Отступ сверху */
    left: auto;           /* Отступ справа */
    right: 3vh; 
    margin-left: 0;        /* Сбрасываем левый отступ */
    z-index: 9999;         /* Поверх всех элементов */
    padding: 2px 5px;
    border-radius: 8px;
  }
.lang-select {
    min-width: auto;       /* пусть ширина подстраивается под текст */
    font-size: 0.875em;    /* уменьшение шрифта пропорционально */
    padding: 0.8em 1.5em;  /* внутренние отступы пропорционально шрифту */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-select span {
    padding: 6px 12px;
    font-size: 14px;
  }
  .lang-select-options a {
    font-size: 13px;
    padding: 5px 0;
  }
  .lang-select-options {
    right: 0;            /* Сбрасываем левый отступ */
  }
  .divider {
    display: none;
  }
  }
  /* --- Замена текста кнопки на маленьких экранах --- */
@media (max-width: 480px) {
  .lang-select span[data-i18n="language"] {
    font-size: 0; /* Скрываем исходный текст */
    position: relative;
  }

  .lang-select span[data-i18n="language"]::after {
    content: "ENG";  /* Новый текст для мобильных */
    font-size: 14px;
    color: #fff;
    position: absolute;
    left: 0;
    top: -100%;
  }
}

/*закончилась адаптация 6*/
.project.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Другие стили для сетки проектов */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 50px;   /* Увеличиваем вертикальное расстояние */
  column-gap: 50px; /* Оставляем горизонтальное расстояние */
  padding: 0 10px;    /* отступы по краям экрана */
  overflow: visible; /* обязательно: чтобы ничего не обрезалось */
}
/* Стили для модальных окон */
.modal {
  display: none;  /* Скрыть модальное окно по умолчанию */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color:#fff; 
  overflow-y: auto; /* если контент длинный */
}

.modal-content {
  z-index: 1;
  width: 100%;
  background-color: transparent; /* убираем белый фон */
  background-color: #fff;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}
/* Крестик */
.close-btn {
  position: absolute;
  top: 10vh;
  right: 60px;
  font-size: 150px;/* ← Увеличиваем размер крестика */
  font-weight: 100;
  color: #000; /* Цвет крестика */
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}
.close-btn:hover,
.close-btn:focus {
  color: black;
  transform: scale(1.2); /* Немного увеличивается при наведении */
  text-decoration: none;
  cursor: pointer;
}

.project:hover {
  transform: translateY(-5px);
}

.project img {
  width: 100%;
  height: auto;
  height: 250px; /* фиксированная высота для всех */
  object-fit: cover; /* подрезает и масштабирует */
   object-position: top; /* теперь обрезка будет снизу, а верх сохранится */
}
/* Стили для заголовков h3 внутри блока .project */
/* Устанавливаем внешние отступы со всех сторон по 15px */
.project h3 {
  margin: 15px;
}
/* Стили для абзацев внутри блока .project */
/* Устанавливаем внешние отступы:
   сверху — 0,
   справа — 15px,
   снизу — 15px,
   слева — 15px */
.project p {
  margin: 0 15px 15px;
}
/* Стили для навигационных стрелок (влево и вправо) внутри модального окна */
 /* Абсолютное позиционирование — элемент позиционируется относительно ближайшего родителя с относительным позиционированием */
  /* Прижимаем элемент к верхней границе родителя */
  /* Прижимаем элемент к нижней границе родителя (растягиваем по высоте) */
  /* Ширина стрелки — 80 пикселей */
   /* Полупрозрачный чёрный фон (10% прозрачности) */
   /* Используем Flexbox для выравнивания содержимого */
   /* Вертикальное выравнивание содержимого по центру */
   /* Горизонтальное выравнивание содержимого по центру */
   /* При наведении курсор превращается в указатель (руку) */
   /* Устанавливаем высокий уровень слоя, чтобы элемент был поверх других */
    /* Плавное изменение фона при наведении (в течение 0.3 секунды) */
.modal-nav {
  position: absolute; 
  top: 0;
  bottom: 0;
  
  width: 100px;
 
  background: rgba(0, 0, 0, 0.1);
   
  display: flex;
   
  align-items: center;
  
  justify-content: center;
   
  cursor: pointer;
   
  z-index: 10001;
  transition: background 0.3s;
}
/*вверху часть 7 адаптация сайта */
/* === АДАПТИВНОСТЬ PROJECT GRID И MODAL === */
@media (max-width: 2560px) {
.project img {
    height: 30vh; /* уменьшаем высоту изображения */
  }
 }
@media (max-width: 1440px) {
.project img {
    height: 33vh; /* уменьшаем высоту изображения */
  }
}
/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    row-gap: 40px;
    column-gap: 30px;
  }
  .project img {
    height: 30vh; /* уменьшаем высоту изображения */
    filter: none;
  }
  .close-btn {
    right: 40px;
    font-size: 100px;
  }
  .modal-nav {
    width: 70px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr; /* 1 колонка */
    row-gap: 30px;
    column-gap: 0;
    padding: 0 10px;
  }
  .project img {
    height: 70vh; /* подстраиваем высоту под содержимое */
    filter: none;
  }
  .close-btn {
    right: 20px;
    font-size: 90px;
  }
  .modal-nav {
    width: 50px;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .project h3 {
    font-size: 16px;
  }
  .project p {
    font-size: 14px;
  }
 .project img {
    height: 30vh; /* подстраиваем высоту под содержимое */
  filter: none;
  }
  .close-btn {
    right: 10px;
    font-size: 80px;
  }
  .modal-nav {
    width: 40px;
  }
}
/* Очень маленькие экраны (до 425px) */
@media (max-width: 425px) {
 .project p {
    font-size: 14px;
   line-height: 1.6;
  }
 .project img {
    height: 30vh; /* подстраиваем высоту под содержимое */
  filter: none;
  }
}
/* Очень маленькие экраны (до 375px) */
@media (max-width: 375px) {
 .project img {
    height: 30vh; /* подстраиваем высоту под содержимое */
  filter: none;
  }
 .project p {
    font-size: 14px;
   line-height: 1.5;
  }
}
@media (max-width: 320px) {
 .project img {
    height: 25vh; /* подстраиваем высоту под содержимое */
  filter: none;
  }
 .project p {
    font-size: 14px;
   line-height: 1.3;
  }
  /* Текст "Язык" */
  span[data-i18n="language"] {
    font-size: 14px;
    padding: 6px 10px;
  }
}

/*закончилась адаптация 7*/
/* Эффект фона при наведении на элементы навигации */
.modal-nav:hover {
   width: 300px !important;
  height: 300px!important;
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

/* Размещаем стрелку в левом углу модального окна */
/* Устанавливает стрелку на левый край экрана или контейнера */
   /* Закругляем верхний левый угол стрелки */
   /* Закругляем нижний левый угол стрелки */
.modal-nav.left-nav {  
  left: 0;
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
}
/* Стили для правой навигационной стрелки в модальном окне */
/* Размещаем элемент в правом углу (отступ от правого края) */
/* Закругляем верхний правый угол */
/* Закругляем нижний правый угол */
.modal-nav.right-nav {
  right: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
 /* Стили для стрелок с классом .arrow */
.arrow {
 /* Устанавливаем размер шрифта стрелки на 40 пикселей */
  font-size: 40px;
   /* Задаём цвет стрелки чёрным */
  color: black;
  /* Устанавливаем начальную непрозрачность стрелки на 100% (полностью видимая) */
  opacity: 100%;
  /*transition: transform 0.2s, opacity 0.2s;*/
}
/* Эффект увеличения стрелки при наведении на родительский элемент .modal-nav */
.modal-nav:hover .arrow {
   /* Увеличиваем размер стрелки на 20% при наведении на родительский элемент .modal-nav */
  transform: scale(1.2);
}.wave-button
/* Стиль для контейнера с элементами управления в шапке модального окна */
.modal-header-controls {
   /* Абсолютное позиционирование относительно родительского элемента */
  position: absolute;
   /* Расположение сверху от родителя на 15px */
  top: 15px;
   /* Расположение справа от родителя на 15px */
  right: 15px;
   /* Выводим элементы в ряд, используя flexbox */
  display: flex;
    /* Задаём промежуток между элементами внутри контейнера */
  gap: 10px; 
  /* Устанавливаем порядок слоя, чтобы элементы были выше других (если нужно) */
  z-index: 50;
}



/* Основной стиль для стрелок в модальном окне */
.modal-arrow {
   /* Абсолютное позиционирование, чтобы стрелки располагались относительно ближайшего позиционированного контейнера */
  position: fixed;
   /* Центрируем стрелку по вертикали (относительно родительского элемента) */
  top: 50%;
  transform: translateY(-50%);
  /* Размер шрифта для стрелок */
  font-size: 120px;
   /* Цвет текста стрелок (белый) */
  color:black;
   /* Фоновый цвет с полупрозрачностью белого (для стрелки) 
  background-color: rgba(255, 255, 255, 0.5); */
   /* Радиус для скругления углов, чтобы стрелки стали круглыми */
  border-radius: 50%;  
  /* Размер стрелки 
  width: 150px;
  height: 400px;*/
   /* Flexbox для выравнивания содержимого по центру стрелки */
  display: flex;
  align-items: center;
  /*justify-content: center;*/
  /* Указатель, что на стрелку можно кликать */
  cursor: pointer;
   /* Устанавливаем высокий приоритет для стрелок, чтобы они располагались поверх других элементов */
  z-index: 1050;
  visibility: visible;
    /* Плавные переходы для изменения фона и масштаба */
  transition: background-color 0.2s, transform 0.3s;
}
/* Стиль для правой стрелки в модальном окне */
.modal-arrow-left {
  left: 20px; /* Отступ от правого края родительского элемента*/
}
/* Стиль для правой стрелки в модальном окне */
.modal-arrow-right {
   /* Отступ от правого края родительского элемента */
  right: 20px;
}
html, body {
  margin: 0;
  padding: 0;
}
#projects {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  /*transition: max-height 0.7s ease, opacity 0.7s ease;*/
}

#projects.show {
  position: relative;
  /*height: 100vh;*/
  overflow: visible; /* или auto, если нужно скроллить */
  padding: 60px 30px;
  max-height: none;
  opacity: 1;
}
/*CSS для скрытия/отображения секции:*/
#about {
  display: none;
  transition: all 0.3s ease;
}

#about.show {
  display: block;
}
/*кнопка wave-button*/
.wave-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: #111;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease;
}
/*вверху часть 8 адаптация сайта */
/* === АДАПТИВНОСТЬ MODAL NAV, ARROWS, BUTTONS, SECTIONS === */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .modal-nav:hover {
    width: 200px !important;
    height: 200px !important;
  }
  .modal-arrow {
    font-size: 80px;
  }
  .wave-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  #projects.show {
    padding: 50px 20px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .modal-nav:hover {
    width: 150px !important;
    height: 150px !important;
  }
  .modal-arrow {
    font-size: 50px;
  }
  .modal-arrow-left {
    left: 10px;
  }
  .modal-arrow-right {
    right: 10px;
  }
  .wave-button {
    padding: 8px 16px;
    font-size: 12px;
  }
  #projects.show {
    padding: 40px 15px;
    height: auto;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .modal-nav:hover {
    width: 100px !important;
    height: 100px !important;
  }
  .modal-arrow {
    font-size: 35px;
  }
  .wave-button {
    padding: 6px 12px;
    font-size: 11px;
  }
  #projects.show {
    padding: 30px 10px;
  }
  .btn {
    height: 13.5vh;      /* кнопка больше не фиксирована по высоте */
    padding: 14px;     /* делаем комфортный отступ */
    font-size: 16px;   /* текст читаем на мобиле */
  }
  .button-block {
    position: relative;
    top: 0;
  }
}

/*закончилась адаптация 8*/
//*.wave-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  /*кнопка wave-buttonbackground: rgba(255, 255, 255, 0.15);
filter: blur(40px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.7s ease, height 0.7s ease;*/
  
}

.wave-button:hover::after {
  width: 1800px;
  height: 1800px;
}

.wave-button:hover {
  background-color: #0d0e37;
}
/*надпись марвел*/
.skills-section {
  position: relative;
  height: 110vh;
  overflow: hidden;
  background-color: #000;
}

.skills-container {
  display: flex;
  gap: 40px; /* расстояние между карточками — можешь изменить */
  min-width: 120%;/* на сколько ездиит анимация по екрану */
  height: 100%;
  transition: transform 0.1s linear;
  will-change: transform;
  justify-content: center; /* выравнивание карточек по центру */
}

.skill {
  width: 200px;            /* одинаковая ширина */
  height: 200px;           /* одинаковая высота */
  border-radius: 20px;
  /*overflow: hidden;*/
  flex: 0 0 15vw;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 2rem;
  height: 70vh;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  border: 2px solid #e62429;
  box-shadow: 0 0 20px rgba(230, 36, 41, 0.5);
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.skill span {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  width: 100%;
  text-align: center;
  font-size: 1rem; /* базовый размер */
}

/* 📲 Телефоны до 480px */
@media (max-width: 480px) {
  .skill span {
    font-size: 0.85rem;
    padding: 0.8rem 1.2rem;
    
  }
}



.skill:hover {
  transform: scale(1.05);
}
.dropdown-wrapper {   
  display: flex;
  justify-content: flex-end;
  padding-right: 19vw; /* отступ от правого края */
}

/* Кнопка вкладки */
.dropdown-button { 
  height: 57px;
  width: 20vh;
  background-color: #000;
  color: #fff;
  padding: 0px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  border: 1px solid #444;
  left: 50%;                /* ставим середину меню на середину кнопки */
  transform: translateX(-50%); /* сдвигаем на половину ширины назад */
  border-radius: 4px;
  display: none;
  position: absolute;
  top: 100%;
  background-color: #222;
  min-width: 220px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  border-bottom: 1px solid rgb(68, 68, 68);
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #0d0e37;
}

/* Основной блок */
.design-header {
  position: absolute;
  top: 30px; /* отступ от верхнего края */
  left: 51.5%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
}

/* Заголовок */
.design-header h1 {
  
  margin-bottom: 15px;
  color: #000;

}
/* Обёртка для заголовка с полупрозрачной подложкой */
.design-title-bg {
 /* height: 120%;*/
  position: absolute;
  top: -50px; /* выглядывает из-за отрицательного значения */
  left: 50%;
  transform: translateX(-50%);
  width: 50vh;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 0 0 20px 20px; /* скругление только снизу */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
/*вверху часть 9 адаптация сайта */
/* === АДАПТИВНОСТЬ SKILLS, DROPDOWN, DESIGN HEADER === */
/* Планшеты (до 1024px) */
@media (max-width: 1440px) {
  .dropdown-wrapper{
    padding-right: 24vh ;
    }
    }
/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .skills-container {
    gap: 30px;
  }
  .skill {
    width: 30vh;
    height: 38vh;
    flex: 0 0 20vw;
  }
  .dropdown-wrapper{
    padding-right: 17vh ;
    }
  .dropdown-button {
    width: 15vh;
    font-size: 14px;
    height: 50px;
  }
  .design-header h1 {
    font-size: 28px;
  }
  .design-title-bg {
    width: 40vw;
    padding: 20px 30px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .skills-container {
    gap: 20px;
  }
  .dropdown-wrapper {
  position: relative;   /* важно: теперь right будет работать */
  padding-right:10%;
 }
  .skill {
    width: 30vh;
    height: 47vh;
    flex: 0 0 40vw;
  }
  .dropdown-button {
    width: 15vh;
    font-size: 12px;
    height: 45px;
  }
  .design-header h1 {
    font-size: 24px;
    white-space: nowrap;    /* запрет переноса */
  }
  .design-title-bg {
    min-width: 200px;
    padding: 15px 20px;
  }
  .dropdown-content a {
    height: 5vh;          /* регулируешь высоту пункта */
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .skills-container {
    gap: 15px;
  }
  .skill {
    width: 28vh;
    height: 60vh;
    flex: 0 0 80vw;
  }
  .dropdown-wrapper {
    position: absolute;
    top: 50%;               /* Центрируем по вертикали */
    right: 0;               /* Прижимаем к правому краю */
    transform: translateY(-50%);
    margin: 0;            /* убираем все отступы */
    padding: 0;           /* убираем внутренние отступы */
    z-index: 99;
  }
  /* Кнопка сама */
  .dropdown-button {
    writing-mode: vertical-rl;  /* Поворачиваем текст вертикально */
    text-orientation: mixed;    /* Текст читаемый сверху вниз */
    transform: rotate(180deg);  /* Чтобы текст шёл правильно */
    width: 40px;       /* ширина самой вкладки */
    height: 10vh;
  padding: 10px 0;   /* внутренние отступы сверху и снизу */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
  margin: 0;
  }
  /* Контент dropdown скрыт по умолчанию и позиционируется рядом */
  .dropdown-content {
    display: none;              /* Скрыт, пока не кликнут */
    position: absolute;
    top: 0;
    right: 100%;                /* Выпадает влево от кнопки */
    left: auto;          /* сбрасывает left: 50% */
    transform: none;     /* отключает сдвиг */
    z-index: 9999;      /* ⬅️ ДЕЛАЕТ СПИСОК НАД ВЕЙСТЕЮ */
  }

  /* Показываем dropdown-content при наведении / клике */
  .dropdown:hover .dropdown-content,
  .dropdown-button:focus + .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    height: 5vh;          /* регулируешь высоту пункта */
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }

  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .design-header h1 {
    font-size: clamp(16px, 5vw, 36px);
    white-space: nowrap;    /* запрет переноса */
  }
  .design-title-bg {
    min-width: 200px;
    padding: 10px 15px;
  }
  }
  @media (max-width: 425px) {
  .skills-container {
    gap: 15px;
  }
  .skill {
    width: 200px;
    height: 60vh;
    flex: 0 0 80vw;
  }
  .dropdown-wrapper {
    position: absolute;
    top: 50%;               /* Центрируем по вертикали */
    right: 0;               /* Прижимаем к правому краю */
    transform: translateY(-50%);
    margin: 0;            /* убираем все отступы */
    padding: 0;           /* убираем внутренние отступы */
    z-index: 99;
  }
  /* Кнопка сама */
  .dropdown-button {
    writing-mode: vertical-rl;  /* Поворачиваем текст вертикально */
    text-orientation: mixed;    /* Текст читаемый сверху вниз */
    transform: rotate(180deg);  /* Чтобы текст шёл правильно */
    width: 40px;       /* ширина самой вкладки */
    height: 10vh;
  padding: 10px 0;   /* внутренние отступы сверху и снизу */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
  margin: 0;
  }
  /* Контент dropdown скрыт по умолчанию и позиционируется рядом */
  .dropdown-content {
    display: none;              /* Скрыт, пока не кликнут */
    position: absolute;
    top: 0;
    right: 100%;                /* Выпадает влево от кнопки */
    left: auto;          /* сбрасывает left: 50% */
    transform: none;     /* отключает сдвиг */
    z-index: 9999;      /* ⬅️ ДЕЛАЕТ СПИСОК НАД ВЕЙСТЕЮ */
  }

  /* Показываем dropdown-content при наведении / клике */
  .dropdown:hover .dropdown-content,
  .dropdown-button:focus + .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    height: 4.8vh;          /* регулируешь высоту пункта */
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }

  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .design-header h1 {
    font-size: clamp(16px, 5vw, 36px);
    white-space: nowrap;    /* запрет переноса */
  }
  .design-title-bg {
    min-width: 200px;
    padding: 10px 15px;
  }
}
@media (max-width: 375px) {
  .skills-container {
    gap: 15px;
  }
  .skill {
    width: 200px;
    height: 60vh;
    flex: 0 0 80vw;
  }
  .dropdown-wrapper {
    position: absolute;
    top: 50%;               /* Центрируем по вертикали */
    right: 0;               /* Прижимаем к правому краю */
    transform: translateY(-50%);
    margin: 0;            /* убираем все отступы */
    padding: 0;           /* убираем внутренние отступы */
    z-index: 99;
  }
  /* Кнопка сама */
  .dropdown-button {
    writing-mode: vertical-rl;  /* Поворачиваем текст вертикально */
    text-orientation: mixed;    /* Текст читаемый сверху вниз */
    transform: rotate(180deg);  /* Чтобы текст шёл правильно */
    width: 40px;       /* ширина самой вкладки */
    height: 10vh;
  padding: 10px 0;   /* внутренние отступы сверху и снизу */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
  margin: 0;
  }
  /* Контент dropdown скрыт по умолчанию и позиционируется рядом */
  .dropdown-content {
    display: none;              /* Скрыт, пока не кликнут */
    position: absolute;
    top: 0;
    right: 100%;                /* Выпадает влево от кнопки */
    left: auto;          /* сбрасывает left: 50% */
    transform: none;     /* отключает сдвиг */
    z-index: 9999;      /* ⬅️ ДЕЛАЕТ СПИСОК НАД ВЕЙСТЕЮ */
  }

  /* Показываем dropdown-content при наведении / клике */
  .dropdown:hover .dropdown-content,
  .dropdown-button:focus + .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    height: 30px;          /* регулируешь высоту пункта */
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }

  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .design-header h1 {
    font-size: clamp(16px, 5vw, 36px);
    white-space: nowrap;    /* запрет переноса */
  }
  .design-title-bg {
    min-width: 200px;
    padding: 10px 15px;
  }
}
/* Очень маленькие экраны (до 320px) */
@media (max-width: 320px) {
  .skills-container {
    gap: 15px;
  }
  .skill {
    width: 170px;
    height: 60vh;
    flex: 0 0 80vw;
  }
  .dropdown-wrapper {
    position: absolute;
    top: 50%;               /* Центрируем по вертикали */
    right: 0;               /* Прижимаем к правому краю */
    transform: translateY(-50%);
    margin: 0;            /* убираем все отступы */
    padding: 0;           /* убираем внутренние отступы */
    z-index: 99;
  }
  
  /* Кнопка сама */
  .dropdown-button {
    writing-mode: vertical-rl;  /* Поворачиваем текст вертикально */
    text-orientation: mixed;    /* Текст читаемый сверху вниз */
    transform: rotate(180deg);  /* Чтобы текст шёл правильно */
    width: 40px;       /* ширина самой вкладки */
    height: 10vh;
  padding: 10px 0;   /* внутренние отступы сверху и снизу */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
  margin: 0;
  }

  /* Контент dropdown скрыт по умолчанию и позиционируется рядом */
  .dropdown-content {
    display: none;              /* Скрыт, пока не кликнут */
    position: absolute;
    top: 0;
    right: 100%;                /* Выпадает влево от кнопки */
    left: auto;          /* сбрасывает left: 50% */
    transform: none;     /* отключает сдвиг */
    z-index: 9999;      /* ⬅️ ДЕЛАЕТ СПИСОК НАД ВЕЙСТЕЮ */
  }

  /* Показываем dropdown-content при наведении / клике */
  .dropdown:hover .dropdown-content,
  .dropdown-button:focus + .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    height: 23px;          /* регулируешь высоту пункта */
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
  }

  .dropdown-content a:hover {
    background-color: #f0f0f0;
  }
  .design-header h1 {
    font-size: clamp(16px, 5vw, 36px);
    white-space: nowrap;    /* запрет переноса */
  }
  .design-title-bg {
    min-width: 35vh;
    padding: 10px 15px;
  }
}

/*закончилась адаптация 9*/
/* Сам заголовок */
.design-header h1 {
  margin-right: 10px;
  color: #fff;
  
  margin: 0;*/
   z-index: 11;
}

.logo-path {
  fill: #302973; /* обычный цвет логотипа */
  transition: fill 0.3s ease;
}

.logo-svg:hover .logo-path {
  fill: #e63946; /* цвет при наведении — замени на свой */
  cursor: pointer;
}
/* ==== Полное скрытие логотипа на мобильных устройствах ==== */
@media (max-width: 768px) {
  .logo-svg {
    display: none; /* полностью скрывает логотип */
  }
}
/*началась вкладка контакты*/
 .contact-section {
  position: relative;
  padding: 120px 20px;
  background: #0f0f0f;
  color: #fff;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.contact-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
}

.contact-title {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-subtext {
  font-size: 18px;
  color: #bbb;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-button {
  display: inline-block;
  background: linear-gradient(135deg, #282dc8, #0d0e37);
  color: #000;
  text-decoration: none;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 24px rgba(0, 17, 224, 0.45);
}

.contact-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(39, 43, 192, 1);
}

.social-links {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #fff;
}

/* Эффект свечения */
.contact-glow {
  animation: none !important;
  background: none !important; /* убираем наследование */
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,224,208,0.15) 0%, transparent 80%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: pulse 5s infinite ease-in-out;
}
/*вверху часть 10 адаптация сайта */
/* === АДАПТИВНОСТЬ КОНТАКТОВ === */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .contact-title {
    font-size: 36px;
  }
  .contact-subtext {
    font-size: 16px;
    max-width: 500px;
  }
  .contact-button {
    padding: 14px 30px;
    font-size: 16px;
  }
  .contact-glow {
    width: 500px;
    height: 500px;
  }
  .social-links {
    gap: 20px;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  .contact-title {
    font-size: 28px;
  }
  .contact-subtext {
    font-size: 14px;
    max-width: 400px;
  }
  .contact-button {
    padding: 12px 24px;
    font-size: 14px;
  }
  .contact-glow {
    width: 400px;
    height: 400px;
  }
  .social-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
  .contact-title {
    font-size: 22px;
  }
  .contact-subtext {
    font-size: 12px;
    max-width: 300px;
  }
  .contact-button {
    padding: 10px 20px;
    font-size: 12px;
  }
  .contact-glow {
    width: 300px;
    height: 300px;
  }
}

/*закончилась адаптация 10*/
/* Анимации */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.25;
  }
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .contact-title {
    font-size: 28px;
  }

  .contact-button {
    font-size: 15px;
    padding: 14px 28px;
  }

  .social-links {
    gap: 20px;
    flex-direction: column;
    margin-top: 30px;
  }
}
/* анимация фона*/
.animated-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0; /* blobs под контентом */
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at center, rgba(39, 43, 192, 1), transparent 90%);
  border-radius: 50%;
  filter: blur(80px);
  background-blend-mode: soft-light;
  animation: float 6s ease-in-out infinite;
  transform: translateZ(0); /* Включает сглаживание и GPU */
}

.blob:nth-child(1) {
  top: 10%;
  left: 20%;
}

.blob:nth-child(2) {
  top: 50%;
  left: 60%;
}

.blob:nth-child(3) {
  top: 75%;
  left: 30%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-40px);
  }
}
/* css стили для ветрячка  */
  #mySpinWidget-puller {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 120px;
    background: linear-gradient(to right, #00e0d0, #008b7a);
    color: #000;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-align: center;
    cursor: grab;
    z-index: 999;
    border-radius: 0 10px 10px 0;
    transition: background 0.3s ease;
  }

  #mySpinWidget-puller:hover {
    background: #00fff2;
  }

  .rotating-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.1s ease-out;
    cursor: grab;
    perspective: 800px;
    margin-bottom: 90px;
    z-index: 10;
  }

  .sector {
    position: absolute;
    width: 50%;
    height: 50%;
    background: rgba(0, 224, 208, 0.7);
    transform-origin: 100% 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px;
    font-weight: 700;
    color: #000;
    user-select: none;
    box-sizing: border-box;
    border-radius: 8px 0 0 0;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 15px rgba(0,224,208,0.4);
    z-index: 11;
  }

  .sector:hover,
  .sector.active {
    background: linear-gradient(135deg, #00fff2, #008b7a);
    box-shadow: 0 8px 16px rgba(0, 255, 242, 0.8), inset 0 0 20px rgba(0, 255, 242, 0.7);
    transform: scale(1.1) translateZ(30px);
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
  }

  @keyframes pulseGlow {
    0% {
      box-shadow: 0 8px 16px rgba(0, 255, 242, 0.8), inset 0 0 20px rgba(0, 255, 242, 0.7);
    }
    100% {
      box-shadow: 0 12px 26px rgba(0, 255, 242, 1), inset 0 0 30px rgba(0, 255, 242, 0.9);
    }
  }

  .sector:nth-child(1) { transform: rotate(0deg) translateX(0); }
  .sector:nth-child(2) { transform: rotate(60deg) translateX(0); }
  .sector:nth-child(3) { transform: rotate(120deg) translateX(0); }
  .sector:nth-child(4) { transform: rotate(180deg) translateX(0); }
  .sector:nth-child(5) { transform: rotate(240deg) translateX(0); }
  .sector:nth-child(6) { transform: rotate(300deg) translateX(0); }

  .center-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: #0f0f0f;
    border-radius: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #00e0d0;
    border: 3px solid #00e0d0;
    user-select: none;
    pointer-events: none;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    animation: pulseCenter 3s ease-in-out infinite;
    transform: translate(-50%, -50%);
  }
  .center-hole span {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(8px, 2.5vw, 16px); /* автоуменьшение размера */
}

  @keyframes pulseCenter {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      box-shadow: 0 0 15px #00e0d0, 0 0 40px #009688;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.05);
      box-shadow: 0 0 25px #00fff2, 0 0 60px #00e0d0;
    }
  }
/*вверху часть 11 адаптация сайта */
/* Анимации (не изменяются) */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

/* Анимация blobs */
.animated-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at center, rgba(39, 43, 192, 1), transparent 90%);
  border-radius: 50%;
  filter: blur(80px);
  background-blend-mode: soft-light;
  animation: float 6s ease-in-out infinite;
  transform: translateZ(0);
}

.blob:nth-child(1) { top: 10%; left: 20%; }
.blob:nth-child(2) { top: 50%; left: 60%; }
.blob:nth-child(3) { top: 75%; left: 30%; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-40px); }
}

/* Ветрячок */
#mySpinWidget-puller {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 120px;
  background: linear-gradient(to right, #00e0d0, #008b7a);
  color: #000;
  font-weight: bold;
  writing-mode: vertical-rl;
  text-align: center;
  cursor: grab;
  z-index: 999;
  border-radius: 0 10px 10px 0;
  transition: background 0.3s ease;
}
#mySpinWidget-puller:hover { background: #00fff2; }

.rotating-circle {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: transparent;
  transition: transform 0.1s ease-out;
  cursor: grab;
  perspective: 800px;
  margin-bottom: 90px;
  z-index: 10;
}

.sector {
  position: absolute;
  width: 50%;
  height: 50%;
  background: rgba(0, 224, 208, 0.7);
  transform-origin: 100% 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px;
  font-weight: 700;
  color: #000;
  user-select: none;
  box-sizing: border-box;
  border-radius: 8px 0 0 0;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 15px rgba(0,224,208,0.4);
  z-index: 11;
}
.center-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: #0f0f0f;
  border-radius: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #00e0d0;
  border: 3px solid #00e0d0;
  user-select: none;
  pointer-events: none;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  animation: pulseCenter 3s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

/* Анимации */
@keyframes pulseGlow {
  0% { box-shadow: 0 8px 16px rgba(0, 255, 242, 0.8), inset 0 0 20px rgba(0, 255, 242, 0.7); }
  100% { box-shadow: 0 12px 26px rgba(0, 255, 242, 1), inset 0 0 30px rgba(0, 255, 242, 0.9); }
}
@keyframes pulseCenter {
  0%,100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px #00e0d0, 0 0 40px #009688; }
  50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 25px #00fff2, 0 0 60px #00e0d0; }
}

/* Адаптация под планшеты */
@media (max-width: 1024px) {
  #mySpinWidget-puller { width: 30px; height: 100px; }
  .rotating-circle { width: 300px; height: 300px; margin-bottom: 60px; }
  .sector { padding: 6px; }
  .center-hole { width: 120px; height: 120px; font-size: 18px; }
  .blob { width: 250px; height: 250px; filter: blur(60px); }
}

/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
  #mySpinWidget-puller { width: 25px; height: 80px; font-size: 12px; }
  .rotating-circle { width: 250px; height: 250px; margin-bottom: 40px; }
  .sector { padding: 4px; font-size: 12px; }
  .center-hole { width: 100px; height: 100px; font-size: 16px; }
  .blob { width: 180px; height: 180px; filter: blur(50px); }
}

/* Мелкие смартфоны */
@media (max-width: 400px) {
  #mySpinWidget-puller { width: 20px; height: 70px; font-size: 10px; }
  .rotating-circle { width: 200px; height: 200px; margin-bottom: 30px; }
  .sector { padding: 3px; font-size: 10px; }
  .center-hole { width: 80px; height: 80px; font-size: 14px; }
  .blob { width: 150px; height: 150px; filter: blur(40px); }
}
/*закончилась адаптация 11*/
  .controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    z-index: 40;
    position: relative;
  }

  .controls button {
    padding: 10px 20px;
    font-size: 16px;
    background: #00e0d0;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: background 0.3s ease;
  }

  .controls button:hover:not(:disabled) {
    background: #00fff2;
  }

  .controls button:disabled {
    background: #008b7a;
    cursor: not-allowed;
  }

  #mySpinWidget-color-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
  }

  .color-spread {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: spreadOut 3s forwards;
  }

  @keyframes spreadOut {
    0% {
      width: 0;
      height: 0;
      opacity: 0.6;
    }
    100% {
      width: 200vw;
      height: 200vw;
      opacity: 0;
    }
  }
  /* Обёртка всего модального окна */
  .spin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #000;
  z-index: 9999;
  overflow: hidden;
}

/* Контейнер внутри */
.spin-modal {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Закрыть */
.spin-close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10000;
}
/*кнопка открытия спинера */
#openSpinModal {
  padding: 14px 32px;
  background: linear-gradient(135deg, #6f00ff, #00c6ff);
  border: none;
  border-radius: 100px;
  color: white;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
#openSpinModal:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(111, 0, 255, 0.4);
}

#openSpinModal:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(111, 0, 255, 0.2);
}
.slider-section .slider-trigger-wrapper {
  background-color: black;
  position: relative;
  cursor: grab;
  width: 520px;
  height: 60px;
  margin: 0px auto;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  overflow: hidden;

  /* Эффекты */
  animation: pulse 4s infinite;
}
/*вверху часть 12 адаптация сайта */
/* Адаптация под планшеты */
@media (max-width: 1024px) {
  #openSpinModal {
    font-size: 16px;
    padding: 12px 28px;
  }
  .controls button {
    font-size: 14px;
    padding: 8px 16px;
  }
  .slider-section .slider-trigger-wrapper {
    width: 400px;
    height: 50px;
  }
}

/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
  #openSpinModal {
    font-size: 14px;
    padding: 10px 24px;
  }
  .controls button {
    font-size: 12px;
    padding: 6px 12px;
  }
  .slider-section .slider-trigger-wrapper {
    width: 300px;
    height: 45px;
  }
}

/* Адаптация под маленькие смартфоны */
@media (max-width: 400px) {
  #openSpinModal {
    font-size: 12px;
    padding: 8px 20px;
  }
  .controls button {
    font-size: 10px;
    padding: 4px 8px;
  }
  .slider-section .slider-trigger-wrapper {
    width: 250px;
    height: 40px;
  }
}

/*закончилась адаптация 12*/

.slide-target {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  pointer-events: none;
}

.slide-button {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 170px;
  gap: 10px; /* отступ между иконкой и текстом */
  background: linear-gradient(160deg, #0d0e37, #282dc8);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  cursor: grab;
  transition: background 0.3s;
  text-align: center; /* важно */
  padding: 0 10px;     /* немного пространства */
  box-sizing: border-box; /* важно для padding */
}
.slide-button .emoji {
  font-size: 28px; /* увеличь при необходимости */
  line-height: 1;
}
#dragToUnlock {
  user-select: none;          /* Запрет выделения текста */
  -webkit-user-select: none;  /* Safari */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE/Edge */
  cursor: grab;               /* Курсор "рука" */
}
/* Оберни в позиционированный контейнер */
.spin-widget {
  position: relative;
}

/* Сдвигаем только блок с кнопками */
.controls {
  position: absolute;
  /*bottom: -7vw; /* сдвиг вниз (увеличь при необходимости) */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-section {
  position: relative; /* теперь псевдоэлемент ::after будет ограничен этой секцией */
  background: black;
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); /* мелкий шум */
  background-blend-mode: overlay;
  padding: 100px 0;
  display: flex;
  justify-content: center;
}


.slider-section::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.03),
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 10px
  );
  z-index: 0;
}

.slider-section .slider-trigger-wrapper {
  position: relative;
  z-index: 1;
}

* Сам блик */
.slider-section .slider-trigger-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  pointer-events: none;
  z-index: 2;
}
/* Анимация движения блика */
 @keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* Дополнительно: лёгкая пульсация, чтобы подчеркнуть интерактивность */
 @keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  }
}
#toggle-projects-btn {
  background-color: #yourBackgroundColor; /* цвет фона, свой у тебя */
  border: none;           /* убрать рамку */
  outline: none;          /* убрать обводку */
  box-shadow: none;       /* убрать тень */
  transition: none;       /* убрать анимацию */
  user-select: none;      /* запрет выделения */
  cursor: pointer;        /* курсор */
}

#toggle-projects-btn:active,
#toggle-projects-btn:focus {
  background-color: #yourBackgroundColor; /* тот же цвет, что и в обычном состоянии */
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}
/*вверху часть 13 адаптация сайта */
/* Планшеты */
@media (max-width: 1024px) {
  .slide-button {
    width: 140px;
    font-size: 14px;
    padding: 0 8px;
  }
  .slide-button .emoji {
    font-size: 24px;
  }
  .slide-target {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .slider-section {
    padding: 80px 0;
  }
  .slider-section .slider-trigger-wrapper {
    width: 400px;
    height: 50px;
  }
}

/* Мобильные устройства */
@media (max-width: 600px) {
  .slide-button {
    width: 120px;
    font-size: 12px;
    padding: 0 6px;
  }
  .slide-button .emoji {
    font-size: 20px;
  }
  .slide-target {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .slider-section {
    padding: 60px 0;
  }
  .slider-section .slider-trigger-wrapper {
    width: 300px;
    height: 45px;
  }
}

/* Малые смартфоны */
@media (max-width: 400px) {
  .slide-button {
    width: 100px;
    font-size: 10px;
  }
  .slide-button .emoji {
    font-size: 18px;
  }
  .slide-target {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .slider-section .slider-trigger-wrapper {
    width: 250px;
    height: 40px;
  }
}

/*закончилась адаптация 13*/
.modal-images {
  position: absolute;  /* закрепляем блок слева */
  top: 15vh;
  left: 5vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;  /* расстояние между картинками */
  z-index: 1; /* чтобы были поверх фона */
}

.modal-images img {
  position: relative; /* каждая картинка остаётся в потоке */
  height: auto; /* ✅ сохраняет пропорции и не сдвигает */
  width: 55vw;       /* фиксируем ширину */
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}
* Стили полноэкранного окна */
#fullscreenOverlay {
  display: none;
  position: fixed;
  z-index: 2000; /* поверх модалки */
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  padding: 100px; /* отступы вокруг картинки */
}
#fullscreenOverlay img {
  max-width: 10%;   /* 80% ширины экрана */
  max-height: 10%;  /* 80% высоты экрана */
  object-fit: contain;
  background: black;
  border-radius: 8px;
}
#closeFullscreen {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.modal-images img {
  cursor: pointer;
  transition: transform 0.2s;
}
.modal-images img:hover {
  transform: scale(1.05);
}
/* Стили для изображения в режиме fullscreen */
img:fullscreen {
  max-width: 30%;    /* желаемый размер */
  max-height: 30%;
  object-fit: contain;
  background: black;
  border-radius: 8px;
  margin: auto;
  display: block;
}

.modal-content p {
  position: absolute;
  right: 15vh;   /* отступ от правого края */
  top: 12vh;     /* регулируешь отступ вниз */
  width: 50vh;  /* ширина блока текста */
  font-size: 36px;
  line-height: 1.4;
  color: #000000;
  /* Подложка под текстом */
  background-color: rgba(255, 255, 255, 0.8); /* белый фон с прозрачностью */
  padding: 15px 20px; /* отступы вокруг текста */
  border-radius: 10px; /* скругленные углы */
  box-shadow: 0 20px 15px rgba(0, 0, 0, 0.1); /* легкая тень для объема */
}
.modal-bg-wrapper img {
  width: 120%;
  height: 100%;
  object-fit: cover;    /* сохраняет пропорции, масштабирует и при необходимости обрезает */
  }
  /* === Адаптация под 1440px === */
@media (max-width: 1440px) {
  .modal-content p {
    right: 20vh;       /* чуть меньше отступ */
    top: 12vh;        /* чуть выше */
    width: 35vh;      /* немного уже */
    font-size: 30px;  /* меньше шрифт */
    padding: 12px 18px;
  }
}
/* === Адаптация под 1024px === */
@media (max-width: 1024px) {
  .modal-images {
  position: absolute;  /* закрепляем блок слева */
  left: 5vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;  /* расстояние между картинками */
  z-index: 1; /* чтобы были поверх фона */
}
}
@media (max-width: 1024px) {
  .modal-content p {
    right: 15vh;        /* немного ближе к центру */
    top: 7vh;         /* поднимаем чуть выше */
    width: 35vh;       /* уже текстовый блок */
    font-size: 20px;   /* меньше шрифт */
    padding: 10px 16px; /* уменьшаем внутренние отступы */
  }
}

/*закончилась адаптация 14*/
/* Планшеты */
@media (max-width: 1024px) {
  .modal-images img {
    width: 55vw;
    max-height: 400px;
  }
  #fullscreenOverlay {
    padding: 60px;
  }
  #fullscreenOverlay img {
    max-width: 80%;
    max-height: 80%;
  }
  .modal-content p {
    width: 35vh;
    font-size: 20px;
    right: 10vh;
    top: 11vh;
    padding: 12px 16px;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .modal-images {
    top: 15vh;
    left: 15vh;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .modal-images img {
    width: 45vw;
    max-height: 250px;
  }
  #fullscreenOverlay {
    padding: 20px;
  }
  #fullscreenOverlay img {
    max-width: 90%;
    max-height: 90%;
  }
  .modal-content p {
    width: 35vh;
    font-size: 16px;
    padding: 10px 12px;
  }
}

/* Малые смартфоны */
@media (max-width: 480px) {
  .modal-bg-wrapper img {
    width: 100%;
   height: 150vh;
  object-fit: cover;    /* сохраняет пропорции, масштабирует и при необходимости обрезает */
  }
  .modal-images {
    top: 10vh;
    left: 5vh;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .modal-images img {
    width: 80vw;
    max-height: 150px;
  }
  #fullscreenOverlay {
    padding: 20px;
  }
  #fullscreenOverlay img {
    max-width: 90%;
    max-height: 90%;
  }
  .modal-content p {
    width: 35vh;
    font-size: 20px;
    left: 5vh;
    top: 80vh;
    padding: 12px 16px;
  }
  .modal-content p {
    width: 80%;
    font-size: 16px;
    padding: 10px 12px;
  }
}
@media (max-width: 425px) {
  .modal-bg-wrapper img {
    width: 100%;
   height: 150vh;
  object-fit: cover;    /* сохраняет пропорции, масштабирует и при необходимости обрезает */
  }
  .modal-images {
    top: 10vh;
    left: 3vh;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .modal-images img {
    width: 90vw;
    max-height: 150px;
  }
  #fullscreenOverlay {
    padding: 20px;
  }
  #fullscreenOverlay img {
    max-width: 90%;
    max-height: 90%;
  }
  .modal-content p {
    width: 83%;
    font-size: 20px;
    left: 3vh;
    top: 80vh;
    padding: 12px 16px;
  }
}
@media (max-width: 375px) {
  .modal-bg-wrapper img {
    width: 100%;
   height: 150vh;
  object-fit: cover;    /* сохраняет пропорции, масштабирует и при необходимости обрезает */
  }
  }
@media (max-width: 320px) {
 .modal-images img {
    width: 90vw;
    max-height: 125px;
  }
  .modal-bg-wrapper img {
    width: 100%;
   height: 150vh;
  object-fit: cover;    /* сохраняет пропорции, масштабирует и при необходимости обрезает */
  }
  }
/*вверху часть 14 адаптация сайта */

/* === ГЛОБАЛЬНЫЙ ФИКС === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* запрещаем горизонтальный скролл */
}


/* Блок с бегущим текстом */
.scroll-text-wrapper {
  width: 100%;
  overflow: hidden;  /* чтобы слова не вылезали за экран */
  white-space: nowrap;
}

/* Слова внутри бегущего текста */
.scroll-text span {
  display: inline-block;
  white-space: nowrap; /* не переносим на новую строку */
}



/* Для адаптивных заголовков и текстов */
.main-header
 {
  max-width: 100%; /* чтобы не растягивались за экран */
  overflow: hidden;
}
#dragToUnlock {
  touch-action: none; /* отключает системный скролл при свайпе */
  cursor: grab;
  position: absolute;
  left: 0;
  top: 0;
}
/* 👇 вставляешь сюда, после всех медиа */
.body-no-scroll {
  overflow: hidden;
  height: 100vh;
}





























