/* Canis – całodobowa wyjazdowa pomoc weterynaryjna */
/* Plus Jakarta Sans – self-hosted (variable font, wght 200–800) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/jakarta-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/jakarta-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
   --bg: #f6f8f7;
   --surface: #ffffff;
   --surface-2: #eef4f2;
   --ink: #0f1f1c;
   --ink-2: #44554f;
   --muted: #6b7c76;
   --line: #dfe8e5;
   --brand: #0f766e;
   --brand-2: #14b8a6;
   --brand-ink: #ffffff;
   --accent: #f97316;
   --accent-2: #ea580c;
   --dark: #0b1a18;
   --radius: 18px;
   --radius-sm: 12px;
   --shadow: 0 1px 2px rgba(15, 31, 28, .06), 0 8px 24px rgba(15, 31, 28, .06);
   --shadow-lg: 0 24px 60px rgba(15, 31, 28, .18);
   --max: 1180px;
   --header-h: 72px;
   --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
   margin: 0;
   font-family: var(--font);
   font-size: 17px;
   line-height: 1.65;
   color: var(--ink);
   background: var(--bg);
   -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
   display: inline-flex; align-items: center; justify-content: center; gap: .55em;
   padding: .9em 1.4em; border-radius: 999px; border: 0;
   font: inherit; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
   transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--call { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(249, 115, 22, .35); }
.btn--call:hover { background: var(--accent-2); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--lg { font-size: 1.1rem; padding: 1em 1.6em; }

.pulse { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { transform: scale(2.8); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
   position: sticky; top: 0; z-index: 50;
   height: var(--header-h);
   background: rgba(255, 255, 255, .82);
   backdrop-filter: saturate(160%) blur(14px);
   -webkit-backdrop-filter: saturate(160%) blur(14px);
   border-bottom: 1px solid transparent;
   transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 31, 28, .06); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; }
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.45rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.brand__tag { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .2s, color .2s; }
.nav__link:hover, .nav__link.is-active { background: var(--surface-2); color: var(--brand); }
.nav__cta { margin-left: 10px; padding: .75em 1.15em; font-size: .95rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--ink); border-radius: 2px; transition: transform .25s, background-color .25s; }
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
   .nav-toggle { display: block; }
   .nav__cta { display: none; }
   .nav__list {
      position: fixed; top: var(--header-h); left: 0; right: 0;
      flex-direction: column; gap: 4px; padding: 12px 16px 20px;
      background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
      transform: translateY(-8px); opacity: 0; visibility: hidden;
      transition: transform .25s, opacity .25s, visibility .25s;
   }
   .nav-open .nav__list { transform: none; opacity: 1; visibility: visible; }
   .nav__link { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
}

/* ---------- Hero ---------- */
.hero {
   position: relative; isolation: isolate; overflow: hidden;
   color: #fff; background: var(--dark);
   padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
   content: ""; position: absolute; inset: 0; z-index: -1;
   background:
      radial-gradient(1000px 500px at 85% 0%, rgba(20, 184, 166, .25), transparent 60%),
      linear-gradient(90deg, rgba(8, 20, 18, .94) 0%, rgba(8, 20, 18, .82) 45%, rgba(8, 20, 18, .35) 100%);
}
@media (max-width: 720px) { .hero::before { background: linear-gradient(180deg, rgba(8, 20, 18, .78), rgba(8, 20, 18, .92)); } }
.hero__content { max-width: 680px; }
.badge {
   display: inline-flex; align-items: center; gap: 10px;
   padding: 8px 14px 8px 12px; border-radius: 999px;
   background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
   font-size: .88rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.8vw, 3.9rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .85); max-width: 600px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { width: 20px; height: 20px; color: #5eead4; flex: none; }
.hero__address { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 4px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hero__address a { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .hero__address { display: flex; flex-wrap: wrap; gap: 6px 12px; } }
.hero__address svg { width: 20px; height: 20px; color: #5eead4; flex: none; }
.hero__address a { color: #5eead4; font-weight: 700; }

/* ---------- Stats bar ---------- */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats__grid {
   display: grid; grid-template-columns: repeat(4, 1fr);
   background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 24px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-size: 1.6rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat__label { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.stat__value--sm { font-size: 1.15rem; line-height: 1.25; }
@media (max-width: 800px) {
   .stats__grid { grid-template-columns: repeat(2, 1fr); }
   .stat:nth-child(2) { border-right: 0; }
   .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section__lead { color: var(--ink-2); font-size: 1.08rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
   background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
   padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); margin-bottom: 18px; }
.section--alt .card__icon { background: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card--featured { background: linear-gradient(145deg, var(--brand), #115e59) !important; color: #fff; border: 0; }
.card--featured p { color: rgba(255, 255, 255, .85); }
.card--featured .card__icon { background: rgba(255, 255, 255, .15) !important; color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
   counter-increment: step; content: counter(step);
   display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
   background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Emergency banner */
.emergency {
   display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
   padding: clamp(28px, 4vw, 44px); border-radius: calc(var(--radius) + 6px);
   background: radial-gradient(600px 300px at 100% 0%, rgba(249, 115, 22, .35), transparent 60%), var(--dark);
   color: #fff; margin-top: 44px;
}
.emergency h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin-bottom: 8px; }
.emergency p { margin: 0; color: rgba(255, 255, 255, .8); }
@media (max-width: 720px) { .emergency { grid-template-columns: 1fr; } }

/* Area */
.area { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.area__group + .area__group { margin-top: 26px; }
.area__group h3 { display: flex; align-items: center; gap: 10px; }
.area__group h3 svg { width: 22px; height: 22px; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.area__note { margin-top: 22px; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } }

.map {
   position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; height: 100%;
   background: var(--surface-2) url("../img/map.webp") center / cover no-repeat; border: 1px solid var(--line);
}
.map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246, 248, 247, .1), rgba(246, 248, 247, .55)); }
.map__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map__btn:hover { transform: translate(-50%, calc(-50% - 2px)); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.section--alt .faq details { background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact__card--primary { background: linear-gradient(145deg, var(--brand), #115e59); color: #fff; border: 0; }
.contact__card--primary .contact__label { color: rgba(255, 255, 255, .75); }
.contact__label { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact__value { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.contact__value a { color: inherit; text-decoration: none; }
.contact__card p { margin: 0; color: inherit; opacity: .85; }
.contact__card .btn { margin-top: 18px; }
.contact__card--primary .btn--call { background: #fff; color: var(--brand); box-shadow: none; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__grid h3 { font-size: 1rem; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand__name { color: #5eead4; }
.site-footer .brand__tag { color: rgba(255, 255, 255, .6); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar {
   position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
   display: none; align-items: center; justify-content: center; gap: 10px;
   padding: 16px; border-radius: 999px; background: var(--accent); color: #fff;
   font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 14px 30px rgba(249, 115, 22, .45);
}
.callbar svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
   .callbar { display: flex; }
   .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* Page header (sub pages) */
.page-hero { background: var(--dark); color: #fff; padding: clamp(48px, 8vw, 88px) 0; }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); font-weight: 800; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumbs a { color: #5eead4; text-decoration: none; }

/* Footer links */
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Cookie consent – slim bar */
.consent {
   position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
   max-width: 780px; margin-inline: auto;
   display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
   background: var(--dark); color: #fff; border-radius: 14px;
   box-shadow: 0 12px 32px rgba(15, 31, 28, .25); padding: 10px 12px 10px 16px;
}
.consent[hidden] { display: none; }
.consent p { font-size: .88rem; margin: 0; flex: 1 1 260px; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.consent a { color: #5eead4; }
.consent__actions { display: flex; align-items: center; gap: 4px; }
.consent .btn { padding: .6em 1.1em; font-size: .88rem; }
.btn--primary { background: var(--brand-2); color: #042f2e; }
.btn--primary:hover { background: #5eead4; }
.consent__deny { background: none; border: 0; color: rgba(255, 255, 255, .75); font: inherit; font-size: .88rem; font-weight: 600; padding: .6em .9em; cursor: pointer; border-radius: 999px; }
.consent__deny:hover { color: #fff; background: rgba(255, 255, 255, .1); }
@media (max-width: 720px) { .consent { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Legal page */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
