/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --index: calc(1vw + 1vh);
  --color-green: #A6ED69;
  --color-green-button-pressed: #92ce5d;
  --color-blue: #1870FF;
  --color-text: #cdc6c3;
  --gallery-gap: calc(var(--index) * 5);
  --darkBlue: #010a43;
  --lightGreen: #a7e9af;
  --whiteClr: #fff;
  --lightBlue: rgba(0, 64, 128, 0.2);
  --intenseBlue: #46b3e6;
}

@font-face {
  font-family: happy;
  src: url(../fonts/happy.otf);
}


html {
  scroll-behavior: smooth;
}

.accent_green {
  color: var(--color-green);
}

body {
  background: #1E1E1E;
  overflow-x: hidden;

}

.content,
.hero,
.main-header,
.gallery>*,
.progressbar,
.top-bar {

  will-change: transform;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: none;
}

.top-bar {
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #303030;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 50px;
  /* Высота панели зависит от минимальной и максимальной величины вьюпорта */
  width: 100vw;
}

/* Логотип */
.logo {
  max-width: 40px;
  /* Ширина логотипа зависит от минимальной величины экрана */
  height: auto;
  object-fit: contain;
  margin-left: 4px;
}

/* Кнопка Скачать */
.download-btn {
  background-color: var(--color-green);
  color: var(--darkBlue);
  font-size: 12px;
  /* Размер шрифта с использованием переменной --index */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 2vw;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 80px;
  /* Ширина кнопки зависит от минимальной и максимальной величины экрана */
  height: 30px;
  /* Высота кнопки зависит от минимальной и максимальной величины экрана */
  /* font-family: raleway-c; */
}

.download-btn:hover {
  background-color: var(--color-green-button-pressed);
  transform: scale(1.05);
}

.download-btn:active {
  transform: scale(0.95);
}

.hero-section {
  max-width: 2000px;
  /* Ограничиваем максимальную ширину */
  margin: 0 auto;
  /* Центрирование галереи */
  margin-bottom: 150px;
}

/* Герой-секция */
.hero {

  position: absolute;
  width: calc(var(--index) * 20);
  top: 10vh;
  /* Уменьшаем отступ сверху для поднятия заголовка */
  left: calc(55vw + var(--index) * 2);
  z-index: -1;
}

.welcome_main-title {
  font-family: happy;
  font-size: calc(var(--index) * 3);
  ;
  color: var(--color-blue);
  position: absolute;
  bottom: 79vh;
  /* Увеличиваем отступ снизу, чтобы заголовок был выше */
  line-height: 1;
  text-align: center;
  width: 100%;
  /* Занимает всю доступную ширину */
  left: 50%;
  /* Центрирует заголовок относительно контейнера */
  transform: translateX(-50%);
  /* Корректирует смещение для точного выравнивания по центру */
}

.main-title {
  font-size: calc(var(--index) * 7);
  ;
  color: var(--color-green);
  position: absolute;
  top: 20vh;
  /* Увеличиваем отступ снизу, чтобы заголовок был выше */
  line-height: 1;
  text-align: center;
  width: min-content;
  /* Занимает всю доступную ширину */
  left: 50%;
  /* Центрирует заголовок относительно контейнера */
  transform: translateX(-50%);
  /* Корректирует смещение для точного выравнивания по центру */
}


.main-header {
  min-height: 100vh;
  padding: 0 clamp(5vw, 7vw, 10vw);
  text-align: center;
}





/* Контейнер с текстом и кнопкой */
.scroll-container {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  /* Текст будет выравниваться по центру */
  color: #fff;
  /* Цвет текста */
  width: 100%;
}



/* Текст */
.scroll-container p {
  font-size: 14px;
  font-weight: 600;
  max-width: 80%;
  line-height: 1.5;
  /* Увеличим межстрочное расстояние */
  color: #ffffff;
  /* Цвет текста */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  /* Легкая тень для текста */
  transition: color 0.3s ease;
  /* Плавное изменение цвета при наведении */
}

/* Кнопка прокрутки */
.scroll-button {
  position: relative;
  /* Добавляем для позиционирования таймера */
  padding: 12px 36px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background-color: #007BFF;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  overflow: visible;
  /* Чтобы таймер не обрезался */
}

/* Стили для таймера */
.countdown {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff4444;
  border-radius: 20px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.countdown span:not(.spacer) {
  min-width: 20px;
  text-align: center;
}

.spacer {
  width: 4px;
}

/* SVG стрелки */
.scroll-arrows {
  width: 80px;
  /* Чуть больше, чтобы нижняя стрелка не обрезалась */
  height: 80px;
  /* Увеличена высота */
  cursor: pointer;
  position: relative;
  transform-origin: center;
  overflow: visible;
  /* Гарантия, что стрелки не обрезаются */
}

polygon {
  fill: #007BFF;
  transition: all 0.3s ease-out;
}

.arrow-middle {
  opacity: 0.75;
}

.arrow-top {
  opacity: 0.5;
}

.scroll-button:hover~.scroll-arrows polygon {
  fill: #A6ED69;
}

/* Анимация прыжков */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

.scroll-arrows .arrow-bottom,
.scroll-arrows .arrow-middle,
.scroll-arrows .arrow-top {
  animation: bounce 1.5s infinite;
}

.scroll-arrows .arrow-middle {
  animation-delay: 0.2s;
}

.scroll-arrows .arrow-top {
  animation-delay: 0.4s;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .hero {
    width: 100%;
    /* Ширина героя-секции на 100% экрана */
    left: 0;
    /* Отступ слева на 0 */
    right: 0;
    /* Отступ справа на 0 */
  }

  .main-title {
    font-size: calc(var(--index) * 6);
    /* Меньший шрифт для мобильных устройств */
    bottom: 60vh;
    /* Небольшой отступ снизу */
  }

  .main-header {
    padding: 0 clamp(5vw, 10vw, 15vw);
    /* Адаптивные отступы для мобильных */
  }

  .scroll-container {
    bottom: 5vh;
  }
}


/* Стили для заголовков в галерее */
.gallery__item {
  margin-bottom: 3vmin;
}

.text-header {
  font-size: 20px;
  color: #333;
  text-align: center;
}


.text-block__list {
  font-size: 14px;
  text-align: left;
  color: #fafafa;
  /* Цвет текста */
  line-height: 1.5;
  /* Межстрочный интервал */
  margin-top: 20px;
  margin-bottom: 20px;
}

.text-block__p {
  font-size: 14px;
  text-align: center;
  color: #fafafa;
  /* Цвет текста */
  line-height: 1.5;
  /* Межстрочный интервал */
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Стили для анимации при прокрутке */
.gallery__left,
.gallery__right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image {
  width: 300px;
}

.gallery__item {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* Анимация при прокрутке */
.gallery__left .gallery__item,
.gallery__right .gallery__item {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.gallery__left .gallery__item.active,
.gallery__right .gallery__item.active {
  opacity: 1;
  transform: translateX(0);
}


/* Галерея */
.gallery {
  display: flex;
  padding: calc(var(--index)) clamp(1rem, calc(var(--index) * 2), 3rem);
  /* Горизонтальные отступы с clamp */

  max-width: 1600px;
  /* Ограничиваем максимальную ширину */
  margin: 0 auto;
  /* Центрирование галереи */
}

.gallery>* {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery__item:first-child {
  margin-top: var(--gallery-gap*1.3);
  /* Устанавливаем отступ сверху */
}

.gallery__item {
  max-width: calc(var(--index) * 21);
  margin-top: var(--gallery-gap);
  /* Устанавливаем отступ сверху */
  border-radius: 8px;
}


/* Основные стили для блоков текста */
.text-block {
  width: 500px;
  padding: calc(var(--index) * 0.8) clamp(1rem, calc(var(--index) * 2), 3rem);
  /* Отступы внутри блока с ограничением на минимальное и максимальное значение */
  margin-top: var(--gallery-gap);
  /* Отступ сверху */
  box-sizing: border-box;
  /* Чтобы отступы учитывались при расчете ширины */
}

/* Заголовок в блоке текста */
.text-header {
  font-size: 25;
  /* Размер шрифта для заголовка */
  color: var(--color-blue);
  /* Цвет заголовка */
  margin-bottom: calc(var(--index) * 0.5);
  /* Отступ снизу */
  font-weight: 700;
  /* Жирный шрифт */
}

/* Список в блоке текста */
.text-block__list {
  /* font-family: raleway-c; */
  font-size: 14px;
  line-height: 1.5;
  /* Межстрочный интервал */
  margin-top: calc(var(--index) * 0.5);
  /* Отступ сверху */
}

.text-block__list li {
  margin-bottom: 3px;
}



/* Адаптация для мобильных устройств */
@media (max-width: 768px) {


  .gallery {
    flex-direction: column;
    padding: 0;
  }

  .gallery__item {
    padding-left: 0;
  }

  .text-block {
    width: 100%;
    margin-top: 100px;
    padding: 0;
  }

  .text-header {
    font-size: calc(var(--index) * 2);
  }

  .gallery__left .gallery__item,
  .gallery__right .gallery__item {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .gallery__left .gallery__item img,
  .gallery__right .gallery__item img {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .gallery__right:last-child {
    margin-bottom: 20vh;
  }
}

.main-text-description {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;

  max-width: calc(var(--index) * 21);
}

/* Голосовалка */
.text-block__poll {
  font-size: 16px;
  text-align: center;
  color: #fafafa;
  /* Цвет текста */
  line-height: 1.2;
  /* Межстрочный интервал */
  margin-top: 1%;
  margin-bottom: 1%;
  margin-left: 10%;
  margin-right: 10%;
}

.header__title {
  color: var(--color-blue);
}

.poll-section {
  z-index: 999;
  background-color: #1E1E1E;
  padding: 30px 10px;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
  min-height: fit-content;
  border: 1px solid var(--color-green);
  /* Добавлена ширина и стиль рамки */
}


@media (max-width: 768px) {
  .poll-section {
    min-width: 400px;
  }
}

.poll-main {
  display: block;
  align-self: start;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

.poll-header {
  margin: 0 0;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  /* Центрирует текст по горизонтали */
}


.header__description {
  margin-bottom: 3rem;
  font-size: 14px;
  line-height: 1.4;
}


label {
  cursor: pointer;
}

/* Футер */
.footer {
  background-color: #111111;
  color: #666;
  padding: 5px 0 0;
  font-size: 11px;
  border-top: 1px solid #333;
}

.contact-columns {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5px;
}

/* Левая колонка */
.left-column {

  flex: 1;
  text-align: center;
}

.legal-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-info li {
  color: #A6ED69;
  margin-bottom: 5px;
}

/* Правая колонка */
.right-column {
  flex: 1;
  text-align: center;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts-list a {
  color: #A6ED69;
  text-decoration: none;
  transition: opacity 0.3s;
  display: inline-block;
  margin-bottom: 5px;
}

.contacts-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Копирайт */
.copyright {
  color: #666;
  border-top: 1px solid #333;
  text-align: center;
  padding: 5px 0;
}

/* Адаптив */
@media (max-width: 768px) {
  .contact-columns {
    flex-direction: column;
    gap: 15px;
    text-align: center !important;
  }

  .left-column,
  .right-column {
    text-align: center !important;
  }

  .contacts-list a {
    text-align: center;
  }
}

/* Затемнение */
.overlay {
  display: none;
  /* Скрываем по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Прозрачный черный фон */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.overlay-description {
  font-size: 14px;
  color: white;
}

/* Модальное окно */
.modal {
  background-color: #1E1E1E;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}

.modal h2 {
  margin-bottom: 20px;
  color: var(--color-green);
  font-size: 30px;
}

.modal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.modal li {
  margin: 10px 0;
}

.modal a {
  color: #007bff;
  text-decoration: none;
  font-size: 16px;
}

.modal a:hover {
  text-decoration: underline;
}

/* Иконки */
.icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.icon img {
  width: 60px;
  /* Размер иконок */
  height: auto;
  transition: transform 0.2s ease-in-out;
  margin-bottom: 1vh;
}

.icon:hover img {
  transform: scale(1.1);
  /* Увеличение при наведении */
}

/* Google Play */
.google-play img {
  filter: invert(28%) sepia(56%) saturate(446%) hue-rotate(118deg) brightness(85%) contrast(83%);
}

/* App Store */
.app-store img {
  filter: invert(24%) sepia(77%) saturate(749%) hue-rotate(189deg) brightness(89%) contrast(89%);
}

/* App Store */
.ruStore img {
  filter: sepia(100%) saturate(100%) brightness(100%) contrast(100%);
}


.comparison-section {
  margin: 40px 0;
  padding: 20px 0;
}

.comparison-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;

	transition-timing-function: linear !important;
  /* Чтобы слайды были одной высоты */
}


.comparison-card {
  width: 280px;
  height: 250px;
  background: #303030;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.comparison-card:hover {
  transform: translateY(-5px);
}

.card-header {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: #4a6bff;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 0 15px;
}

.card-header {
  background: #3a5bef;
}

.card-content {
  padding: 20px;
  color: white;
  font-weight: 300;
  margin: 15px 0;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .comparison-card {
    width: 85%;
  }

  .swiper {
    padding: 20px 10px;
  }
}

/* Стили для навигации */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: #4a6bff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: #4a6bff;
  opacity: 1;
}


/* Оплата */
.poll-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.poll-header {
  text-align: center;
  margin-bottom: 40px;
}

.header__title {
  font-size: 32px;
  color: #333;
}

/* Контейнер с карточками */
.subscription-plans {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Стили карточек */
.plan-card {
  width: 200px;
  height: 200px;
  background: #303030;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.plan-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.plan-card.active {
  transform: scale(1.1);
  border-color: var(--color-green);
  box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
}

.plan-content {
  text-align: center;
  width: 100%;
}

.plan-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--color-blue);
}

.price-period-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.plan-price {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-green);
  line-height: 1;
}

.plan-period {
  font-size: 16px;
  color: #aaa;
  line-height: 1;
}

/* Адаптация для маленьких экранов */
@media (max-width: 768px) {
  .plan-card {
    width: 160px;
    height: 160px;
    padding: 15px;
  }

  .plan-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .plan-price {
    font-size: 24px;
  }

  .plan-period {
    font-size: 14px;
  }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .plan-card {
    width: 140px;
    height: 140px;
    padding: 12px;
  }

  .plan-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .plan-price {
    font-size: 20px;
  }

  .plan-period {
    font-size: 12px;
  }

  .price-period-container {
    gap: 3px;
  }
}

/* Новые стили для цен */
.price-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.original-price {
  font-size: 16px;
  color: #aaa;
  position: relative;
}

.original-price::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #ff4444;
  transform: translateY(-50%) rotate(-5deg);
}

.plan-price {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-green);
  line-height: 1.2;
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4444;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .original-price {
    font-size: 14px;
  }

  .plan-price {
    font-size: 22px;
  }

  .discount-badge {
    font-size: 10px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .original-price {
    font-size: 12px;
  }

  .plan-price {
    font-size: 18px;
  }

  .discount-badge {
    padding: 2px 6px;
  }
}

/* Поле ввода никнейма */
.nickname-input-container {
  margin-top: 20px;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 10%;
  box-sizing: border-box;
  position: relative;
  /* Добавляем для позиционирования */
}

.nickname-input {
  width: 100%;
  max-width: 350px;
  padding: 12px 20px;
  background: #1E1E1E;
  border: 2px solid #ffffff;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.nickname-input::placeholder {
  color: #888;
}

.nickname-input.has-text {
  border-color: var(--color-green);
}
.error-message {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 5px auto;
  padding: 5px 20px;
  color: #ff4444;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: normal; /* Разрешаем перенос строк */
  word-wrap: break-word; /* Перенос длинных слов */
  line-height: 1.4; /* Увеличиваем межстрочный интервал */
}

.error-message.show {
  opacity: 1;
  max-height: 60px; /* Достаточно для 2-3 строк текста */
  padding: 8px 20px; /* Увеличиваем padding для многострочного текста */
}

.nickname-input.invalid {
  border-color: #ff4444;
  animation: shake 0.5s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}


/* Поле ввода почты */
.email-input-container {
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 10%;
  box-sizing: border-box;
  position: relative; 
  /* Добавляем для позиционирования */
}

.email-input {
  width: 100%;
  max-width: 350px;
  padding: 12px 20px;
  background: #1E1E1E;
  border: 2px solid #ffffff;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: #888;
}

.email-input.has-text {
  border-color: var(--color-green);
}



.email-input.invalid {
  border-color: #ff4444;
  animation: shake 0.5s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

/* Кнопка покупки */
.order-section {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
  padding: 0 10%;
  box-sizing: border-box;
}

.payment-button {
  background: var(--color-green);
  color: #1E1E1E;
  border: none;
  padding: 15px 40px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.payment-button:hover {
  background: var(--color-green-button-pressed);
}

.payment-button:active {
  background: var(--color-green-button-pressed);
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Стиль для неактивной кнопки */
.payment-button.disabled {
  background: #666 !important;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {

  .nickname-input-container,
  .order-section {
    padding: 0 5%;
  }

  .nickname-input {
    font-size: 14px;
    padding: 10px 15px;
  }

  .payment-button {
    font-size: 15px;
    padding: 12px 20px;
  }
}

/* Стили для сообщения благодарности */
#thankYouSection {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1E1E1E;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thank-you-container {
  background: #303030;
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  align-self: center;
  max-width: 500px;
}

.thank-you-logo {
  width: 100px;
  padding-bottom: 2rem;
}

.return-home {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 30px;
  background-color: var(--color-green);
  color: #303030 !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.2s ease;
  transform-origin: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.return-home:active {
  transform: scale(0.95);
  background-color: var(--color-green-button-pressed);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.return-home:hover {
  background-color: var(--color-green-button-pressed);
}

/* Оверлей загрузки */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid transparent;         /* прозрачный фон */
  border-top: 5px solid var(--color-green); /* вращающаяся часть */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
