/* Strona-wizytówka mgr Urszuli Kacprzyk — projekt: docs/projekt-strony.md */

:root {
  --green: #23735b;
  --green-dark: #174d3d;
  --mint: #e7f4ee;
  --bg: #fbfaf7;
  --text: #2b2b2b;
  --muted: #5a5f5c;
  --peach: #f2a97e;
  --radius: 14px;
  --wrap: 1000px;
  --topbar: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.6rem;
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 0.4em;
  border-radius: 2px;
  background: var(--peach);
}

p {
  margin: 0 0 0.9em;
}

a {
  color: var(--green);
}

a:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* Przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--green-dark);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* Pasek górny — zawsze widoczny */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 250 247 / 95%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #dfe9e4;
}

.topbar__inner {
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  line-height: 1.2;
}

.brand__name {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1rem;
}

.brand__role {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: none;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.btn--top {
  margin-left: auto;
  padding: 9px 14px;
  font-size: 1rem;
}

.btn--top__label {
  display: none;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%);
  padding: 28px 0 8px;
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--peach);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  margin-bottom: 0.2em;
}

.hero__role {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.6em;
}

.hero__claim {
  font-size: 1.2rem;
  margin-bottom: 1em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
}

.hero__phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.hero__hours {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sekcje */

.section {
  padding: 44px 0;
}

.section--tint {
  background: var(--mint);
}

/* Usługi */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px 28px;
}

.services li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #e4ece8;
}

.services h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15em;
}

.services p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ico {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 8px;
  border-radius: 10px;
  background: var(--mint);
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note {
  margin: 20px 0 0;
  color: var(--muted);
}

/* O mnie + dojazd */

.duo {
  display: grid;
  gap: 36px;
}

.quote {
  margin: 1.2em 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--peach);
  font-style: italic;
  color: var(--green-dark);
}

.tags {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 0.95rem;
}

/* Kontakt */

.contact {
  text-align: center;
}

.contact h2::after {
  margin-left: auto;
  margin-right: auto;
}

.contact__phone {
  display: block;
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
}

.contact__mail {
  display: inline-block;
  margin: 4px 0 14px;
  font-size: 1.1rem;
  word-break: break-all;
}

.contact__hours {
  margin: 0;
}

/* Stopka */

.footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #e4ece8;
}

.footer p {
  margin: 0 0 0.25em;
}

.footer__small {
  font-size: 0.8rem;
}

/* Responsywność */

@media (max-width: 380px) {
  .brand__role {
    display: none;
  }

  .brand__name {
    font-size: 0.9rem;
  }

  .btn--top {
    padding: 9px 12px;
    font-size: 0.95rem;
  }
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn--top__label {
    display: inline;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 40px 0 12px;
    text-align: left;
  }

  .hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .avatar {
    width: 160px;
    height: 160px;
    margin: 0;
    font-size: 3.2rem;
  }

  .hero__cta {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .btn--top {
    margin-left: 8px;
  }

  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
