:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --text: #102033;
  --muted: #5d6f82;
  --line: #d9e2ea;
  --brand: #0f766e;
  --brand-2: #155e75;
  --accent: #f59e0b;
  --dark: #0c1724;
  --shadow: 0 18px 45px rgba(19, 38, 59, 0.12);
  --radius: 8px;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.75);
  outline-offset: 3px;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.narrow {
  max-width: 880px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 226, 234, 0.9);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}

.brand-modules {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.brand-module {
  position: relative;
  display: grid;
  width: 92px;
  height: 62px;
  overflow: hidden;
  place-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(145, 174, 184, 0.2);
  background: #091114;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  opacity: 0.5;
  filter: saturate(0.55);
  transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.brand-module img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-module::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: #93a7ad;
  content: "";
}

.brand-module:hover {
  opacity: 0.82;
  filter: saturate(0.9);
  transform: translateY(-1px);
}

.brand-module.is-active {
  opacity: 1;
  filter: none;
  background: #0d181c;
}

.brand-module-syntevia.is-active {
  border-color: rgba(18, 217, 237, 0.62);
  box-shadow: inset 0 0 18px rgba(18, 217, 237, 0.08), 0 0 14px rgba(18, 217, 237, 0.12);
}

.brand-module-syntevia.is-active::after {
  background: #12d9ed;
  box-shadow: 0 0 9px rgba(18, 217, 237, 0.7);
}

.brand-module-marcin.is-active {
  border-color: rgba(255, 179, 0, 0.68);
  box-shadow: inset 0 0 18px rgba(255, 179, 0, 0.08), 0 0 14px rgba(255, 179, 0, 0.12);
}

.brand-module-marcin.is-active::after {
  background: #ffb300;
  box-shadow: 0 0 9px rgba(255, 179, 0, 0.7);
}

.site-header:not(.compact-header) .brand-module {
  width: 72px;
  height: 50px;
  padding: 3px 5px;
}

.site-header:not(.compact-header) .primary-nav a {
  padding-inline: 8px;
  font-size: 0.88rem;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.primary-nav a,
.header-cta {
  font-size: 0.94rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 12px;
  color: #284057;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: #e6f1f0;
  color: #0b5955;
}
.header-cta {
  background: var(--dark);
  color: #fff;
  padding: 11px 16px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
}
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(15, 118, 110, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, #f8fbfd 0%, #eef6f6 50%, #f7f4ed 100%);
  overflow: hidden;
}
.subhero {
  padding-top: 74px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: 54px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.hero h1,
.page-hero h1 {
  margin: 0;
  color: #0b1f32;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.subhero h1 {
  font-size: clamp(2.1rem, 5vw, 4.15rem);
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #3e5266;
  margin: 24px 0 0;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.24);
}
.btn-secondary {
  background: #fff;
  color: #163044;
  border-color: var(--line);
}
.hero-points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  position: relative;
  padding-left: 28px;
  color: #274056;
}
.hero-points li:before,
.check-list li:before,
.service-card li:before,
.price-card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.hero-visual {
  min-width: 0;
}
.mock-window {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #0d1b2a;
  color: #dbeafe;
}
.mock-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ee7b7;
}
.mock-top span:nth-child(2) {
  background: #fbbf24;
}
.mock-top span:nth-child(3) {
  background: #fb7185;
}
.mock-top strong {
  margin-left: auto;
  font-size: 0.86rem;
}
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.mock-panel,
.mock-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}
.mock-panel.wide {
  grid-column: 1/-1;
}
.mock-panel small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.mock-panel b {
  display: block;
  font-size: 1.45rem;
  margin-top: 4px;
  color: #102033;
}
.progress {
  height: 10px;
  border-radius: 999px;
  background: #e6eef4;
  margin-top: 14px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.progress .progress-value {
  width: 78%;
}
.mock-row {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.mock-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mock-row em {
  font-style: normal;
  color: var(--brand);
  font-weight: 800;
}
.mock-row strong {
  background: #eef7f6;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.8rem;
}
.section {
  padding: 82px 0;
}
.section.muted {
  background: var(--surface-2);
}
.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}
.section-head h2,
.contact-section h2,
.split h2,
.info-panel h2 {
  margin: 0;
  color: #12263a;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.section-head p,
.contact-section p,
.split p,
.info-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card,
.scenario-card,
.price-card,
.info-panel,
.steps article,
.compact-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(19, 38, 59, 0.07);
  min-width: 0;
}
.service-card h3,
.scenario-card h3,
.price-card h3,
.compact-grid h3,
.steps h3 {
  margin: 12px 0 8px;
  font-size: 1.18rem;
  line-height: 1.25;
}
.service-card p,
.scenario-card p,
.price-card p,
.compact-grid p,
.steps p {
  color: var(--muted);
  margin: 0;
}
.service-card ul,
.price-card ul,
.check-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.service-card li,
.price-card li,
.check-list li {
  position: relative;
  padding-left: 25px;
  color: #344b60;
}
.service-card a {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}
.service-card a:hover {
  text-decoration: underline;
}
.icon-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.22);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}
.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.steps span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #e6f1f0;
  color: var(--brand);
  font-weight: 900;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.scenario-card {
  padding: 20px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.price-card {
  position: relative;
}
.price-card.featured {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.14);
}
.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #e6f1f0;
  color: #0b5955;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 0.78rem;
}
.price {
  font-size: 1.45rem !important;
  line-height: 1.2;
  color: #102033 !important;
  font-weight: 900;
  margin: 10px 0 !important;
}
.section-note {
  color: var(--muted);
  margin-top: 18px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  color: #13293d;
}
.faq-list p {
  color: var(--muted);
  margin: 12px 0 0;
}
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contact-section {
  background: linear-gradient(135deg, #0d1b2a, #123b46);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: start;
}
.contact-section h2 {
  color: #fff;
}
.contact-section p {
  color: #c8d7e2;
}
.contact-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.contact-options a,
.footer-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-form {
  display: grid;
  gap: 14px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #f9fbfc;
}
.contact-form textarea {
  resize: vertical;
}
.form-note {
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  margin: 0;
}
.form-note a {
  color: var(--brand);
  font-weight: 800;
}
.form-status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 800;
}
.form-status.is-success {
  color: #0f766e;
}
.form-status.is-error {
  color: #b42318;
}
.contact-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.page-hero {
  padding: 72px 0 40px;
  background: linear-gradient(135deg, #f8fbfd, #eef6f6);
}
.legal-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.legal-content h2 {
  margin: 30px 0 8px;
  font-size: 1.35rem;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  color: #40566a;
}
.legal-content a {
  color: var(--brand);
  font-weight: 800;
}
.footer {
  background: #07111d;
  color: #cbd5e1;
  padding: 46px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 34px;
}
.footer h2 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 12px;
}
.footer p {
  color: #9fb0c2;
  margin: 14px 0;
}
.footer a {
  display: block;
  color: #dbe7f3;
  text-decoration: none;
  margin: 9px 0;
}
.footer a:hover {
  text-decoration: underline;
}
.footer-brand {
  filter: none;
}
.footer-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 18px;
  color: #8fa1b3;
  font-size: 0.92rem;
}
@media (max-width: 1050px) {
  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .primary-nav.is-open {
    display: grid;
  }
  .primary-nav a {
    white-space: normal;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 640px;
  }
  .service-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
  .header-inner {
    min-height: 68px;
  }

  .brand-modules {
    gap: 4px;
  }

  .brand-module {
    width: 70px;
    height: 50px;
    padding: 3px 5px;
  }
  .hero {
    padding: 54px 0 46px;
  }
  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 13vw, 3rem);
    line-height: 1.03;
  }
  .lead {
    font-size: 1rem;
  }
  .hero-actions,
  .btn {
    width: 100%;
  }
  .btn {
    padding-left: 14px;
    padding-right: 14px;
  }
  .mock-grid {
    grid-template-columns: 1fr;
  }
  .mock-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .section {
    padding: 56px 0;
  }
  .service-grid,
  .price-grid,
  .steps,
  .scenario-grid,
  .compact-grid,
  .two-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-card,
  .scenario-card,
  .price-card,
  .info-panel,
  .steps article,
  .compact-grid article,
  .contact-form,
  .legal-content {
    padding: 20px;
  }
  .footer-bottom {
    display: grid;
  }
  .contact-options {
    display: grid;
  }
  .page-hero {
    padding: 48px 0 24px;
  }
}
@media (max-width: 380px) {
  .container {
    width: min(100% - 22px, var(--max));
  }
  .brand img {
    width: 132px;
  }
  .menu-toggle {
    padding: 9px 11px;
  }
  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }
  .section-head h2,
  .contact-section h2,
  .split h2,
  .info-panel h2 {
    font-size: 1.65rem;
  }
  .price {
    font-size: 1.25rem !important;
  }
  .mock-window {
    border-radius: 12px;
  }
  .mock-grid {
    padding: 12px;
  }
  .contact-form {
    padding: 16px;
  }
}

/* Marcin AI and portfolio */
.marcin-hero {
  background:
    radial-gradient(
      circle at 82% 28%,
      rgba(245, 158, 11, 0.2),
      transparent 24%
    ),
    radial-gradient(
      circle at 66% 10%,
      rgba(15, 118, 110, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fbfd 0%, #edf7f4 58%, #fff8e9 100%);
}
.marcin-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}
.marcin-photo-wrap {
  position: relative;
  width: min(100%, 470px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.marcin-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 30px -16px -16px 34px;
  border: 2px solid rgba(15, 118, 110, 0.18);
  border-radius: 28px;
  z-index: -1;
}
.marcin-photo-wrap img {
  display: block;
  width: 100%;
  border-radius: 18px;
}
.marcin-chip {
  position: absolute;
  left: -20px;
  bottom: 28px;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(12, 23, 36, 0.24);
}
.marcin-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(19, 38, 59, 0.07);
}
.topic-card > span {
  display: inline-flex;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.topic-card h3 {
  margin: 14px 0 8px;
  line-height: 1.25;
}
.topic-card p {
  margin: 0;
  color: var(--muted);
}
.meeting-offer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f0f8f6);
  box-shadow: 0 16px 36px rgba(19, 38, 59, 0.08);
}
.meeting-offer h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.meeting-offer p {
  color: var(--muted);
}
.meeting-price {
  margin: 16px 0 20px !important;
  color: var(--brand) !important;
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 1;
  font-weight: 900;
}
.meeting-price small {
  font-size: 0.34em;
  color: var(--muted);
}
.marcin-contact-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.28fr);
}
.marcin-form fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.marcin-form legend {
  padding: 0 7px;
  font-weight: 800;
}
.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
}
.day-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #344b60;
}
.day-grid input,
.privacy-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}
.privacy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
  color: #344b60;
}
.privacy-check a {
  color: var(--brand);
}
.portfolio-hero {
  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(21, 94, 117, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fbfd, #eef6f6 56%, #f5f0e6);
}
.portfolio-visual {
  display: grid;
  place-items: center;
  min-height: 390px;
}
.portfolio-stack {
  position: relative;
  width: min(100%, 430px);
  height: 330px;
}
.portfolio-stack > div {
  position: absolute;
  display: grid;
  gap: 4px;
  width: 78%;
  min-height: 112px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}
.portfolio-stack > div:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}
.portfolio-stack > div:nth-child(2) {
  top: 96px;
  right: 0;
  transform: rotate(3deg);
  background: #e7f3f1;
}
.portfolio-stack > div:nth-child(3) {
  bottom: 0;
  left: 8%;
  transform: rotate(-1deg);
  background: #0d1b2a;
  color: #fff;
}
.portfolio-stack small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  font-weight: 900;
}
.portfolio-stack > div:nth-child(3) small {
  color: #6ee7b7;
}
.portfolio-stack strong {
  font-size: 1.3rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19, 38, 59, 0.07);
}
.project-card.project-featured {
  grid-column: span 2;
  background: linear-gradient(145deg, #fff, #eef8f6);
  border-color: rgba(15, 118, 110, 0.34);
}
.project-card h3 {
  margin: 18px 0 10px;
  font-size: 1.5rem;
  line-height: 1.15;
}
.project-card > p {
  margin: 0;
  color: var(--muted);
}
.project-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.project-card li {
  position: relative;
  padding-left: 24px;
  color: #344b60;
}
.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}
.project-status.is-ready {
  background: #def7ec;
  color: #0b6b4e;
}
.project-status.is-live {
  background: #fff1c7;
  color: #8b5700;
}
.project-status.is-progress {
  background: #e7eefb;
  color: #244f8f;
}
.project-code {
  font-size: 0.74rem;
  color: #8495a6;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.project-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}
.project-foot span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3f7;
  color: #435a6f;
  font-size: 0.76rem;
  font-weight: 800;
}
.project-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 22px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.project-link:hover {
  text-decoration: underline;
}
.project-marcin-card {
  background: linear-gradient(150deg, #fff, #fff8e9);
}
.portfolio-approach {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: start;
}
.portfolio-approach h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}
.home-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(19, 38, 59, 0.08);
}
.home-project-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -64px;
  bottom: -76px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.1);
}
.home-project-card.is-marcin {
  background: linear-gradient(145deg, #fff, #fff6df);
}
.home-project-card.is-marcin::after {
  background: rgba(245, 158, 11, 0.15);
}
.home-project-card h3 {
  margin: 10px 0;
  font-size: 1.7rem;
}
.home-project-card p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}
.home-project-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: auto;
  padding-top: 28px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.home-project-card a:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .primary-nav.is-open {
    display: grid;
  }
  .primary-nav a {
    white-space: normal;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
}
@media (max-width: 1050px) {
  .marcin-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marcin-contact-grid,
  .portfolio-approach {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-card.project-featured {
    grid-column: span 2;
  }
}
@media (max-width: 700px) {
  .marcin-photo-wrap {
    width: min(88vw, 420px);
    transform: none;
  }
  .marcin-chip {
    left: 10px;
    bottom: 10px;
  }
  .marcin-topics,
  .meeting-offer,
  .form-pair,
  .day-grid,
  .project-grid,
  .home-projects {
    grid-template-columns: 1fr;
  }
  .meeting-offer {
    padding: 24px;
    gap: 24px;
  }
  .project-card.project-featured {
    grid-column: auto;
  }
  .portfolio-visual {
    min-height: 330px;
  }
  .portfolio-stack {
    height: 290px;
  }
  .portfolio-stack > div {
    min-height: 100px;
    padding: 18px;
  }
  .portfolio-stack > div:nth-child(2) {
    top: 86px;
  }
  .project-card {
    padding: 22px;
  }
}

/* Shared loading transition for every public page. */
body.is-site-loading {
  overflow: hidden;
}

.site-loader {
  --compact-cyan: #12d9ed;
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 217, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 217, 237, 0.035) 1px, transparent 1px),
    #05090b;
  background-size: 42px 42px;
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.site-loader::before {
  position: absolute;
  width: min(82vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(18, 217, 237, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(18, 217, 237, 0.015), 0 0 90px rgba(18, 217, 237, 0.08);
  content: "";
  animation: loader-orbit 2.2s linear infinite;
}

.site-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.site-loader__frame {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(88vw, 390px);
  justify-items: center;
  gap: 12px;
  padding: 30px 36px 26px;
  border: 1px solid rgba(18, 217, 237, 0.36);
  background: rgba(5, 11, 13, 0.88);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.56), inset 0 0 36px rgba(18, 217, 237, 0.035);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.site-loader__frame::before,
.site-loader__frame::after {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--compact-cyan);
  content: "";
}

.site-loader__frame::before {
  top: 9px;
  left: 9px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.site-loader__frame::after {
  right: 9px;
  bottom: 9px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.site-loader__frame img {
  width: min(230px, 70vw);
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(18, 217, 237, 0.22));
  animation: loader-logo 1.1s ease both;
}

.site-loader__label {
  color: #9eb1b7;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.site-loader__progress {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(18, 217, 237, 0.12);
}

.site-loader__progress::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--compact-cyan) 35%, #f5ffff 50%, var(--compact-cyan) 65%, transparent);
  content: "";
  transform: translateX(-100%);
  animation: loader-progress 1.45s ease-in-out infinite;
}

@keyframes loader-logo {
  from { opacity: 0; transform: scale(0.94); filter: blur(5px) drop-shadow(0 0 0 transparent); }
  to { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 22px rgba(18, 217, 237, 0.22)); }
}

@keyframes loader-progress {
  0% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

@keyframes loader-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader::before,
  .site-loader__frame img,
  .site-loader__progress::after {
    animation: none;
  }

  .site-loader {
    transition-duration: 120ms;
  }
}
