@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #f5f3f7;
  --surface: #ffffff;
  --ink: #2a2230;
  --muted: #6b6271;
  --line: #dfd8e4;
  --accent: #7a4a70;
  --accent-ink: #ffffff;
  --accent-soft: #efe5ee;
  --ok: #33634c;
  --ok-soft: #e4efe8;
  --err: #9c3636;
  --err-soft: #f6e4e4;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1c1720;
    --surface: #26202b;
    --ink: #eee8f1;
    --muted: #b1a6b8;
    --line: #3d3443;
    --accent: #d6a3cb;
    --accent-ink: #231b26;
    --accent-soft: #3a2b38;
    --ok: #9fd0b3;
    --ok-soft: #22352b;
    --err: #f0a3a3;
    --err-soft: #3d2323;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.is-admin .wrap { max-width: 56rem; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .75rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--muted); margin: 1.25rem 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
code, .code { font-size: .9em; background: var(--accent-soft); padding: .1em .35em; border-radius: 4px; }
.code { display: block; padding: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* Hlavička: názov salónu je výrazný prvok stránky */
header.site { padding: 2.5rem 0 1.75rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.brand {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: .95; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.is-admin .brand { font-size: 1.6rem; }
.contact { margin: 0; text-align: right; font-size: .9rem; color: var(--muted); }
@media (max-width: 40rem) { .contact { text-align: left; } }
.site-foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }

/* Postup */
.steps { list-style: none; display: flex; gap: .4rem 1.25rem; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: .45rem; }
.steps span {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-weight: 600; font-size: .8rem;
}
.steps .done span { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.steps .now { color: var(--ink); font-weight: 600; }
.steps .now span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Procedúry */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li { border-bottom: 1px solid var(--line); }
.services a {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 1rem .25rem;
  color: inherit; text-decoration: none;
}
.services a:hover { background: var(--surface); }
.s-name { font-family: var(--serif); font-size: 1.25rem; }
.s-desc { grid-column: 1; color: var(--muted); font-size: .95rem; }
.s-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.s-meta b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }

.recap {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: .85rem 1rem; margin-bottom: 1.5rem;
}
.recap div { display: flex; flex-direction: column; }
.recap .when { font-weight: 600; }
.recap div span:last-child { color: var(--muted); font-size: .95rem; }

/* Kalendár a časy */
.booking-grid { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 2rem; align-items: start; }
@media (max-width: 40rem) { .booking-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.cal-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.cal-head a, .cal-head span { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 1.4rem; }
.cal-head a:hover { background: var(--accent-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.dow { font-size: .75rem; color: var(--muted); padding-bottom: .25rem; }
.day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; text-decoration: none; }
a.day { color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
a.day:hover { border-color: var(--accent); }
a.day.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day.off { color: var(--muted); opacity: .45; }
.slots h2 { margin-bottom: .25rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: .5rem; }
.times a {
  display: block; text-align: center; padding: .6rem 0; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600;
}
.times a:hover { border-color: var(--accent); color: var(--accent); }
.empty { color: var(--muted); }

/* Formuláre */
.form { display: grid; gap: 1rem; }
.form.narrow { max-width: 22rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: .65rem .75rem; width: 100%;
}
textarea { resize: vertical; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .55rem !important; font-weight: 400 !important; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > label { flex: 1 1 8rem; }
.row > .grow { flex: 3 1 14rem; }
.row.end { justify-content: space-between; align-items: center; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: .8rem 1.5rem; justify-self: start;
}
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-small { padding: .45rem 1rem; font-size: .9rem; }

.notice { padding: .8rem 1rem; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); }
.notice-err { background: var(--err-soft); color: var(--err); }

.done-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
.done-card .when { font-family: var(--serif); font-size: 1.6rem; margin: 0; }
.done-card .what { margin-top: .1rem; color: var(--muted); }
.prose { max-width: 38rem; }
.prose h2 { margin-top: 1.5rem; }

/* Admin */
.admin-nav { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-nav a, .tabs a { padding: .55rem .8rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a[aria-current], .tabs a[aria-current] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.admin-nav .logout { margin-left: auto; }
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; }
.day-h { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.blist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.blist li { display: flex; gap: 1rem; align-items: flex-start; padding: .8rem .25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.b-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.5rem; display: flex; flex-direction: column; }
.b-time small { font-weight: 400; color: var(--muted); }
.b-main { flex: 1 1 16rem; }
.b-contact { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .9rem; margin-top: .15rem; }
.b-note { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.b-act { display: flex; gap: .75rem; align-items: center; }
.tag { font-size: .78rem; background: var(--accent-soft); color: var(--accent); padding: .05rem .5rem; border-radius: 999px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; margin-bottom: 1rem; gap: .75rem; }
.svc-new { border-style: dashed; }
.hours label { grid-template-columns: 7rem 1fr; align-items: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
