* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { margin: 0; background: #f4f7f8; color: #333; font-size: 14px; }
.container { max-width: 600px; margin: 0 auto; padding: 0 15px; }

header { background: #82D5E8; color: white; padding: 15px 0; border-radius: 0 0 15px 15px; text-align: center; }
header h1 { margin: 0; font-size: 1.5rem; }
header p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

section.compact { padding: 20px 0; text-align: center; }
h3 { margin: 0 0 15px; font-size: 1.1rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }

/* Аккордеон */
.accordion { text-align: left; margin-bottom: 20px; }
.acc-item { background: white; border-radius: 12px; margin-bottom: 8px; border: 1px solid #eee; overflow: hidden; }
.acc-header { padding: 14px 15px; font-weight: bold; cursor: pointer; display: flex; align-items: center; background: white; }
.acc-header span { margin-right: 10px; font-size: 18px; }
.acc-content { max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: #666; padding: 0 15px; }
.acc-item.active .acc-content { max-height: 150px; padding: 5px 15px 15px; border-top: 1px solid #f9f9f9; }

/* Карточки цен */
.grid { display: grid; gap: 10px; margin-bottom: 10px; }
.grid.small { grid-template-columns: repeat(3, 1fr); }
.card { background: white; padding: 12px; border-radius: 12px; border: 1px solid #eee; font-size: 0.85rem; text-align: center; }
.card.price b { color: #82D5E8; display: block; font-size: 1rem; }
.card.price small { display: block; font-size: 0.7rem; color: #888; margin: 4px 0; }

/* Кнопки */
button { cursor: pointer; border: none; font-weight: bold; border-radius: 12px; transition: 0.2s; outline: none; }
.main-btn, .secondary-btn, .modal-submit-btn { width: 100%; padding: 14px; background: #82D5E8; color: white; font-size: 1rem; }

/* Модалки */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: white; width: 85%; max-width: 320px; padding: 20px; border-radius: 15px; position: relative; z-index: 1001; }
.modal-content input { width: 100%; padding: 10px; margin-bottom: 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #fcfcfc; outline: none; }

/* Ценник */
.modal-price-tag { background: #f0faff; color: #82D5E8; padding: 10px; border-radius: 10px; text-align: center; font-weight: bold; font-size: 1.1rem; margin-bottom: 15px; border: 1px dashed #82D5E8; }

/* Телефон */
.phone-wrapper { display: flex; align-items: center; background: #fcfcfc; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 8px; padding-left: 10px; position: relative; }
.input-rel-container { position: relative; flex-grow: 1; }
.phone-wrapper input { border: none !important; margin-bottom: 0 !important; background: transparent !important; }
.flag-icon { width: 20px; height: auto; padding-right: 5px; }
.phone-hint { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; }

/* Выбор тарифа в модалке */
.plan-selector { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.plan-option input { display: none; }
.plan-card { display: flex; align-items: center; padding: 10px; background: #fcfcfc; border: 1px solid #ddd; border-radius: 10px; cursor: pointer; }
.plan-emoji { font-size: 20px; margin-right: 12px; }
.plan-info b { display: block; font-size: 13px; }
.plan-info small { font-size: 10px; color: #888; }
.plan-option input:checked + .plan-card { border-color: #82D5E8; background: #f0faff; }

/* Чекбокс */
.custom-checkbox { display: flex; align-items: center; cursor: pointer; margin: 12px 0; font-size: 13px; }
.custom-checkbox input { display: none; }
.checkmark { width: 18px; height: 18px; border: 2px solid #82D5E8; border-radius: 5px; margin-right: 10px; position: relative; flex-shrink: 0; }
.custom-checkbox input:checked + .checkmark { background: #82D5E8; }
.checkmark:after { content: ""; position: absolute; display: none; left: 5px; top: 1px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked + .checkmark:after { display: block; }
.label-text b { color: #2ecc71; margin-left: 4px; }

/* Уведомление */
.status-msg { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 12px 25px; border-radius: 30px; z-index: 100000; font-size: 14px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); text-align: center; min-width: 250px; }

.close { position: absolute; right: 15px; top: 10px; font-size: 20px; color: #bbb; cursor: pointer; }
.hidden { display: none; }
footer { text-align: center; padding: 15px; color: #aaa; font-size: 0.8rem; }