/* ============================================================
   Centrum Stomatologii — Landing
   Design system
   ============================================================ */
:root {
  /* Color */
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-deep: #eef4f9;
  --blue: #1e88c7;
  --blue-700: #156a9e;
  --blue-050: #e8f3fb;
  --blue-tint: #d8ebf7;
  --ink: #0f2a3f;
  --ink-70: #3c5365;
  --ink-50: #6c7e8c;
  --cta: #2bb7a3;
  --cta-700: #1f9384;
  --line: #e2ebf2;
  --line-strong: #cfdde8;
  --star: #f5a623;

  /* Type */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15, 42, 63, .05), 0 1px 3px rgba(15, 42, 63, .05);
  --sh: 0 6px 18px rgba(15, 42, 63, .07);
  --sh-md: 0 14px 34px rgba(15, 42, 63, .10);
  --sh-cta: 0 10px 24px rgba(43, 183, 163, .32);
  --sh-blue: 0 10px 24px rgba(30, 136, 199, .28);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --section-y: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* `clip` (nie `hidden`) — przycina poziome przepełnienie BEZ tworzenia
   kontenera przewijania, dzięki czemu position:sticky w nagłówku działa. */
html, body { overflow-x: clip; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout helpers ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 16px;
}
.section-head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-70);
}

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--cta { background: var(--cta); color: #fff; box-shadow: var(--sh-cta); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(43,183,163,.42); background: var(--cta-700); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn--blue:hover { transform: translateY(-2px); background: var(--blue-700); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* Header -------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--sh-sm); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #2aa6cf);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-blue);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: -.01em; }
.brand__sub { display: block; font-size: 12.5px; color: var(--ink-50); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  position: relative;
  padding-block: 4px;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--blue); border-radius: 2px;
  transition: width .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--ink);
}
.header__phone svg { width: 18px; height: 18px; color: var(--blue); }
.header__phone:hover { color: var(--blue); }

.burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--ink); }
.burger svg { width: 26px; height: 26px; }

/* Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 88% 0%, var(--blue-050) 0%, rgba(232,243,251,0) 60%),
    radial-gradient(40% 70% at 0% 100%, #eafaf6 0%, rgba(234,250,246,0) 55%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 88px;
}
/* Bez tego tor 1fr (= minmax(auto,1fr)) bierze min-content elementów
   (m.in. <image-slot>) i rozpycha grid ponad szerokość ekranu na mobile. */
.hero__inner > * { min-width: 0; }
.hero__media image-slot { max-width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--ink-70);
  box-shadow: var(--sh-sm);
}
.hero__badge b { color: var(--ink); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px rgba(43,183,163,.18); }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  margin-top: 22px;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--blue); }
.hero__sub {
  font-size: 20px;
  color: var(--ink-70);
  margin-top: 22px;
  max-width: 30em;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; align-items: center; }
.hero__phone-wrap { display: flex; flex-direction: column; }
.hero__phone-wrap span { font-size: 13px; color: var(--ink-50); font-weight: 500; }
.hero__phone-num {
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  color: var(--ink); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 9px;
}
.hero__phone-num svg { width: 21px; height: 21px; color: var(--cta); }
.hero__phone-num:hover { color: var(--cta-700); }
.hero__hours {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px; font-size: 15px; color: var(--ink-70); font-weight: 500;
}
.hero__hours svg { width: 17px; height: 17px; color: var(--blue); }
.hero__hours b { color: var(--ink); font-weight: 600; }

.hero__media { position: relative; }
.hero__media image-slot {
  width: 100%; height: 520px;
  box-shadow: var(--sh-md);
}
.hero__float {
  position: absolute;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 13px;
}
.hero__float--rating { bottom: 26px; left: -26px; }
.hero__float--years { top: 26px; right: -22px; }
.hero__float .ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.hero__float--rating .ico { background: var(--star); }
.hero__float--years .ico { background: var(--blue); }
.hero__float .ico svg { width: 22px; height: 22px; }
.hero__float .num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1; }
.hero__float .lbl { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-50); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 13px; height: 13px; }

/* Trust bar ----------------------------------------------------- */
.trust {
  background: var(--ink);
  color: #fff;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 40px;
}
.trust__item {
  text-align: center;
  padding-inline: 20px;
  position: relative;
}
.trust__item + .trust__item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56px; background: rgba(255,255,255,.14);
}
.trust__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 38px; line-height: 1; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.trust__num svg { width: 28px; height: 28px; color: var(--cta); }
.trust__lbl { margin-top: 10px; color: rgba(255,255,255,.72); font-size: 15px; }

/* Problem -> Solution ------------------------------------------- */
.solve__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.solve__inner > * { min-width: 0; }
.solve__media image-slot { max-width: 100%; }
.solve__media image-slot { width: 100%; height: 440px; box-shadow: var(--sh); }
.solve h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 16px; }
.solve__lead { font-size: 19px; color: var(--ink-70); margin-top: 18px; }
.solve__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.solve__list li { display: flex; gap: 15px; align-items: flex-start; }
.solve__list .chk {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--blue-050); color: var(--blue);
  display: grid; place-items: center;
}
.solve__list .chk svg { width: 17px; height: 17px; }
.solve__list b { font-family: var(--font-head); font-weight: 600; }
.solve__list span { color: var(--ink-70); }

/* Services ------------------------------------------------------ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 22px 24px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  cursor: pointer;
  position: relative;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--blue-tint);
}
.svc__ico {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--blue-050); color: var(--blue);
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease;
}
.svc:hover .svc__ico { background: var(--blue); color: #fff; }
.svc__ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 17.5px; margin-top: 18px; }
.svc p { font-size: 14.5px; color: var(--ink-50); margin-top: 7px; }

/* Why us -------------------------------------------------------- */
.why { background: var(--ink); color: #fff; }
.why .eyebrow { color: #7fd0ff; }
.why .eyebrow::before { background: #7fd0ff; }
.why h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-top: 16px; }
.why__head p { color: rgba(255,255,255,.72); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.why__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: background .25s ease, transform .2s ease;
}
.why__card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.why__ico {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #2aa6cf);
  display: grid; place-items: center; color: #fff; box-shadow: var(--sh-blue);
}
.why__ico svg { width: 27px; height: 27px; }
.why__card h3 { color: #fff; font-size: 20px; margin-top: 22px; }
.why__card p { color: rgba(255,255,255,.66); font-size: 15px; margin-top: 10px; }

/* Team ---------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; text-align: center;
  transition: transform .2s ease, box-shadow .25s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.doc image-slot {
  width: 132px; height: 132px; margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg-soft);
}
.doc h3 { font-size: 19px; margin-top: 22px; }
.doc .role { color: var(--blue); font-weight: 600; font-size: 14px; font-family: var(--font-head); margin-top: 6px; }
.doc .bio { color: var(--ink-50); font-size: 14px; margin-top: 12px; }

/* Reviews ------------------------------------------------------- */
.rev-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 48px; }
.rev-score {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 22px; box-shadow: var(--sh-sm);
}
.rev-score .big { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; }
.rev-score .stars svg { width: 17px; height: 17px; }
.rev-score small { color: var(--ink-50); font-size: 13px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.rev .stars { margin-bottom: 16px; }
.rev .stars svg { width: 16px; height: 16px; }
.rev blockquote { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.6; flex: 1; }
.rev .who { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.rev .ava {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-050); color: var(--blue);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.rev .who b { display: block; font-family: var(--font-head); font-size: 15px; }
.rev .who span { font-size: 13px; color: var(--ink-50); }

/* Pricing teaser ------------------------------------------------ */
.price-cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-md);
}
.price-cta__main {
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; padding: 56px 52px;
}
.price-cta__main h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); }
.price-cta__main p { color: rgba(255,255,255,.86); font-size: 18px; margin-top: 16px; max-width: 30em; }
.price-cta__main .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.price-cta__main .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.price-cta__main .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.price-cta__aside {
  background: var(--cta);
  color: #fff; padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.price-cta__aside .tag { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.price-cta__aside .free { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.1; }
.price-cta__aside p { font-size: 15.5px; opacity: .92; margin-top: 8px; }

/* FAQ ----------------------------------------------------------- */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: var(--blue-tint); box-shadow: var(--sh); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink);
}
.faq-q .pm {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-050); color: var(--blue);
  display: grid; place-items: center; transition: transform .3s ease, background .2s ease;
}
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-item.open .pm { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a__inner { padding: 0 24px 24px; color: var(--ink-70); font-size: 16px; }

/* Contact / booking --------------------------------------------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px 36px; box-shadow: var(--sh);
}
.form-card h3 { font-size: 24px; }
.form-card > p { color: var(--ink-70); margin-top: 8px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; font-family: var(--font-head); color: var(--ink); }
.field input, .field select {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg-soft); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px var(--blue-050);
}
.field input.invalid, .field select.invalid { border-color: #e05757; box-shadow: 0 0 0 4px rgba(224,87,87,.12); }
.form-note { font-size: 13px; color: var(--ink-50); margin-top: 14px; text-align: center; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--cta); color: #fff; display: grid; place-items: center;
}
.form-success .ico svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 23px; }
.form-success p { color: var(--ink-70); margin-top: 10px; }

.info-card { display: flex; flex-direction: column; gap: 22px; }
.info-map {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  height: 230px; box-shadow: var(--sh-sm);
}
.info-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.info-rows { display: grid; gap: 4px; }
.info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row .ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--blue-050); color: var(--blue); display: grid; place-items: center;
}
.info-row .ico svg { width: 20px; height: 20px; }
.info-row .lbl { font-size: 13px; color: var(--ink-50); font-weight: 500; }
.info-row .val { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; margin-top: 2px; }
.info-row .val a:hover { color: var(--blue); }
.hours-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-70); padding: 3px 0; }
.hours-line b { color: var(--ink); font-weight: 600; }

/* Footer -------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 56px 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: rgba(255,255,255,.55); }
.footer__about { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.6); max-width: 30em; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px;
}

/* Sticky mobile CTA --------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(15,42,63,.10);
}
.mobile-cta .btn { flex: 1; padding: 14px 12px; }

/* Mobile menu --------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px); display: none; flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.mobile-menu nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { margin-top: 28px; }
.mobile-menu__close { background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.mobile-menu__close svg { width: 28px; height: 28px; }

/* Reveal on scroll ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Overflow safety ----------------------------------------------- */
/* Pozwól komórkom siatek zwężać się poniżej min-content, a długim
   słowom (terminy medyczne, e-mail) łamać się — inaczej rozpychają
   layout ponad szerokość ekranu na wąskich telefonach. */
.trust__item, .svc, .why__card, .doc, .rev,
.price-cta > *, .footer__top > *, .contact__inner > * { min-width: 0; }
.trust__num, .trust__lbl, .svc h3, .svc p, .why__card h3, .why__card p,
.doc h3, .rev blockquote, .price-cta__main h2, .price-cta__aside .free,
.faq-q, .info-row .val { overflow-wrap: break-word; }
.info-row .val a { word-break: break-word; }

/* ============================================================
   Responsive
   ============================================================ */
/* Nawigacja zawija się do dwóch linii poniżej ~1100px — zwiń ją do
   hamburgera wcześniej i dosuń akcje (z hamburgerem) do prawej. */
@media (max-width: 1120px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Opinie mają sporo tekstu — redukuj kolumny wcześnie, by uniknąć
   łamania litera po literze w wąskich kartach. */
@media (max-width: 980px) {
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --section-y: 64px; }
  .header__actions .btn--cta { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 56px; }
  .hero__media { order: -1; }
  .hero__media image-slot { height: 340px; }
  .hero__float--years { right: 8px; }
  .hero__float--rating { left: 8px; }

  .solve__inner { grid-template-columns: 1fr; gap: 36px; }
  .solve__media { order: -1; }
  .solve__media image-slot { height: 300px; }

  .faq__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__inner { grid-template-columns: 1fr; }
  .price-cta { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Pasek statystyk: 4 kolumny robią się ciasne już na tablecie. */
@media (max-width: 860px) {
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .trust__item:nth-child(3)::before, .trust__item:nth-child(1)::before { display: none; }
  .trust__item:nth-child(3), .trust__item:nth-child(4) { padding-top: 0; }
  .trust__item { padding-inline: 10px; }
  .trust__num { font-size: 30px; }
  .trust__num svg { width: 23px; height: 23px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .mobile-cta { display: flex; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .rev-grid { grid-template-columns: 1fr; }
  .rev { margin: 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .trust__grid { grid-template-columns: 1fr; gap: 26px; }
  .trust__item { padding-top: 0; padding-inline: 0; }
  .trust__item + .trust__item::before { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .form-card, .price-cta__main, .price-cta__aside { padding-inline: 24px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .header__inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 11.5px; }
  .trust__num { font-size: 27px; }
}
