/* =========================================================================
   Tomek Kowalczyk — Portfolio / CV / Blog
   Dark theme (Bolby-inspired): pink→purple gradient accent, rounded cards,
   generous spacing, subtle borders, smooth hover lifts, animated skill bars.
   Fonts (Poppins / Inter) are loaded in the HTML head — no @import here.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #353353;
  --surface: #3e3c60;
  --surface-alt: #2d2b47;
  --surface-elevated: #47456b;

  /* Text */
  --text: #e6e9ef;
  --text-muted: #9aa3b8;
  --text-faint: #6b7488;

  /* Accents */
  --accent: #fc5c7d;
  --accent-2: #6a82fb;
  --gradient: linear-gradient(135deg, #fc5c7d, #6a82fb);

  /* Lines */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* Radius */
  --radius-card: 16px;
  --radius-input: 10px;

  /* Layout */
  --container: 1140px;
  --container-pad: 20px;
  --nav-h: 70px;

  /* Motion / shadow */
  --transition: 0.25s ease;
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* Fonts */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  display: block;
}

canvas {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* -------------------------------------------------------------------------
   Layout & utilities
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 26px;
  border-radius: var(--radius-input);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(252, 92, 125, 0.28);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 32px rgba(252, 92, 125, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Sections */
.section {
  padding: 90px 0;
}

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

.section--stats {
  background-color: var(--surface-alt);
}

.section--contact {
  background-color: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section-title {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  padding-bottom: 18px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
}

.section-head--left .section-title::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert--success {
  border-color: rgba(106, 130, 251, 0.5);
  background: rgba(106, 130, 251, 0.12);
  color: #cdd6ff;
}

.alert--error {
  border-color: rgba(252, 92, 125, 0.5);
  background: rgba(252, 92, 125, 0.12);
  color: #ffd0da;
}

/* Tags & chips */
.tag-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.chip.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* Blog filters: search + categories, visually separated from the post list */
.blog-filters {
  padding-bottom: 32px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.blog-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  max-width: 640px;
}

.blog-search__input {
  flex: 1;
  min-width: 220px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.blog-search__input::placeholder {
  color: var(--text-faint);
}

.blog-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 92, 125, 0.18);
}

.blog-search__clear {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

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

.blog-results-info {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 56px 28px;
}

/* -------------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color var(--transition), box-shadow var(--transition),
    backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
}

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

.nav-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(252, 92, 125, 0.3);
}

.nav-brand__name {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition),
    transform var(--transition);
}

.nav-social a:hover {
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad) 40px;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition),
    transform var(--transition);
}

.footer-social a:hover {
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-copy {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  padding: 22px var(--container-pad);
  border-top: 1px solid var(--border);
}

.footer-copy p {
  margin: 0;
}

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumbs {
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 4px;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--border-strong);
}
.breadcrumbs__item a {
  color: var(--text-muted);
}
.breadcrumbs__item a:hover {
  color: var(--text);
}
.breadcrumbs__item [aria-current="page"] {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}
/* When breadcrumbs precede a hero/section, they already clear the fixed nav,
   so collapse the following block's large top offset. */
.breadcrumbs + .blog-hero,
.breadcrumbs + .post-header {
  padding-top: 28px;
}
.breadcrumbs + .section {
  padding-top: 28px;
}

/* -------------------------------------------------------------------------
   Blog — listing
   ------------------------------------------------------------------------- */
.blog-hero {
  padding: 160px 0 60px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.blog-hero__inner {
  max-width: 760px;
}

.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.blog-hero__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.blog-hero__lead a {
  color: var(--accent);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

.post-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.06);
}

.post-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
}

.post-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid var(--border-strong);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.post-card__meta {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.post-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.post-card__title a {
  color: var(--text);
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-head);
}

.post-card__more:hover {
  color: var(--accent-2);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition), border-color var(--transition),
    background var(--transition), transform var(--transition);
}

.pagination__link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pagination__link.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* -------------------------------------------------------------------------
   Blog — single post
   ------------------------------------------------------------------------- */
.post {
  padding-bottom: 80px;
}

.post-header {
  padding: 150px 0 40px;
  text-align: center;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.post-header__inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.post-header__meta {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.post-cover {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 40px auto;
  max-width: 900px;
}

.post-cover img {
  width: 100%;
  height: auto;
}

.post-body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Sticky left rail: reading timer + table of contents */
.post-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.post-main {
  min-width: 0;
  max-width: 760px;
}

.reading-progress {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.reading-progress__meter {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-elevated);
  overflow: hidden;
}

.reading-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 0.15s linear;
}

.reading-progress__label {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.reading-progress__label span {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .post-body {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 760px;
  }
  .post-aside {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    margin-bottom: 28px;
  }
}

/* Readable article typography (whitepress-style: large, airy body text) */
.prose {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.85;
  letter-spacing: 0.003em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.9em;
  margin-bottom: 0.55em;
  line-height: 1.25;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.55rem;
}

.prose h4 {
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose ul,
.prose ol {
  margin-bottom: 1.3em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-2);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 8px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.45em;
}

.prose pre {
  background: #0b0f16;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 20px;
  overflow-x: auto;
  margin: 1.6em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.prose img {
  border-radius: var(--radius-input);
  margin: 1.6em 0;
}

/* -------------------------------------------------------------------------
   CV — page & hero
   ------------------------------------------------------------------------- */
.cv-page {
  overflow-x: hidden;
}

.cv-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92vh;
  padding: 120px var(--container-pad) 90px;
  overflow: hidden;
}

.cv-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(252, 92, 125, 0.22), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(106, 130, 251, 0.22), transparent 45%),
    var(--bg);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.cv-hero > *:not(.cv-hero__bg):not(.cv-hero__banner):not(.cv-hero__scroll) {
  position: relative;
  z-index: 1;
}

.cv-hero__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient);
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(252, 92, 125, 0.3);
}

.cv-hero__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.cv-hero__name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}

.cv-hero__role {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cv-hero__typed {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.cv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.cv-hero__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cv-hero__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--surface);
  transition: color var(--transition), border-color var(--transition),
    transform var(--transition), background var(--transition);
}

.cv-hero__social a:hover {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  transform: translateY(-3px);
}

.cv-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.cv-hero__scroll::before {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* -------------------------------------------------------------------------
   CV — about
   ------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.about-avatar {
  border-radius: var(--radius-card);
  padding: 4px;
  background: var(--gradient);
  overflow: hidden;
}

.about-avatar img {
  width: 100%;
  border-radius: 13px;
  display: block;
  object-fit: cover;
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.about-facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

.about-facts li {
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.about-facts strong {
  color: var(--text);
  font-family: var(--font-head);
  margin-right: 8px;
}

/* -------------------------------------------------------------------------
   CV — skills
   ------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}

.skill {
  width: 100%;
}

.skill__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
}

.skill__head span:last-child {
  color: var(--text-muted);
}

.skill__track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-elevated);
  overflow: hidden;
}

.skill__bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  transition: width 1s ease;
}

/* -------------------------------------------------------------------------
   CV — stats
   ------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 20px;
  transition: transform var(--transition), border-color var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 8px;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   CV — stack (chart + list)
   ------------------------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.stack-chart {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* -------------------------------------------------------------------------
   CV — experience / timeline
   ------------------------------------------------------------------------- */
.exp-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}

.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}

.timeline__item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(252, 92, 125, 0.12);
}

.timeline__period {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(252, 92, 125, 0.1);
  border: 1px solid rgba(252, 92, 125, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.timeline__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__place {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

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

/* -------------------------------------------------------------------------
   CV — certificates
   ------------------------------------------------------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
  color: var(--text);
}

.cert-card__media {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(252, 92, 125, 0.15), rgba(106, 130, 251, 0.15));
}

.cert-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-card__icon {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cert-card__body {
  padding: 20px;
}

.cert-card__issuer {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cert-card__date {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------
   CV — courses (animated timeline)
   ------------------------------------------------------------------------- */
.course-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* The vertical spine */
.course-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.5;
}

.course-timeline__item {
  position: relative;
  padding: 0 0 22px 40px;

  /* Entry animation, triggered by the reveal controller */
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.course-timeline__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.course-timeline__item:last-child {
  padding-bottom: 0;
}

.course-timeline__dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 1;
}

.course-timeline__item.is-visible .course-timeline__dot {
  animation: coursePulse 1.4s ease-out;
}

@keyframes coursePulse {
  0% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 4px rgba(252, 92, 125, 0.5);
  }
  100% {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 16px rgba(252, 92, 125, 0);
  }
}

.course-timeline__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 14px 18px;
  transition: transform var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.course-timeline__card:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.course-timeline__date {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.course-timeline__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.course-timeline__provider {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .course-timeline__item {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .course-timeline__item.is-visible .course-timeline__dot {
    animation: none;
  }
}

.interests {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

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

.contact-info p {
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--text-muted);
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: #0f141c;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
  color: var(--text-faint);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 92, 125, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Symfony form error markup */
.form-control.is-invalid,
.form-control:user-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 92, 125, 0.15);
}

ul.form-error-messages {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

ul.form-error-messages li {
  color: #ffb3c1;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* -------------------------------------------------------------------------
   Animations / reveal
   ------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-visible {
  animation: fadeInUp 0.7s ease both;
}

/* -------------------------------------------------------------------------
   Responsive — ~900px
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section {
    padding: 70px 0;
  }

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

  .about-avatar {
    max-width: 280px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-grid,
  .exp-columns,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* -------------------------------------------------------------------------
   Responsive — ~640px (mobile nav & stacking)
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px var(--container-pad) 24px;
    background: rgba(10, 14, 20, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-social {
    display: none;
  }

  .two-col,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .cv-hero__avatar {
    width: 130px;
    height: 130px;
  }

  .cv-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .cv-hero__actions .btn {
    width: 100%;
  }

  .contact-form-wrap {
    padding: 24px 20px;
  }
}

/* On larger screens the hamburger is hidden and links are a horizontal row */
@media (min-width: 641px) {
  .nav-toggle {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   Blog v2 — tags, ratings, comments
   ------------------------------------------------------------------------- */
.container--narrow {
  max-width: 760px;
}

/* Tags */
.tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  transition: var(--transition);
}
.tag-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.post-card__tags,
.post-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.post-header__tags {
  justify-content: center;
  margin-top: 16px;
}
.post-card__rating {
  color: #ffb454;
  font-weight: 600;
}

.post-updated {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}

/* Rating widget */
.rating-widget {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.rating-widget__label {
  font-weight: 600;
  color: var(--text);
}
.rating-widget__stars {
  display: inline-flex;
  gap: 2px;
}
.rating-widget__star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-faint);
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0 2px;
}
.rating-widget__star:hover,
.rating-widget__star.is-selected {
  color: #ffb454;
}
.rating-widget__stars:hover .rating-widget__star {
  color: #ffb454;
}
.rating-widget__stars .rating-widget__star:hover ~ .rating-widget__star {
  color: var(--text-faint);
}
.rating-widget__summary {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Comments */
.comments {
  padding-top: 20px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.comment-list--replies {
  margin: 22px 0 0;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.comment__body {
  display: flex;
  gap: 14px;
}
.comment__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-elevated);
}
.comment__content {
  flex: 1;
}
.comment__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment__author {
  font-weight: 600;
  color: var(--text);
}
.comment__date {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.comment__text {
  color: var(--text-muted);
  line-height: 1.6;
}
.comment__reply-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--accent-2);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}
.comment__reply-btn:hover {
  text-decoration: underline;
}

.comment-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
}
.comment-form__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
}
.comment-form__reply-hint {
  background: var(--surface-elevated);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.comment-form__cancel {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  margin-left: 8px;
}
.comments__empty {
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* -------------------------------------------------------------------------
   Homepage offer — services, values, projects, tech stack, process
   ------------------------------------------------------------------------- */
.section-head .btn {
  margin-top: 22px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  background: var(--gradient);
  margin-bottom: 20px;
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.service-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.service-card__more {
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.service-card__more:hover {
  color: var(--accent-2);
}

/* Value proposition */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.value-card::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient);
  margin-bottom: 18px;
}
.value-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.value-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}
.project-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.project-item__index {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
}
.project-item__title {
  font-family: var(--font-head);
  font-size: 1.12rem;
  margin: 0 0 8px;
}
.project-item__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Technologies */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tech-card {
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}
.tech-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.tech-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  overflow: hidden;
}
.tech-card__logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
.tech-card__mono {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tech-card__name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tech-card__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* Process */
.process-list {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.process-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
}
.process-step__title {
  font-family: var(--font-head);
  font-size: 1.12rem;
  margin: 4px 0 8px;
}
.process-step__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 980px) {
  .services-grid,
  .value-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .services-grid,
  .value-grid,
  .tech-grid,
  .project-grid,
  .process-list {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Homepage hero (Bolby-style: headline + biography/photo/stats band)
   ------------------------------------------------------------------------- */
.hero {
  padding: calc(var(--nav-h) + 46px) 0 70px;
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(106, 130, 251, 0.18), transparent 60%),
    radial-gradient(900px 420px at 80% 20%, rgba(252, 92, 125, 0.12), transparent 55%);
}
.hero__headline {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 56px;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__headline em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px) 1fr;
  gap: 40px;
  align-items: start;
}
.hero__side {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 30px;
}
.hero__side--right {
  text-align: right;
}
.hero__block .hero__label,
.hero-stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 0 0 10px;
  font-weight: 600;
}
.hero__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.96rem;
}

/* Portrait */
.hero__photo {
  position: relative;
  align-self: stretch;
}
.hero__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lift);
  object-fit: cover;
}
.hero__social {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  width: max-content;
  max-width: 108%;
}
.hero__social-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  transition: transform var(--transition), border-color var(--transition);
}
.hero__social-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.hero__social-card svg {
  width: 18px;
  height: 18px;
}

/* Stats */
.hero-stat__value {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero__photo {
    order: -1;
    max-width: 460px;
    margin: 0 auto 26px;
  }
  .hero__side,
  .hero__side--right {
    text-align: left;
    padding-top: 0;
  }
  .hero__social {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
  }
}

/* -------------------------------------------------------------------------
   Article extras — callouts, figures, table of contents, share bar
   ------------------------------------------------------------------------- */

/* Editorial callouts (shortcodes: [info] [wskazowka] [uwaga] [blad] [sukces] [notatka]) */
.prose .callout {
  --callout-accent: var(--accent-2);
  position: relative;
  margin: 1.8em 0;
  padding: 18px 22px 18px 20px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  border-left: 4px solid var(--callout-accent);
  background: color-mix(in srgb, var(--callout-accent) 12%, var(--surface));
}
.prose .callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.prose .callout__title::before {
  content: "";
  font-size: 1.05em;
  line-height: 1;
}
.prose .callout__body > :first-child { margin-top: 0; }
.prose .callout__body > :last-child { margin-bottom: 0; }
.prose .callout__body {
  color: var(--text-muted);
  font-size: 0.98em;
}
.prose .callout--info    { --callout-accent: #4c8dff; }
.prose .callout--info .callout__title::before    { content: "ℹ️"; }
.prose .callout--tip     { --callout-accent: #22a06b; }
.prose .callout--tip .callout__title::before     { content: "💡"; }
.prose .callout--warning { --callout-accent: #e0a52b; }
.prose .callout--warning .callout__title::before { content: "⚠️"; }
.prose .callout--error   { --callout-accent: #e5484d; }
.prose .callout--error .callout__title::before   { content: "⛔"; }
.prose .callout--success { --callout-accent: #30c07b; }
.prose .callout--success .callout__title::before { content: "✅"; }
.prose .callout--note    { --callout-accent: #9b7bff; }
.prose .callout--note .callout__title::before    { content: "📝"; }

/* Pull quote from [cytat] */
.prose blockquote.pullquote {
  font-size: 1.15em;
  font-style: italic;
}
.prose blockquote.pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  font-style: normal;
  color: var(--text-faint);
}
.prose blockquote.pullquote cite::before { content: "— "; }

/* Figures from [img] */
.prose .article-figure {
  margin: 1.8em 0;
}
.prose .article-figure img {
  width: 100%;
  height: auto;
  margin: 0;
}
.prose .article-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 40px;
}
.toc__title {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.toc__item {
  margin: 0;
}
.toc__item a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.toc__item--l3 a {
  padding-left: 32px;
  font-size: 0.94em;
}
.toc__item a:hover,
.toc__item a.is-active {
  color: var(--text);
  border-color: var(--accent);
}

/* Share bar */
.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share__label {
  font-weight: 600;
  color: var(--text);
}
.share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), opacity var(--transition);
}
.share__btn:hover { transform: translateY(-2px); opacity: 0.92; }
.share__btn--fb   { background: #1877f2; }
.share__btn--x    { background: #111827; border: 1px solid var(--border-strong); }
.share__btn--in   { background: #0a66c2; }
.share__btn--mail { background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border-strong); }
.share__btn--copy { background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border-strong); }
.share__btn--copy.is-copied { background: #22a06b; color: #fff; border-color: transparent; }

/* Moderation result page */
.moderation-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.moderation-result .alert { width: 100%; }

/* -------------------------------------------------------------------------
   Fixed "Darmowa wycena" call-to-action
   ------------------------------------------------------------------------- */
.quote-fab {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--gradient);
  box-shadow: 0 10px 26px rgba(252, 92, 125, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.quote-fab:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(252, 92, 125, 0.5);
}
@media (max-width: 640px) {
  .quote-fab {
    top: auto;
    bottom: 18px;
    right: 14px;
    padding: 11px 18px;
    font-size: 0.82rem;
  }
}

/* -------------------------------------------------------------------------
   Project cards (Realizacja projektów) with photos
   ------------------------------------------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card__placeholder {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}
.project-card__index {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.project-card__body {
  padding: 22px 24px 26px;
}
.project-card__title {
  font-family: var(--font-head);
  font-size: 1.14rem;
  margin: 0 0 8px;
}
.project-card__title a {
  color: inherit;
  text-decoration: none;
}
.project-card__title a:hover {
  color: var(--accent);
}
.project-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Brief request form
   ------------------------------------------------------------------------- */
.brief-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.brief-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brief-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .brief-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Thank-you pages
   ------------------------------------------------------------------------- */
.thanks {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.thanks-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
}
.thanks-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--gradient);
}
.thanks-card__title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin: 0 0 12px;
}
.thanks-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Thank-you page enhancements ------------------------------------------- */
.thanks {
  align-items: flex-start;
}
.thanks .container {
  padding-top: 32px;
  padding-bottom: 32px;
}
.thanks-card {
  position: relative;
  z-index: 1;
}
.thanks-card--in {
  animation: thanks-in 0.6s ease both;
}
@keyframes thanks-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Next-steps list */
.thanks-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 14px;
}
.thanks-steps__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.thanks-steps__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient);
}
.thanks-steps__item strong {
  display: block;
  font-family: var(--font-head);
}
.thanks-steps__item span {
  color: var(--text-muted);
  line-height: 1.5;
}

/* Shared blocks below the card */
.thanks-block {
  max-width: 860px;
  margin: 40px auto 0;
}
.thanks-block__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin: 0 0 8px;
  text-align: center;
}
.thanks-block__intro {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 24px;
}
.thanks-alert {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
}
.thanks-alert--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.thanks-alert--error {
  background: rgba(252, 92, 125, 0.12);
  color: #e11d48;
}

/* Optional enrichment form */
.thanks-enrich {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
}
.enrich-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.enrich-form .btn {
  margin-top: 8px;
}

/* Knowledge quiz */
.quiz-question {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 20px 22px;
  margin: 0 0 16px;
  transition: border-color 0.2s ease;
}
.quiz-question__title {
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0;
  margin: 0 0 12px;
}
.quiz-options {
  display: grid;
  gap: 8px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quiz-option:hover {
  border-color: var(--border-strong);
}
.quiz-question.is-answered .quiz-option {
  cursor: default;
}
.quiz-option.is-correct {
  border-color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
}
.quiz-option.is-wrong {
  border-color: #e11d48;
  background: rgba(252, 92, 125, 0.1);
}
.quiz-explanation {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-strong, rgba(106, 130, 251, 0.08));
  color: var(--text-muted);
  line-height: 1.5;
}
.quiz-result {
  text-align: center;
  font-size: 1.1rem;
  margin: 16px 0 0;
}
.quiz-result.is-visible {
  animation: thanks-in 0.4s ease both;
}

/* Confetti overlay */
.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Section-level quiz wrapper (homepage & thank-you) */
.section--quiz {
  background: var(--surface);
}
.quiz-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.quiz-actions .quiz-result {
  margin: 0;
}

/* ── Quiz LP — level selector ────────────────────────────────────────────── */
.quiz-lp {
  padding-top: 64px;
}
.quiz-level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.quiz-level-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.quiz-level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.quiz-level-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.quiz-level-card--junior { border-top: 3px solid #22c55e; }
.quiz-level-card--junior .quiz-level-card__badge { background: rgba(34,197,94,.15); color: #16a34a; }
.quiz-level-card--junior:hover { border-color: #22c55e; }

.quiz-level-card--mid { border-top: 3px solid #f59e0b; }
.quiz-level-card--mid .quiz-level-card__badge { background: rgba(245,158,11,.15); color: #b45309; }
.quiz-level-card--mid:hover { border-color: #f59e0b; }

.quiz-level-card--senior { border-top: 3px solid #6a82fb; }
.quiz-level-card--senior .quiz-level-card__badge { background: rgba(106,130,251,.15); color: #6a82fb; }
.quiz-level-card--senior:hover { border-color: #6a82fb; }

.quiz-level-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.quiz-level-card__desc {
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 20px;
}
.quiz-level-card__cta {
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.95rem;
}
.quiz-level-card--junior .quiz-level-card__cta { color: #16a34a; }
.quiz-level-card--mid .quiz-level-card__cta { color: #b45309; }
.quiz-level-card--senior .quiz-level-card__cta { color: #6a82fb; }

/* ── Quiz LP — per-level quiz page ──────────────────────────────────────── */
.quiz-lp-page {
  min-height: 100vh;
}
.quiz-lp-header {
  background: var(--surface);
  padding-bottom: 40px;
}
.quiz-lp-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.quiz-lp-back:hover { color: var(--text); }
.quiz-lp-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.quiz-lp-badge--junior { background: rgba(34,197,94,.15); color: #16a34a; }
.quiz-lp-badge--mid { background: rgba(245,158,11,.15); color: #b45309; }
.quiz-lp-badge--senior { background: rgba(106,130,251,.15); color: #6a82fb; }
.quiz-lp-title {
  font-family: var(--font-head);
  font-size: 2rem;
  margin: 0 0 12px;
}
.quiz-lp-intro {
  color: var(--text-muted);
  line-height: 1.6;
}
.quiz-lp-questions {
  padding-top: 40px;
}
.container--narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--container-px, 20px);
}
.quiz-question__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.quiz-lp-actions {
  margin-top: 28px;
  text-align: center;
}
.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Results section (LP) */
.quiz-lp-results {
  background: var(--surface);
  padding-top: 60px;
}
.quiz-score-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg);
}
.quiz-score-card__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.quiz-score-card__value {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
  line-height: 1;
}
.quiz-score-card__hint {
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}
.quiz-score-card .btn {
  display: block;
  margin: 0 0 12px;
}
.quiz-lp-results.is-visible {
  animation: thanks-in 0.5s ease both;
}

/* A class-based `display` (e.g. .btn) outranks the UA [hidden] rule, so force
   hidden to win for elements the quiz player toggles. */
.quiz-lp-page [hidden] { display: none !important; }

/* ── Quiz LP — quiz list ─────────────────────────────────────────────────── */
.quiz-empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 32px;
}
.quiz-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.quiz-list-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  border-top: 3px solid #6a82fb;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.quiz-list-card:hover {
  transform: translateY(-4px);
  border-color: #6a82fb;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.quiz-list-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 10px;
}
.quiz-list-card__desc {
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 22px;
}
.quiz-list-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.quiz-list-card__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.quiz-list-card__cta {
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #6a82fb;
}

/* ── Quiz LP — intro (participant profiling) ─────────────────────────────── */
.quiz-lp-body { padding-top: 40px; }
.quiz-intro {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 32px;
}
.quiz-intro__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.quiz-intro__lead {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
}
.quiz-intro__field {
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}
.quiz-intro__field > label,
.quiz-intro__field > legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 8px;
}
.quiz-req { color: #e11d48; }
.quiz-intro__field input[type="number"],
.quiz-intro__field input[type="text"],
.quiz-intro__field input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.quiz-intro__field input:focus {
  outline: none;
  border-color: #6a82fb;
}
.quiz-intro__levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quiz-intro__level {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-intro__level input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz-intro__level:hover { border-color: var(--border-strong); }
.quiz-intro__level:has(input:checked) {
  border-color: #6a82fb;
  background: rgba(106,130,251,.12);
}
.quiz-intro__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.quiz-intro__error {
  color: #e11d48;
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* ── Quiz LP — interactive play ──────────────────────────────────────────── */
.quiz-progress { margin: 0 0 24px; }
.quiz-progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.quiz-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--gradient);
  transition: width 0.35s ease;
}
.quiz-progress__text {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Quiz LP — summary ───────────────────────────────────────────────────── */
.quiz-summary { animation: thanks-in 0.5s ease both; }
.quiz-summary .quiz-score-card { margin-bottom: 28px; }
.quiz-summary__block {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 24px 26px;
  margin: 0 0 20px;
}
.quiz-summary__block h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.quiz-summary__hint {
  color: var(--text-muted);
  margin: 0 0 14px;
}
.quiz-summary__weak {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}
.quiz-summary__perfect {
  border-color: #22c55e;
  background: rgba(34,197,94,.08);
}
.quiz-summary__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.quiz-articles {
  display: grid;
  gap: 14px;
}
.quiz-article-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.quiz-article-card:hover {
  border-color: #6a82fb;
  transform: translateY(-2px);
}
.quiz-article-card__cat {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a82fb;
}
.quiz-article-card__title {
  font-family: var(--font-head);
  font-weight: 600;
}
.quiz-article-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Quiz LP — expandable SEO section ────────────────────────────────────── */
.quiz-seo-section { padding-top: 8px; padding-bottom: 64px; }
.quiz-seo {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 4px 24px;
}
.quiz-seo__summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
}
.quiz-seo__summary::-webkit-details-marker { display: none; }
.quiz-seo__summary::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  color: #6a82fb;
  font-weight: 700;
}
.quiz-seo[open] .quiz-seo__summary::before { content: '–'; }
.quiz-seo__body {
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 0 20px;
}

@media (max-width: 860px) {
  .quiz-list { grid-template-columns: 1fr; gap: 16px; }
  .quiz-intro__row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .quiz-level-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (min-width: 540px) and (max-width: 860px) {
  .quiz-level-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Submit button loading state */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.btn__spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.55em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

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

@media (prefers-reduced-motion: reduce) {
  .thanks-card--in,
  .quiz-result.is-visible {
    animation: none;
  }
  .btn__spinner {
    animation-duration: 1.4s;
  }
}

/* -------------------------------------------------------------------------
   Language switch (navbar)
   ------------------------------------------------------------------------- */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-lang__item {
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 6px;
}
.nav-lang__item.is-active {
  color: #fff;
  background: var(--gradient);
}
.nav-lang__sep {
  color: var(--border-strong);
}

/* -------------------------------------------------------------------------
   Hero advantages — chips scattered around the portrait, gently floating
   ------------------------------------------------------------------------- */
.hero__photo .hero__advantages {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  z-index: 3;
}
.hero__advantage {
  position: absolute;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 210px;
  padding: 9px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-elevated) 90%, transparent);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  will-change: transform;
  animation: hero-float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
  transition: border-color var(--transition);
}
.hero__advantage:hover {
  border-color: var(--accent);
}
.hero__advantage-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gradient);
}
/* Eight anchor points around the portrait (left group outside, right group hugging the edge) */
.hero__advantage:nth-child(1) { top: 1%;  left: -32%; --dur: 7s;   --delay: -0.5s; }
.hero__advantage:nth-child(2) { top: 26%; left: -40%; --dur: 8.5s; --delay: -2s; }
.hero__advantage:nth-child(3) { top: 53%; left: -34%; --dur: 6.5s; --delay: -3.5s; }
.hero__advantage:nth-child(4) { top: 80%; left: -24%; --dur: 9s;   --delay: -1s; }
.hero__advantage:nth-child(5) { top: 3%;  right: -6%; --dur: 8s;   --delay: -2.5s; }
.hero__advantage:nth-child(6) { top: 30%; right: -10%; --dur: 7.5s; --delay: -4s; }
.hero__advantage:nth-child(7) { top: 57%; right: -4%; --dur: 6.8s; --delay: -1.5s; }
.hero__advantage:nth-child(8) { top: 83%; right: 2%;  --dur: 9.5s; --delay: -3s; }

@keyframes hero-float {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__advantage { animation: none; }
}
/* On smaller screens the portrait fills the column, so drop the scatter and
   show the benefits as a tidy wrapped list beneath the photo. */
@media (max-width: 980px) {
  .hero__photo .hero__advantages {
    position: static;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    pointer-events: auto;
  }
  .hero__advantage {
    position: static;
    max-width: none;
    animation: none;
  }
}

/* ---------------------------------------------------------------------------
   Returning-visitor greeting, newsletter and push opt-in
--------------------------------------------------------------------------- */
.visitor-greeting {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 1100;
  max-width: 320px;
  background: var(--gradient);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: opacity var(--transition), transform var(--transition);
}
.visitor-greeting.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.visitor-greeting__inner {
  position: relative;
  padding: 16px 18px;
}
.visitor-greeting__text {
  margin: 0 0 10px;
  font-weight: 600;
  padding-right: 18px;
}
.visitor-greeting__cta {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}
.visitor-greeting__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 560px) {
  .visitor-greeting { left: 12px; right: 12px; max-width: none; top: 78px; }
}

.section--newsletter .newsletter-form {
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-form__row {
  display: flex;
  gap: 12px;
}
.newsletter-form__row .form-control,
.newsletter-form__row input {
  flex: 1;
}
.newsletter-form__status {
  margin-top: 12px;
  text-align: center;
  color: var(--text-muted);
  min-height: 1.2em;
}

.push-optin {
  margin-top: 22px;
}
.push-optin__status {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 1.1em;
}

@media (max-width: 560px) {
  .newsletter-form__row { flex-direction: column; }
}

/* ==========================================================================
   Brand mark with photo (logo)
   ========================================================================== */
.nav-brand__mark--photo {
  padding: 0;
  overflow: hidden;
  background: var(--gradient);
}
.nav-brand__mark--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ==========================================================================
   CV hero conference banner
   ========================================================================== */
/* Inner wrapper — flex column, centered, leaves room for the scroll indicator */
.cv-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 90px; /* clear the absolute scroll indicator at bottom 28px */
}

.cv-hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: saturate(1.05);
  pointer-events: none;
}

/* Dark scrim over the photo so hero text stays readable */
.cv-hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 32, 0.55) 0%,
    rgba(20, 20, 32, 0.35) 40%,
    rgba(20, 20, 32, 0.8) 100%
  );
}

/* ==========================================================================
   Project consultation (homepage)
   ========================================================================== */
.consultation {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.consultation__info {
  display: flex;
  align-items: center;
}
.consultation__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.consultation__list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-muted);
  line-height: 1.6;
}
.consultation__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.consultation__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.consultation__duration {
  color: var(--text-muted);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.consultation__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 24px;
}
.consultation__amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--text);
}
.consultation__per {
  color: var(--text-muted);
}
.consultation__cta {
  width: 100%;
}
.consultation__note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   E-books for sale (homepage)
   ========================================================================== */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ebook-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.ebook-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}
.ebook-card--soon {
  opacity: 0.75;
}
.ebook-card__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3rem;
}
.ebook-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ebook-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
}
.ebook-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0;
}
.ebook-card__text {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.ebook-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.ebook-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.ebook-card__price--soon {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Uses page ("Narzędzia, z których korzystam")
   ========================================================================== */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.uses-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.uses-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0 0 20px;
}
.uses-card__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.uses-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.uses-list__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.uses-list__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.uses-list__name {
  font-weight: 600;
  color: var(--text);
}
.uses-list__value {
  color: var(--text-muted);
  line-height: 1.5;
}
.uses-disclaimer {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .consultation,
  .ebook-grid,
  .uses-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile refinements (<= 640px)
   Requested layout: advantages sit ON the portrait, numeric stats side by
   side, "what I do" services in a compact icon+title grid, projects as a
   swipeable slider, technologies reduced to logos only.
   Placed last so these rules win over the earlier responsive blocks.
   ========================================================================== */

/* Keep the navbar (and its open dropdown) above the returning-visitor
   greeting, which is fixed at z-index 1100 and otherwise covers the menu. */
.site-nav {
  z-index: 1300;
}

@media (max-width: 640px) {
  /* --- Hero advantages overlaid on the photo --- */
  .hero__photo {
    position: relative;
    max-width: 420px;
  }
  .hero__photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(to top, rgba(8, 11, 18, 0.94) 12%, rgba(8, 11, 18, 0.55) 55%, transparent);
    z-index: 2;
    pointer-events: none;
  }
  .hero__photo .hero__advantages {
    position: absolute;
    inset: auto 10px 12px 10px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    z-index: 4;
    pointer-events: auto;
  }
  .hero__advantage {
    position: static;
    max-width: none;
    padding: 6px 9px;
    gap: 6px;
    font-size: 0.68rem;
    line-height: 1.2;
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-elevated) 82%, transparent);
    animation: none;
  }
  .hero__advantage-dot {
    width: 6px;
    height: 6px;
    margin-top: 4px;
  }
  /* Push the social pills clear of the overlaid advantages. */
  .hero__social {
    margin-top: 26px;
  }

  /* --- Numeric highlights side by side (2x2) --- */
  .hero__side--right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    text-align: left;
    padding-top: 4px;
  }
  .hero-stat {
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
  }
  .hero-stat__label {
    font-size: 0.62rem;
    margin-bottom: 6px;
  }

  /* --- "Czym się zajmuję?" services: side by side, icon + title only --- */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .service-card {
    padding: 18px 14px;
    text-align: center;
  }
  .service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
  }
  .service-card__title {
    font-size: 1rem;
    margin: 0;
  }
  .service-card__text,
  .service-card__more {
    display: none;
  }

  /* --- Project realisations: one card visible, swipeable slider --- */
  .project-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    scrollbar-width: none;
  }
  .project-grid::-webkit-scrollbar {
    display: none;
  }
  .project-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  /* --- Technologies: logos only, tidy icon grid --- */
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .tech-card {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tech-card__logo {
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .tech-card__name,
  .tech-card__text {
    display: none;
  }
}
