body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f0f2f5;
    overscroll-behavior-y: contain; /* Отключает системное обновление страницы свайпом */
    -webkit-tap-highlight-color: transparent; /* Убирает синюю вспышку при клике на кнопки в iOS */
    user-select: none; /* Запрещает выделение текста (кроме полей ввода), как в приложении */
}

/* Меню */

:root {
    --nav-bg: #ffffff;
    --nav-active: #2196F3;
    --nav-text: #757575;
}

body {
    padding-bottom: 70px; /* Отступ под высоту меню */
    margin: 0;
    background-color: #f8f9fa;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    /* Учет "челки" снизу на новых iPhone */
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--nav-text);
    flex: 1;
    transition: 0.2s;
}

.nav-item.active {
    color: var(--nav-active);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Эффект нажатия */
.nav-item:active {
    transform: scale(0.9);
    opacity: 0.7;
}

/* Скрываем меню на больших экранах (десктопе) */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}
button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
button:disabled {
    background: #ccc;
}
#install-btn {
    display: none; /* Скрыта по умолчанию */
    background: #4CAF50;
    color: white;
    margin-top: 10px;
}
#ios-install-banner {
    position: fixed;
    top: 10px; /* Было bottom: 20px */
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* Тень смещена вниз */
    z-index: 9999;
    font-family: -apple-system, system-ui, sans-serif;
    /* Учет безопасной зоны сверху (для челки/островка на iPhone) */
    padding-top: calc(10px + env(safe-area-inset-top));
}
.ios-content {
    text-align: center;
}
.ios-content img {
    vertical-align: middle;
}
#ios-install-banner button {
    margin-top: 15px;
    width: 100%;
    background: #f1f1f1; /* Сделаем кнопку закрытия чуть нейтральнее */
    color: #007AFF;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
}
