/* ============================================
   maseo360 — Design Tokens & Base
   ============================================ */

:root {
  /* Colors */
  --bg: #fafaf7;
  --bg-alt: #f2f2ec;
  --bg-warm: #f5f0e6;
  --bg-warm-deep: #ebe3d2;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #6b6b66;
  --muted-soft: #9a9a93;
  --line: #e6e6df;
  --line-strong: #d4d4cc;

  --accent: #00d084;
  --accent-hover: #00b874;
  --accent-soft: #e6faf1;
  --accent-ink: #003d22;

  --dark-bg: #0a0a0a;
  --dark-bg-2: #141414;
  --dark-line: #242424;
  --dark-ink: #f2f2ec;
  --dark-muted: #8a8a85;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-micro: 11px;
  --fs-label: 12px;
  --fs-body: 16px;
  --fs-lead: 18px;
  --fs-h4: 22px;
  --fs-h3: 28px;
  --fs-h2: clamp(32px, 4vw, 56px);
  --fs-h1: clamp(44px, 7vw, 112px);

  /* Misc */
  --container: 1280px;
  --container-wide: 1400px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

/* Prevent any rogue full-bleed/100vw element from causing horizontal scroll.
   `clip` is preferred over `hidden` because it doesn't break position:sticky
   on descendants the way `hidden` does. */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* ---------- Custom scrollbar (green, soft glow) ---------- */
html {
  scrollbar-width: thin;                                      /* Firefox */
  scrollbar-color: var(--accent) transparent;
}
::-webkit-scrollbar           { width: 8px; height: 8px; }
::-webkit-scrollbar-track     { background: transparent; }
::-webkit-scrollbar-thumb     {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(0, 208, 132, 0.55), inset 0 0 4px rgba(255, 255, 255, 0.35);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
::-webkit-scrollbar-corner    { background: transparent; }
@media (max-width: 720px) {
  ::-webkit-scrollbar         { width: 4px; height: 4px; }   /* slimmer on phones */
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.2; }

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* Utilities */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}
.label--dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  transform: translateY(-2px);
}
.label--light { color: var(--dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--bg);
}
.eyebrow--light {
  color: var(--dark-muted);
  border-color: var(--dark-line);
  background: transparent;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ghost--light { color: var(--dark-ink); border-color: var(--dark-line); }
.btn-ghost--light:hover { background: var(--dark-ink); color: var(--dark-bg); }
.btn-arrow { display:inline-flex; width: 28px; height: 28px; align-items:center; justify-content:center; border-radius:50%; background: rgba(0,0,0,0.08); transition: background .15s; }
.btn-primary .btn-arrow { background: rgba(0, 61, 34, 0.15); }
.btn:hover .btn-arrow { background: rgba(0,0,0,0.18); }

/* Sections */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 140px) 0; }
.section-pad-sm { padding: clamp(48px, 6vw, 96px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: end;
  margin-bottom: var(--s6);
}
.section-head__title { max-width: 18ch; }
.section-head__side { color: var(--muted); max-width: 42ch; }

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s3); }
}

/* Dark section */
.dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--dark-ink); }
.dark .section-head__side { color: var(--dark-muted); }

/* Link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .15s, color .15s;
}
.link-arrow:hover { gap: 14px; color: var(--accent); border-bottom-color: var(--accent); }
.dark .link-arrow { border-bottom-color: var(--dark-ink); color: var(--dark-ink); }
.dark .link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Decorative */
.rule { height: 1px; background: var(--line); width: 100%; }
.dark .rule { background: var(--dark-line); }

.ticker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(0,208,132,0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,208,132,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(0,208,132,0); }
}

/* Accent underline on text */
.acc { color: var(--accent); }
.acc-mark {
  background: linear-gradient(to top, rgba(0,208,132,0.25) 40%, transparent 40%);
  padding: 0 2px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  min-height: var(--header-h);
  padding: 12px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 20px;
}
.logo__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  position: relative;
}
.logo__mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  animation: spin 12s linear infinite;
  opacity: 0.6;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Logo image (PNG) — replaces the .logo__mark circle */
.logo__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo--footer .logo__img {
  /* Footer uses dedicated white-on-dark logo file (assets/img/maseo360-logo-white.png),
     no filter needed. */
}
.m-logo__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 12px;                 /* breathing room between items on desktop */
  justify-self: center;
  flex-wrap: wrap;           /* drop items to next line instead of overflowing */
  justify-content: center;
  align-items: center;       /* 1-line items align to the vertical middle of 2-line ones */
  row-gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.nav__item {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s;
  white-space: normal;
  text-align: center;
}
.nav__item:hover, .nav__item[aria-expanded="true"] {
  background: var(--ink);
  color: var(--bg);
}
.nav__item .chev { transition: transform .2s; }
.nav__item[aria-expanded="true"] .chev { transform: rotate(180deg); }

.header__cta { display: flex; gap: 10px; align-items: center; }

/* Mega menu — anchored to the LEFT edge of its parent trigger so the
   panel never overflows outside the viewport on mid-width screens. */
.megamenu {
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  min-width: 640px;
  max-width: calc(100vw - 48px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 60;
}
.nav__wrap { position: relative; }
.nav__wrap.open .megamenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.megamenu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.megamenu__col-head {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.megamenu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: background .15s;
}
.megamenu__link:hover { background: var(--bg-alt); }
.megamenu__link small { display:block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.megamenu__link-text { display: block; }
.megamenu__link-arrow { color: var(--muted); opacity: 0; transform: translateX(-4px); transition: .15s; }
.megamenu__link:hover .megamenu__link-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }

.megamenu__footer {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px;
}

.menu-btn { display: none !important; }

/* Prevent button text from wrapping onto a second line anywhere in the header */
.header .btn { white-space: nowrap; }

/* Mid-width (tablet / laptop) — shrink menu spacing so primary nav + both
   CTAs still fit. If nav is too wide at a given viewport it will wrap to a
   second line (flex-wrap) rather than pushing the CTAs off-screen. */
@media (max-width: 1280px) {
  .header__inner { gap: 24px; }
  .nav { gap: 6px; }
  .nav__item { padding: 8px 12px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: grid !important; }
  /* Switch to flex so hidden .nav doesn't leave an empty column that
     glues the hamburger to the logo — keeps logo left, burger right. */
  .header__inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  .header__cta { margin-left: auto; }
}

/* ============================================
   HERO — bento
   ============================================ */

.hero {
  padding: 24px 0 0;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  min-height: 640px;
}
.hero__left {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero__left::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0,208,132,0.12), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(0,208,132,0.06), transparent 60%);
  pointer-events: none;
}
.hero__left-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s5);
  position: relative;
}
.hero__left-head .label { color: var(--dark-muted); }
.hero__h1 {
  font-size: clamp(44px, 6.5vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
  position: relative;
  flex: 1;
}
.hero__h1 em { font-style: normal; color: var(--accent); }
.hero__h1-strike {
  position: relative; display: inline-block;
}
.hero__lead {
  color: var(--dark-muted);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 36px;
  position: relative;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s4); position: relative; }
.hero__meta {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 24px 48px;
  position: relative;
  margin-top: auto;
  padding-top: var(--s4);
  border-top: 1px solid var(--dark-line);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dark-muted); }
.hero__meta-v { font-size: 24px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; color: var(--dark-ink); }
.hero__meta-v .acc { color: var(--accent); }

/* Hero right — form + photo bento */
.hero__right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}
.hero__portrait {
  border-radius: var(--r-xl);
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 20px;
  min-height: 260px;
  aspect-ratio: 1 / 1;
}
.hero__portrait::before {
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(0,208,132,0.22), transparent 55%);
  pointer-events: none;
}
.hero__portrait-img {
  position: absolute; inset: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
  border: 1px solid var(--dark-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__portrait-img::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 208, 132, 0.35);
  animation: spin 30s linear infinite;
}
.hero__portrait-placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
  text-align: center;
  max-width: 140px;
  line-height: 1.5;
}
.hero__portrait-tag {
  position: absolute;
  bottom: 20px; left: 20px;
  padding: 8px 14px;
  background: rgba(250,250,247,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark-ink);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ATF form */
.hero__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px;
}
.hero__form-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 4px;
}
.hero__form h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero__form-row {
  display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
}
.hero__form input, .hero__form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s;
}
.hero__form input:focus, .hero__form select:focus {
  outline: none; border-color: var(--ink);
}
.hero__form button {
  margin-top: 4px;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
}
.hero__form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__right { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
  .hero__portrait { aspect-ratio: unset; }
}
@media (max-width: 720px) {
  .hero__right { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__form-row { grid-template-columns: 1fr; }
}

/* Hero variant switcher */
.variant-switcher {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 40;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  margin: 20px auto;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.variant-switcher-wrap { display: flex; justify-content: center; pointer-events: none; position: relative; z-index: 40; }
.variant-switcher > * { pointer-events: auto; }
.variant-switcher button {
  padding: 8px 14px;
  border-radius: var(--r-full);
  color: var(--muted);
  transition: .15s;
}
.variant-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================
   Breadcrumb (for sub-pages, unused on home)
   ============================================ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; gap: 8px; align-items: center;
  padding: 20px 0;
}

/* ============================================
   Logos / marquee
   ============================================ */
.logos-wrap {
  padding: 48px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.marquee {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; flex-shrink: 0; gap: 64px;
  padding-right: 64px;
  animation: scroll 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-100%); } }
.marquee__item {
  flex-shrink: 0;
  height: 32px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  opacity: 0.6;
  transition: opacity .15s;
}
.marquee__item:hover { opacity: 1; color: var(--ink); }

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.stats__item {
  padding: 48px 32px;
  border-right: 1px solid var(--dark-line);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.stats__item:last-child { border-right: none; }
.stats__n {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-family: var(--font-display);
}
.stats__n sub, .stats__n sup { font-size: 0.5em; color: var(--dark-muted); vertical-align: baseline; font-weight: 400; }
.stats__label {
  font-size: 14px;
  color: var(--dark-muted);
  max-width: 18ch;
}
.stats__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2) { border-right: none; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--dark-line); }
}

/* ============================================
   SERVICES — grouped bento
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}
.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
  border: 1px solid var(--line);
  background: var(--bg);
}
.svc-card:hover { transform: translateY(-4px); }
.svc-card--dark { background: var(--dark-bg); color: var(--dark-ink); border-color: var(--dark-line); }
.svc-card--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.svc-card--alt { background: var(--bg-alt); border-color: var(--line); }

.svc-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.svc-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.svc-card__title {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 20px;
  max-width: 14ch;
  font-weight: 500;
}
.svc-card__desc {
  font-size: 15px;
  opacity: 0.78;
  max-width: 40ch;
  margin-bottom: 24px;
}
.svc-card--dark .svc-card__desc { color: var(--dark-muted); opacity: 1; }

.svc-list {
  display: flex; flex-direction: column;
  margin-top: auto;
}
.svc-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-top: 1px solid currentColor;
  opacity: 0.9;
  font-size: 14px;
  transition: padding .15s, opacity .15s;
}
.svc-card--dark .svc-list a { border-top-color: var(--dark-line); }
.svc-card--accent .svc-list a { border-top-color: rgba(0,61,34,0.2); color: var(--accent-ink); }
.svc-card:not(.svc-card--dark):not(.svc-card--accent) .svc-list a { border-top-color: var(--line); }
.svc-list a:last-child { border-bottom: 1px solid currentColor; }
.svc-card--dark .svc-list a:last-child { border-bottom-color: var(--dark-line); }
.svc-card--accent .svc-list a:last-child { border-bottom-color: rgba(0,61,34,0.2); }
.svc-card:not(.svc-card--dark):not(.svc-card--accent) .svc-list a:last-child { border-bottom-color: var(--line); }
.svc-list a:hover { padding-left: 8px; }
.svc-list a .arr { transition: transform .15s; }
.svc-list a:hover .arr { transform: translate(4px, -4px); }

/* Grid spans */
.svc-span-big { grid-column: span 6; }
.svc-span-med { grid-column: span 6; }
.svc-span-sm { grid-column: span 6; }
/* Big card: no forced gap between desc and list. */
.svc-span-big .svc-list { margin-top: 24px; }

@media (max-width: 960px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc-span-big, .svc-span-med, .svc-span-sm {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 340px;
  }
}

/* Decorative shapes in cards */
.svc-deco {
  position: absolute;
  pointer-events: none;
}
.svc-deco--ring {
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  top: -120px; right: -120px;
  opacity: 0.2;
  animation: spin 40s linear infinite;
}
.svc-deco--dots {
  top: 24px; right: 24px;
  width: 88px; height: 88px;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.2;
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #e6e6df, #f5f5ef);
  border: 1px solid var(--line);
}
.about__photo-inner {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 28px, rgba(10,10,10,0.04) 28px 29px);
}
.about__photo-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  max-width: 180px;
}
.about__photo-ring {
  position: absolute;
  inset: 24px;
  border: 1px dashed var(--accent);
  border-radius: calc(var(--r-xl) - 8px);
  pointer-events: none;
}
.about__photo-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 8px;
}

.about__content h2 { max-width: 16ch; margin-bottom: 24px; }
.about__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 32px;
}
.about__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.chip--accent { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

.about__facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about__fact-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.about__fact-v { font-size: 15px; }

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

/* ============================================
   WHY US
   ============================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.why__cell {
  background: var(--bg);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .2s;
}
.why__cell:hover { background: var(--bg-alt); }
.why__cell-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.why__cell h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.why__cell p {
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
}
.why__cell-ico {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 8px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ============================================
   BLOG
   ============================================ */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog__card {
  display: flex; flex-direction: column;
  gap: 16px;
}
.blog__thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform .3s;
}
.blog__card:hover .blog__thumb { transform: translateY(-2px); }
.blog__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(0,0,0,0.04) 16px 17px);
}
.blog__thumb--a { background: linear-gradient(135deg, #0a0a0a, #1a1a1a); }
.blog__thumb--b { background: var(--accent); }
.blog__thumb--c { background: linear-gradient(135deg, #f2f2ec, #e6e6df); }
.blog__thumb-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border-radius: var(--r-full);
  z-index: 2;
}
.blog__thumb-visual {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.blog__thumb--c .blog__thumb-visual { color: var(--muted); }
.blog__thumb--b .blog__thumb-visual { color: var(--accent-ink); }
.blog__meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog__meta-dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }
.blog__card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color .15s;
}
.blog__card:hover h3 { color: var(--accent); }
.blog__card p { color: var(--muted); font-size: 15px; }

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

/* ============================================
   FAQ
   ============================================ */
.faq__grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s6);
  align-items: start;
}
.faq__list { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
/* Nagłówek H3 owija przycisk FAQ (semantyka) — bez własnych stylów. */
.faq__q-h { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  text-align: left;
  font-size: clamp(18px, 1.6vw, 22px);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq__q-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.faq__item--open .faq__q-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.faq__q-icon svg { transition: transform .2s; }
.faq__item--open .faq__q-icon svg { transform: rotate(45deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}
.faq__item--open .faq__a {
  max-height: 500px;
  padding-top: 16px;
}

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

/* ============================================
   SEO TEXT (long-form content area)
   ============================================ */
.seotext {
  background: var(--bg-alt);
}
.seotext__grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s6);
}
.seotext__toc {
  position: sticky; top: calc(var(--header-h) + 24px);
}
.seotext__toc-head {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.seotext__toc a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color .15s, padding .15s;
}
.seotext__toc a:hover { color: var(--ink); padding-left: 4px; }

.seotext__body h3 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.seotext__body h3:first-child { margin-top: 0; }
.seotext__body p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 62ch;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .seotext__grid { grid-template-columns: 1fr; }
  .seotext__toc { position: static; }
}

/* ============================================
   CTA / CONTACT FORM
   ============================================ */
.contact {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  padding: clamp(48px, 7vw, 100px) 48px 40px;
}
.contact h2,
.contact .contact__title {
  font-size: clamp(40px, 5vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
  max-width: 14ch;
  font-weight: 600;
  font-family: var(--font-display, inherit);
}
.contact__side h2 em,
.contact__side .contact__title em { font-style: normal; color: var(--accent); }
.contact__side p { color: var(--dark-muted); font-size: 18px; max-width: 44ch; margin-bottom: 32px; }
.contact__meta {
  display: flex; flex-direction: column; gap: 16px;
}
.contact__meta-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--dark-line);
  align-items: center;
}
.contact__meta-item:last-child { border-bottom: 1px solid var(--dark-line); }
.contact__meta-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dark-muted); }
.contact__meta-v { font-size: 16px; }

.contact__form {
  background: var(--dark-bg-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-xl);
  padding: 32px;
}
.contact__form-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dark-line);
}
.contact__form-head h3,
.contact__form-head .wform__title { font-size: 20px; font-weight: 600; margin: 0; }
.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-muted);
}
.contact__form input, .contact__form textarea, .contact__form select {
  background: var(--dark-bg);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark-ink);
  width: 100%;
  transition: border-color .15s;
}
.contact__form input:focus, .contact__form textarea:focus, .contact__form select:focus {
  outline: none; border-color: var(--accent);
}
.contact__form textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select input { display: none; }
.chip-sel {
  padding: 8px 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-full);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--dark-muted);
  transition: .15s;
}
.chips-select input:checked + .chip-sel {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.chip-sel:hover { border-color: var(--dark-ink); color: var(--dark-ink); }
.chips-select input:checked + .chip-sel:hover { color: var(--accent-ink); }

.contact__submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; padding: 40px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact__meta-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding: 48px 0 32px;
  border-top: 1px solid var(--dark-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4,
.footer .footer__col-title,
.contact-warm .footer .footer__col-title,
.contact .footer .footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark-ink);
  margin: 0 0 18px;
  font-weight: 500;
  line-height: 1.2;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--dark-muted); font-size: 14px; transition: color .15s; }
.footer__links a:hover { color: var(--accent); }
.footer__brand p { max-width: 36ch; color: var(--dark-muted); font-size: 14px; margin-top: 16px; }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-muted);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}

/* ============================================
   HERO VARIANTS 2 & 3
   ============================================ */

/* V2 — editorial */
.hero-v2 {
  padding: 24px 0 0;
}
.hero-v2__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.hero-v2__h1 {
  font-size: clamp(60px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 48px;
  max-width: 14ch;
}
.hero-v2__h1 em { font-style: normal; color: var(--accent); }
.hero-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.hero-v2__col h4 { font-size: 18px; margin-bottom: 12px; }
.hero-v2__col p { color: var(--muted); font-size: 15px; }

.hero-v2__photo-inline {
  display: inline-flex;
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  margin: 0 12px;
  transform: translateY(-12px);
  border: 1px solid var(--line-strong);
}
.hero-v2__photo-inline::after {
  content:"";
  position:absolute; inset: 4px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.hero-v2__ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
}
.hero-v2__form-row {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  max-width: 700px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--bg);
}
.hero-v2__form-row input {
  padding: 14px 20px; border: 0;
  font-family: inherit;
  font-size: 15px; background: transparent;
  color: var(--ink);
}
.hero-v2__form-row input:focus { outline: none; }
.hero-v2__form-row button { padding: 14px 24px; }

@media (max-width: 860px) {
  .hero-v2__grid { grid-template-columns: 1fr; }
  .hero-v2__head { grid-template-columns: 1fr; }
  .hero-v2__form-row { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .hero-v2__form-row button { width: 100%; }
}

/* V3 — split: image right, form left */
.hero-v3 {
  padding: 24px 0 0;
}
.hero-v3__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.hero-v3__left {
  padding: clamp(32px, 4vw, 64px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  min-height: 640px;
}
.hero-v3__h1 {
  font-size: clamp(40px, 5.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero-v3__h1 em { font-style: normal; color: var(--accent); font-family: inherit; }
.hero-v3__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-v3__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: auto; }
.hero-v3__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.hero-v3__stat-n { font-size: 36px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; color: var(--accent); }
.hero-v3__stat-l { font-size: 13px; color: var(--muted); }

.hero-v3__right {
  position: relative;
  background: var(--dark-bg);
  border-radius: var(--r-xl);
  padding: 32px;
  color: var(--dark-ink);
  display: flex; flex-direction: column;
  min-height: 640px;
  overflow: hidden;
}
.hero-v3__right::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,208,132,0.15), transparent 60%);
  pointer-events: none;
}
.hero-v3__photo-big {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
  border: 1px solid var(--dark-line);
  display: grid; place-items: center;
}
.hero-v3__photo-big::after {
  content:"";
  position: absolute; inset: 10px;
  border: 1px dashed rgba(0,208,132,0.4);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.hero-v3__form {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.hero-v3__form h3 { font-size: 18px; margin-bottom: 8px; }
.hero-v3__form input {
  background: var(--dark-bg-2);
  border: 1px solid var(--dark-line);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--dark-ink);
}
.hero-v3__form input:focus { outline: none; border-color: var(--accent); }
.hero-v3__form button { justify-content: center; }

@media (max-width: 960px) {
  .hero-v3__grid { grid-template-columns: 1fr; }
  .hero-v3__photo-big { max-width: 260px; }
  .hero-v3__stats { grid-template-columns: 1fr 1fr; }
}

/* Hide inactive variants */
.hero-variant { display: none; }
.hero-variant.is-active { display: block; }

/* ============================================
   WAVE DIVIDERS
   ============================================ */
.wave {
  position: relative;
  width: 100%;
  line-height: 0;
  display: block;
}
.wave svg { width: 100%; height: 80px; display: block; }
@media (max-width: 720px) { .wave svg { height: 48px; } }
.wave--accent-dots circle { fill: var(--accent); }
.wave--dashed { stroke-dasharray: 4 6; }

/* Warm section */
.warm { background: var(--bg-warm); }
.warm-deep { background: var(--bg-warm-deep); }

/* Adjust contact to warm scheme */
.contact-warm {
  background: var(--bg-warm);
  color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}
.contact-warm h2, .contact-warm h3, .contact-warm h4 { color: var(--ink); }
.contact-warm .contact__side p { color: var(--muted); }
.contact-warm .contact__meta-item { border-top-color: var(--line-strong); }
.contact-warm .contact__meta-item:last-child { border-bottom-color: var(--line-strong); }
.contact-warm .contact__meta-k { color: var(--muted); }

.contact-warm .contact__form {
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.contact-warm .contact__form-head { border-bottom-color: var(--line); }
.contact-warm .contact__form-head .label { color: var(--muted); }
.contact-warm .contact__form input,
.contact-warm .contact__form textarea,
.contact-warm .contact__form select {
  background: var(--bg-warm);
  border-color: var(--line-strong);
  color: var(--ink);
}
.contact-warm .contact__form input:focus,
.contact-warm .contact__form textarea:focus,
.contact-warm .contact__form select:focus {
  border-color: var(--accent);
}
.contact-warm .form-label { color: var(--muted); }
.contact-warm .chip-sel {
  border-color: var(--line-strong);
  color: var(--muted);
}
.contact-warm .chip-sel:hover { border-color: var(--ink); color: var(--ink); }
.contact-warm .chips-select input:checked + .chip-sel {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Footer on dark — still dark inside warm */
.contact-warm + .footer,
.contact-warm .footer {
  border-radius: 0;
}

/* ============================================================
   maseo360 — theme additions (mobile drawer + WP-specific)
   ============================================================ */

/* =========================================================
   Mobile drawer — rebuilt from design (mobile-menu.html)
   ========================================================= */

/* Animated hamburger (shared by header trigger + drawer close) */
.m-burger {
	width: 44px; height: 44px;
	border-radius: 12px;
	border: 1px solid var(--line-strong, #d8d5c6);
	background: var(--bg, #fafaf7);
	display: grid; place-items: center;
	cursor: pointer;
	padding: 0;
	position: relative;
	box-sizing: border-box;
}
.m-burger span {
	display: block;
	width: 16px; height: 1.5px;
	background: var(--ink, #0a0a0a);
	position: absolute;
	left: 50%;
	margin-left: -8px;
	transition: transform .25s, opacity .2s;
}
.m-burger span:nth-child(1) { top: 17px; }
.m-burger span:nth-child(2) { top: 22px; }
.m-burger span:nth-child(3) { top: 27px; }
.m-burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.m-burger.is-open span:nth-child(2) { opacity: 0; }
.m-burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Overlay */
.mobile-drawer {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 10, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
	display: flex;
	justify-content: flex-end;
}
.mobile-drawer.is-open { opacity: 1; visibility: visible; }

/* Panel — slides in from right */
.mobile-drawer__panel {
	position: relative;
	background: var(--bg, #fafaf7);
	width: 100%;          /* fill its flex parent on phones */
	max-width: 480px;     /* cap on tablets/desktop */
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.4,0,.2,1);
	box-shadow: -20px 0 60px rgba(0,0,0,.25);
}
@media (max-width: 720px) {
	.mobile-drawer__panel { max-width: none; }   /* full-screen drawer on phones */
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }

/* Head row with logo + close */
.mobile-drawer__head {
	flex-shrink: 0;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line, #e6e4da);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--bg, #fafaf7);
}
.mobile-drawer__head .m-logo {
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink, #0a0a0a);
	text-decoration: none;
}
.mobile-drawer__head .m-logo__mark {
	width: 28px; height: 28px; border-radius: 6px;
	background: var(--ink, #0a0a0a);
	color: var(--bg, #fafaf7);
	display: grid; place-items: center;
	font-weight: 700; font-size: 14px;
}
.mobile-drawer__head .m-logo strong { color: var(--accent, #00d084); font-weight: 600; }

/* Scrollable body */
.mobile-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 24px 20px 32px;
}
.mobile-drawer__body::-webkit-scrollbar { width: 0; }

/* Utility (phone/status) */
.m-utility {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--line, #e6e4da);
}
.m-utility__contact { display: flex; flex-direction: column; gap: 4px; }
.m-utility__label {
	font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted, #5a5a58);
}
.m-utility__phone {
	font-size: 17px;
	font-weight: 500;
	color: var(--ink, #0a0a0a);
	text-decoration: none;
	letter-spacing: -0.01em;
}
.m-utility__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted, #5a5a58);
}
.m-utility__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--accent, #00d084);
	box-shadow: 0 0 0 4px rgba(0,208,132,0.15);
}

/* Nav groups */
.mobile-drawer__body .m-group {
	padding: 20px 0;
	border-bottom: 1px solid var(--line, #e6e4da);
}
.mobile-drawer__body .m-group:last-of-type { border-bottom: none; }

.m-group__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}
.m-group__title {
	font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted, #5a5a58);
	display: flex;
	align-items: center;
	gap: 10px;
}
.m-group__num { color: var(--accent, #00d084); font-weight: 500; }
.m-group__count {
	font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 10px;
	color: var(--muted, #5a5a58);
	letter-spacing: 0.1em;
}
/* Clickable parent in mobile drawer (when WP menu has a URL on the parent) */
a.m-group__head { text-decoration: none; color: inherit; }
.m-group__head--link {
	cursor: pointer;
	padding: 4px 0;
	transition: color 0.15s;
}
.m-group__head--link:hover .m-group__title,
.m-group__head--link:active .m-group__title { color: var(--ink, #0a0a0a); }
.m-group__head-arr {
	color: var(--accent, #00d084);
	font-weight: 500;
	margin-left: 8px;
	transition: transform 0.15s;
}
.m-group__head--link:hover .m-group__head-arr,
.m-group__head--link:active .m-group__head-arr { transform: translateX(3px); }

/* Top-level big link */
.m-link-big {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	text-decoration: none;
	color: var(--ink, #0a0a0a);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: -0.02em;
	border-bottom: 1px solid var(--line, #e6e4da);
}
.m-link-big:last-of-type { border-bottom: none; }
.m-link-big .arr {
	color: var(--muted, #5a5a58);
	font-size: 18px;
	transition: transform .2s;
}
.m-link-big:hover .arr,
.m-link-big:active .arr { transform: translateX(4px); color: var(--accent, #00d084); }
.m-link-big.is-active { color: var(--accent, #00d084); }

/* Sub-items */
.m-sublinks { display: flex; flex-direction: column; }
.m-sublink {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	text-decoration: none;
	color: var(--ink, #0a0a0a);
	border-bottom: 1px solid var(--line, #e6e4da);
}
.m-sublink:last-child { border-bottom: none; }
.m-sublink__idx {
	font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: 0.1em;
	color: var(--muted, #5a5a58);
	width: 28px;
	flex-shrink: 0;
	padding-top: 3px;
}
.m-sublink__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.m-sublink__title {
	font-size: 17px;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--ink, #0a0a0a);
	line-height: 1.25;
}
.m-sublink__sub { font-size: 12px; color: var(--muted, #5a5a58); line-height: 1.35; }
.m-sublink__arrow { flex-shrink: 0; color: var(--muted, #5a5a58); font-size: 14px; padding-top: 3px; }

/* Footer CTAs */
.mobile-drawer__foot {
	flex-shrink: 0;
	padding: 20px;
	background: var(--bg-warm, #f5f0e6);
	border-top: 1px solid var(--line-strong, #d8d5c6);
}
.m-cta-row { display: flex; gap: 10px; margin-bottom: 14px; }
.m-cta {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--accent, #00d084);
	color: var(--accent-ink, #0a0a0a);
	border: none;
	padding: 14px 16px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.m-cta-ghost {
	flex: 1;
	background: transparent;
	color: var(--ink, #0a0a0a);
	border: 1px solid var(--ink, #0a0a0a);
	padding: 14px 16px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.m-socials {
	display: flex;
	gap: 18px;
	justify-content: center;
	padding-top: 8px;
}
.m-socials a {
	font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted, #5a5a58);
	text-decoration: none;
}
.m-socials a:hover { color: var(--ink, #0a0a0a); }

body.has-drawer-open { overflow: hidden; }

/* Smoother header on small screens */
@media (max-width: 1024px) {
	.header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
	.header__cta .btn-primary { display: none; } /* drawer has the CTAs */
}
@media (max-width: 560px) {
	.header__cta .btn:not(.menu-btn) { display: none; }
}

/* Hero grid → stack on mobile */
@media (max-width: 960px) {
	.hero-v3__grid { grid-template-columns: 1fr !important; gap: 40px; }
	.hero-v3__right { align-items: center; }
}
@media (max-width: 560px) {
	.hero-v3__h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.05; }
	.hero-v3__stats { grid-template-columns: 1fr 1fr !important; gap: 16px; }
	.hero-v3__photo-big { aspect-ratio: 1/1; position: relative; }
}

/* Services grid — stack */
@media (max-width: 1024px) {
	.services__grid { grid-template-columns: 1fr 1fr !important; }
	.svc-span-big,
	.svc-card[style*="782"] { width: 100% !important; grid-column: 1 / -1 !important; }
}
@media (max-width: 720px) {
	.services__grid { grid-template-columns: 1fr !important; }
	.svc-span-big, .svc-span-med, .svc-span-sm { grid-column: auto !important; }
}

/* About two-col → stack */
@media (max-width: 960px) {
	.about__grid { grid-template-columns: 1fr !important; gap: 32px; }
	.about__facts { grid-template-columns: 1fr 1fr; }
}

/* Why us: 3 → 2 → 1 */
@media (max-width: 1024px) { .why__grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 640px)  { .why__grid { grid-template-columns: 1fr !important; } }

/* Blog grid → stack */
@media (max-width: 960px)  { .blog__grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 640px)  { .blog__grid { grid-template-columns: 1fr !important; } }

/* FAQ two-col → stack */
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr !important; gap: 32px; } }

/* SEO text: TOC on top */
@media (max-width: 900px) {
	.seotext__grid { grid-template-columns: 1fr !important; }
	.seotext__toc { position: static !important; margin-bottom: 24px; }
}

/* Contact two-col → stack */
@media (max-width: 960px) {
	.contact__grid { grid-template-columns: 1fr !important; gap: 32px; }
}

/* Footer columns 4 → 2 → 1 */
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr !important; } }

/* Stats 4 → 2 → 2 */
@media (max-width: 860px) { .stats__grid { grid-template-columns: 1fr 1fr !important; } }

/* Make every form input & button finger-friendly */
@media (max-width: 720px) {
	.hero-v3__form input,
	.contact__form input,
	.contact__form textarea,
	.btn { min-height: 44px; }
}

/* Elementor & Gutenberg groups: let our global containers breathe */
.maseo360-canvas { background: var(--bg); }

/* Gutenberg editor alignment fix */
.editor-styles-wrapper { background: var(--bg); color: var(--ink); font-family: var(--font-body, 'Space Grotesk'), sans-serif; }

/* Custom-logo support */
.site-logo img { max-height: 40px; width: auto; }

/* ============================================
   Stopka — dane rejestrowe firmy
   ============================================ */
.footer__company {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 1px solid var(--dark-line);
  font-size: 12px;
  color: var(--dark-muted);
}
.contact-warm .footer .footer__company { border-top-color: var(--dark-line); }
@media (max-width: 560px) {
  .footer__company { flex-direction: column; gap: 4px; }
}

/* ============================================
   Strony prawne (Polityka prywatności, Regulamin)
   ============================================ */
.page-legal { background: var(--bg); }
.legal { padding: 24px 0 96px; }
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal__h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 20px 0 12px;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px dashed var(--line-strong);
}
.legal__prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal__prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__prose h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}
.legal__prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 14px;
}
.legal__prose ul,
.legal__prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal__prose li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal__prose li::marker { color: var(--accent); }
.legal__prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color .15s;
}
.legal__prose a:hover { color: var(--accent); }
.legal__prose strong { font-weight: 600; }
.legal__contact {
  margin-top: 56px;
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal__contact-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__contact-v {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.legal__contact-v:hover { color: var(--accent); }

/* Linki prawne w stopce */
.footer__legal-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.footer__legal-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.footer__legal-links span[aria-hidden] { margin: 0 6px; }

/* Link w klauzuli RODO pod formularzami */
.form-rodo a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-rodo a:hover { color: var(--accent); }

/* Stopka — linki z menu WP renderują się jako <li>: reset markerów,
   żeby stopka wyglądała identycznie na każdej podstronie. */
.footer__links ul,
.footer__links li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__links li { display: block; }
.footer__links li a { color: var(--dark-muted); font-size: 14px; transition: color .15s; }
.footer__links li a:hover { color: var(--accent); }

/* ============================================
   SEMANTYCZNE MENU (ul/li) — resety, żeby wygląd
   pozostał identyczny jak przy poprzednich divach
   ============================================ */

/* Desktop: ul.nav__list przejmuje flex-layout z .nav */
.nav__list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 0;
}
.nav__li { display: inline-flex; }
@media (max-width: 1280px) {
  .nav__list { gap: 6px; }
}

/* Mega menu: ul.megamenu__grid — grid zostaje, znikają markery */
.megamenu__grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
.megamenu__grid > li { display: block; min-width: 0; }

/* Drawer mobilny: listy bez markerów, li jako zwykłe bloki */
.m-list,
.m-sublinks,
.m-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-list > li,
.m-sublinks > li,
.m-links > li { display: block; }

/* Bordery per-li — stare :last-of-type na <a> przestało być wiarygodne,
   bo każdy anchor jest teraz jedynym <a> w swoim <li>. */
.m-links .m-link-big { border-bottom: 1px solid var(--line, #e6e4da); }
.m-links > li:last-child .m-link-big { border-bottom: none; }
.m-sublinks .m-sublink { border-bottom: 1px solid var(--line, #e6e4da); }
.m-sublinks > li:last-child .m-sublink { border-bottom: none; }

/* Stopka: ul.footer__menu przejmuje odstępy kolumny */
.footer__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__menu a,
.footer__addr { color: var(--dark-muted); font-size: 14px; transition: color .15s; }
.footer__menu a:hover { color: var(--accent); }
