/* Kisállatklinika Székesfehérvár – stíluslap
   Nincs külső betűkészlet, nincs külső erőforrás: a rendszer saját betűtípusa jelenik meg. */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --card: #ffffff;
  --ink: #14171a;
  --ink-2: #5b636c;
  --line: #e1e5e9;
  --accent: #0e6f78;
  --accent-strong: #0a565d;
  --accent-ink: #ffffff;
  --accent-soft: #e4f1f2;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 1px 2px rgba(20, 23, 26, 0.04), 0 12px 32px rgba(20, 23, 26, 0.06);
  --radius: 22px;
  --radius-s: 14px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f11;
    --bg-alt: #14171a;
    --card: #1a1e22;
    --ink: #f1f3f5;
    --ink-2: #a0a8b0;
    --line: #272c31;
    --accent: #5cc4cd;
    --accent-strong: #84d6dd;
    --accent-ink: #06282b;
    --accent-soft: #12292c;
    --nav-bg: rgba(13, 15, 17, 0.78);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f11;
  --bg-alt: #14171a;
  --card: #1a1e22;
  --ink: #f1f3f5;
  --ink-2: #a0a8b0;
  --line: #272c31;
  --accent: #5cc4cd;
  --accent-strong: #84d6dd;
  --accent-ink: #06282b;
  --accent-soft: #12292c;
  --nav-bg: rgba(13, 15, 17, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.022em; line-height: 1.08; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* ---------- Navigáció ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand small { font-weight: 400; color: var(--ink-2); font-size: 0.88em; }
.nav-links { display: flex; gap: 4px; order: 2; }
.nav-call { order: 3; }
.nav-toggle { order: 4; }
.nav-links a { color: var(--ink); font-size: 14.5px; padding: 8px 12px; border-radius: 999px; opacity: 0.82; }
.nav-links a:hover { opacity: 1; text-decoration: none; background: var(--bg-alt); }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-call { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-call:hover { background: var(--accent-strong); text-decoration: none; }
.nav-call svg { width: 15px; height: 15px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; border-radius: 10px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 860px) {
  .brand small { display: none; }
  .js .nav-toggle { display: block; }
  .nav-row { flex-wrap: wrap; }
  .nav-links { order: 5; width: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .js .nav-links { display: none; }
  .js .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; padding: 12px 4px; border-radius: 0; border-top: 1px solid var(--line); opacity: 1; }
  .nav-call .num { display: none; }
}
@media (min-width: 861px) { .nav-call .lbl { display: none; } }

/* ---------- Szakaszok ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.h-xl { font-size: clamp(2.7rem, 8vw, 5.4rem); letter-spacing: -0.035em; line-height: 1.02; }
.h-l { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.03em; }
.h-m { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; color: var(--ink-2); max-width: 34em; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.more { font-size: 1.05rem; font-weight: 500; }
.more::after { content: " ›"; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 11vw, 136px) clamp(48px, 8vw, 96px); text-align: center; background: radial-gradient(1100px 420px at 50% -120px, var(--accent-soft), transparent 70%), var(--bg); }
.hero .wrap { display: grid; justify-items: center; gap: 22px; }
.hero .lead { margin-inline: auto; }
.hero .eyebrow { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.05rem; padding: 14px 26px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.today { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; align-items: center; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; color: var(--ink-2); }
.today b { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-hero .wrap { display: grid; gap: 18px; }

/* ---------- Csempék ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.section:not(.alt) .tile { background: var(--bg-alt); box-shadow: none; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile .h-m { font-size: 1.3rem; }
.tile.wide { grid-column: 1 / -1; }

/* ---------- Szolgáltatáslista ---------- */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: clamp(24px, 5vw, 64px); }
.svc li { border-top: 1px solid var(--line); padding-block: 22px; display: grid; gap: 6px; align-content: start; }
.svc h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
.svc p { color: var(--ink-2); font-size: 16px; }

/* ---------- Segédosztályok ---------- */
.mt { margin-top: 28px; }
.m0 { margin: 0; }
.mb-s { margin-bottom: 8px; }
.section.pt-s { padding-top: 28px; }
.section.pt-0 { padding-top: 0; }
.actions.left { justify-content: flex-start; }

/* ---------- Rendelési idő ---------- */
.split { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.hours th { width: 7.2em; font-weight: 600; }
.hours td small { display: block; color: var(--ink-2); font-size: 14.5px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); }
.hours tr.is-today th::after { content: " · ma"; font-weight: 400; font-size: 14px; }
.note { color: var(--ink-2); font-size: 15.5px; margin-top: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.section:not(.alt) .card { background: var(--bg-alt); box-shadow: none; }
.card address { font-style: normal; font-size: 1.15rem; line-height: 1.45; }
.card .actions { justify-content: flex-start; margin-top: 4px; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.kv dt, .kv .k { color: var(--ink-2); }
.kv .v { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Árjegyzék ---------- */
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices td { padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 16px; }
.prices tr.first td { font-size: 1.12rem; }

/* ---------- Állatorvos ---------- */
.doc-name { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.roles { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline li { display: grid; grid-template-columns: 4.2em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li b { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 650; }

/* ---------- Hosszú szöveg ---------- */
.prose { display: grid; gap: 1.15em; font-size: 1.12rem; line-height: 1.65; }
.prose p { max-width: 38em; }
.prose .pull { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; max-width: 24em; padding-block: 0.4em; color: var(--ink); }
.prose .sign { color: var(--ink-2); }

/* ---------- Tanácsok ---------- */
.tools { display: grid; gap: 14px; position: sticky; top: calc(57px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); padding-block: 14px; border-bottom: 1px solid var(--line); }
.search { width: 100%; font: inherit; color: var(--ink); background: var(--bg-alt); border: 1px solid transparent; border-radius: 14px; padding: 13px 16px; }
.search:focus { outline: none; border-color: var(--accent); background: var(--card); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg-alt); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tipgroup { padding-top: clamp(36px, 5vw, 56px); display: grid; gap: 18px; }
.tipgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tip { background: var(--bg-alt); border-radius: var(--radius-s); padding: 22px 24px; display: grid; gap: 8px; align-content: start; scroll-margin-top: 170px; }
.tip h3 { font-size: 1.12rem; letter-spacing: -0.012em; line-height: 1.25; }
.tip p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.tip:target { box-shadow: inset 0 0 0 2px var(--accent); }
.empty { color: var(--ink-2); padding-block: 40px; }

/* ---------- Lábléc ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer h2 { font-size: 14.5px; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; font-weight: 600; }
.footer li { padding-block: 3px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.todo { background: #fff3c4; color: #5a4300; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .nav, .footer, .tools { display: none; } body { font-size: 12pt; } }
