@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 {
    margin-left: 10px;
    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; /* Отступ между изображением и текстом */
}

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

.title {
    margin: 20px 0;
	text-shadow: 0 0 16px rgba(255, 255, 255, 0.5); /* Мягкое свечение */
}

.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); /* 3 колонки с учетом отступов */
    box-sizing: border-box;
	color: white;
	box-shadow: 0 0 32px rgba(50, 50, 50, 1); /* Мягкое свечение */
}

.product img {
    max-width: 100%;
	border-radius: 8px;
	cursor: pointer;
}

.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; /* Мягкое свечение */
}

.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: 768px) {
    .product {
        width: calc(50% - 40px); /* 2 колонки при узком экране */
    }
}

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

a {
    text-decoration: none;
	cursor: pointer;
}

.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;
}

.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; /* Положение кнопки "следующий" */
}