:root {
    --primary: #4a90e2;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --border: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0; padding: 0;
    background-color: #fff;
    display: flex; justify-content: center;
}

.app-container {
    width: 100%; max-width: 500px;
    background: #fff; min-height: 80vh;
    //border-radius: 16px;
    //box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex; flex-direction: column;
    overflow: hidden; position: relative;
}

.app-header {
    background: var(--dark); color: #fff;
    padding: 15px; display: flex;
    justify-content: space-between; align-items: center;
    position: sticky; 
    top: 0; z-index: 10;
}

.app-header h1 { font-size: 1.2rem; margin: 0; flex-grow: 1; text-align: center; }

.btn {
    background: var(--primary); color: white;
    border: none; padding: 8px 12px;
    border-radius: 8px; cursor: pointer; font-weight: 600;
}

.btn.hidden { display: none; }

.search-box { padding: 15px; border-bottom: 1px solid var(--border); }

.search-box input {
    width: 100%; padding: 12px;
    box-sizing: border-box; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem; outline: none;
}

.screen-content { flex-grow: 1; padding: 15px; }

/* Элементы переходов */
.list-item {
    background: var(--light); margin-bottom: 10px;
    padding: 15px; border-radius: 10px;
    cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    transition: transform 0.2s;
}

.list-item:hover { transform: translateY(-2px); }
.list-item::after { content: '→'; color: #999; }

/* Стили услуг */
.service-item {
    background: #fff; border: 1px solid var(--border);
    margin-bottom: 10px; padding: 15px;
    border-radius: 10px; display: flex;
    justify-content: space-between; align-items: center;
}

.service-item::after { content: none; }
.service-info { display: flex; flex-direction: column; }
.service-title { font-weight: 600; margin-bottom: 4px; }
.service-price { color: var(--primary); font-weight: bold; }

/* Кнопка добавления */
.add-btn {
    background: #2ecc71; color: white;
    border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}

/* Модальное окно */
.modal {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex;
    justify-content: center; align-items: flex-end; z-index: 20;
}

.modal.hidden { display: none; }

.modal-content {
    background: #fff; width: 100%;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
    padding: 20px; box-sizing: border-box;
    max-height: 70%; overflow-y: auto;
}

.modal-header {
    display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; }
.cart-items { margin: 15px 0; }

.cart-item {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
}

.cart-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.btn-order { background: #2ecc71; }

.cart-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-clear {
    background-color: #ff4d4d;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-clear:hover {
    background-color: #cc0000;
}

.btn-order {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-order:hover {
    background-color: #218838;
}

