html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    overflow: hidden;
    font-family: Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent; /* Полностью убирает синюю рамку клика на мобилках */
}

.logo {
    color: #FFFFFF;
    font-size: 26px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
}

.page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 170px);
    padding: 20px 30px;
    box-sizing: border-box;
    display: none;
}

.page-content.active-page {
    display: block;
}

.header-title {
    color: #FFCC00;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    text-transform: uppercase;
}

.text-body {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-text {
    color: #FFCC00;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    max-width: 90%;
}

.sub-title {
    color: #FFCC00;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    text-transform: uppercase;
}

/* --- АДАПТИВНЫЙ КОНТЕЙНЕР ПРОКРУТКИ --- */
.catalog-scroll {
    margin-top: 40px;
    height: calc(100% - 120px);
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch; /* Плавный скролл пальцем на iPhone */
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 60px; /* Отступ между блоками */
}

.catalog-scroll::-webkit-scrollbar {
    width: 6px;
}
.catalog-scroll::-webkit-scrollbar-thumb {
    background-color: #FFCC00;
    border-radius: 3px;
}

/* --- АДАПТИВНАЯ ШИРОКАЯ КАРТОЧКА --- */
.product-card {
    background-color: #FFCC00;
    width: 100%; /* Занимает всю ширину экрана */
    max-width: 600px; /* Но не становится шире 600px на ПК */
    height: auto; /* Высота подстраивается под текст на мобилках */
    min-height: 160px;
    padding: 20px 25px;
    box-sizing: border-box;
    position: relative;
    color: #000000;
    flex-shrink: 0;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.2;
    width: 60%; /* Освобождаем место справа под кнопки */
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.product-qty {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.card-actions {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column; /* На смартфонах ссылки встанут друг под друга, если мало места */
    align-items: flex-end;
    gap: 15px;
    font-size: 16px;
    font-weight: bold;
}

.action-link {
    color: #FFFFFF;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

/* --- АДАПТИВНОЕ НИЖНЕЕ МЕНЮ --- */
.bottom-menu {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 130px;
    background-color: #000000;
    display: flex;
    justify-content: space-around; /* Равномерно распределяем кнопки по ширине экрана */
    align-items: flex-end;
    padding-bottom: 20px;
    box-sizing: border-box;
    z-index: 10;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex: 1;
}

/* Иконки сжимаются на маленьких экранах, чтобы не вылезать за пределы */
.home-icon { width: 100%; max-width: 90px; height: 80px; margin-bottom: 8px; }
.doc-icon  { width: 100%; max-width: 60px; height: 80px; margin-bottom: 8px; }
.cart-icon { width: 100%; max-width: 85px; height: 80px; margin-bottom: 8px; }
.pay-icon  { width: 100%; max-width: 110px; height: 80px; margin-bottom: 8px; }

.menu-label {
    font-size: 14px; /* Оптимальный размер шрифта для мобильных подписей */
    font-weight: bold;
    text-transform: lowercase;
    text-align: center;
    white-space: nowrap;
}

.menu-item .dark-element  { fill: #7A7A7A; stroke: #7A7A7A; }
.menu-item .light-element { fill: #E0E0E0; stroke: #E0E0E0; }
.menu-item .menu-label    { color: #7A7A7A; }

.menu-item.active .dark-element  { fill: #FFCC00; stroke: #FFCC00; }
.menu-item.active .light-element { fill: #FFEAA7; stroke: #FFEAA7; }
.menu-item.active .menu-label    { color: #FFCC00; }

/* --- МЕДИА-ЗАПРОСЫ ДЛЯ БОЛЬШИХ ЭКРАНОВ (ПК) --- */
@media (min-width: 768px) {
    .bottom-menu {
        left: 30px;
        bottom: 30px;
        width: auto;
        justify-content: flex-start;
        gap: 60px;
        background: transparent;
    }
    .menu-item { flex: none; }
    .home-icon { max-width: 110px; height: 100px; }
    .doc-icon  { max-width: 75px;  height: 100px; }
    .cart-icon { max-width: 105px; height: 100px; }
    .pay-icon  { max-width: 135px; height: 100px; }
    .menu-label { font-size: 22px; }
    .card-actions { flex-direction: row; }
}

