@font-face {
    font-family: 'drukcyr';
    src: url('drukwidecyr-bold.ttf') format('truetype');
}

* {
    font-family: 'drukcyr', sans-serif;
	cursor: default;
	box-sizing: border-box;
}

body {
	font-size: 24px;
	margin: 0;
	padding: 0;
	background-image: url('back.jpg');
	background-size: contain; /* или contain, в зависимости от нужного эффекта */
	background-position: top center; /* изменено для начала от верха */
	background-repeat: no-repeat; /* добавлено, чтобы избежать повторения фона */
	background-color: #07060B;
	overflow-x: hidden; /* Добавлено, чтобы скрыть горизонтальную прокрутку */
}

.top-panel {
    position: fixed; /* Фиксированное положение */
    top: -120px; /* Скрыта по умолчанию */
    left: 0;
    right: 0;
    background-color: #fff;
    color: black;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: top 0.3s; /* Плавный переход */
    z-index: 1000; /* Высокий z-index, чтобы панель была поверх */
}

.show {
    top: 0; /* Появляется вверху */
}

#sell-button {
  	font-size: 11px;
    margin-left: 4px;
    padding: 8px 16px;
    background-color: #16c60c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu {
	max-width: 100%;
	height: 50px;
	background-color: #fff;
	margin: 0;
	position: relative;
    top: 0;
}

header {
    color: white;
    padding: 10px 20px;
    text-align: center;
	height: width: calc(33.33% - 40px); /* 3 колонки с учетом отступов */
}

.logotype {
	display: grid;
	place-items: center; /* Центрируем содержимое по горизонтали и вертикали */
}

.logo {
	background-image: url('logo.png');
	height: 60px;
	width: 60px;
	background-size: contain;
	background-repeat: no-repeat;
	border: none;
	outline: none;
}

.box {
	display: flex; /* Использование flexbox для выравнивания элементов */
    align-items: center; /* Вертикальное выравнивание по центру */
    justify-content: center; /* Горизонтальное выравнивание по центру */
    margin: 0 auto; /* Центрирует контейнер при наличии фиксированной ширины */
}

.image-container {
    display: flex; /* Использование flexbox для выравнивания элементов */
    align-items: center; /* Вертикальное выравнивание по центру */
    justify-content: center; /* Горизонтальное выравнивание по центру */
    margin: 0 auto; /* Центрирует контейнер при наличии фиксированной ширины */
	color: #007B24;
}

.image {
    width: 50px; /* Установите нужный размер изображения */
    height: auto; /* Сохраняет пропорции изображения */
    margin-right: 10px; /* Отступ между изображением и текстом */
}

.center {
  display: flex;
  justify-content: center; /* по горизонтали по центру */
  align-items: center;     /* по вертикали по центру */
  width: 100vw;            /* ширина на весь экран */
}

.logotype {
    width: 50px; /* Установите нужный размер изображения */
    height: auto; /* Сохраняет пропорции изображения */
    margin-right: 10px; /* Отступ между изображением и текстом */
}

.but {
    background: #fff;
    color: black; /* Цвет текста черный */
    border: none;
    padding: 12px 36px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px; /* Закругление углов */
    text-align: center; /* Выравнивание текста по центру */
	text-transform: uppercase;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5); /* Мягкое свечение */
	margin: 20px 8px
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product {
  background: rgb(50, 50, 50);
  border-radius: 12px;
  margin: 10px;
  padding: 15px;
  width: calc(33.33% - 40px); /* фикс ширина */
  height: 540px;  /* фиксированная высота для одинакового размера */
  box-sizing: border-box;
  color: white;
  box-shadow: 0 0 32px rgba(50, 50, 50, 1);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* кнопка прижата к низу */
}

.title {
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
  flex-shrink: 0; /* чтобы всегда оставался сверху */
  font-size: 18px;
  flex-shrink: 0;
  display: block;
  color: #fff;
  width: 100%;
}

.descript {
  flex-grow: 1; /* занимает всё место между заголовком и низом */
  overflow-y: auto; /* если текста много, добавится прокрутка */
  margin-bottom: 10px;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.product img.myImg {
  width: 100%;
  max-height: 160px;  /* контролируем размер картинки */
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.pay {
  background: linear-gradient(to bottom, #16c60c, #0a9e05);
  color: #d3ffd0;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 24px;
  text-transform: uppercase;
  width: 100%;
  height: 60px;
  border-radius: 16px;
  transition: background 0.3s, transform 0.1s;
  box-shadow: 0 0 16px #16c60c;
  flex-shrink: 0;
}

.pay:hover {
	background: linear-gradient(to bottom, #1fe20f, #0bbf07);
}

.add {
    background-color: white; /* Белый фон */
    color: black;            /* Черный текст */
    border: none;           /* Без границы */
    border-radius: 15px;   /* Закругленные углы */
    padding: 10px 20px;    /* Паддинг для удобства */
    position: fixed;        /* Фиксированное позиционирование */
    bottom: 20px;           /* Отступ от низа */
    left: 20px;             /* Отступ от левого края */
    cursor: pointer;        /* Указатель при наведении */
    box-shadow: 0 0 8px #fff; /* Мягкое свечение */
    font-size: 16px;
    z-index: 1000;         /* Значение z-index для размещения выше других элементов */
}

@media (max-width: 960px) {
    .product {
        width: calc(100% - 40px); /* 1 колонка при очень узком экране */
    }
}

.footer {
    background: #000;
    /* background-image: url('down.png'); */
    color: #fff;               /* Темный текст */
    text-align: center;        /* Центрируем текст */
    padding: 20px;            /* Паддинг */
    position: relative;        /* Позиционирование */
    bottom: 0;                 /* Прикрепим к низу */
    width: 100%;               /* Ширина на всю страницу */
    height: 240px;
}

.footer p {
    margin: 0;                 /* Убираем отступы для параграфа */
    font-size: 14px;           /* Размер шрифта */
}

/* СТИЛЬ ГАЛЕРЕИ */

.gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.item {
    text-align: center;
    margin: 10px;
}

.myImg:hover {
    opacity: 1.3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block; /* Блок для корректного отображения */
    width: 95%; /* Ширина 80% */
    max-width: 100%; /* Максимальная ширина 100% */
    max-height: 95%; /* Максимальная высота 90% */
    position: absolute; /* Абсолютное позиционирование */
    top: 50%; /* Сдвинуть вниз на 50% высоты окна */
    left: 50%; /* Сдвинуть вправо на 50% ширины окна */
    transform: translate(-50%, -50%); /* Центрируем по горизонтали и вертикали */
    object-fit: contain; /* Сохраняет пропорции изображения, ограничивая его в рамках контейнера */
}

.close {
    position: absolute;
    top: 0px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 54px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 60px; /* Ширина кнопки */
    height: 480px; /* Высота кнопки */
    display: flex; /* Используем Flexbox */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    font-size: 54px;
    transition: 0.6s ease;
    border-radius: 20px; /* Сделаем кнопки с закругленными углами */
    transform: translateY(-50%); /* Центрируем по вертикали */
}

.prev {
    left: 0px; /* Положение кнопки "предыдущий" */
}

.next {
    right: 0px; /* Положение кнопки "следующий" */
}

/* Стили для затемнённого фона */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Скрываем по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 999;
}
/* Стили для модального окна */
.win {
  	box-shadow: 0 0 16px rgba(255, 255, 255, 0.5); /* Мягкое свечение */
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
	height: 480px;
    width: 360px;
 	color: black;
    flex-direction: column;
  	gap: 10px; /* отступы между кнопками (альтернатива margin) */
  	position: relative; /* обязательно */
}
/* Кнопка закрытия */
.closeBtn {
  	position: absolute;
    top: -8px;
    right: 0;
  	height: 12px;
    width: 40px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: transparent;
}

.button-vertical {
    display: block;           /* кнопка занимает всю ширину родителя */
    width: 100%;             /* ширина 100% */
    height: 60px;            /* высота 60 пикселей */
    border-radius: 16px;     /* скругление 16 пикселей */
    margin-bottom: 10px;     /* небольшой отступ между кнопками */
    box-sizing: border-box;  /* учитываем padding и border в ширине */
  	align-items: center;
 	justify-content: center;
  	gap: 8px; /* расстояние между иконкой и текстом */
  	border: none;
}

#pay_win {
	text-align: center;
  	height: 380px;
  	width: 320px;
  	color: black;
  	background-color: #fff;
  	flex-direction: column;
  	gap: 10px;
  	position: absolute;
  	top: 78px; /* отступ сверху */
  	left: 50%; /* центр по горизонтали */
  	transform: translateX(-50%); /* точное центрирование */
  	z-index: 1000; /* поверх других элементов */
  	display: flex; /* если необходимо использовать flex */
}

.code_copy {
  	margin-left: 10px;
    padding: 8px 16px;
    background-color: #999;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.reviews {
  background: rgb(50, 50, 50);
  border-radius: 12px;
  margin: 10px;
  padding: 15px;
  width: calc(100% - 40px);
  height: 360px;
  box-sizing: border-box;
  color: white;
  box-shadow: 0 0 32px rgba(50, 50, 50, 1);
  font-size: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #333;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 15px 20px;
  transition: background 0.3s ease;
}

.review-card b {
  font-size: 18px;
  color: #ffd700; /* золотой цвет для имен */
}

.review-card p {
  margin: 8px 0 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: #ddd;
}

.review-card.info {
  text-align: center;
  color: #bbb;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

/* Стили для scrollbars для Webkit-браузеров */
.reviews::-webkit-scrollbar {
  width: 8px;
}

.reviews::-webkit-scrollbar-track {
  background: #333;
  border-radius: 10px;
}

.reviews::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 2px solid #333;
}