/* ============================================================
   ناروِلا — Salon SaaS theme (ported 1:1 from docs/index-demo.html)
   Design tokens + components. RTL / Vazirmatn.
   ============================================================ */

/* 1. Theme Tokens */
:root{
    --primary:#c76b85; --primary-600:#ac5271; --primary-100:#fbeef2; --primary-50:#fdf7f9;
    --gold:#d4af7a;
    --bg:#f6f3f5; --surface:#ffffff; --ink:#2c2432; --ink-soft:#5b5262; --muted:#8a8194; --border:#eee6eb;
    --sidebar:#241c2e; --sidebar-2:#191320;
    --success:#1f9d63; --success-bg:#e7f6ee;
    --warning:#c98a1e; --warning-bg:#fdf3e3;
    --info:#3b74d1;    --info-bg:#eaf1fd;
    --danger:#d14545;  --danger-bg:#fdecec;
    --r-sm:12px; --r:18px; --r-lg:24px;
    --shadow-sm:0 2px 8px rgba(44,36,50,.05);
    --shadow:0 10px 30px rgba(44,36,50,.07);
    --shadow-lg:0 20px 50px rgba(44,36,50,.14);
}

/* 2. Base */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
    font-family:'Vazirmatn', system-ui, sans-serif;
    background:
        radial-gradient(900px 500px at 100% -10%, #fbeef2 0%, transparent 60%),
        radial-gradient(700px 400px at -10% 110%, #f0e9f5 0%, transparent 60%),
        var(--bg);
    color:var(--ink); font-size:14px; line-height:1.7;
    -webkit-font-smoothing:antialiased; min-height:100vh;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
svg{ display:block; }
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:#d9cfd8; border-radius:99px; border:2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background:var(--primary); }

/* 3. Layout */
.app{ display:flex; gap:18px; padding:18px; min-height:100vh; }
.main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:18px; }

/* 4. Sidebar */
.sidebar{
    width:266px; flex-shrink:0; position:sticky; top:18px; height:calc(100vh - 36px);
    border-radius:var(--r-lg);
    background:linear-gradient(170deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
    color:#cfc6d8; display:flex; flex-direction:column; padding:22px 14px 16px;
    overflow-y:auto; box-shadow:var(--shadow-lg); z-index:60; transition:transform .3s ease;
}
.sidebar::-webkit-scrollbar{ width:0; }
.brand{ display:flex; align-items:center; gap:11px; padding:0 10px 22px; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:18px; }
.brand-mark{ width:42px; height:42px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg, var(--primary), var(--gold)); color:#fff; box-shadow:0 8px 20px rgba(199,107,133,.4); flex-shrink:0; }
.brand-mark svg{ width:22px; height:22px; }
.brand-text b{ display:block; color:#fff; font-size:15px; font-weight:700; letter-spacing:.2px; }
.brand-text span{ font-size:11px; color:#8d84a0; }
.nav-group{ margin-bottom:20px; }
.nav-title{ font-size:11px; font-weight:600; color:#6f6683; padding:0 12px 8px; letter-spacing:.5px; }
.nav-item{ display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:13px; color:#b7aec6; font-size:13.5px; font-weight:500; margin-bottom:3px; transition:background .2s, color .2s, transform .2s; position:relative; }
.nav-item svg{ width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.nav-item:hover{ background:rgba(255,255,255,.06); color:#fff; }
.nav-item.active{ background:linear-gradient(135deg, var(--primary) 0%, #d888a1 100%); color:#fff; font-weight:600; box-shadow:0 10px 22px rgba(199,107,133,.35); }
.nav-item.active::before{ content:""; position:absolute; right:-14px; top:50%; transform:translateY(-50%); width:4px; height:22px; border-radius:99px; background:var(--gold); }
.nav-badge{ margin-inline-start:auto; background:rgba(255,255,255,.14); color:#fff; font-size:11px; font-weight:700; padding:1px 8px; border-radius:99px; }
.nav-item.active .nav-badge{ background:rgba(255,255,255,.28); }
.sidebar-footer{ margin-top:auto; padding-top:16px; border-top:1px solid rgba(255,255,255,.07); }
.user-card{ display:flex; align-items:center; gap:10px; padding:10px; border-radius:14px; background:rgba(255,255,255,.05); cursor:pointer; transition:background .2s; }
.user-card:hover{ background:rgba(255,255,255,.09); }
.user-card .avatar{ width:36px; height:36px; font-size:13px; border:2px solid rgba(255,255,255,.15); }
.user-card b{ display:block; color:#fff; font-size:12.5px; font-weight:600; }
.user-card span{ font-size:11px; color:#8d84a0; }
.user-card .logout{ margin-inline-start:auto; color:#8d84a0; display:grid; place-items:center; }
.user-card .logout svg{ width:17px; height:17px; stroke:currentColor; fill:none; stroke-width:1.8; }

/* Bottom-sheet affordances — hidden on desktop, revealed in the mobile sheet (see §13). */
.sheet-bar{ display:none; position:relative; justify-content:center; align-items:center; padding:10px 0 4px; }
.sheet-grabber{ width:44px; height:5px; border-radius:99px; background:rgba(255,255,255,.28); }
.sheet-close{ position:absolute; inset-inline-end:0; top:6px; width:34px; height:34px; border-radius:10px; border:none; background:rgba(255,255,255,.08); color:#cfc6d8; display:grid; place-items:center; cursor:pointer; }
.sheet-close svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
.mobile-actions{ display:none; }
.sheet-quick{ display:none; }
.sheet-tile{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:12px 6px; border-radius:14px; background:rgba(255,255,255,.06); color:#cfc6d8; font-size:11.5px; font-weight:600; text-align:center; transition:background .2s, color .2s; }
.sheet-tile svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sheet-tile span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.sheet-tile:hover{ background:rgba(255,255,255,.12); color:#fff; }
.sheet-tile.active{ background:linear-gradient(135deg, var(--primary) 0%, #d888a1 100%); color:#fff; box-shadow:0 8px 18px rgba(199,107,133,.3); }

/* 5. Topbar */
.topbar{ background:var(--surface); border-radius:var(--r); padding:13px 20px; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow-sm); border:1px solid var(--border); }
.menu-btn{ display:none; width:40px; height:40px; border-radius:12px; border:none; background:var(--primary-100); color:var(--primary-600); cursor:pointer; place-items:center; }
.menu-btn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
.page-title h1{ margin:0; font-size:17px; font-weight:700; letter-spacing:-.2px; }
.page-title p{ margin:0; font-size:12px; color:var(--muted); }
.topbar .page-title{ flex:1 1 auto; min-width:0; }
.topbar .page-title ~ .btn, .topbar .page-title ~ a{ margin-inline-start:auto; flex-shrink:0; white-space:nowrap; }
.search{ margin-inline-start:auto; position:relative; display:flex; align-items:center; }
.search svg{ position:absolute; inset-inline-start:14px; width:17px; height:17px; stroke:var(--muted); fill:none; stroke-width:1.9; stroke-linecap:round; pointer-events:none; }
.search input{ width:250px; padding:10px 42px 10px 16px; border-radius:13px; border:1.5px solid var(--border); background:#fbf9fb; font-family:inherit; font-size:13px; color:var(--ink); outline:none; transition:.2s; }
.search input::placeholder{ color:#b3aab9; }
.search input:focus{ border-color:var(--primary); background:#fff; box-shadow:0 0 0 4px rgba(199,107,133,.12); }
.icon-btn{ width:40px; height:40px; border-radius:12px; border:1.5px solid var(--border); background:#fbf9fb; color:var(--ink-soft); display:grid; place-items:center; cursor:pointer; position:relative; transition:.2s; flex-shrink:0; }
.icon-btn:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.icon-btn svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.icon-btn .dot{ position:absolute; top:9px; inset-inline-end:10px; width:7px; height:7px; border-radius:50%; background:var(--primary); border:2px solid #fff; box-sizing:content-box; }
a.icon-btn{ text-decoration:none; }
.notif-badge{ position:absolute; top:5px; inset-inline-end:5px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; background:var(--primary); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; border:2px solid #fff; box-sizing:border-box; }

/* 5b. Global app header — the fixed account-chrome bar (menu, search, mini-site link,
   bell, profile, logout). It is identical on every screen and pinned to the top, so a
   page control can never be mistaken for a global one (the admin panel keeps .topbar). */
.app-header{ position:sticky; top:0; z-index:55; background:var(--surface); border-radius:var(--r); padding:12px 20px; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow); border:1px solid var(--border); }
.header-brand{ display:none; min-width:0; }
.header-brand-name{ display:block; font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-actions{ margin-inline-start:auto; display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* 5c. Page head — the page title plus this page's own actions. Rendered inside
   .content (not the header) so it scrolls with the page and belongs to the screen. */
.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.page-head .page-title{ flex:1 1 auto; min-width:0; }
.page-head .page-title h1{ margin:0; font-size:19px; font-weight:800; letter-spacing:-.2px; }
.page-head .page-title p{ margin:4px 0 0; font-size:12.5px; color:var(--muted); }
.page-head .page-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.page-head .page-actions:empty{ display:none; }

/* 5d. Segmented calendar / list switch — both halves always visible with icon + label. */
.view-toggle{ display:inline-flex; gap:4px; padding:4px; background:var(--primary-50); border:1px solid var(--border); border-radius:14px; }
.view-toggle-item{ display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:10px; font-size:12.5px; font-weight:600; color:var(--ink-soft); transition:background .2s, color .2s; white-space:nowrap; }
.view-toggle-item svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.view-toggle-item:hover{ color:var(--primary); }
.view-toggle-item.is-active{ background:var(--surface); color:var(--primary-600); box-shadow:var(--shadow-sm); cursor:default; }

/* 6. Cards & grid */
.content{ display:flex; flex-direction:column; gap:18px; padding-bottom:8px; }
.stats-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.stats-grid--3{ grid-template-columns:repeat(3, 1fr); }
/* Two-up strip (specialist expectations, network counters). */
.stats-grid--2{ grid-template-columns:repeat(2, 1fr); }
/* Even 3-column row (totals strips, compact toolbars). */
.grid-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.card{ background:var(--surface); border-radius:var(--r); border:1px solid var(--border); box-shadow:var(--shadow-sm); padding:20px; }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.card-head h2{ margin:0; font-size:15px; font-weight:700; }
.card-head p{ margin:0; font-size:12px; color:var(--muted); }
.stat{ display:flex; align-items:flex-start; gap:14px; transition:transform .25s, box-shadow .25s; }
.stat:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.stat-icon{ width:48px; height:48px; border-radius:15px; display:grid; place-items:center; flex-shrink:0; }
.stat-icon svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.stat-icon.rose{ background:var(--primary-100); color:var(--primary-600); }
.stat-icon.gold{ background:#fbf2e3; color:#b8893f; }
.stat-icon.green{ background:var(--success-bg); color:var(--success); }
.stat-icon.blue{ background:var(--info-bg); color:var(--info); }
.stat-body{ min-width:0; }
.stat-body .label{ font-size:12.5px; color:var(--muted); margin-bottom:2px; }
.stat-body .value{ font-size:23px; font-weight:800; letter-spacing:-.5px; line-height:1.3; }
.stat-body .value small{ font-size:12px; font-weight:500; color:var(--muted); margin-inline-start:3px; }
.trend{ display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:700; padding:2px 9px; border-radius:99px; margin-top:6px; }
.trend.up{ background:var(--success-bg); color:var(--success); }
.trend.down{ background:var(--danger-bg); color:var(--danger); }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:stretch; }
/* Wide/narrow split — only the dashboard's chart + status card wants this; forms use the even default. */
.grid-2--split{ grid-template-columns:1.75fr 1fr; }

/* 7. Bar chart */
.chart{ display:flex; gap:12px; height:210px; margin-top:6px; }
.chart-col{ flex:1; display:flex; flex-direction:column; gap:10px; align-items:center; min-width:0; }
.chart-track{ width:100%; flex:1; background:#f8f4f6; border-radius:11px; position:relative; overflow:hidden; }
.chart-bar{ position:absolute; inset-inline:0; bottom:0; border-radius:11px; background:linear-gradient(180deg, #e8a6b9 0%, var(--primary) 100%); transition:height .9s cubic-bezier(.22,1,.36,1); }
.chart-col:hover .chart-bar{ background:linear-gradient(180deg, var(--gold) 0%, #c79a5e 100%); }
.chart-label{ font-size:11.5px; color:var(--muted); white-space:nowrap; }

/* 8. Progress / goals */
.goal{ margin-bottom:18px; }
.goal:last-child{ margin-bottom:0; }
.goal-top{ display:flex; justify-content:space-between; align-items:center; font-size:13px; margin-bottom:7px; }
.goal-top span{ color:var(--ink-soft); font-weight:500; }
.goal-top b{ font-weight:700; font-size:12.5px; }
.progress{ height:9px; border-radius:99px; background:#f2ecf0; overflow:hidden; }
.progress > i{ display:block; height:100%; border-radius:99px; transition:width 1s cubic-bezier(.22,1,.36,1); }
.progress > i.rose{ background:linear-gradient(90deg, var(--primary), #e8a6b9); }
.progress > i.gold{ background:linear-gradient(90deg, #c79a5e, var(--gold)); }
.progress > i.green{ background:linear-gradient(90deg, #1f9d63, #4fc38a); }

/* 9. Table */
.table-wrap{ overflow-x:auto; margin:0 -20px; padding:0 20px; }
table{ width:100%; border-collapse:collapse; min-width:640px; }
thead th{ text-align:right; font-size:12px; font-weight:600; color:var(--muted); padding:0 14px 12px; border-bottom:1px solid var(--border); white-space:nowrap; }
tbody td{ padding:14px; border-bottom:1px solid #f6f1f4; font-size:13.5px; vertical-align:middle; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr{ transition:background .18s; }
tbody tr:hover{ background:var(--primary-50); }
.cell-user{ display:flex; align-items:center; gap:10px; }
.cell-user b{ display:block; font-weight:600; font-size:13.5px; }
.cell-user span{ font-size:11.5px; color:var(--muted); }
.avatar{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; font-size:12.5px; font-weight:700; color:#fff; background:linear-gradient(135deg, var(--primary), var(--gold)); flex-shrink:0; letter-spacing:.3px; }
.avatar.alt-1{ background:linear-gradient(135deg, #7d6bb0, #b39ddb); }
.avatar.alt-2{ background:linear-gradient(135deg, #3f9d8f, #7fd1c4); }
.avatar.alt-3{ background:linear-gradient(135deg, #c98a1e, #e8c07a); }
.badge{ display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:99px; font-size:11.5px; font-weight:700; white-space:nowrap; }
.badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge.success{ background:var(--success-bg); color:var(--success); }
.badge.warning{ background:var(--warning-bg); color:var(--warning); }
.badge.info{ background:var(--info-bg); color:var(--info); }
.badge.danger{ background:var(--danger-bg); color:var(--danger); }
.badge.plain{ background:#f4eff3; color:var(--muted); }

/* 10. UI elements */
.ui-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:18px; }
.ui-box h3{ margin:0 0 14px; font-size:13px; font-weight:700; color:var(--ink-soft); display:flex; align-items:center; gap:7px; }
.ui-box h3::before{ content:""; width:4px; height:15px; border-radius:99px; background:var(--primary); }
.row{ display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:11px 20px; border-radius:12px; border:none; font-size:13.5px; font-weight:600; cursor:pointer; transition:transform .18s, box-shadow .18s, background .18s; white-space:nowrap; }
.btn svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.btn:active{ transform:scale(.97); }
.btn-primary{ background:linear-gradient(135deg, var(--primary), #e091a8); color:#fff; box-shadow:0 8px 18px rgba(199,107,133,.3); }
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 12px 26px rgba(199,107,133,.4); }
.btn-ghost{ background:var(--primary-100); color:var(--primary-600); }
.btn-ghost:hover{ background:#f7dfe6; }
.btn-outline{ background:transparent; border:1.5px solid var(--border); color:var(--ink-soft); }
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.btn-dark{ background:linear-gradient(135deg, #362b42, #241c2e); color:#fff; box-shadow:0 8px 18px rgba(44,36,50,.25); }
.btn-dark:hover{ transform:translateY(-1px); }
.btn-sm{ padding:8px 14px; font-size:12.5px; border-radius:10px; }
.btn-sm svg{ width:14px; height:14px; }
.btn-block{ width:100%; }
.field{ display:block; margin-bottom:14px; }
.field:last-child{ margin-bottom:0; }
.field label{ display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:6px; }
/* Some views use <label class="field"><span>caption</span>…</label>; treat that caption like a label. */
.field > span{ display:block; font-size:12.5px; font-weight:600; color:var(--ink-soft); margin-bottom:6px; }
.field input, .field select, .field textarea{ width:100%; padding:11px 14px; border-radius:12px; border:1.5px solid var(--border); background:#fbf9fb; font-family:inherit; font-size:13px; color:var(--ink); outline:none; transition:.2s; }
.field textarea{ resize:vertical; min-height:84px; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--primary); background:#fff; box-shadow:0 0 0 4px rgba(199,107,133,.12); }
.field input::placeholder, .field textarea::placeholder{ color:#b8afbe; }
.field select{ -webkit-appearance:none; appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8194' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat:no-repeat; background-position:left 12px center; padding-inline-end:34px;
}
.field .error{ color:var(--danger); font-size:12px; margin-top:5px; display:block; }
/* Required-field marker: a red star in front of the caption, driven automatically by
   the `required` attribute on the field's control so the markup and the UI never drift. */
.field:has(:is(input, select, textarea)[required]) > label::before,
.field:has(:is(input, select, textarea)[required]) > span::before{
    content:'*'; color:var(--danger); font-weight:700; margin-inline-end:4px; line-height:1;
}
/* Optional disclosure: a collapsible section for fields that are not always relevant
   (e.g. a specialist's fixed working hours), so they stay out of the way by default. */
.collapse{ border:1px solid var(--border); border-radius:12px; background:#fbf9fb; margin-bottom:14px; }
.collapse > summary{ list-style:none; cursor:pointer; padding:12px 14px; font-size:13px; font-weight:600; color:var(--ink-soft); display:flex; align-items:center; gap:8px; }
.collapse > summary::-webkit-details-marker{ display:none; }
.collapse > summary::before{ content:'+'; display:inline-grid; place-items:center; width:20px; height:20px; flex-shrink:0; border-radius:6px; background:#fff; border:1px solid var(--border); color:var(--primary); font-weight:700; }
.collapse[open] > summary::before{ content:'\2212'; }
.collapse > summary .collapse-hint{ margin-inline-start:auto; font-weight:500; font-size:11.5px; color:var(--muted); }
.collapse-body{ padding:4px 14px 14px; border-top:1px solid var(--border); }
.switch{ display:inline-flex; align-items:center; gap:10px; cursor:pointer; font-size:13px; color:var(--ink-soft); user-select:none; }
.switch input{ display:none; }
/* A switch nested inside a .field group (e.g. the privacy toggles on the specialist
   profile) must not inherit the block-label / full-width-box rules above; these
   higher-specificity overrides keep the pill inline-flex layout intact. */
.field label.switch, .field .switch{ display:inline-flex; margin-bottom:0; }
.field .switch input{ width:auto; padding:0; border:0; background:none; }
.switch .track{ width:44px; height:25px; border-radius:99px; background:#e4dce3; position:relative; transition:background .25s; flex-shrink:0; }
.switch .track::after{ content:""; position:absolute; top:3px; right:3px; width:19px; height:19px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.15); transition:right .25s; }
.switch input:checked + .track{ background:linear-gradient(135deg, var(--primary), #e091a8); }
.switch input:checked + .track::after{ right:calc(100% - 22px); }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 13px; border-radius:99px; background:#f4eff3; color:var(--ink-soft); font-size:12.5px; font-weight:500; border:1px solid transparent; cursor:pointer; transition:.2s; }
.chip:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.chip.active{ background:linear-gradient(135deg, var(--primary), #e091a8); color:#fff; border-color:transparent; }
/* Chip acting as a checkbox (e.g. working days): hide the native box, light the chip when checked. */
.chip input[type="checkbox"]{ position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.chip:has(input:checked){ background:linear-gradient(135deg, var(--primary), #e091a8); color:#fff; border-color:transparent; }
.alert{ display:flex; gap:11px; padding:14px 16px; border-radius:14px; font-size:13px; line-height:1.6; }
.alert svg{ width:19px; height:19px; flex-shrink:0; margin-top:2px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.alert.info{ background:var(--info-bg); color:#2c5da8; }
.alert.warn{ background:var(--warning-bg); color:#a06e13; }
.alert.ok{ background:var(--success-bg); color:#177a4c; }

/* 10b. Standalone controls — same look as .field inputs, for controls that are not
   inside a .field wrapper (table rows, inline toolbars, filters). Fixes divergence. */
.control{
    width:100%; padding:11px 14px; border-radius:12px; border:1.5px solid var(--border);
    background:#fbf9fb; font-family:inherit; font-size:13px; color:var(--ink);
    outline:none; transition:.2s; -webkit-appearance:none; appearance:none;
}
.control:focus{ border-color:var(--primary); background:#fff; box-shadow:0 0 0 4px rgba(199,107,133,.12); }
.control::placeholder{ color:#b8afbe; }
.control--sm{ padding:8px 12px; font-size:12.5px; border-radius:10px; }
select.control{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8194' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat:no-repeat; background-position:left 12px center; padding-inline-start:14px; padding-inline-end:34px;
}
textarea.control{ resize:vertical; min-height:84px; }

/* 10c. Jalali datepicker */
.jpick{ position:relative; display:flex; gap:8px; align-items:center; }
.jpick .jp-input{ flex:1; }
.jp-toggle{ width:44px; height:44px; flex-shrink:0; border-radius:12px; border:1.5px solid var(--border);
    background:#fbf9fb; color:var(--ink-soft); display:grid; place-items:center; cursor:pointer; transition:.2s; }
.jp-toggle:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.jp-toggle svg{ width:20px; height:20px; }
.jp-pop{ position:absolute; z-index:80; top:calc(100% + 6px); inset-inline-end:0; width:288px;
    background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-lg);
    padding:12px; font-size:13px; }
.jp-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.jp-title{ font-weight:700; font-size:13.5px; }
.jp-nav{ width:32px; height:32px; border-radius:9px; border:1px solid var(--border); background:#fbf9fb;
    color:var(--ink-soft); cursor:pointer; display:grid; place-items:center; transition:.2s; }
.jp-nav:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.jp-nav svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.jp-grid{ display:grid; grid-template-columns:repeat(7, 1fr); gap:3px; }
.jp-dow{ text-align:center; font-size:11px; font-weight:700; color:var(--muted); padding:4px 0; }
.jp-dow.is-friday{ color:var(--danger); }
.jp-day{ text-align:center; padding:7px 0; border-radius:9px; cursor:pointer; color:var(--ink); transition:background .15s; }
.jp-day:hover{ background:var(--primary-100); }
.jp-day.is-blank{ pointer-events:none; }
.jp-day.is-today{ box-shadow:inset 0 0 0 1.5px var(--gold); }
.jp-day.is-friday{ color:var(--danger); }
.jp-day.is-holiday{ color:var(--danger); font-weight:700; background:var(--danger-bg); }
.jp-day.is-selected{ background:linear-gradient(135deg, var(--primary), #e091a8); color:#fff; font-weight:700; }
.jp-foot{ display:flex; justify-content:space-between; margin-top:10px; }
.jp-foot button{ border:none; background:var(--primary-100); color:var(--primary-600); border-radius:9px;
    padding:6px 12px; font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.jp-foot button.jp-clear{ background:#f4eff3; color:var(--muted); }

/* 10d. Time picker (24h) */
.tpick{ position:relative; display:flex; gap:8px; align-items:center; }
.tpick .tp-input{ flex:1; }
.tp-toggle{ width:44px; height:44px; flex-shrink:0; border-radius:12px; border:1.5px solid var(--border);
    background:#fbf9fb; color:var(--ink-soft); display:grid; place-items:center; cursor:pointer; transition:.2s; }
.tp-toggle:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }
.tp-toggle svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tp-pop{ position:absolute; z-index:80; top:calc(100% + 6px); inset-inline-end:0; width:236px;
    background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-lg);
    padding:12px; font-size:13px; }
.tp-cols{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tp-col-title{ text-align:center; font-size:11.5px; font-weight:700; color:var(--muted); margin-bottom:6px; }
.tp-list{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; max-height:172px; overflow-y:auto; }
.tp-cell{ text-align:center; padding:6px 0; border-radius:8px; cursor:pointer; color:var(--ink);
    font-variant-numeric:tabular-nums; direction:ltr; transition:background .12s; }
.tp-cell:hover{ background:var(--primary-100); }
.tp-cell.is-selected{ background:linear-gradient(135deg, var(--primary), #e091a8); color:#fff; font-weight:700; }
.tp-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.tp-readout{ font-weight:700; direction:ltr; color:var(--primary-600); }
.tp-foot button{ border:none; background:#f4eff3; color:var(--muted); border-radius:9px;
    padding:6px 12px; font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; }

/* 11. Modal */
.modal{ position:fixed; inset:0; background:rgba(30,22,36,.5); backdrop-filter:blur(5px); display:none; place-items:center; padding:20px; z-index:100; }
.modal.open{ display:grid; animation:fade .2s ease; }
.modal-box{ background:var(--surface); border-radius:var(--r-lg); width:100%; max-width:440px; padding:24px; box-shadow:var(--shadow-lg); animation:pop .28s cubic-bezier(.22,1,.36,1); }
.modal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.modal-head h3{ margin:0; font-size:16px; font-weight:700; }
.modal-close{ width:34px; height:34px; border-radius:10px; border:none; background:#f4eff3; color:var(--ink-soft); cursor:pointer; display:grid; place-items:center; transition:.2s; }
.modal-close:hover{ background:var(--danger-bg); color:var(--danger); }
.modal-close svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
.modal-foot{ display:flex; gap:10px; margin-top:22px; }
.modal-foot .btn{ flex:1; }
@keyframes fade{ from{opacity:0} to{opacity:1} }
@keyframes pop{ from{ opacity:0; transform:translateY(14px) scale(.97); } to{ opacity:1; transform:translateY(0) scale(1); } }

/* 12. Mobile overlay */
.overlay{ position:fixed; inset:0; background:rgba(30,22,36,.45); backdrop-filter:blur(2px); display:none; z-index:55; }
.overlay.show{ display:block; }

/* 13. Responsive */
@media (max-width:1180px){ .stats-grid, .stats-grid--3, .stats-grid--2{ grid-template-columns:repeat(2, 1fr); } .grid-2, .grid-2--split{ grid-template-columns:1fr; } }
@media (max-width:1024px){
    .app{ padding:12px; gap:12px; }
    /* RTL app → the tablet drawer is anchored to the RIGHT edge and slides in from the right.
       (Physical right/translateX(+100%) because the whole layout is dir="rtl".) */
    .sidebar{ position:fixed; top:0; bottom:0; right:0; left:auto; height:100vh; width:280px; border-radius:0; transform:translateX(100%); }
    .sidebar.open{ transform:translateX(0) !important; }
    .menu-btn{ display:grid; }
    /* Sidebar is off-canvas here, so the salon name surfaces in the fixed header. */
    .header-brand{ display:block; }
    .search input{ width:170px; }
}
@media (max-width:720px){
    .stats-grid, .stats-grid--3, .stats-grid--2{ grid-template-columns:1fr; }
    .grid-3{ grid-template-columns:1fr; }
    .search{ display:none; }
    .page-title h1{ font-size:15px; }
    .page-title p{ display:none; }
    .card{ padding:16px; }
    .table-wrap{ margin:0 -16px; padding:0 16px; }
    .chart{ height:170px; gap:5px; }
    .chart-col{ min-width:0; }
    .chart-label{ font-size:10.5px; white-space:normal; overflow-wrap:anywhere; text-align:center; line-height:1.35; }

    /* Topbar: allow it to wrap and give page-action buttons their own full-width row,
       so a title + bell + 1-2 CTAs no longer force horizontal overflow on a phone. */
    .topbar{ flex-wrap:wrap; gap:8px 10px; padding:10px 14px; }
    .menu-btn{ order:1; }
    .topbar .page-title{ order:2; flex:1 1 auto; }
    .topbar .page-title h1{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .topbar .icon-btn{ order:3; }
    .hide-mobile{ display:none !important; }
    .page-actions{ order:9; flex-basis:100%; display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; }
    .page-actions:empty{ display:none; }
    .page-actions > .btn{ flex:1 1 auto; }
    .page-actions > div{ flex:1 1 100%; }
    .page-actions .btn{ flex:1 1 auto; justify-content:center; }

    /* Fixed header and page head get their own tight rows on a phone; the view toggle
       stretches across its row so both halves stay tappable. */
    .app-header{ gap:10px; padding:10px 14px; }
    .app-header .menu-btn{ order:1; }
    .app-header .header-brand{ order:2; flex:1 1 auto; }
    .app-header .header-actions{ order:3; }
    .page-head{ align-items:stretch; }
    .page-actions .view-toggle{ width:100%; }
    .page-actions .view-toggle-item{ flex:1 1 auto; justify-content:center; }

    /* Card headers that hold a title + an inline filter form must stack on phones,
       otherwise the fixed-width controls spill past the viewport (e.g. /admin/salons). */
    .card-head{ flex-wrap:wrap; }
    .card-head form{ flex-basis:100%; flex-wrap:wrap; }
    .card-head form .control{ flex:1 1 150px; }

    /* Sidebar becomes a bottom sheet on phones (overrides the tablet side-drawer). */
    .sidebar{
        inset:auto 0 0 0; width:100%; height:auto; max-height:85vh;
        border-radius:22px 22px 0 0; padding:6px 18px calc(18px + env(safe-area-inset-bottom));
        transform:translateY(105%); box-shadow:0 -14px 44px rgba(30,22,36,.42);
    }
    html[dir="rtl"] .sidebar{ transform:translateY(105%); }
    .sidebar.open{ transform:translateY(0) !important; }
    .sidebar .brand{ padding-top:6px; }
    .sheet-bar{ display:flex; }
    .mobile-actions{ display:block; }
    .sheet-quick{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-bottom:16px; }
}

/* Lock the page behind the open sheet so the dimmed background doesn't scroll. */
body.sheet-open{ overflow:hidden; }

/* ── Jalali booking calendar (1.10) ───────────────────── */
.cal{ display:flex; flex-direction:column; gap:6px; }
.cal-row{ display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; }
.cal-head .cal-dow{ text-align:center; font-size:12px; font-weight:700; color:var(--muted); padding:6px 0; }
.cal-head .cal-dow--friday{ color:var(--danger); }
.cal-cell{ min-height:64px; border:1px solid var(--border); border-radius:var(--r-sm); background:#fbf9fb; padding:5px; display:flex; flex-direction:column; gap:4px; overflow:hidden; }
.cal-empty{ background:transparent; border-style:dashed; }
.cal-today{ border-color:var(--primary); background:var(--primary-50); box-shadow:0 0 0 3px rgba(199,107,133,.10); }
.cal-friday{ background:#fdecec; border-color:#f3c9c9; }
.cal-holiday{ background:var(--danger-bg); border-color:var(--danger); }
.cal-daynum{ align-self:flex-start; min-width:24px; height:24px; padding:0 6px; border-radius:99px; display:grid; place-items:center; font-size:12.5px; font-weight:700; color:var(--ink-soft); text-decoration:none; background:#fff; border:1px solid var(--border); }
.cal-today .cal-daynum{ background:var(--primary); color:#fff; border-color:transparent; }
.cal-friday .cal-daynum{ color:var(--danger); border-color:#f3c9c9; }
.cal-holiday .cal-daynum{ background:var(--danger); color:#fff; border-color:transparent; }
.cal-holiday-label{ font-size:10.5px; line-height:1.3; color:var(--danger); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-body{ display:flex; flex-direction:column; gap:4px; }
.cal-flag{ align-self:flex-start; display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:99px; background:var(--success-bg); color:var(--success); border:1px solid #bfe6d1; font-size:12px; font-weight:800; text-decoration:none; }
.cal-flag-dot{ width:8px; height:8px; border-radius:99px; background:var(--success); flex:none; }
.cal-legend{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; padding:0 2px 12px; font-size:12px; color:var(--muted); }
.cal-legend-item{ display:inline-flex; align-items:center; gap:6px; }
.cal-swatch{ width:14px; height:14px; border-radius:4px; display:inline-block; border:1px solid var(--border); }
.cal-swatch--booked{ background:var(--success-bg); border-color:#bfe6d1; }
.cal-swatch--friday{ background:#fdecec; border-color:#f3c9c9; }
.cal-swatch--holiday{ background:var(--danger-bg); border-color:var(--danger); }
@media (max-width:720px){
    .cal-cell{ min-height:52px; padding:4px; }
    .cal-flag{ padding:1px 6px; font-size:11px; }
    .cal-holiday-label{ display:none; }
}

/* ── Public mini-site shell (Phase 2 polish) ──────────── */
.public-shell{ max-width:760px; margin-inline:auto; min-height:100vh; display:flex; flex-direction:column; }
.public-header{ background:var(--surface); border-bottom:1px solid var(--border); box-shadow:var(--shadow-sm); position:sticky; top:0; z-index:20; }
.public-header__inner{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:14px 20px; }
.public-brand{ display:flex; align-items:center; gap:10px; }
.public-logo{ background:linear-gradient(135deg,var(--primary),var(--gold)); color:#fff; font-weight:800; font-size:13px; padding:7px 12px; border-radius:12px; box-shadow:0 6px 16px rgba(199,107,133,.35); }
.public-brand h1{ margin:0; font-size:18px; font-weight:800; }
.public-brand__logo{ height:40px; width:40px; object-fit:contain; border-radius:10px; background:#fff; }
.public-gallery{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
.public-gallery img{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:14px; border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.public-phone{ margin-inline-start:auto; color:var(--primary-600); font-weight:700; font-size:14px; direction:ltr; }
.public-nav{ display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.public-nav a{ padding:8px 12px; border-radius:11px; color:var(--ink-soft); font-weight:600; font-size:13.5px; transition:.2s; }
.public-nav a:hover{ background:var(--primary-50); color:var(--primary-600); }
.public-nav__cta{ background:linear-gradient(135deg,var(--primary),#d888a1); color:#fff !important; box-shadow:0 8px 18px rgba(199,107,133,.32); }
.public-nav__cta:hover{ filter:brightness(1.03); }
.public-nav__form{ display:inline; margin:0; }
.public-nav__form button{ border:none; background:none; font-family:inherit; color:var(--muted); font-weight:600; font-size:13.5px; cursor:pointer; padding:8px 10px; border-radius:11px; }
.public-nav__form button:hover{ background:var(--danger-bg); color:var(--danger); }
.public-main{ flex:1; padding:20px; display:flex; flex-direction:column; gap:18px; }
.public-footer{ margin-top:6px; border-top:1px solid var(--border); background:var(--surface); color:var(--ink-soft); }
.public-main{ padding-bottom:0; }

/* Hero */
.public-hero{ position:relative; overflow:hidden; background:linear-gradient(135deg,var(--primary),#d888a1); color:#fff; border-radius:var(--r-lg); padding:38px 26px; text-align:center; box-shadow:var(--shadow); }
.public-hero::before{ content:""; position:absolute; inset:-40% -10% auto auto; width:280px; height:280px; background:radial-gradient(circle,rgba(255,255,255,.28),transparent 70%); pointer-events:none; }
.public-hero__logo{ width:76px; height:76px; object-fit:contain; border-radius:20px; background:#fff; padding:8px; margin:0 auto 14px; box-shadow:0 10px 24px rgba(0,0,0,.18); }
.public-hero h2{ margin:0 0 6px; font-size:26px; font-weight:800; position:relative; }
.public-hero p{ margin:0 auto 20px; color:rgba(255,255,255,.92); max-width:52ch; position:relative; }
.public-hero__actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; position:relative; }
.public-hero .btn-ghost{ background:rgba(255,255,255,.16); color:#fff; border:1.5px solid rgba(255,255,255,.5); }
.public-hero .btn-ghost:hover{ background:rgba(255,255,255,.28); }

/* Cards + accent headings */
.public-card{ box-shadow:var(--shadow); border:1px solid var(--border); }
.public-card .card-head h2{ display:flex; align-items:center; gap:9px; }
.public-accent{ width:5px; height:20px; border-radius:99px; background:linear-gradient(var(--primary),var(--gold)); display:inline-block; }
.public-about{ margin:0; white-space:pre-line; line-height:1.95; color:var(--ink-soft); }

/* Location: keyless map embed + direction link */
.public-map{ margin:12px 0 0; border:1px solid var(--border); border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow-sm); }
.public-map iframe{ display:block; width:100%; height:260px; border:0; }
.public-route{ color:var(--primary-600); font-weight:700; font-size:13.5px; }

/* Services */
.public-services-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.public-service-card{ border:1px solid var(--border); border-radius:var(--r); padding:14px; display:flex; flex-direction:column; gap:10px; transition:.18s; background:#fff; }
.public-service-card:hover{ transform:translateY(-2px); border-color:var(--primary-100); box-shadow:var(--shadow-sm); }
.public-service-card__name{ font-weight:700; font-size:15px; }
.public-service-card__meta{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.public-chip{ display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:12.5px; background:var(--bg); border-radius:99px; padding:4px 10px; }
.public-chip svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.8; }
.public-price{ font-weight:800; color:var(--primary-600); font-size:13.5px; }

/* Staff */
.public-staff-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.public-staff-card{ display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--border); border-radius:var(--r); background:#fff; }
.public-staff-card__avatar{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--primary),var(--gold)); flex-shrink:0; }
.public-staff-card b{ font-size:14px; }

/* Footer */
.public-footer__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:18px; padding:22px 20px 8px; }
.public-footer__col h4{ margin:0 0 8px; font-size:13px; color:var(--ink); display:flex; align-items:center; gap:7px; }
.public-footer__ico{ width:16px; height:16px; stroke:var(--primary); fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.public-footer__col p{ margin:0; font-size:13px; line-height:1.9; color:var(--muted); white-space:pre-line; }
.public-social{ display:flex; gap:8px; }
.public-social__link{ width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--primary-50); color:var(--primary-600); transition:.18s; }
.public-social__link:hover{ background:var(--primary); color:#fff; }
.public-social__link svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.public-footer__base{ text-align:center; color:var(--muted); font-size:12.5px; padding:14px; border-top:1px solid var(--border); }

/* Public mini-site: phone bottom-sheet nav (light-themed sibling of the panel sheet). */
.public-menu-btn{ display:none; width:40px; height:40px; border-radius:12px; border:1.5px solid var(--border); background:#fbf9fb; color:var(--ink-soft); place-items:center; cursor:pointer; flex-shrink:0; }
.public-menu-btn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
.public-sheet-overlay{ position:fixed; inset:0; background:rgba(30,22,36,.45); backdrop-filter:blur(2px); display:none; z-index:55; }
.public-sheet-overlay.show{ display:block; }
.public-sheet{ position:fixed; inset:auto 0 0 0; z-index:70; max-height:80vh; overflow-y:auto; background:var(--surface); border-radius:22px 22px 0 0; box-shadow:0 -14px 44px rgba(30,22,36,.42); padding:8px 18px calc(20px + env(safe-area-inset-bottom)); transform:translateY(105%); transition:transform .32s cubic-bezier(.22,1,.36,1); }
.public-sheet.open{ transform:translateY(0); }
.public-sheet__bar{ display:flex; justify-content:center; position:relative; padding:6px 0 10px; }
.public-sheet__grabber{ width:44px; height:5px; border-radius:99px; background:var(--border); }
.public-sheet__close{ position:absolute; inset-inline-end:0; top:2px; width:34px; height:34px; border-radius:10px; border:none; background:#f4eff3; color:var(--ink-soft); display:grid; place-items:center; cursor:pointer; }
.public-sheet__close svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
.public-sheet__brand{ display:flex; align-items:center; gap:10px; padding:2px 4px 14px; margin-bottom:6px; border-bottom:1px solid var(--border); }
.public-sheet__brand b{ font-size:16px; font-weight:800; }
.public-sheet__links{ display:flex; flex-direction:column; gap:4px; }
.public-sheet__links a{ padding:13px 14px; border-radius:13px; font-weight:600; font-size:15px; color:var(--ink); }
.public-sheet__links a:hover{ background:var(--primary-50); color:var(--primary-600); }
.public-sheet__links .public-nav__cta{ color:#fff; text-align:center; }
.public-sheet__links .public-nav__form{ margin-top:6px; }
.public-sheet__links .public-nav__form button{ width:100%; border:1px solid var(--border); background:#fbf9fb; color:var(--danger); font-family:inherit; font-weight:600; font-size:15px; padding:13px 14px; border-radius:13px; cursor:pointer; }
@media (max-width:760px){
    .public-header__inner{ gap:10px; }
    .public-nav, .public-phone{ display:none; }
    .public-menu-btn{ display:grid; margin-inline-start:auto; }
}

@media (max-width:560px){
    .public-header__inner{ padding:12px 14px; }
    .public-brand h1{ font-size:16px; }
    .public-phone{ display:none; }
    .public-nav a{ padding:7px 9px; font-size:12.5px; }
    .public-hero{ padding:30px 18px; }
    .public-hero h2{ font-size:22px; }
    .public-services-grid{ grid-template-columns:1fr; }
}
