/* ---------- Czcionki (hostowane lokalnie, licencja SIL OFL – patrz fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-regular-latin.woff') format('woff');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-medium-latin.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff') format('woff');
}

/* ---------- Zmienne ---------- */
:root {
  --navy: #111a22;
  --navy2: #1a2733;
  --gold: #c39a64;
  --gold-d: #85632d;
  --bg: #f8f5f3;
  --surface: #fff;
  --ink: #142235;
  --mute: #4f5b68;
  --line: #e3d9cc;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Sitka Display', 'Sitka Text', Sitka, Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151c;
    --surface: #151f29;
    --ink: #eceae6;
    --mute: #a4afb9;
    --line: #2b3947;
    --gold-d: #c39a64;
  }

  .logo img {
    filter: invert(1) brightness(.94);
  }

  .ok.err {
    color: #ff8a80;
  }
}

/* ---------- Baza ---------- */
* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-padding-top: 90px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}

p,
li {
  text-align: justify;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Akapity treści */
main p {
  font: 17px/1.7 var(--text);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #16202b;
  padding: 10px 16px;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Przycisk ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: #16202b;
  font: 500 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}

.btn:hover {
  background: #d3ac78;
}

.btn:disabled {
  opacity: .6;
  cursor: wait;
}

.btn::after {
  content: "→";
}

.btn.plain::after {
  content: none;
}

/* ---------- Nagłówek i menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: block;
  margin-right: auto;
  line-height: 0;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
}

nav a {
  font-size: 16px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

nav a.on,
nav a:hover {
  border-color: var(--gold);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 580px;
  overflow: hidden;
  background: var(--navy);
  color: #f1efe9;
}

.hero picture {
  display: contents;
}

.photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 20%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 20%, #000 42%);
}

.hero .wrap {
  position: relative;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero h1 img {
  display: block;
  width: min(520px, 100%);
  height: auto;
}

.rule {
  width: 240px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

.hero p {
  font: 17px/1.7 var(--text);
  max-width: 714px;
  color: #d6d9dc;
  margin-bottom: 32px;
}

.hero .tag {
  font: 400 clamp(26px, 3vw, 32px)/1.1 var(--serif);
  color: inherit;
  margin-bottom: 16px;
}

/* ---------- Tytuły sekcji ---------- */
.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
}

.title::before,
.title::after {
  content: "";
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: var(--line);
}

.title h2 {
  font-size: clamp(30px, 4vw, 40px);
}

/* ---------- O mnie ---------- */
.about {
  padding-top: 56px;
  padding-bottom: 72px;
}

.about h2 {
  font-size: clamp(34px, 4vw, 46px);
  margin-bottom: 16px;
}

.about p {
  margin-bottom: 16px;
}

.about p:last-of-type {
  margin-bottom: 28px;
}

/* ---------- Obszary praktyki ---------- */
.areas {
  padding: 64px 0 24px;
}

.jump {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.jump div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.jump a {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 18px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.jump a:hover {
  border-color: var(--gold);
  color: var(--gold-d);
}

.area {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 56px;
  align-items: baseline;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.area header {
  position: sticky;
  top: 110px;
}

.area h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.area .sub {
  color: var(--mute);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.prose p {
  margin-bottom: 16px;
}

h4 {
  font: 500 22px/1.2 var(--serif);
  margin: 18px 0 6px;
}

/* ---------- Dlaczego warto ---------- */
.how {
  padding: 56px 0 80px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cols>div {
  padding: 8px 32px;
  border-left: 1px solid var(--gold);
  text-align: center;
}

.cols>div:first-child {
  border-left: 0;
}

.cols h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.team {
  margin-top: 44px;
  padding: 32px 32px 0;
  border-top: 1px solid var(--line);
}

/* ---------- Kontakt ---------- */
.contact {
  padding: 64px 0;
  color: #f1efe9;
  background: linear-gradient(120deg, var(--navy) 55%, var(--navy2));
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .3em;
  margin-bottom: 12px;
}

.contact h2 {
  font-size: clamp(36px, 4.5vw, 50px);
  font-weight: 400;
  margin-bottom: 12px;
}

.contact p {
  color: #d6d9dc;
  margin-bottom: 28px;
}

.info {
  list-style: none;
  padding: 0 0 0 48px;
  border-left: 1px solid #3a4856;
}

.info li {
  padding: 10px 0;
}

.info a {
  text-decoration: none;
}

.info a:hover {
  color: var(--gold);
}

.info i {
  display: inline-block;
  width: 32px;
  font-style: normal;
  color: var(--gold);
}

/* ---------- Stopka ---------- */
footer {
  background: #0c1219;
  color: #c5cad0;
  font-size: 13px;
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px));
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.fnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}

footer a {
  margin-left: 14px;
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

/* ---------- Okna dialogowe i formularz ---------- */
dialog {
  width: calc(100% - 32px);
  max-width: 520px;
  margin: auto; /* reset `* {margin:0}` psuł wyśrodkowanie okna */
  padding: 32px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(10, 16, 22, .7);
}

dialog h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

dialog p {
  color: var(--mute);
  font-size: 15px;
  margin-bottom: 10px;
}

.x {
  float: right;
  background: none;
  border: 0;
  color: var(--mute);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

label {
  display: block;
  font-size: 14px;
  margin: 14px 0 4px;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
}

input:user-invalid,
textarea:user-invalid {
  border-color: #b3261e;
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--mute);
}

.chk input {
  width: auto;
  margin-top: 4px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ok {
  margin-top: 14px;
  color: var(--gold-d);
  font-size: 14px;
}

.ok.err {
  color: #b3261e;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .logo img {
    height: 42px;
  }

  .bar {
    gap: 12px;
  }

  .site-header .btn {
    display: none;
  }

  .burger {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  nav a {
    display: block;
    padding: 12px 0;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .photo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-position: center top;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 40%);
    mask-image: linear-gradient(to top, transparent 0, #000 40%);
  }

  .hero .wrap {
    margin-top: -70px;
    padding-top: 0;
    padding-bottom: 48px;
  }

  .title::before,
  .title::after {
    max-width: 48px;
  }

  .area {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 36px 0;
  }

  .area header {
    position: static;
  }

  .cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cols>div {
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--gold);
  }

  .cols>div:first-child {
    padding-top: 8px;
    border-top: 0;
  }

  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .info {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #3a4856;
  }

  footer .wrap {
    flex-direction: column;
  }

  footer a {
    margin: 0 14px 0 0;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn {
    padding: 13px 20px;
  }
}

/* ---------- Tekst ukryty wizualnie (dostępny dla wyszukiwarek i czytników ekranu) ---------- */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Strona: polityka prywatności ---------- */
.back {
  text-decoration: none;
  font-size: 16px;
}

.back:hover {
  color: var(--gold-d);
}

.legal {
  max-width: 820px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal h1 {
  font-size: clamp(34px, 4vw, 46px);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 26px;
  margin: 36px 0 10px;
}

.legal ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal ol ol {
  margin-top: 8px;
}

.legal li,
.legal p {
  font: 17px/1.7 var(--text);
  text-align: left;
  margin-bottom: 8px;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
