/* RB Dental – hlavní styly */
:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --ink: #0B2328;
  --ink-2: #33494D;
  --muted: #4A5F63;
  --muted-2: #6B7F82;
  --line: #DCE5E3;
  --line-2: #EDF2F1;
  --field: #B9CBC7;
  --accent: #0F766E;
  --accent-dark: #0B5A54;
  --mint: #DDF1EC;
  --mint-ink: #0B4F49;
  --amber-bg: #FFF4E0;
  --amber-ink: #7A4A00;
  --amber: #B45309;
  --dark: #0B2328;
  --dark-2: #16363C;
  --dark-line: #3C5E63;
  --on-dark: #E8F3F1;
  --on-dark-2: #A9C7C2;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px;
  --r-md: 24px;
  --r-sm: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1350px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.narrow { max-width: 400px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Lišta upozornění */
.notice { background: var(--dark); color: var(--on-dark); font-size: 14px; font-weight: 600; text-align: center; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }

/* Hlavička */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-text small { font-size: 13px; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .site-header { position: static; }
  .main-nav { order: 3; width: 100%; gap: 0 20px; overflow-x: auto; flex-wrap: nowrap; }
}

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Štítky */
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-teal { background: var(--mint); color: var(--mint-ink); }
.tag-amber { background: var(--amber-bg); color: var(--amber-ink); }
.tag-grey { background: var(--line-2); color: var(--muted); }
.pill { align-self: flex-start; display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 14px; font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow-amber { color: var(--amber); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; padding-top: 72px; padding-bottom: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero h1 { font-weight: 300; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -0.025em; }
.hero h1 span { font-weight: 500; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hours-card { flex: 1 1 380px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 48px -32px rgba(11, 35, 40, .35); }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hours-head h2 { font-size: 22px; font-weight: 700; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; }
.hours .is-open dd { font-weight: 600; }
.hours .is-closed dd { color: var(--muted-2); }
.hours .is-today { background: linear-gradient(var(--mint), var(--mint)) no-repeat; background-size: 100% 100%; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; border-bottom-color: transparent; }
.hours-note { background: var(--bg); border-radius: var(--r-sm); padding: 16px 18px; font-size: 15px; color: var(--ink-2); }

/* Rychlé info */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-bottom: 80px; }
.quick-item { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.quick-item p { font-size: 15px; color: var(--muted); }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; }
.ico-lg { width: 56px; height: 56px; border-radius: 16px; color: var(--accent); }

/* Sekce */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 40px; }
.section-head.row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 48px; }
.section-head.row > div { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.section-head h2, .about h2, .contact h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }

.split { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.split .section-head { flex: 1 1 300px; min-width: 0; margin: 0; }
.news { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.news-item { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.news-item h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
.news-body { color: var(--ink-2); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 240px; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(11, 35, 40, .4); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.num { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted-2); }
.service h3 { font-size: 22px; font-weight: 700; }
.service p { color: var(--muted); }

/* O nás */
.dark { background: var(--dark); color: var(--on-dark); }
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.about picture { flex: 1 1 420px; min-width: 0; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 40%; border-radius: var(--r-lg); }
.about-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about .eyebrow { color: #7FD3C6; }
.about h2 { color: #fff; }
.about .lead { color: #C3D9D5; }
.small-label { font-size: 14px; color: var(--on-dark-2); }
.chips { list-style: none; margin: -8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--dark-line); font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; }
.chips a:hover { background: var(--dark-2); color: #fff; }

/* Pohotovost */
.emergency { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.em-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.em-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.em-head h3 { font-size: 22px; font-weight: 700; }
.em-time { font-family: var(--display); font-weight: 700; color: var(--amber); white-space: nowrap; }
.em-card p { font-size: 15px; color: var(--ink-2); }
.em-place { margin-top: auto; font-size: 14px !important; }

/* Kontakt */
.contact { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.contact-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact address { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.big-phone { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--ink); text-decoration: none; }
.map { position: relative; flex: 1; min-height: 320px; border-radius: var(--r-md); overflow: hidden; background: #E6EEEC; border: 1px solid var(--line); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -100%); }
.map-load { position: absolute; left: 50%; top: 46%; transform: translateX(-50%); min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field); background: rgba(255,255,255,.9); font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.map-load:hover { background: #fff; }
.map-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: var(--r-sm); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; box-shadow: 0 12px 24px -16px rgba(11, 35, 40, .4); }
.map-card > div:first-child { display: flex; flex-direction: column; line-height: 1.3; }
.map-card span { font-size: 14px; color: var(--muted); }
.map-links { display: flex; gap: 8px; flex-wrap: wrap; }
.map.is-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded .map-art, .map.is-loaded .map-pin, .map.is-loaded .map-load { display: none; }
.map.is-loaded .map-card { display: none; }

.contact-form { flex: 1 1 460px; min-width: 0; background: var(--bg); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-form h3 { font-size: 24px; font-weight: 700; }
.contact-form > p { font-size: 15px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row label { flex: 1 1 200px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input[type=text], .contact-form input[type=tel], .contact-form input[type=email], .contact-form textarea {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 12px; background: #fff; font: 400 16px var(--body); color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 3px solid rgba(15,118,110,.18); }
.contact-form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; color: var(--ink-2); }
.contact-form .check input { width: 20px; height: 20px; accent-color: var(--accent); }
.contact-form button { align-self: flex-start; border: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.alert-ok { background: var(--mint); color: var(--mint-ink); }
.alert-err { background: #FDECEC; color: #8A1C1C; }

/* Textové stránky */
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.prose h1 { font-weight: 300; font-size: clamp(32px, 4vw, 48px); margin: 12px 0 24px; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 32px 0 8px; }
.prose p { margin-bottom: 12px; color: var(--ink-2); }
.prose.center { text-align: center; }
.crumbs { font-size: 14px; color: var(--muted); }

/* Patička */
.site-footer { background: var(--dark); color: var(--on-dark-2); font-size: 15px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; padding-top: 56px; padding-bottom: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; }
.footer-title { color: #fff; font-weight: 600; }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid #1F4248; font-size: 14px; }

@media (max-width: 600px) {
  .hero { padding-top: 40px; }
  .section, .about, .contact { padding-top: 64px; padding-bottom: 64px; }
  .split { padding-top: 64px; padding-bottom: 64px; }
  .hours-card, .contact-form { padding: 24px; }
  .service, .em-card, .news-item { padding: 24px; }
  .header-row .btn-sm span { display: none; }
}
