/* ===== Tokens ===== */
:root {
  --c-primary: #0d5b8c;
  --c-primary-hover: #0a4a73;
  --c-accent: #5fb8d6;
  --c-accent-soft: #e4f0f9;
  --c-bg: #ffffff;
  --c-bg-tint: #f3f7fb;
  --c-text: #17262d;
  --c-text-muted: #55666e;
  --c-border: #d8e3ee;
  --c-ok: #1f7a4d;
  --c-closed: #a2412b;

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Newsreader", Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 40, 70, .06), 0 8px 24px rgba(10, 40, 70, .08);
  --container: 1160px;
  --header-h: 72px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-hover); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.muted { color: var(--c-text-muted); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: .75em;
}
.lead { font-size: 1.15rem; color: var(--c-text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn-ghost { border-color: var(--c-border); color: var(--c-primary); background: #fff; }
.btn-ghost:hover { border-color: var(--c-primary); }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
  color: var(--c-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--c-border); box-shadow: 0 2px 12px rgba(10, 40, 70, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.brand-text small { color: var(--c-text-muted); font-size: .8rem; }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--c-text); font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav a:hover, .nav a.is-active { color: var(--c-primary); background: var(--c-accent-soft); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius-sm);
}
.nav-toggle span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand-text strong, .nav a, .header-call { white-space: nowrap; }

@media (max-width: 900px) {
  .header-call { display: none; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: 0 12px 24px rgba(10, 40, 70, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1000px 420px at 50% 100%, var(--c-accent-soft), transparent 70%),
    linear-gradient(#fff, var(--c-bg-tint));
  padding-top: clamp(40px, 7vw, 80px);
  overflow: hidden;
}
.hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.hero-copy .lead { max-width: 620px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }


.hero-photo { position: relative; margin: 32px 0 0; }
.hero-photo img { width: 100%; aspect-ratio: 1982 / 750; object-fit: cover; object-position: bottom; mix-blend-mode: multiply; }
.hero-photo figcaption {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  background: var(--c-primary); color: #fff; padding: 22px 30px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: right; max-width: 40%;
}
.hero-photo blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.25; text-align: left; }
.hero-photo figcaption span { display: block; margin-top: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

@media (max-width: 640px) {
  .hero-photo figcaption {
    position: static; transform: none; max-width: none; margin: 12px 0 28px; padding: 4px 0 4px 18px;
    background: none; color: var(--c-text); box-shadow: none; border-radius: 0;
    border-left: 3px solid var(--c-accent); text-align: left;
  }
  .hero-photo blockquote { font-size: 1.25rem; font-style: italic; color: var(--c-primary); }
  .hero-photo figcaption span { color: var(--c-text-muted); opacity: 1; margin-top: 4px; }
}

/* ===== Facts ===== */
.facts { background: var(--c-primary); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; border-left: 1px solid rgba(255, 255, 255, .15); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.fact span { font-size: .95rem; opacity: .85; }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
}

/* ===== Sections ===== */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--c-bg-tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--c-text-muted); font-size: 1.1rem; }

.section-head-sub { margin: 64px 0 28px; }
.h2-like { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ===== Oferta ===== */
.offer {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.offer li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 600;
}
.offer li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ===== Cards (zabiegi) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-wide { grid-column: 1 / -1; }
.card-wide .list { columns: 3 220px; column-gap: 32px; }
.card-wide .list li { break-inside: avoid; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-accent-soft); color: var(--c-primary); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon circle { fill: currentColor; stroke: none; }

.list { padding-left: 1.1em; margin: 0; }
.list li { margin-bottom: .3em; }
.list li::marker { color: var(--c-accent); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 376 / 400; object-fit: cover; }
.about-photo figcaption { margin-top: 10px; font-size: .9rem; color: var(--c-text-muted); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery-item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }

/* ===== Team ===== */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; max-width: 720px; } }
.person {
  display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: start;
  background: var(--c-bg-tint); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--c-border);
}
.person img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: top;
  background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--c-border);
}
.person h3 { margin-bottom: .15em; }
.person p:last-child { margin-bottom: 0; }
.role { color: var(--c-primary); font-weight: 600; font-size: .95rem; }
.person p:not(.role) { color: var(--c-text-muted); font-size: .97rem; }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .person img { margin-inline: auto; }
}

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.phone-big {
  display: inline-flex; align-items: center; gap: 12px; margin: 8px 0 28px;
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600;
  text-decoration: none; color: var(--c-primary);
}
.info-list { margin: 0 0 28px; display: grid; gap: 22px; }
.info-list dt { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 4px; }
.info-list dd { margin: 0; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: 3px 24px 3px 0; }
.hours td { padding: 3px 0; font-variant-numeric: tabular-nums; }
.hours tr.is-today { color: var(--c-primary); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-bg-tint); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: #0b2a44; color: #cfdcec; padding-block: 40px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #8ea6c2; }
.footer-inner p { margin: 0 0 .4em; }

/* ===== Mobile call bar ===== */
.mobile-call {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  align-items: center; justify-content: center; gap: 10px;
  background: var(--c-primary); color: #fff; text-decoration: none; font-weight: 700;
  padding: 15px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 8px 24px rgba(10, 40, 70, .3);
  padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px) * .5);
}
.mobile-call:hover { color: #fff; }
@media (max-width: 900px) {
  .mobile-call { display: flex; }
  .site-footer { padding-bottom: 100px; }
}

/* ===== Dialogs ===== */
dialog { border: 0; padding: 0; color: var(--c-text); }
dialog::backdrop { background: rgba(8, 25, 45, .7); }
.dialog-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--c-bg-tint); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--c-text);
}
.dialog-close:hover { background: var(--c-accent-soft); }

.lightbox { background: transparent; max-width: min(92vw, 640px); max-height: 92vh; overflow: visible; }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox .dialog-close { top: -14px; right: -14px; background: #fff; }

.bio {
  width: min(100% - 32px, 720px); max-height: 86vh; overflow-y: auto;
  border-radius: var(--radius); padding: 36px clamp(20px, 4vw, 40px);
}
.bio h3 { font-size: 1.8rem; padding-right: 40px; }
.bio h4 { margin: 1.6em 0 .5em; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); }
.bio ul { padding-left: 1.1em; margin: 0; }
.bio li { margin-bottom: .45em; }
.bio li::marker { color: var(--c-accent); }

/* ===== Reveal on scroll ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ===== FAQ ===== */
.faq { max-width: 860px; }
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0; font-weight: 600; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { color: var(--c-primary); }
.faq-answer { padding: 0 48px 20px 0; color: var(--c-text-muted); }
.faq-answer p { margin: 0; }
