/* ==============================
   CNTI — style.css
   Monochromatic Minimalist
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─────────────────────────────
   ZMIENNE
───────────────────────────── */
:root {
  /* Kolory */
  --c-black:  #0d0d0d;
  --c-off:    #1a1a1a;
  --c-dark:   #222222;
  --c-mid:    #555555;
  --c-light:  #aaaaaa;
  --c-border: #2e2e2e;
  --c-white:  #f4f4f2;
  --c-accent: #c8a84b;

  /* Typografia */
  --font-sans:  'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;

  /* Przestrzeń */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --max-w: 1200px;
  --nav-h: 72px;

  /* Animacje */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─────────────────────────────
   RESET
───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; font-size: 16px; }
ul                     { list-style: none; }
a                      { color: inherit; text-decoration: none; }
img                    { display: block; max-width: 100%; }

body {
  background:   var(--c-black);
  color:        var(--c-white);
  font-family:  var(--font-sans);
  font-weight:  300;
  line-height:  1.7;
  overflow-x:   hidden;
}

/* ─────────────────────────────
   HELPERS
───────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}

.section-label {
  font-size:      .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color:          var(--c-accent);
  margin-bottom:  1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size:   clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color:       var(--c-white);
}
.section-title em { font-style: italic; color: var(--c-light); }

.section-header { max-width: 560px; margin-bottom: 3.5rem; }

/* ─────────────────────────────
   PRZYCISKI
───────────────────────────── */
.btn {
  display:        inline-flex;
  align-items:    center;
  gap:            .5rem;
  padding:        .75rem 1.75rem;
  font-family:    var(--font-sans);
  font-size:      .875rem;
  font-weight:    500;
  letter-spacing: .05em;
  border-radius:  var(--r-sm);
  border:         1px solid transparent;
  cursor:         pointer;
  transition:     all .25s var(--ease);
}
.btn--primary { background: var(--c-white); color: var(--c-black); border-color: var(--c-white); }
.btn--primary:hover { background: transparent; color: var(--c-white); }
.btn--ghost   { background: transparent; color: var(--c-white); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-white); }
.btn--full    { width: 100%; justify-content: center; }

/* ─────────────────────────────
   NAV
───────────────────────────── */
.nav {
  position:   fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index:    100;
  height:     var(--nav-h);
  background: transparent;
  transition: background .4s var(--ease), border-bottom .4s;
}
.nav.scrolled {
  background:      rgba(13,13,13,.92);
  backdrop-filter: blur(16px);
  border-bottom:   1px solid var(--c-border);
}
.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          100%;
  width:           min(var(--max-w), 100% - 2rem);
  margin-inline:   auto;
}
.nav__logo      { display: flex; align-items: baseline; gap: .75rem; }
.nav__logo-abbr { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: .06em; color: var(--c-white); }
.nav__logo-full { font-size: .65rem; line-height: 1.3; letter-spacing: .04em; color: var(--c-light); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 2.5rem; font-size: .85rem; letter-spacing: .04em; }
.nav__links a       { color: var(--c-light); transition: color .2s; }
.nav__links a:hover { color: var(--c-white); }

.nav__cta {
  color:         var(--c-white) !important;
  border:        1px solid var(--c-border);
  padding:       .4rem 1rem;
  border-radius: var(--r-sm);
  transition:    border-color .2s !important;
}
.nav__cta:hover { border-color: var(--c-white) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--c-white); transition: transform .3s, opacity .3s; }

/* ─────────────────────────────
   HERO
───────────────────────────── */
.hero {
  min-height:  100svh;
  display:     grid;
  place-items: center;
  position:    relative;
  padding:     calc(var(--nav-h) + 4rem) 1rem 5rem;
  overflow:    hidden;
}
.hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 40%, #1e1a0e 0%, var(--c-black) 70%); }
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 0%, transparent 70%);
}
.hero__content { position: relative; max-width: 720px; text-align: center; }

.hero__eyebrow {
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .2s forwards;
}
.hero__title {
  font-family: var(--font-serif);
  font-size:   clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400; line-height: 1.05; color: var(--c-white); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .4s forwards;
}
.hero__title em { font-style: italic; color: var(--c-light); }
.hero__sub {
  font-size: 1.05rem; color: var(--c-mid); max-width: 540px; margin: 0 auto 2.5rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .6s forwards;
}
.hero__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s var(--ease) .8s forwards;
}
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-mid);
  opacity: 0; animation: fadeIn 1s var(--ease) 1.2s forwards;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--c-mid), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─────────────────────────────
   STATYSTYKI
───────────────────────────── */
.stats {
  border-top:    1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background:    var(--c-off);
  padding:       3rem 0;
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat        { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.stat__num    { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; color: var(--c-white); line-height: 1; }
.stat__suffix { font-family: var(--font-serif); font-size: 1.5rem; color: var(--c-accent); }
.stat__label  { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-mid); }

/* ─────────────────────────────
   O FIRMIE
───────────────────────────── */
.about { padding: 8rem 0; }
.about__inner  { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about__visual { position: relative; height: 480px; }
.about__visual-box {
  position: absolute; inset: 0;
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-off) 0%, var(--c-dark) 100%);
  overflow: hidden;
}
.about__visual-box::before {
  content: 'CNTI'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-serif); font-size: 7rem; color: rgba(255,255,255,.04);
  letter-spacing: .1em; white-space: nowrap;
}
.about__visual-accent {
  position: absolute; bottom: -1px; left: -1px; width: 40%; height: 3px;
  background: var(--c-accent); border-radius: 0 2px 0 0;
}
.about__text .section-title { margin-bottom: 1.5rem; }
.about__desc  { color: var(--c-light); margin-bottom: 1rem; }
.about__list  { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; font-size: .9rem; }
.about__list li { display: flex; align-items: center; gap: .75rem; color: var(--c-light); }
.about__check { color: var(--c-accent); font-weight: 500; }

/* ─────────────────────────────
   USŁUGI
───────────────────────────── */
.services       { padding: 0 0 8rem; }
.services__intro { margin-top: .75rem; font-size: .9rem; color: var(--c-mid); max-width: 500px; line-height: 1.7; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--c-border);
  border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
}
.svc-card { background: var(--c-off); padding: 2.25rem 2rem; display: flex; flex-direction: column; gap: .75rem; transition: background .25s; }
.svc-card:hover { background: var(--c-dark); }
.svc-card__top  { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .25rem; }
.svc-card__icon { width: 38px; height: 38px; color: var(--c-accent); }
.svc-card__num  { font-family: var(--font-serif); font-size: 1.5rem; color: rgba(255,255,255,.06); line-height: 1; transition: color .25s; }
.svc-card:hover .svc-card__num { color: rgba(255,255,255,.1); }
.svc-card__title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; color: var(--c-white); }
.svc-card__desc  { font-size: .82rem; color: var(--c-mid); line-height: 1.65; flex: 1; }
.svc-card__brands { display: flex; flex-wrap: wrap; gap: .35rem; }
.svc-card__brands span {
  font-size: .65rem; letter-spacing: .06em; color: var(--c-mid);
  border: 1px solid var(--c-border); border-radius: 3px; padding: .15rem .5rem;
  transition: border-color .2s, color .2s;
}
.svc-card:hover .svc-card__brands span { border-color: #3a3a3a; color: var(--c-light); }
.svc-card__link {
  font-size: .78rem; letter-spacing: .05em; color: var(--c-accent);
  padding-top: .75rem; border-top: 1px solid var(--c-border);
  transition: opacity .2s; display: block;
}
.svc-card__link:hover { opacity: .7; }

/* ─────────────────────────────
   REALIZACJE — PREVIEW
───────────────────────────── */
.realizations { padding: 0 0 8rem; }
.real-intro   { margin-top: .75rem; font-size: .9rem; color: var(--c-mid); max-width: 500px; line-height: 1.7; }

.real-preview       { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; height: 520px; }
.real-preview__main { position: relative; border-radius: var(--r-md); overflow: hidden; height: 100%; }
.real-preview__side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 1rem; height: 100%; }

/* Wspólna karta zdjęcia */
.real-photo {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  width: 100%; height: 100%; cursor: pointer;
}
.real-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; position: absolute; inset: 0; transition: transform .5s var(--ease);
}
.real-photo:hover img { transform: scale(1.04); }
.real-photo__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: .12; z-index: 0; }

.real-photo__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(13,13,13,.95) 0%, transparent 100%);
  transform: translateY(4px); transition: transform .3s; z-index: 1;
}
.real-photo:hover .real-photo__overlay { transform: translateY(0); }
.real-photo__cat      { display: block; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--c-accent); margin-bottom: .25rem; }
.real-photo__overlay h4 { font-size: .9rem; font-weight: 400; color: var(--c-white); line-height: 1.3; margin-bottom: .2rem; }
.real-photo__overlay p  { font-size: .72rem; color: var(--c-mid); }

/* Kafelek "archiwum" */
.real-photo--archive {
  background: var(--c-dark); border: 1px solid var(--c-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  transition: background .2s, border-color .2s;
}
.real-photo--archive:hover { background: #2a2a2a; border-color: #444; }
.real-photo__archive-icon  { width: 32px; height: 32px; color: var(--c-accent); }
.real-photo__archive-label { font-size: .85rem; color: var(--c-white); font-weight: 500; }
.real-photo__archive-count { font-size: .72rem; color: var(--c-mid); letter-spacing: .06em; }

/* ─────────────────────────────
   MODALE — wspólne style
───────────────────────────── */
.archive-modal,
.certs-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
}
.archive-modal.open,
.certs-modal.open { opacity: 1; pointer-events: all; }

.archive-modal__backdrop,
.certs-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px); cursor: pointer;
}

.archive-modal__panel,
.certs-modal__panel {
  position: relative; width: 100%; max-width: 1100px; max-height: 90vh;
  background: var(--c-off); border: 1px solid var(--c-border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column;
  transform: translateY(40px); transition: transform .4s var(--ease); overflow: hidden;
}
.archive-modal.open .archive-modal__panel,
.certs-modal.open   .certs-modal__panel { transform: translateY(0); }

.archive-modal__header,
.certs-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 2rem 1.25rem; border-bottom: 1px solid var(--c-border);
  flex-shrink: 0; flex-wrap: wrap; gap: 1rem;
}
.archive-modal__title,
.certs-modal__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; }

.archive-modal__close,
.certs-modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--c-border); background: none; color: var(--c-light);
  font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.archive-modal__close:hover,
.certs-modal__close:hover { border-color: var(--c-white); color: var(--c-white); }

.archive-modal__grid,
.certs-modal__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--c-border); overflow-y: auto; flex: 1;
}

/* ─────────────────────────────
   MODAL REALIZACJI — filtry + kafelki
───────────────────────────── */
.arc-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.arc-filter {
  padding: .3rem .85rem; border-radius: 20px; border: 1px solid var(--c-border);
  background: none; color: var(--c-mid); font-family: var(--font-sans); font-size: .75rem;
  cursor: pointer; transition: all .2s;
}
.arc-filter:hover  { border-color: #444; color: var(--c-white); }
.arc-filter.active { background: var(--c-white); color: var(--c-black); border-color: var(--c-white); }

.arc-item { background: var(--c-off); display: flex; flex-direction: column; cursor: pointer; transition: background .2s; }
.arc-item:hover  { background: var(--c-dark); }
.arc-item.hidden { display: none; }

.arc-item__img { height: 160px; position: relative; overflow: hidden; flex-shrink: 0; }
.arc-item__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; inset: 0; transition: transform .4s var(--ease);
}
.arc-item:hover .arc-item__img img { transform: scale(1.05); }
.arc-item__ph   { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: .12; }
.arc-item__info { padding: .875rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.arc-item__cat  { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.arc-item__title { font-size: .82rem; color: var(--c-white); line-height: 1.4; flex: 1; }
.arc-item__year  { font-size: .7rem; color: var(--c-mid); }

/* ─────────────────────────────
   CERTYFIKATY — PREVIEW
───────────────────────────── */
.certs        { padding: 8rem 0; background: var(--c-off); border-top: 1px solid var(--c-border); }
.certs__intro { margin-top: 1rem; color: var(--c-mid); font-size: .9rem; max-width: 540px; line-height: 1.7; }

.certs-preview {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--c-border);
  border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
}
.cert-tile { background: var(--c-off); display: flex; flex-direction: column; cursor: pointer; transition: background .2s; }
.cert-tile:hover { background: var(--c-dark); }

.cert-tile__img { height: 200px; position: relative; overflow: hidden; flex-shrink: 0; }
.cert-tile__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; position: absolute; inset: 0; transition: transform .4s var(--ease);
}
.cert-tile:hover .cert-tile__img img { transform: scale(1.04); }
.cert-tile__ph   { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; opacity: .1; }
.cert-tile__info { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.cert-tile__badge {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-mid);
  border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .15rem .5rem;
  display: inline-block; align-self: flex-start;
}
.cert-tile__title { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--c-white); line-height: 1.3; }

/* Kafelek "archiwum" certyfikatów */
.cert-tile--archive {
  background: var(--c-dark); align-items: center; justify-content: center;
  gap: .75rem; padding: 2rem; border: none;
}
.cert-tile--archive:hover    { background: #2a2a2a; }
.cert-tile__archive-icon     { width: 32px; height: 32px; color: var(--c-accent); }
.cert-tile__archive-label    { font-size: .9rem; color: var(--c-white); font-weight: 500; }
.cert-tile__archive-count    { font-size: .72rem; color: var(--c-mid); letter-spacing: .06em; }

/* ─────────────────────────────
   MODAL CERTYFIKATÓW — kafelki
───────────────────────────── */
.cert-doc { background: var(--c-off); display: flex; flex-direction: column; cursor: pointer; transition: background .2s; }
.cert-doc:hover { background: var(--c-dark); }
.cert-doc.hidden { display: none; }

.cert-doc__img { height: 160px; position: relative; overflow: hidden; flex-shrink: 0; }
.cert-doc__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; position: absolute; inset: 0; transition: transform .4s var(--ease);
}
.cert-doc:hover .cert-doc__img img { transform: scale(1.05); }
.cert-doc__ph   { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: .1; }
.cert-doc__info { padding: .875rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.cert-doc__badge {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-mid);
  border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .15rem .5rem;
  display: inline-block; align-self: flex-start;
}
.cert-doc__title { font-size: .85rem; color: var(--c-white); line-height: 1.4; flex: 1; }
.cert-doc__tags  { font-size: .7rem; color: var(--c-mid); letter-spacing: .04em; }

/* ─────────────────────────────
   LIGHTBOX
───────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
#lightbox.open { opacity: 1; pointer-events: all; }

.lightbox__backdrop  { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); cursor: pointer; }
.lightbox__content   { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox__close {
  position: absolute; top: -48px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: none; color: var(--c-white);
  font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.lightbox__close:hover { border-color: var(--c-white); }
.lightbox__img     { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; display: block; }
.lightbox__caption { font-size: .85rem; color: var(--c-light); text-align: center; max-width: 600px; }

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
.footer       { background: var(--c-black); border-top: 1px solid var(--c-border); padding: 3rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer__brand { display: flex; align-items: baseline; gap: .75rem; }
.footer__brand .nav__logo-abbr { font-size: 1.25rem; }
.footer__brand p { font-size: .7rem; color: var(--c-mid); text-transform: uppercase; letter-spacing: .04em; }
.footer__nav   { display: flex; gap: 2rem; font-size: .8rem; color: var(--c-mid); }
.footer__nav a:hover { color: var(--c-white); }
.footer__copy  { font-size: .75rem; color: var(--c-mid); }

/* ─────────────────────────────
   ANIMACJE
───────────────────────────── */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn    { to { opacity: 1; } }
@keyframes scrollLine { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.6); opacity: .4; } }

.reveal         { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 900px) {
  .stats__grid          { grid-template-columns: repeat(2, 1fr); }
  .about__inner         { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual        { height: 280px; }
  .services__grid       { grid-template-columns: repeat(2, 1fr); }
  .real-preview         { grid-template-columns: 1fr; height: auto; }
  .real-preview__main   { height: 300px; }
  .real-preview__side   { grid-template-columns: repeat(3, 1fr); grid-template-rows: 160px; }
  .certs-preview        { grid-template-columns: repeat(2, 1fr); }
  .archive-modal__grid,
  .certs-modal__grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav__links       { display: none; }
  .nav__toggle      { display: flex; }
  .nav__links.open  {
    display: flex; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--c-off); padding: 2rem; gap: 1.5rem;
    border-top: 1px solid var(--c-border);
  }
  .services__grid       { grid-template-columns: 1fr; }
  .real-preview__side   { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 150px); }
  .certs-preview        { grid-template-columns: repeat(2, 1fr); }
  .cert-tile__img       { height: 140px; }
  .archive-modal__grid,
  .certs-modal__grid    { grid-template-columns: repeat(2, 1fr); }
  .footer__inner        { flex-direction: column; text-align: center; }
}

/* cert-doc bez info — samo zdjęcie */
.cert-doc:not(:has(.cert-doc__info p:not(:empty))) .cert-doc__info,
.cert-doc__info:empty { display: none; }
.cert-doc .cert-doc__img { height: 200px; }

/* ── Switcher JM / MM ── */
.certs-switcher {
  display: flex;
  gap: 2px;
  background: var(--c-border);
  border-radius: var(--r-sm);
  padding: 2px;
}
.certs-switch {
  padding: .35rem .9rem;
  border-radius: calc(var(--r-sm) - 1px);
  border: none;
  background: none;
  color: var(--c-mid);
  font-family: var(--font-sans);
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.certs-switch.active {
  background: var(--c-white);
  color: var(--c-black);
}
.certs-switch:not(.active):hover { color: var(--c-white); }

/* cert-doc samo zdjęcie — większa wysokość */
.cert-doc .cert-doc__img { height: 200px; }


/* ─────────────────────────────
   MODAL USŁUGI — 80/80 two-col
───────────────────────────── */
.svc-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  padding: 2rem;
}
.svc-modal.open { opacity: 1; pointer-events: all; }

.svc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px); cursor: pointer;
}

.svc-modal__panel {
  position: relative;
  width: 80vw; height: 80vh;
  background: var(--c-off); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); display: flex; flex-direction: column;
  transform: translateY(24px) scale(.97); transition: transform .4s var(--ease);
  overflow: hidden;
}
.svc-modal.open .svc-modal__panel { transform: translateY(0) scale(1); }

.svc-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2.5rem; border-bottom: 1px solid var(--c-border); flex-shrink: 0;
}
.svc-modal__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; color: var(--c-white); }
.svc-modal__close {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--c-border); background: none; color: var(--c-light);
  font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.svc-modal__close:hover { border-color: var(--c-white); color: var(--c-white); }

/* Body — dwie kolumny */
.svc-modal__body {
  display: grid; grid-template-columns: 340px 1fr;
  flex: 1; overflow: hidden;
}

/* LEWA — lista opcji */
.svc-modal__left {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
}

.svc-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.75rem; cursor: pointer;
  border-bottom: 1px solid var(--c-border);
  transition: background .2s; position: relative;
}
.svc-option:last-child { border-bottom: none; }
.svc-option:hover,
.svc-option.active { background: var(--c-dark); }
.svc-option.active { border-left: 3px solid var(--c-accent); }
.svc-option__icon  { font-size: 1.4rem; flex-shrink: 0; width: 2.25rem; text-align: center; }
.svc-option__body  { flex: 1; min-width: 0; }
.svc-option__title { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--c-white); margin-bottom: .2rem; }
.svc-option__desc  { font-size: .75rem; color: var(--c-mid); line-height: 1.5; }
.svc-option__arrow {
  color: var(--c-accent); font-size: 1.4rem; flex-shrink: 0;
  opacity: 0; transition: opacity .2s, transform .2s;
}
.svc-option.active .svc-option__arrow { opacity: 1; transform: translateX(2px); }

/* PRAWA — logo marek */
.svc-modal__right {
  display: flex; flex-direction: column;
  padding: 2rem 2.5rem; gap: 1.5rem; overflow-y: auto;
  background: #111111;
}

.svc-brands__label {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-mid);
}

.svc-brands__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  flex: 1;
}

.svc-brand-card {
  background: #ffffff; border: 1px solid #e0e0e0;
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
  min-height: 120px;
}
.svc-brand-card:hover { border-color: var(--c-accent); box-shadow: 0 0 0 2px rgba(200,168,75,.2); }

.svc-brand-card__img {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; background: #ffffff; overflow: hidden;
}
.svc-brand-card__img img {
  max-width: 100%; max-height: 72px; object-fit: contain;
  transition: opacity .2s;
}
.svc-brand-card:hover .svc-brand-card__img img { opacity: .9; }

.svc-brand-card__name {
  padding: .5rem .75rem; border-top: 1px solid #e8e8e8;
  font-size: .72rem; letter-spacing: .06em; color: #333;
  text-align: center; background: #f8f8f8;
}

@media (max-width: 900px) {
  .svc-modal { padding: 1rem; }
  .svc-modal__panel { width: 95vw; height: 88vh; }
  .svc-modal__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .svc-modal__left { border-right: none; border-bottom: 1px solid var(--c-border); max-height: 220px; }
  .svc-brands__grid { grid-template-columns: repeat(2, 1fr); }
}