/* =========================================================
   Anna Kaczmarek — strona wizytówka
   Styl: elegancki minimalizm o finansowym charakterze
   Brak zewnętrznych zależności (fonty systemowe — zgodność z RODO)
   ========================================================= */

:root {
  /* Paleta */
  --navy:        #122440;
  --navy-2:      #1b3a5b;
  --ink:         #1c2028;
  --muted:       #5c636f;
  --muted-2:     #868d98;
  --line:        #e8e3d8;
  --line-soft:   #f0ece2;
  --bg:          #faf8f4;
  --bg-2:        #f4f1ea;
  --card:        #ffffff;
  --gold:        #a9854b;
  --gold-2:      #8f6f3a;
  --gold-soft:   #f3ead7;

  /* Typografia */
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Cambria", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rytm */
  --maxw: 1080px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18,36,64,.04), 0 12px 32px -12px rgba(18,36,64,.12);
  --shadow-sm: 0 1px 2px rgba(18,36,64,.05), 0 6px 16px -10px rgba(18,36,64,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0; letter-spacing: -.01em; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }

p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- Etykiety sekcji (eyebrow) ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 .6rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }

/* =========================================================
   Pasek nawigacji
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: .85rem var(--gap);
  display: flex; align-items: center; gap: 1.25rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--navy); letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: .55rem;
}
.brand__mono {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-size: .82rem; letter-spacing: .02em;
}
.nav__links { display: flex; gap: 1.4rem; margin-inline: auto; }
.nav__links a {
  font-size: .9rem; color: var(--muted); font-family: var(--sans);
  position: relative; padding: .2rem 0;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .85rem; }

/* Przełącznik języka */
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--card);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 600;
  padding: .35rem .7rem; color: var(--muted); transition: .2s;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  padding: .62rem 1.15rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); color: #fff; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }

.nav .btn { padding: .5rem .95rem; }
.nav__burger { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 85% -10%, rgba(169,133,75,.10), transparent 60%),
    radial-gradient(50% 90% at 0% 0%, rgba(18,36,64,.05), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; position: relative;
}
.hero__name {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.02; margin: .4rem 0 .6rem;
}
.hero__role {
  font-family: var(--sans); font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--navy-2); font-weight: 600; margin: 0 0 1.1rem;
}
.hero__lead { font-size: 1.06rem; color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.8rem; color: var(--muted); font-size: .92rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--gold-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Awatar / monogram */
.avatar {
  justify-self: center;
  width: clamp(180px, 26vw, 268px); aspect-ratio: 1;
  border-radius: 50%; position: relative;
}
.avatar__ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid var(--line);
}
.avatar__ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--gold); border-right-color: var(--gold);
  transform: rotate(-25deg);
}
.avatar__inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.avatar__inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar__mono { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.6rem); letter-spacing: .04em; }

/* =========================================================
   Sekcje
   ========================================================= */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 60ch; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.section__intro { color: var(--muted); margin-top: .6rem; font-size: 1.04rem; }

/* Profil */
.profile { font-size: 1.08rem; color: #2f3540; max-width: 70ch; }
.profile p { margin-bottom: 1.1rem; }

/* Statystyki */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.stat { background: var(--card); padding: 1.4rem 1.2rem; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--navy); line-height: 1; }
.stat__num span { color: var(--gold); }
.stat__label { font-size: .82rem; color: var(--muted); margin-top: .45rem; }

/* =========================================================
   Oś czasu — doświadczenie
   ========================================================= */
.timeline { position: relative; margin-left: .5rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px;
  background: linear-gradient(var(--gold), var(--line));
}
.tl-item { position: relative; padding: 0 0 2.1rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--card); border: 2.5px solid var(--gold);
}
.tl-period { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-2); text-transform: uppercase; }
.tl-role { font-family: var(--serif); font-size: 1.28rem; color: var(--navy); margin: .25rem 0 .15rem; }
.tl-org { font-size: .98rem; color: var(--muted); margin-bottom: .7rem; font-weight: 600; }
.tl-list { margin: 0; padding-left: 1.1rem; color: #394150; }
.tl-list li { margin-bottom: .35rem; }
.tl-list li::marker { color: var(--gold); }

/* =========================================================
   Wykształcenie
   ========================================================= */
.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.edu-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); transition: .25s;
}
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.edu-card__period { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-2); text-transform: uppercase; }
.edu-card__deg { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); margin: .35rem 0 .2rem; }
.edu-card__inst { color: var(--muted); font-size: .95rem; }

/* =========================================================
   Umiejętności / języki / szkolenia
   ========================================================= */
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
.skill-group { margin-bottom: 1.8rem; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group__title { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tag {
  font-size: .88rem; padding: .4rem .85rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: #353c47;
}
.tag--accent { background: var(--gold-soft); border-color: transparent; color: var(--gold-2); font-weight: 600; }

.side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.lang-row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.lang-row:last-child { border-bottom: 0; }
.lang-row__name { font-weight: 600; color: var(--navy); }
.lang-row__lvl { font-size: .82rem; color: #fff; background: var(--navy); padding: .2rem .6rem; border-radius: 999px; }

.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li { padding: .6rem 0 .6rem 1.5rem; position: relative; color: #394150; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.course-list li:last-child { border-bottom: 0; }
.course-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* =========================================================
   Kontakt
   ========================================================= */
.contact { text-align: center; }
.contact__title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.contact__lead { color: var(--muted); max-width: 48ch; margin: .8rem auto 2rem; font-size: 1.06rem; }
.contact__cards { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-card {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.5rem; box-shadow: var(--shadow-sm); transition: .25s; min-width: 260px;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-2); flex: none; }
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.contact-card__val { font-weight: 600; color: var(--navy); }

/* =========================================================
   Stopka
   ========================================================= */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); text-align: center; color: var(--muted-2); font-size: .85rem; }
.footer a { color: var(--muted); }
.footer__rodo { margin-top: .5rem; font-size: .78rem; max-width: 60ch; margin-inline: auto; }

/* =========================================================
   Reveal przy scrollu
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__meta { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .avatar { order: -1; }
  .cols { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__inner { gap: .75rem; }
  .nav .btn span { display: none; }
  .brand span.brand__text { display: none; }
  .stats { grid-template-columns: 1fr; }
}
