/* ==========================================================================
   Earthy Minimal × Glass — dizaina sistēma
   Palete: #2E3A2F primārā · #6B7F5B sekundārā · #D9C9B2 terciārā · #C96F4F akcents · #F8F6EE fons
   ========================================================================== */
:root {
  --primary: #2E3A2F;
  --primary-2: #3c4b3d;
  --secondary: #6B7F5B;
  --tertiary: #D9C9B2;
  --accent: #C96F4F;
  --accent-2: #b55f41;
  --bg: #F8F6EE;

  --ink: #1f2720;
  --ink-2: #4a5249;
  --muted: #7a7f72;
  --line: rgba(46, 58, 47, .09);
  --line-2: rgba(46, 58, 47, .16);

  --glass: linear-gradient(140deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .40));
  --glass-solid: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .78);
  --glass-dark: linear-gradient(140deg, rgba(46, 58, 47, .92), rgba(46, 58, 47, .78));
  --blur: blur(22px) saturate(160%);

  --shadow-sm: 0 1px 2px rgba(46, 58, 47, .05), 0 4px 14px -6px rgba(46, 58, 47, .12);
  --shadow: 0 2px 6px rgba(46, 58, 47, .04), 0 18px 48px -18px rgba(46, 58, 47, .22);
  --shadow-lg: 0 30px 80px -30px rgba(46, 58, 47, .40);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .9);

  --r-xl: 32px; --r-lg: 26px; --r-md: 18px; --r-sm: 12px; --r-pill: 999px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --ok: #5f7a4f; --ok-bg: rgba(107, 127, 91, .14);
  --warn: #a8732a; --warn-bg: rgba(214, 160, 76, .16);
  --bad: #b5523a; --bad-bg: rgba(201, 111, 79, .14);
  --info: #2E3A2F; --info-bg: rgba(46, 58, 47, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(201, 111, 79, .22); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--primary); }
p { margin: 0; }
.serif { font-family: var(--display); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- fona aina ar mīkstiem plankumiem (tiem pāri slīd stikls) ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(1200px 700px at 110% -10%, rgba(217, 201, 178, .55), transparent 60%),
  radial-gradient(900px 600px at -10% 110%, rgba(107, 127, 91, .22), transparent 60%), var(--bg); }
.scene .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: float 26s var(--ease) infinite alternate; }
.scene .b1 { width: 520px; height: 520px; background: #9fb08e; top: -140px; left: -120px; opacity: .45; }
.scene .b2 { width: 460px; height: 460px; background: #e3b39a; top: 18%; right: -140px; opacity: .5; animation-duration: 32s; }
.scene .b3 { width: 560px; height: 560px; background: var(--tertiary); bottom: -220px; left: 30%; opacity: .8; animation-duration: 38s; }
.scene .b4 { width: 300px; height: 300px; background: #6B7F5B; top: 55%; left: -80px; opacity: .25; animation-duration: 29s; }
.scene::after { content: ''; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .22 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

/* ---------- stikls ---------- */
.glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg); box-shadow: var(--shadow), var(--inset);
}
.glass-dark {
  background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); color: #f3efe4; box-shadow: var(--shadow-lg);
}
.glass-dark h1, .glass-dark h2, .glass-dark h3, .glass-dark h4 { color: #fff; }
.card { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { font-size: 17px; }

/* ---------- pogas ---------- */
.btn {
  --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid transparent; background: var(--b); color: #fff; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  box-shadow: 0 8px 20px -10px var(--b), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px var(--b), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-accent { --b: var(--accent); }
.btn-sage { --b: var(--secondary); }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--primary); border-color: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm), var(--inset);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .85); box-shadow: var(--shadow-sm), var(--inset); }
.btn-line { background: transparent; color: var(--primary); border-color: var(--line-2); box-shadow: none; }
.btn-line:hover { background: rgba(255, 255, 255, .6); box-shadow: none; }
.btn-danger { background: var(--bad-bg); color: var(--bad); box-shadow: none; }
.btn-danger:hover { background: rgba(201, 111, 79, .24); box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.85);
  background: rgba(255, 255, 255, .55); color: var(--primary); cursor: pointer; transition: background .2s; box-shadow: var(--shadow-sm); }
.icon-btn:hover { background: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- ievades lauki ---------- */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(46, 58, 47, .12);
  background-color: rgba(255, 255, 255, .66); outline: none; transition: border .2s, box-shadow .2s, background .2s; font-size: 14.5px;
}
textarea.input { height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232E3A2F' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.input:focus { border-color: var(--secondary); background-color: rgba(255, 255, 255, .92); box-shadow: 0 0 0 4px rgba(107, 127, 91, .16); }
.input::placeholder { color: #a3a79b; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.input-group .icon-btn { position: absolute; right: 4px; top: 3px; width: 38px; height: 38px; box-shadow: none; border: 0; background: transparent; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: rgba(46, 58, 47, .14); position: relative; transition: background .25s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--secondary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(107, 127, 91, .2); }

/* ---------- čipi, birkas ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm), var(--inset); color: var(--primary); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.booked { background: var(--info-bg); color: var(--info); }
.badge.completed { background: var(--ok-bg); color: var(--ok); }
.badge.cancelled { background: rgba(122, 127, 114, .14); color: var(--muted); }
.badge.noshow { background: var(--bad-bg); color: var(--bad); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- navigācija ---------- */
.topbar { position: sticky; top: 14px; z-index: 40; margin: 14px auto 0; width: min(1180px, calc(100% - 28px)); }
.topbar .glass { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; border-radius: var(--r-pill); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; color: var(--primary); font-size: 17px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--tertiary); flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; padding: 9px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .7); color: var(--primary); }
.topbar .actions { display: flex; gap: 8px; align-items: center; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- toast, modālis ---------- */
.toasts { position: fixed; z-index: 1000; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; font-size: 14px; font-weight: 500;
  background: rgba(46, 58, 47, .9); color: #fff; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease); }
.toast.error { background: rgba(160, 76, 50, .94); }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.modal-wrap { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; background: rgba(31, 39, 32, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s var(--ease); overflow-y: auto; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255, 255, 255, .92), rgba(250, 248, 242, .84)); border: 1px solid #fff; box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: pop .35s var(--ease); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h3 { font-size: 21px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.modal-foot .spacer { margin-right: auto; }
.modal-wrap.out { opacity: 0; transition: opacity .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- tabulas ---------- */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .5); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none;
  background: linear-gradient(135deg, var(--tertiary), #ece2d2); color: var(--primary); border: 2px solid rgba(255, 255, 255, .9); }
.who b { display: block; font-weight: 600; }
.who small { color: var(--muted); font-size: 12.5px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 12px; opacity: .5; }

/* ---------- segmentu slēdzis / cilnes ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: rgba(46, 58, 47, .06); border: 1px solid rgba(255, 255, 255, .6); }
.seg button { border: 0; background: transparent; padding: 0 14px; height: 32px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .2s; }
.seg button.on { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------- skeletoni un ielāde ---------- */
.skeleton { border-radius: 14px; background: linear-gradient(90deg, rgba(46,58,47,.05), rgba(46,58,47,.10), rgba(46,58,47,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   SĀKUMLAPA
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hero h1 .serif { color: var(--accent); font-weight: 400; letter-spacing: -.03em; }
.hero h1 .soft { color: #9a9b93; }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero-visual { position: relative; min-height: 460px; }
.hero-art { position: absolute; inset: 0 0 0 40px; border-radius: 34px; overflow: hidden;
  background: linear-gradient(170deg, #cdbba0 0%, #b9a586 40%, #8e9d7f 100%); box-shadow: var(--shadow-lg); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .quote { position: absolute; top: 28px; left: 30px; color: #fff; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; max-width: 200px; text-shadow: 0 2px 20px rgba(0,0,0,.08); }
.float-card { position: absolute; padding: 18px 20px; border-radius: 22px; }
.float-card.fc1 { left: 0; bottom: 44px; width: 250px; }
.float-card.fc2 { right: -14px; top: 34px; width: 190px; }
.float-card .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.float-card .v { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; margin-top: 2px; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 0 rgba(107,127,91,.6); animation: pulse 2s infinite; margin-right: 6px; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(107,127,91,0); } 100% { box-shadow: 0 0 0 0 rgba(107,127,91,0); } }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.035em; font-weight: 800; margin-top: 8px; }
.section-head p { max-width: 420px; color: var(--ink-2); }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.service { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--inset); }
.service .swatch { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.service .swatch svg { width: 20px; height: 20px; }
.service h3 { font-size: 18px; margin-top: 6px; }
.service p { color: var(--muted); font-size: 14px; flex: 1; }
.service .meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.service .price { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.service .dur { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.service .dur svg { width: 15px; height: 15px; }

.palette-strip { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.about { padding: 40px; display: grid; gap: 18px; align-content: center; }
.about p { font-size: 18px; color: var(--ink-2); }
.about .sig { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--accent); }
.hours-card { padding: 32px; }
.hours-list { display: grid; gap: 2px; margin-top: 14px; }
.hours-list div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: 15px; }
.hours-list div:last-child { border: 0; }
.hours-list .today { color: var(--tertiary); font-weight: 700; }
.hours-list .closed { opacity: .55; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact { padding: 24px; display: flex; gap: 16px; align-items: center; text-decoration: none; transition: transform .25s var(--ease); }
a.contact:hover { transform: translateY(-3px); }
.contact .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--tertiary); flex: none; }
.contact .ic svg { width: 22px; height: 22px; }
.contact small { display: block; color: var(--muted); font-size: 12.5px; }
.contact b { font-size: 15.5px; color: var(--primary); word-break: break-word; }

.cta-band { margin: 24px 0 0; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; overflow: hidden; position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; max-width: 560px; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(201,111,79,.55), transparent 70%); filter: blur(10px); }
footer.site { padding: 40px 0 50px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   PIESLĒGŠANĀS
   ========================================================================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.auth-side { position: relative; margin: 16px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(165deg, #3a4a3b, var(--primary) 55%, #232d24); color: #efe9dc; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.04em; font-weight: 800; line-height: 1.02; }
.auth-side h2 .serif { color: var(--tertiary); }
.auth-side .swatches { display: flex; gap: 10px; }
.auth-side .swatches span { width: 46px; height: 46px; border-radius: 15px; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.auth-side .orb { position: absolute; border-radius: 50%; filter: blur(50px); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); padding: 34px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.035em; }
.auth-card .seg { width: 100%; margin: 22px 0 24px; }
.auth-card .seg button { flex: 1; height: 38px; }
.auth-card form { display: grid; gap: 14px; }
.alert { padding: 12px 16px; border-radius: 14px; font-size: 13.5px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.alert.info { background: var(--info-bg); color: var(--ink-2); }
.alert.warn { background: var(--warn-bg); color: #7d5520; }

/* ==========================================================================
   KLIENTA KONTS
   ========================================================================== */
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 44px 0 26px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.04em; font-weight: 800; }
.app-head h1 .serif { color: var(--accent); }
.client-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; padding-bottom: 60px; }
.next-card { padding: 28px; position: relative; overflow: hidden; }
.next-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; bottom: -110px; background: radial-gradient(circle, rgba(201,111,79,.6), transparent 70%); filter: blur(8px); }
.next-card .when { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; color: #fff; }
.next-card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.next-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.next-card .btn-ghost:hover { background: rgba(255,255,255,.2); }

.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); cursor: default; }
.step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,58,47,.08); font-size: 12px; }
.step.on { color: var(--primary); background: #fff; }
.step.on i { background: var(--primary); color: #fff; }
.step.done { color: var(--secondary); cursor: pointer; }
.step.done i { background: var(--secondary); color: #fff; }

.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.svc-opt { text-align: left; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.5); cursor: pointer; transition: .2s var(--ease); display: grid; gap: 4px; }
.svc-opt:hover { background: rgba(255,255,255,.85); transform: translateY(-2px); }
.svc-opt.on { background: #fff; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(107,127,91,.18); }
.svc-opt b { font-size: 14.5px; color: var(--primary); }
.svc-opt span { font-size: 12.5px; color: var(--muted); }
.svc-opt .p { font-weight: 800; color: var(--primary); font-size: 15px; }

.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 16px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-day { aspect-ratio: 1; border-radius: 14px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; position: relative; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--primary); transition: .18s; }
.cal-day.avail { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.95); }
.cal-day.avail::after { content: ''; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--secondary); }
.cal-day.avail.few::after { background: var(--accent); }
.cal-day.avail:hover { background: #fff; transform: translateY(-1px); }
.cal-day.off { color: #b8b9b0; cursor: default; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--tertiary); }
.cal-day.on { background: var(--primary) !important; color: #fff; }
.cal-day.on::after { background: var(--tertiary) !important; }
.cal-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }

.slot-group { margin-bottom: 16px; }
.slot-group .label { margin-bottom: 8px; display: block; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { height: 40px; min-width: 76px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.6); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--primary); transition: .18s; font-variant-numeric: tabular-nums; }
.slot:hover { background: #fff; transform: translateY(-1px); }
.slot.on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 18px -8px var(--accent); }

.summary { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary div span:first-child { color: var(--muted); }
.summary div b { text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; }

.booking-item { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.85); }
.booking-item + .booking-item { margin-top: 10px; }
.date-tile { width: 58px; height: 62px; border-radius: 16px; display: grid; place-content: center; text-align: center; background: #fff; flex: none; box-shadow: var(--shadow-sm); }
.date-tile b { font-size: 22px; line-height: 1; color: var(--primary); }
.date-tile small { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.booking-item .info { flex: 1; min-width: 0; }
.booking-item .info b { display: block; font-size: 15px; }
.booking-item .info span { font-size: 13px; color: var(--muted); }
.booking-item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.tabs-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }

/* ==========================================================================
   ADMIN PANELIS
   ========================================================================== */
.admin { display: grid; grid-template-columns: 252px 1fr; gap: 18px; padding: 16px; min-height: 100vh; }
.sidebar { position: sticky; top: 16px; height: calc(100vh - 32px); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; border-radius: var(--r-xl); }
.sidebar .brand { padding: 0 8px 22px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: rgba(243, 239, 228, .72); text-decoration: none; font-weight: 500; font-size: 14.5px; transition: .2s; position: relative; }
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.side-link.on::before { content: ''; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent); }
.side-link .count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; }
.sidebar .brand { color: #fff; }
.sidebar .brand-mark { background: var(--tertiary); color: var(--primary); }
.sidebar .bottom { margin-top: auto; display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); }
.side-user .avatar { border-color: rgba(255,255,255,.2); }
.side-user b { display: block; font-size: 13.5px; color: #fff; }
.side-user small { font-size: 12px; color: rgba(243,239,228,.6); }
.side-user .icon-btn { margin-left: auto; background: transparent; border-color: rgba(255,255,255,.15); color: #fff; box-shadow: none; width: 34px; height: 34px; }

.main { min-width: 0; padding: 8px 8px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 0 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; font-weight: 800; }
.page-head .tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 20px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.kpi .k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .k svg { width: 16px; height: 16px; color: var(--secondary); }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.035em; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .spark { position: absolute; right: 16px; top: 16px; opacity: .9; }
.kpi.dark .k { padding-right: 96px; }
.kpi .d { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.delta { font-weight: 700; padding: 1px 7px; border-radius: 99px; font-size: 12px; }
.delta.up { background: var(--ok-bg); color: var(--ok); }
.delta.down { background: var(--bad-bg); color: var(--bad); }
.kpi.dark { background: var(--glass-dark); border-color: rgba(255,255,255,.1); }
.kpi.dark .v { color: #fff; }
.kpi.dark .k, .kpi.dark .d { color: rgba(243,239,228,.7); }
.kpi.dark .k svg { color: var(--tertiary); }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--tertiary), var(--accent)); transition: width 1s var(--ease); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; }

.chart { position: relative; width: 100%; }
.chart svg { overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; padding: 10px 12px; border-radius: 14px; background: rgba(46,58,47,.92); color: #fff; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 2; }
.chart .tip b { font-size: 14px; display: block; }
.chart .tip.show { opacity: 1; }
.legend { display: grid; gap: 10px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.legend-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-row .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-wrap > .legend { min-width: 0; }
.donut-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; }

.agenda { display: grid; gap: 8px; }
.agenda-item { display: grid; grid-template-columns: 52px 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.8); cursor: pointer; transition: .18s; }
.agenda-item:hover { background: rgba(255,255,255,.85); }
.agenda-item .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary); font-size: 14px; }
.agenda-item .t small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.agenda-item .bar { width: 4px; height: 36px; border-radius: 4px; }
.agenda-item b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-item div > span { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda { max-height: 318px; overflow-y: auto; padding-right: 2px; }
.agenda-item.past { opacity: .6; }

.top-list { display: grid; gap: 12px; }
.top-list .who { justify-content: space-between; }

.notice { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; margin-bottom: 14px; background: var(--warn-bg); border: 1px solid rgba(214,160,76,.25); color: #6f4c1c; font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; }
.notice .btn { margin-left: auto; }

/* --- kalendārs (nedēļas skats) --- */
.week-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.week-toolbar .title { font-weight: 700; font-size: 16px; margin: 0 8px; color: var(--primary); }
.week { padding: 0; overflow: hidden; }
.week-scroll { overflow-x: auto; }
.week-grid { display: grid; grid-template-columns: 58px repeat(var(--cols, 7), minmax(120px, 1fr)); min-width: calc(58px + var(--cols, 7) * 120px); position: relative; }
.week-grid .head { position: sticky; top: 0; z-index: 3; padding: 14px 10px; text-align: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.week-grid .head small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.week-grid .head b { font-size: 20px; color: var(--primary); letter-spacing: -.02em; }
.week-grid .head.today b { color: #fff; background: var(--accent); border-radius: 12px; padding: 0 8px; }
.week-grid .head .sum { font-size: 11.5px; color: var(--muted); }
.week-grid .corner { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.times { position: relative; }
.times span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.day-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.day-col .hl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.day-col .hl.half { border-top-style: dashed; opacity: .6; }
.day-col .closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(46,58,47,.045) 0 8px, transparent 8px 16px); pointer-events: none; }
.day-col .now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--accent); z-index: 2; pointer-events: none; }
.day-col .now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 12px; padding: 6px 9px; overflow: hidden; cursor: pointer; font-size: 12px; line-height: 1.3;
  background: color-mix(in srgb, var(--c) 16%, rgba(255,255,255,.85)); border: 1px solid rgba(255,255,255,.9); border-left: 3px solid var(--c);
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; z-index: 1; }
.ev:hover { transform: translateY(-1px) scale(1.01); box-shadow: var(--shadow); z-index: 4; }
.ev b { display: block; font-size: 12.5px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev b .tm { display: inline; }
.ev span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ev.completed { opacity: .72; }
.ev.noshow { background: repeating-linear-gradient(135deg, rgba(201,111,79,.12) 0 6px, rgba(255,255,255,.8) 6px 12px); }
.ev.cancelled { display: none; }
.ev .tm { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); font-size: 11px; }

/* --- darba laiks --- */
.hours-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border: 0; }
.hours-row .times-in { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hours-row .times-in .input { width: 116px; height: 40px; }
.hours-row .times-in .sep { color: var(--muted); }
.hours-row .times-in .lbl { font-size: 12px; color: var(--muted); margin-left: 8px; }
.hours-row.closed .times-in { opacity: .4; pointer-events: none; }

.svc-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.svc-admin .service { min-height: 0; cursor: pointer; }
.svc-admin .service.inactive { opacity: .55; }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick label { cursor: pointer; }
.color-pick input { position: absolute; opacity: 0; }
.color-pick span { display: block; width: 32px; height: 32px; border-radius: 10px; border: 2px solid #fff; box-shadow: var(--shadow-sm); transition: .15s; }
.color-pick input:checked + span { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.06); }

.creds { padding: 18px; border-radius: 18px; background: var(--primary); color: #fff; display: grid; gap: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.creds span { color: var(--tertiary); font-family: var(--font); font-size: 12px; }

.mobile-nav { display: none; }

/* ==========================================================================
   ADAPTĪVAIS DIZAINS
   ========================================================================== */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-8, .span-4, .span-6, .span-5, .span-7 { grid-column: span 12; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-visual { min-height: 380px; }
  .palette-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { min-height: 260px; padding: 30px; }
  .auth-side .big { display: none; }
  .admin { grid-template-columns: 1fr; padding: 10px 10px 90px; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; padding: 6px; border-radius: 24px; justify-content: space-between; overflow-x: auto; gap: 2px; }
  .mobile-nav a { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 10px; padding: 8px 2px; text-decoration: none; color: rgba(243,239,228,.7); border-radius: 18px; min-width: 0; }
  .mobile-nav a svg { width: 20px; height: 20px; }
  .mobile-nav a.on { background: rgba(255,255,255,.14); color: #fff; }
  .mobile-top { display: flex !important; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .nav-links { display: none; }
  .topbar .glass { padding-left: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .about, .hours-card, .cta-band { padding: 26px; }
  .float-card.fc2 { right: 0; }
  .hero-art { left: 16px; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .donut-wrap .legend { width: 100%; }
  .booking-item { flex-wrap: wrap; }
  .booking-item .acts { width: 100%; justify-content: stretch; }
  .booking-item .acts .btn { flex: 1; }
  .hours-row { grid-template-columns: 1fr; gap: 10px; }
  .kpi .v { font-size: 24px; }
  .kpi { padding: 16px; }
  .kpi .spark { display: none; }
  .kpi.dark .k { padding-right: 0; }
  .kpi .d { flex-wrap: wrap; }
  .modal { padding: 22px; border-radius: 26px; }
  .hide-sm { display: none !important; }
}
.mobile-top { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.kpi.dark .delta.up { background: rgba(217, 201, 178, .18); color: #e9dfcd; }
.kpi.dark .delta.down { background: rgba(201, 111, 79, .3); color: #f3c9b7; }

/* --- kopīgā datuma/laika izvēle un pieteikšanās bez konta --- */
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.picker [data-slots], #wizard { scroll-margin-top: 96px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
a.service { text-decoration: none; color: inherit; }
.service .book { font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; opacity: 0; transform: translateX(-4px); transition: .25s var(--ease); }
.service .book svg { width: 15px; height: 15px; }
a.service:hover .book, a.service:focus-visible .book { opacity: 1; transform: none; }
@media (hover: none) { .service .book { opacity: 1; transform: none; } }

/* --- WhatsApp poga --- */
body.has-wa { padding-bottom: 84px; }
.wa-fab { position: fixed; z-index: 60; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding: 0 16px; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 12px 30px -10px rgba(18, 140, 126, .65), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .25s var(--ease), box-shadow .25s; }
.wa-fab svg { width: 28px; height: 28px; flex: none; }
.wa-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 36px -10px rgba(18, 140, 126, .75), 0 2px 6px rgba(0, 0, 0, .12); }
.wa-fab:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.contact .ic.wa { background: #25D366; color: #fff; }
.contact .ic.wa svg { width: 24px; height: 24px; }
@media (max-width: 720px) {
  .wa-fab { padding: 0; width: 56px; height: 56px; justify-content: center; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-fab .wa-label { display: none; }
}

/* ==========================================================================
   PAR MANI (ar foto)
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 34px; box-shadow: var(--shadow-lg); display: block; }
.about-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 34px; border: 1.5px solid rgba(201, 111, 79, .35); z-index: -1; }
.about-badge { position: absolute; left: -16px; bottom: 34px; padding: 12px 16px; border-radius: 18px; font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; }
.about-text { display: grid; gap: 14px; max-width: 560px; }
.about-text .hello { font-size: clamp(34px, 4.4vw, 52px); color: var(--accent); line-height: 1; margin-top: 4px; }
.about-text h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.about-text .role { font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); }
.about-text .divider { display: flex; align-items: center; gap: 12px; color: var(--accent); max-width: 280px; }
.about-text .divider::before, .about-text .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 111, 79, .5), transparent); }
.about-text .divider svg { width: 20px; height: 20px; }
.about-lead { font-size: 18.5px; color: var(--ink-2); line-height: 1.65; }
.about-quote { font-size: clamp(22px, 2.6vw, 28px); color: var(--primary); padding: 12px 22px; border-radius: 18px; width: fit-content;
  background: linear-gradient(90deg, rgba(217, 201, 178, .55), rgba(217, 201, 178, 0)); }
.about-text .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-wrap .contact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ==========================================================================
   MANI DARBI (sākumlapā) UN GALERIJA
   ========================================================================== */
.works { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 32px; align-items: center; padding: 34px; }
.works-intro { display: grid; gap: 12px; }
.works-intro h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; }
.works-intro p { color: var(--ink-2); font-size: 16.5px; }
.works-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.works-thumbs a { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; position: relative; box-shadow: var(--shadow-sm); }
.works-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.works-thumbs a:hover img { transform: scale(1.05); }
.ba-chip { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: var(--primary); letter-spacing: .02em; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .55); font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: .2s; }
.filters button:hover { background: #fff; }
.filters button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 60px; }
.g-card { margin: 0; border-radius: 24px; overflow: hidden; background: var(--glass-solid); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.g-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(46, 58, 47, .06); }
.g-media > button.g-open { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: zoom-in; }
.g-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-card figcaption { padding: 12px 16px 14px; display: grid; gap: 2px; }
.g-card figcaption b { font-size: 14.5px; color: var(--primary); }
.g-card figcaption span { font-size: 12.5px; color: var(--muted); }

/* pirms / pēc salīdzinājums */
.compare { position: relative; width: 100%; height: 100%; overflow: hidden; --p: 50; touch-action: pan-y; user-select: none;
  /* rokturis sakrīt ar slīdņa „īkšķi” (44px), tāpēc pozīcija rēķināta tāpat kā pārlūkā */
  --pos: calc(22px + (100% - 44px) * var(--p) / 100); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--pos); width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); display: grid; place-items: center; pointer-events: none; color: var(--primary); }
.compare .knob svg { width: 22px; height: 22px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; -webkit-appearance: none; appearance: none; background: transparent;
  pointer-events: none; /* lapu var ritināt pāri bildei — slīdni pārvieto tikai rokturis */ }
.compare input[type=range]::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.compare input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 44px; height: 100%; cursor: ew-resize; background: transparent; border: 0; }
.compare input[type=range]::-moz-range-track { height: 100%; background: transparent; }
.compare input[type=range]::-moz-range-thumb { pointer-events: auto; width: 44px; height: 100%; cursor: ew-resize; background: transparent; border: 0; border-radius: 0; }
.compare input[type=range]:focus-visible ~ .knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare .tag { position: absolute; top: 12px; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(31, 39, 32, .62); color: #fff; letter-spacing: .04em; pointer-events: none; }
.compare .tag.l { left: 12px; } .compare .tag.r { right: 12px; }

/* pilnekrāna skats */
.lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(20, 25, 20, .9); display: grid; grid-template-rows: 1fr auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); animation: fade .2s; }
.lightbox .lb-stage { position: relative; display: grid; place-items: center; min-height: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.lightbox .lb-stage > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; }
.lightbox .lb-stage .compare { --ar: 4 / 5; aspect-ratio: var(--ar); width: min(100%, calc((100vh - 140px) * (var(--ar)))); height: auto; max-height: calc(100vh - 140px); border-radius: 14px; }
.lightbox .lb-cap { color: #f3efe4; text-align: center; padding-top: 12px; font-size: 14.5px; }
.lightbox .lb-cap span { opacity: .65; margin-left: 8px; }
.lightbox .lb-btn { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-prev { left: 4px; } .lightbox .lb-next { right: 4px; }
.lightbox .lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; margin-top: 0; z-index: 2; }

/* admin galerija */
.drop { display: grid; place-items: center; gap: 6px; text-align: center; min-height: 170px; padding: 18px; border-radius: 18px; border: 2px dashed rgba(46, 58, 47, .22); background: rgba(255, 255, 255, .45); cursor: pointer; transition: .2s; color: var(--ink-2); font-size: 14px; position: relative; overflow: hidden; }
.drop:hover, .drop.over { border-color: var(--secondary); background: rgba(255, 255, 255, .8); }
.drop svg { width: 30px; height: 30px; color: var(--secondary); }
.drop img.prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .lbl { position: absolute; left: 10px; top: 10px; z-index: 1; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.adm-g { border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.adm-g .media { aspect-ratio: 4 / 5; position: relative; background: rgba(46, 58, 47, .06); }
.adm-g .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-g .media.split { display: grid; grid-template-columns: 1fr 1fr; }
.adm-g.hidden-item .media { opacity: .45; }
.adm-g .body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.adm-g .body b { font-size: 13.5px; }
.adm-g .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-g .acts .icon-btn { width: 34px; height: 34px; }
.about-admin-photo { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { max-width: 460px; margin: 0 auto; width: 100%; }
  .about-badge { left: 8px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 720px) {
  .works-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photo::before { inset: 12px -10px -12px 10px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g-card { border-radius: 18px; }
  .g-card figcaption { padding: 10px 12px; }
}

/* sadaļu enkuri neslīd zem lipīgās augšējās joslas */
main section[id] { scroll-margin-top: 96px; }

/* pārbaudes labojumi */
.about-grid.no-photo { grid-template-columns: 1fr; }
.about-grid.no-photo .about-text { max-width: 760px; }
@media (max-width: 960px) { .mobile-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 720px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: calc(6px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
  .lightbox .lb-cap { padding: 12px 56px 0; min-height: 48px; }
}
body.lb-open .wa-fab { display: none; }
