
        * {
            box-sizing: border-box; /* Важно для правильных расчетов ширины */
            margin: 0;
            padding: 0;
        }

        html, body {
            margin: 0;
            font-family: 'Minecraft Rus', monospace;
            background: url('/img/background.png') center/cover no-repeat fixed;
            color: #b2b8cf;
            min-height: 100vh; /* Изменили height на min-height */
            width: 100vw;
            display: flex;
            flex-direction: column;
        }

        body {
            display: flex;
            flex-direction: column; /* Располагаем элементы вертикально */
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
            position: relative; /* Добавили */
        }

        nav {
            background: #1c1c1c;
            padding: 5px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 20px;
            width: 100%;
        }

        /* Новый контейнер для логотипа и текста */
        .logo-container {
            display: flex;
            align-items: center;
            gap: 30px; /* Расстояние между логотипом и текстом */
        }

        /* Увеличение логотипа */
        .logo-icon img {
            width: 60px; /* Увеличьте по необходимости */
            height: 60px;
        }

        /* Контейнер для текста лого */
        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-text .logo {
            font-size: 30px;
        }

        .logo-text .description {
            font-size: 25px;
        }


        .logo {
            color: #FF0048;
            margin: 0; /* Убираем отступы */
            line-height: 1; /* Уменьшаем межстрочный интервал */
        }

        .description {
            color: #b2b8cf;
            font-size: 18px; /* Можно уменьшить размер */
            margin: 0; /* Убираем отступы */
            line-height: 1.2;
        }

        .links a {
            color: #b2b8cf;
            text-decoration: none;
            margin-left: 25px;
            text-transform: lowercase;
        }

        nav .links a {
            color: #b2b8cf;
            text-decoration: none;
            margin-left: 25px;
            text-transform: lowercase;
        }

        .content {
            padding: 40px;
            gap: 30px;
            width: 100%;
            overflow-y: auto; /* Вертикальный скролл только для контента */
        }

        .npc-box {
            display: flex;
            background: rgba(0, 0, 0, 0.6);
            padding: 15px;
            border-radius: 6px;
            width: fit-content;
            position: relative;
        }

        .npc-image-container {
            position: relative; /* Для позиционирования рамки */
            margin-right: 20px;
        }

        .npc-box img {
            width: 230px;
            position: relative; /* Чтобы голова была поверх рамки */
            z-index: 2; /* Голова выше рамки */
        }

        .npc-frame {
            position: absolute;
            top: 495px;
            left: 50px;
            width: 220px;
            height: 220px;
            z-index: 1; /* Рамка под головой */
            object-fit: contain;
        }

        .npc-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-top: -30px;
            padding-left: 30px;
        }

        .npc-text .title {
            color: #ffe900;
            font-weight: bold;
            font-size: 35px;
            margin-bottom: 8px;
            margin-top: -20px;
        }

        #npc-greeting {
            font-size: 20px; /* Увеличиваем размер текста приветствия */
            line-height: 1.4; /* Добавляем межстрочный интервал */
        }

        .player-box {
            display: flex;
            margin-top: 30px;
            background: rgba(0, 0, 0, 0.6);
            padding: 15px;
            border-radius: 8px;
            width: fit-content;
            align-items: center;
        }

        .player-box img.head {
            width: 200px;
            margin-right: 20px;
            z-index: 2;
        }

        .player-info .group-img {
            vertical-align: middle;
            height: 18px;
            image-rendering: pixelated;
        }

        .npc-box, .player-box {
            background: rgba(0, 0, 0, 0.6);
            padding: 15px;
            border-radius: 6px;
            max-width: 100%; /* Чтобы не выходило за границы */
        }

        .shop {
            background: rgba(0, 0, 0, 0.6);
            padding: 15px;
            width: 100%;
        }

        .shop-title {
            color: #FF0048;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .products {
            display: flex;          /* Основное изменение - flex контейнер */
            flex-wrap: wrap;       /* Разрешаем перенос на новую строку */
            gap: 20px;             /* Отступ между элементами */
            justify-content: flex-start; /* Выравнивание по левому краю */
        }

        .product {
            background: #333;
            border: 2px solid #555;
            padding: 15px;
            text-align: center;
            flex: 0 0 auto; /* Убираем растягивание и сжатие */
            width: auto; /* Ширина по содержимому */
            width: 390px; /* Фиксированная ширина вместо min-width */
        }

        .product img {
            width: auto; /* Отключаем автоматическое масштабирование */
            height: 36px; /* Сохраняем пропорции */
            max-width: 100%; /* Не больше ширины контейнера */
            //max-height: 150px; /* Максимальная высота (настройте по своему вкусу) */
            image-rendering: pixelated;
            display: block;
            margin: 0 auto; /* Центрирование */
        }

        .product h3 {
            font-size: 16px;
            margin: 10px 0 5px;
            color: #fff;
        }

        .product p {
            font-size: 12px;
            margin: 0 0 10px;
            color: #b2b8cf;
        }

        .product select {
            width: 100%;
            margin: 10px 0;
            background: #222;
            color: #fff;
            border: 1px solid #444;
            padding: 5px;
        }

        .product button {
            background: #FF0048;
            color: #000;
            border: none;
            padding: 8px 15px;
            width: 100%;
            cursor: pointer;
            font-weight: bold;
            margin-top: 10px;
        }

        .product button:hover {
            background: #ff3366;
        }

        .cart {
            position: fixed;
            right: 20px;
            top: 80px;
            background: #222;
            padding: 10px;
            border: 2px solid #444;
            width: 200px;
        }

        .cart h4 {
            margin-top: 0;
            font-size: 14px;
        }

        .cart ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cart li {
            font-size: 12px;
            margin-bottom: 5px;
        }

        .checkout {
            margin-top: 10px;
            text-align: center;
        }

        .checkout button {
            background: #00ff90;
            color: #000;
            border: none;
            padding: 5px;
            cursor: pointer;
        }

        .footer {
            background: #1c1c1c;
            padding: 15px 30px;
            color: #b2b8cf;
            font-size: 16px;
            width: 100%;
            margin-top: auto; /* Это заставит футер прижаться к низу */
        }

        body {
            overflow-x: hidden;
        }
