@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent: #1d1d1f;
    --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 90px; /* Отступ под нижнюю панель навигации */
}

a { text-decoration: none; color: inherit; }

/* Скрываем старую шапку на мобилках, так как теперь есть нижнее меню */
@media (max-width: 768px) {
    header { display: none !important; }
}

/* Кнопки */
.btn {
    display: inline-block; padding: 14px 28px; border-radius: 14px;
    font-weight: 700; text-align: center; cursor: pointer; transition: 0.3s;
    border: none; font-size: 15px; font-family: inherit;
}
.btn-primary { background-color: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Карточки */
.card {
    background: var(--card-bg); border-radius: var(--radius); padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin-bottom: 20px;
}

/* === НОВЫЕ СТИЛИ ДЛЯ PWA === */

/* Нижняя панель навигации (Bottom Nav) */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; justify-content: space-around; align-items: center;
    padding: 12px 0 25px; /* 25px снизу для зоны "челки" на iPhone */
    border-top: 1px solid rgba(0,0,0,0.05); z-index: 9999;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: #86868b; font-size: 10px; font-weight: 700; text-decoration: none;
    transition: 0.3s; flex: 1;
}
.nav-item i { font-size: 22px; margin-bottom: 4px; }
.nav-item.active { color: #1d1d1f; }

/* Прайс-гармошка (Аккордеон) */
.accordion-item {
    background: #fff; border-radius: 20px; margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); overflow: hidden;
}
.accordion-header {
    width: 100%; padding: 20px; border: none; background: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: inherit; font-size: 18px; font-weight: 800;
    color: var(--text-main); outline: none;
}
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out;
    background: #fafafa;
}
.accordion-content.active { max-height: 800px; }
.price-row {
    display: flex; justify-content: space-between; padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03); font-size: 15px;
}
.price-row:last-child { border-bottom: none; }
.price-name { font-weight: 500; color: #424245; }
.price-val { font-weight: 800; color: var(--accent); }

/* Модальные окна (Магазин и Запись) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 10000;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: #fff; padding: 30px; border-radius: 30px; width: 90%; max-width: 400px;
    transform: translateY(50px); transition: 0.3s; text-align: center;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content input {
    width: 100%; padding: 15px; border-radius: 14px; border: 1px solid #eee;
    margin-bottom: 15px; font-family: inherit; outline: none;
}