@charset "UTF-8";
:root {
  --main-color: rgb(227, 227, 227);
  --background-color: rgba(201, 201, 201, 0.7);
}

* {
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background-image: url("../Photo/bg2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.input1, .input2 {
  font-family: "Nunito", sans-serif;
  outline: none;
  height: 60px;
  width: 350px;
  font-size: 35px;
  font-weight: bolder;
  border-radius: 30px;
  text-align: center;
  color: var(--main-color);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(209, 209, 209);
  outline: none;
  margin-bottom: 20px;
  background-color: var(--background-color);
  transition: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.input1.is-active, .is-active.input2 {
  width: 400px;
}
@media (max-width: 778px) {
  .input1, .input2 {
    height: 80px;
    width: 350px;
  }
  .input1:hover, .input2:hover {
    transform: none;
    box-shadow: none;
  }
}
@media (max-width: 1024px) {
  .input1:hover, .input2:hover {
    transform: none;
    box-shadow: none;
  }
}

.copybtn {
  height: 50px;
  width: 50px;
  border-radius: 50px;
  background-color: var(--background-color);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(209, 209, 209);
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: center;
}
.copybtn.is-canceled {
  animation: shake 0.4s ease-in-out;
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-8px);
  }
  30% {
    transform: translateX(6px);
  }
  45% {
    transform: translateX(-6px);
  }
  60% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

.copy.is-disable {
  display: none;
}

.accept {
  display: none;
}

.accept.is-active {
  display: block;
}

.navcon {
  /* Фиксируем панель в углу экрана, чтобы она не зависела от центрирования body */
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  border: 1px solid rgb(209, 209, 209);
  backdrop-filter: blur(4px);
  border-radius: 30px;
  cursor: pointer;
  overflow: hidden; /* Скрывает кнопки, пока меню свернуто */
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* --- СОСТОЯНИЕ ОТКРЫТОГО МЕНЮ --- */
}
.navcon.is-active {
  width: 520px;
  justify-content: space-around;
  padding: 0 20px;
}
@media (max-width: 560px) {
  .navcon.is-active {
    width: calc(100% - 60px);
    max-width: 380px;
    padding: 0 12px;
  }
}
.navcon.is-active {
  /* При открытии плавно показываем навигацию С ЗАДЕРЖКОЙ */
}
.navcon.is-active .navbar {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  /* Кнопки появляются за 0.2s ПОСЛЕ того, как плашка расширилась на 0.2s */
  transition: opacity 0.2s ease-in-out 0.2s, visibility 0s linear 0.2s;
}
.navcon {
  /* Иконка меню (три точки) */
}
.navcon .dotcon {
  position: absolute;
  left: 2.5px;
  height: 15px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.navcon .dot1, .navcon .dot2, .navcon .dot3 {
  height: 10px;
  width: 8px;
  border-radius: 10px;
  border-left: 1px solid rgb(209, 209, 209);
  border-right: 1px solid rgb(209, 209, 209);
  background-color: var(--background-color);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease-out;
}
.navcon:hover .dot1 {
  transform: translateY(-5px);
  transition-delay: 0s;
}
.navcon:hover .dot2 {
  transform: translateY(-5px);
  transition-delay: 0.1s;
}
.navcon:hover .dot3 {
  transform: translateY(-5px);
  transition-delay: 0.2s;
}
.navcon.is-active:hover .dot {
  transform: translateY(0);
  transition-delay: 0s;
}
.navcon .navbar {
  /* Используем visibility вместо display:none, чтобы задержка (delay) работала! */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  padding-left: 35px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Задержка при закрытии (кнопки исчезают мгновенно, не мешая плашке сжиматься) */
  transition: opacity 0.1s ease-in-out 0s, visibility 0s linear 0.1s;
}
.navcon .navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* Красивые современные отступы между кнопками */
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
  /* Базовые стили для ОБЕИХ кнопок внутри меню */
}
.navcon .navbar ul .btn, .navcon .navbar ul .btn2 {
  position: relative;
  width: auto;
  min-width: 85px;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background-color: transparent;
  color: var(--btn-text);
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  outline: none;
  overflow: hidden;
  cursor: pointer;
}
.navcon .navbar ul .btn .text, .navcon .navbar ul .btn2 .text {
  z-index: 2;
  pointer-events: none;
}
.navcon .navbar ul .btn .lang-toggle-text, .navcon .navbar ul .btn2 .lang-toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.navcon .navbar ul .btn .lang-opt, .navcon .navbar ul .btn2 .lang-opt {
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.navcon .navbar ul .btn .lang-opt.is-active, .navcon .navbar ul .btn2 .lang-opt.is-active {
  opacity: 1;
}
.navcon .navbar ul .btn .lang-sep, .navcon .navbar ul .btn2 .lang-sep {
  opacity: 0.35;
}
.navcon .navbar ul .btn, .navcon .navbar ul .btn2 {
  /* Эффект волны (круг при клике) */
}
.navcon .navbar ul .btn .cercal, .navcon .navbar ul .btn2 .cercal {
  position: absolute;
  height: 300px;
  width: 300px;
  border-radius: 100%;
  background-color: rgb(235, 235, 255);
  z-index: 1;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.25s ease-out;
  pointer-events: none;
}
.navcon .navbar ul .btn .cercal.is-active, .navcon .navbar ul .btn2 .cercal.is-active {
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 560px) {
  .navcon .navbar ul .btn, .navcon .navbar ul .btn2 {
    min-width: 52px;
    padding: 0 8px;
    font-size: 11px;
  }
}
.navcon .navbar ul {
  /* Уникальная ширина для второй кнопки */
}
.navcon .navbar ul .btn2 {
  width: 170px;
}
@media (max-width: 500px) {
  .navcon .navbar ul .btn2 {
    width: 120px;
  }
}

.bgcon {
  position: absolute;
  top: 90px;
  left: 90px;
  font-family: "Nunito", sans-serif;
  background-color: var(--background-color);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(229, 229, 229);
  border-radius: 20px;
  padding: 20px;
  /* Правильный расчет высоты: панель гибкая, но не выше 400px */
  max-height: 400px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* Помогает сетке занять верное пространство */
  display: flex;
  flex-direction: column;
  /* Анимация и безопасность кликов */
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.25s ease-in-out;
}
.bgcon.is-active {
  visibility: visible;
  pointer-events: auto; /* Для HTML элементов возвращаем именно auto */
  opacity: 1;
  transform: translateY(0);
}
.bgcon .bgtext {
  font-size: 20px;
  font-weight: bolder;
  color: var(--main-color);
  display: block;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.bgcon .line {
  border: none;
  border-top: 1px solid rgb(229, 229, 229);
  margin: 0 0 20px 0;
  flex-shrink: 0;
}
.bgcon .gridbg {
  /* Занимает всю оставшуюся высоту внутри max-height: 400px */
  flex-grow: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  /* Внутренний скролл и скрытие системного бара */
  overflow-y: auto;
  padding-top: 5px;
  padding-bottom: 5px;
}
.bgcon .gridbg::-webkit-scrollbar {
  display: none;
}
.bgcon .gridbg .cards {
  height: 100px;
  border-radius: 12px;
  overflow: hidden; /* Ножницы: картинка не вылезает за скругленные углы карточки */
  border: 2px solid rgb(229, 229, 229);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  transition: 0.2s ease-in-out;
  /* Класс активности, задаваемый из JS */
}
.bgcon .gridbg .cards.is-active {
  border-color: rgb(58, 58, 255);
  background-color: rgba(58, 58, 255, 0.1);
  box-shadow: 0 5px 15px rgba(58, 58, 255, 0.2);
}
.bgcon .gridbg .cards span {
  font-size: 18px;
  font-weight: bold;
  color: var(--main-color);
  opacity: 0.6;
}
.bgcon .gridbg .cards img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover; /* Картинка сохраняет пропорции без искажений */
  display: block;
}
.bgcon .gridbg .cards:hover {
  transform: translateY(-2px);
  border-color: rgb(58, 58, 255);
  box-shadow: 0 5px 15px rgba(58, 58, 255, 0.2);
}/*# sourceMappingURL=style.css.map */