/* Beata Piotrowska – gabinet psychologiczny
   Prosty arkusz stylów, bez zewnętrznych zależności. */

/* ---------- Kolory, czcionki ---------- */

:root {
  --bg: #faf8f4;          /* ciepła biel – tło strony */
  --surface: #ffffff;
  --text: #1f2a2e;
  --muted: #56646a;
  --accent: #2f6b66;      /* głęboka zieleń morska */
  --accent-dark: #24524e;
  --accent-soft: #e2ece9;
  --border: #e4e1da;
  --radius: 14px;

  --serif: Georgia, "Noto Serif", "DejaVu Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Podstawy ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

/* Nie łam wiersza wewnątrz (np. „WAIS-R”, imię i nazwisko z łącznikiem) */
.nowrap {
  white-space: nowrap;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  background: var(--accent);
  color: #fff;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn-light {
  border-color: rgb(255 255 255 / 0.7);
  color: #fff;
}

.btn-light:hover {
  background: #fff;
  color: var(--accent-dark);
}

/* ---------- Nagłówek ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.brand-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  order: 2;
  width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.header-phone {
  display: none;
  order: 1;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 40em) {
  .header-phone {
    display: inline-flex;
  }
}

/* Na dużych ekranach menu w jednej linii i nagłówek przyklejony do góry */
@media (min-width: 62em) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 1;
    width: auto;
    margin-left: auto;
  }

  .header-phone {
    order: 2;
  }
}

/* ---------- Wstęp ---------- */

.hero {
  padding-block: clamp(3.5rem, 10vw, 7.5rem);
  background:
    radial-gradient(circle at 88% 12%, rgb(47 107 102 / 0.13), transparent 42%),
    radial-gradient(circle at 72% 95%, rgb(176 131 94 / 0.1), transparent 38%),
    var(--bg);
}

.hero-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-content {
  max-width: 44rem;
}

/* Zdjęcie: na telefonie małe, nad tekstem; na dużym ekranie po prawej */
.hero-photo {
  order: -1;
  justify-self: start;
  width: 7.5rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--border), 0 12px 30px rgb(31 42 46 / 0.12);
}

@media (min-width: 52em) {
  .hero-inner {
    grid-template-columns: minmax(0, 44rem) minmax(13rem, 1fr);
    gap: 3rem;
  }

  .hero-photo {
    order: 0;
    justify-self: center;
    width: 13rem;
  }
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem);
  letter-spacing: -0.01em;
}

.credentials {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1.05em;
}

.credentials li + li {
  margin-top: 0.3rem;
}

.lead {
  margin-top: 1.5rem;
  font-size: 1.2em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Sekcje ---------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--white {
  background: var(--surface);
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.9rem;
  border-radius: 3px;
  background: var(--accent);
}

.intro {
  max-width: 46rem;
  margin-bottom: 2.5rem;
  font-size: 1.1em;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
}

.list li {
  padding-left: 0.3rem;
}

.list li + li {
  margin-top: 0.7rem;
}

.list li::marker {
  color: var(--accent);
}

/* O mnie */

.about-grid {
  display: grid;
  gap: 1.5rem;
}

/* Na szerokim ekranie „Praca własna” pod „Obecnie”, „Wcześniej” obok */
@media (min-width: 52em) {
  .about-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-areas:
      "now past"
      "own past";
    align-items: start;
    gap: 2rem 2.5rem;
  }

  .about-now {
    grid-area: now;
  }

  .about-past {
    grid-area: past;
  }

  .about-own {
    grid-area: own;
  }
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.panel--accent {
  border-color: transparent;
  background: var(--accent-soft);
}

.panel h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.callout {
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg);
}

.callout h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

/* Szkolenia i staże */

.trainings {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .trainings {
    grid-template-columns: 1fr 1fr;
  }
}

.trainings li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.trainings p {
  color: var(--muted);
}

.training-title {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.12em;
  line-height: 1.35;
}

.hours {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.subsection {
  max-width: 52rem;
  margin-top: 3rem;
}

.subsection h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.subsection p {
  margin-bottom: 1.25rem;
}

/* Oferta */

.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52em) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.quote {
  max-width: 50rem;
  margin: 3.5rem auto 0;
  text-align: center;
}

.quote figcaption {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.95em;
}

.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
}

.quote blockquote::before {
  content: "“";
  display: block;
  height: 2.2rem;
  color: var(--accent);
  font-size: 4.5rem;
  font-style: normal;
  line-height: 1;
}

/* Gabinet */

.gallery {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(31 42 46 / 0.06), 0 10px 30px rgb(31 42 46 / 0.08);
}

.gallery figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95em;
}

/* Kontakt */

.section--dark {
  background: var(--accent-dark);
  color: #fff;
}

.section--dark .section-title::after {
  background: rgb(255 255 255 / 0.6);
}

.section--dark :focus-visible {
  outline-color: #fff;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-label {
  margin-bottom: 0.75rem;
  color: rgb(255 255 255 / 0.75);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-phone {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone:hover {
  color: #fff;
  text-decoration: underline;
}

address {
  margin-bottom: 1.25rem;
  font-size: 1.2em;
  font-style: normal;
}

/* ---------- Stopka ---------- */

.site-footer {
  padding-block: 1.5rem;
  background: #1c4340;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}
