/* NajdiŘemeslo — workshop / slate */
:root {
  --slate-deep: #1e2a32;
  --slate: #2c3d48;
  --slate-mid: #3d5360;
  --brick: #a8452f;
  --brick-hover: #8c3826;
  --copper: #c4784a;
  --linen: #f3eee6;
  --linen-warm: #e8e0d4;
  --ink: #1a2228;
  --ink-muted: #5a6670;
  --line: rgba(30, 42, 50, 0.12);
  --paper: #f7f4ef;
  --shadow: 0 14px 40px rgba(30, 42, 50, 0.14);
  --radius: 6px;
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --header-h: 3.6rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 100% 70% at 0% -10%, rgba(168, 69, 47, 0.08), transparent 45%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(61, 83, 96, 0.1), transparent 40%),
    linear-gradient(180deg, var(--paper) 0%, var(--linen-warm) 100%);
  min-height: 100vh;
}

a { color: var(--slate); text-underline-offset: 0.18em; }
a:hover { color: var(--brick); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--slate-deep); color: #fff; padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-mark {
  width: 2rem; height: 2rem; border-radius: 8px;
  background: linear-gradient(145deg, var(--brick) 0%, var(--copper) 55%, var(--slate-mid) 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.brand-domain { font-size: 0.75rem; color: var(--ink-muted); }

.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a.is-active { color: var(--brick); }

.profession-switcher {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.switcher-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.switcher-label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick);
  padding: 0.55rem 0;
}
.switcher-inner {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0;
  min-width: max-content;
}
.switcher-item {
  display: flex; flex-direction: column;
  padding: 0.45rem 0.7rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink-muted);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.switcher-item:hover, .switcher-item.is-active {
  background: #fff; color: var(--ink); border-color: var(--line);
}
.switcher-item.is-active {
  border-color: color-mix(in srgb, var(--brick) 35%, var(--line));
  box-shadow: inset 0 -2px 0 var(--brick);
}
.switcher-name { font-weight: 600; font-size: 0.88rem; }
.switcher-short { font-size: 0.72rem; opacity: 0.75; }
.hero-meta-soft { opacity: 0.85; margin-top: 0.35rem !important; }

.hero { padding: 3rem 0 2rem; }
.hero-compact { padding: 2rem 0 1.25rem; }
.eyebrow {
  margin: 0 0 0.5rem; font-size: 0.85rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brick); font-weight: 600;
}
.hero h1 {
  margin: 0 0 0.75rem; font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; color: var(--slate-deep);
}
.hero-lead { margin: 0; max-width: 40rem; color: var(--ink-muted); font-size: 1.1rem; }
.hero-meta { margin: 1rem 0 0; font-size: 0.92rem; color: var(--slate-mid); }

.profession-grid-section, .results, .city-links, .note-section, .provider-detail {
  padding: 1.5rem 0 2.5rem;
}
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.55rem; }
.section-head p { margin: 0; color: var(--ink-muted); }

.profession-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem;
}
.profession-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.1rem 1.15rem; background: rgba(255,255,255,0.72);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.profession-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.profession-card strong { font-size: 1.05rem; }
.profession-card span { color: var(--ink-muted); font-size: 0.9rem; }
.profession-card em {
  margin-top: 0.4rem; font-style: normal; font-size: 0.8rem;
  color: var(--brick); font-weight: 600;
}

.hero-map { padding-bottom: 0.5rem; }
.map-stage {
  width: min(1120px, calc(100% - 2rem)); margin: 0 auto 0.75rem;
  height: 420px;
  min-height: 360px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--linen);
  position: relative;
}
.map-stage-home {
  margin-top: 1rem;
  height: min(480px, 58vh);
  min-height: 400px;
}
#map, .detail-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
}

.near-panel { padding: 0.5rem 0 1rem; }
.near-panel-home { padding-bottom: 1.5rem; }
.near-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 42rem;
}
.near-form select {
  flex: 0 1 11rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.near-form input[type="search"] {
  flex: 1 1 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.near-list { margin-top: 0.85rem; max-width: 42rem; }
.near-list:empty { display: none; }
.provider-item.is-near { position: relative; }
.provider-item .near-route-actions {
  margin: 0.35rem 0 0;
  padding: 0 1.1rem 0.75rem;
}
.provider-item .near-route-actions .btn { font-size: 0.85rem; padding: 0.4rem 0.75rem; }
.popup-route .route-btn { cursor: pointer; }
.detail-map {
  height: 320px; margin-top: 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
}

.provider-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.provider-item a {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.95rem 1.1rem; background: rgba(255,255,255,0.7);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.provider-item a:hover { border-color: rgba(168, 69, 47, 0.35); }
.provider-item span, .provider-item em {
  color: var(--ink-muted); font-size: 0.9rem; font-style: normal;
}
.provider-item.is-empty {
  padding: 1rem; color: var(--ink-muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.chip-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.chip-list a {
  display: inline-block; padding: 0.45rem 0.85rem; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 0.92rem; color: var(--slate);
}
.chip-list a:hover { border-color: var(--brick); color: var(--brick); }

.detail-meta { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.detail-meta div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem; }
.detail-meta dt { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }
.detail-meta dd { margin: 0; }

.form-note { color: var(--ink-muted); font-size: 0.92rem; }
.nav-links { margin: 1rem 0; }
.btn {
  display: inline-block; padding: 0.65rem 1.1rem; background: var(--brick);
  color: #fff; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; cursor: pointer; font-family: inherit; font-size: inherit;
}
.btn:hover { background: var(--brick-hover); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--slate); border-color: var(--line);
}
.btn-ghost:hover { background: var(--linen); color: var(--brick); border-color: color-mix(in srgb, var(--brick) 35%, var(--line)); }

.route-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.route-panel h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--slate-deep);
}
.route-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.route-form input {
  flex: 1 1 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.route-result-big {
  margin: 0.75rem 0 0;
  font-weight: 700;
  color: var(--slate);
  font-size: 1.05rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.note-section code, .section-head code {
  font-size: 0.88em; background: rgba(30, 42, 50, 0.06);
  padding: 0.1em 0.35em; border-radius: 3px;
}

.site-footer {
  margin-top: 2rem; padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line); background: rgba(30, 42, 50, 0.04);
}
.footer-inner { display: grid; gap: 1.25rem; }
.footer-brand p {
  margin: 0.4rem 0 0; color: var(--ink-muted); max-width: 36rem; font-size: 0.95rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.footer-nav a { text-decoration: none; color: var(--slate); font-size: 0.92rem; }
.footer-note { margin: 0; font-size: 0.82rem; color: var(--ink-muted); }

@media (max-width: 720px) {
  .nav { display: none; }
  .detail-meta div { grid-template-columns: 1fr; gap: 0.15rem; }
  .map-stage,
  .map-stage-home {
    height: 320px;
    min-height: 280px;
  }
  #map, .detail-map { min-height: 280px; }
}

/* Články, uplatnit, o-nas / kontakt */
.page { padding: 2rem 0 3.5rem; }
.page-narrow { max-width: 40rem; }
.breadcrumb {
  font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.25rem;
}
.breadcrumb a { text-decoration: none; }
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem; color: var(--slate-deep);
  letter-spacing: -0.02em; line-height: 1.15;
}
.lede { font-size: 1.1rem; color: var(--ink-muted); margin: 0 0 1.75rem; }

.prose p { margin: 0 0 1rem; }
.prose h2 {
  font-family: var(--font-display); font-size: 1.35rem;
  margin: 2rem 0 0.75rem; color: var(--slate-deep);
}

.form { display: flex; flex-direction: column; gap: 1rem; max-width: 28rem; }
.form label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-weight: 500; font-size: 0.92rem;
}
.form input, .form textarea, .form select {
  font: inherit; padding: 0.65rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--brick); outline-offset: 1px;
}

.alert {
  padding: 0.85rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem;
  background: rgba(61, 83, 96, 0.1); border: 1px solid rgba(61, 83, 96, 0.2);
}
.alert-error {
  background: rgba(168, 69, 47, 0.1); border-color: rgba(168, 69, 47, 0.25);
}

.category-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pill {
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(61, 83, 96, 0.1); color: var(--slate-deep);
}
.pill:hover { background: rgba(61, 83, 96, 0.18); }
.pill.is-active { background: var(--slate); color: #fff; }

.article-list {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  margin-bottom: 2rem;
}
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.article-card h2 {
  font-family: var(--font-display); font-size: 1.15rem;
  margin: 0 0 0.4rem; line-height: 1.3;
}
.article-card h2 a { text-decoration: none; color: var(--slate-deep); }
.article-card h2 a:hover { color: var(--brick); }
.article-card-meta { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 0.6rem; }
.article-card-excerpt {
  font-size: 0.94rem; color: var(--ink-muted); margin: 0 0 0.85rem; flex: 1;
}
.article-card-link { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--brick); }

.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pagination-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none;
  color: var(--slate-deep); font-weight: 600; font-size: 0.9rem;
}
.pagination-link.is-active { background: var(--slate); border-color: var(--slate); color: #fff; }

.page-article .article-meta {
  font-size: 0.88rem; color: var(--ink-muted); margin: 0 0 1.75rem;
}
.article-body { max-width: 42rem; }
.article-body h2 {
  font-family: var(--font-display); font-size: 1.4rem;
  margin: 2.2rem 0 0.85rem; color: var(--slate-deep);
}
.article-body h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem; color: var(--slate-deep);
}
.article-body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { font-weight: 600; }

.article-cta {
  margin: 2.5rem 0; padding: 1.25rem 1.5rem;
  background: rgba(61, 83, 96, 0.06); border: 1px solid var(--line);
  border-radius: var(--radius); max-width: 42rem;
}
.article-cta p {
  margin: 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

.related-articles {
  max-width: 42rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.related-articles h2 {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--slate-deep); margin: 0 0 0.75rem;
}
.related-articles-list { list-style: none; margin: 0; padding: 0; }
.related-articles-list li { margin-bottom: 0.45rem; }
.related-articles-list a { text-decoration: none; font-weight: 600; }

