/* Підключення шрифту */
@font-face {
    font-family: 'Rozetka';
    src: url('Rozetka.woff2') format('woff2'), url('Rozetka.woff') format('woff'), url('Rozetka.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* Кольори (Світла тема) */
:root { 
    --primary: #00a046; 
    --bg-color: #f8fafc; 
    --card-bg: #ffffff; 
    --text-main: #0f172a; 
    --text-muted: #64748b; 
    --border-color: #e2e8f0; 
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05); 
    --accent: #10b981; 
}

/* Кольори (Темна тема) */
body.dark-theme {
    --primary: #10b981; 
    --bg-color: #0f172a; 
    --card-bg: #1e293b; 
    --text-main: #f8fafc; 
    --text-muted: #94a3b8; 
    --border-color: #334155; 
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.4); 
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Rozetka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    margin: 0; padding: 0; 
    -webkit-user-select: none; user-select: none; 
}

.content, .service-main-desc { -webkit-user-select: text; user-select: text; }

/* Симетрична шапка */
header { position: fixed; top: 0; left: 0; width: 100%; height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 12px 0 12px; background-color: var(--primary); color: white; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 20px rgba(0, 160, 70, 0.2); border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; z-index: 1000; }
.header-left { flex: 1; display: flex; align-items: center; justify-content: flex-start; min-width: 0; }
.header-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.header-center { flex: 0 1 auto; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; white-space: nowrap; padding: 0 10px; }
.back-btn-header { background: none; border: none; color: white; font-size: 1.05rem; cursor: pointer; display: none; padding: 0; align-items: center; gap: 3px; font-weight: 500; font-family: inherit; }

/* Кнопка теми (ПК + Моб) */
.theme-toggle-btn { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); color: white; border-radius: 10px; width: 38px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; margin-left: 8px; transition: transform 0.2s, background 0.2s; padding: 0; flex-shrink: 0; }
.theme-toggle-btn:active { transform: scale(0.9); background: rgba(255, 255, 255, 0.25); }

@media (max-width: 768px) {
    .theme-toggle-btn { position: fixed; bottom: 25px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); box-shadow: 0 4px 15px rgba(0, 160, 70, 0.4); font-size: 1.5rem; z-index: 9999; margin: 0; border: 2px solid rgba(255, 255, 255, 0.3); }
    body.dark-theme .theme-toggle-btn { background: #1e293b; border-color: #334155; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }
}

/* Спливаючі повідомлення (Toasts) */
.toast-message { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%) translateY(100px); background: #1e293b; color: white; padding: 12px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; z-index: 9999; opacity: 0; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 10px 25px rgba(0,0,0,0.2); pointer-events: none; }
.toast-message.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* 🔥 Світловий акцент при кліку на картку */
.spotlight-active {
    box-shadow: 0 0 25px var(--primary) !important;
    transform: scale(0.96) !important;
    transition: all 0.15s ease !important;
    z-index: 10;
}
