/* EdanPlus — statyczna strona, styl ciemny nawiązujący do oryginału + odświeżenie wizualne */

:root {
  --bg: #17181a;
  --bg-alt: #1f2123;
  --bg-card: #212327;
  --line: #2c2f33;
  --text: #b7b9bd;
  --text-dim: #85888d;
  --heading: #f2f0ea;
  --accent: #9c7f4f;
  --accent-light: #c7a76c;
  --accent-deep: #644e28;
  --radius: 6px;
  --maxw: 1260px;
  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0) 0 0/28px 28px,
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 18px;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; color: var(--accent-light); }
p { margin: 0 0 16px; max-width: 68ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn span, .btn::after { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute; inset: 0 100% 0 0;
  background: var(--accent-deep);
  z-index: 0;
  transition: right .3s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--accent-deep); }
.btn:hover::before { right: 0; }
.btn.solid { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn.solid::before { background: var(--accent-light); }
.btn.solid:hover { border-color: var(--accent-light); }

/* ---------- Topbar ---------- */
.topbar {
  background: #0c0d0e;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: #6b6e73;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar-items { display: flex; gap: 26px; flex-wrap: wrap; color: #6b6e73; }
.topbar-items a { color: #6b6e73; transition: color .15s; }
.topbar-items a:hover { color: var(--accent-light); }

/* ---------- Header / nav ---------- */
header.site-header {
  background: rgba(15,16,17,.98);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
header.site-header.scrolled { box-shadow: 0 12px 30px -18px rgba(0,0,0,.7); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  transition: padding .3s var(--ease);
}
header.site-header.scrolled .nav-row { padding: 13px 0; }
header.site-header.scrolled .logo img { height: 48px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 64px; width: auto; display: block; transition: height .3s var(--ease); }
nav.main-nav ul { display: flex; gap: 34px; }
nav.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 1px;
  transition: color .2s var(--ease);
}
nav.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--heading); }
nav.main-nav a:hover::after, nav.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  color: var(--heading);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    inset: 62px 0 0 0;
    background: var(--bg);
    transform: translateY(-110%);
    transition: transform .25s ease;
    overflow-y: auto;
    padding: 20px 24px 40px;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .topbar-items { justify-content: center; width: 100%; }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: min(88vh, 720px);
  min-height: 460px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease);
}
.hero-slide.active { opacity: 1; animation: kenburns 7s var(--ease) forwards; }
@keyframes kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.4) 45%, rgba(15,16,17,.94) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 160px rgba(0,0,0,.55);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
}
.hero-content h1 {
  max-width: 22ch;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(28px);
  animation: heroReveal 1s var(--ease) .35s forwards;
}
.hero-content .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal .9s var(--ease) .7s forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1, .hero-content .btn { animation: none; opacity: 1; transform: none; }
}
.hero-count {
  position: absolute;
  left: 24px;
  top: 26px;
  z-index: 2;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.hero-count strong { color: var(--heading); }
.hero-arrows {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-arrows button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.hero-arrows button:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }

section:not(.hero):not(.page-hero) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
section:not(.hero):not(.page-hero).in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  section:not(.hero):not(.page-hero) { opacity: 1; transform: none; transition: none; }
  .hero-slide.active { animation: none; }
}
.section-head { max-width: 640px; margin-bottom: 44px; position: relative; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { position: relative; padding-bottom: 20px; }
.section-head h2::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 54px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head.center h2::after { left: 50%; transform: translateX(-50%); }
.partners-section .section-head h2::after { background: var(--accent-deep); }

.intro-block { max-width: 760px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,16,17,0) 30%, rgba(12,12,13,.92) 100%);
  z-index: -1;
  transition: background .25s;
}
.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
}
.service-tile:hover::before { background: linear-gradient(180deg, rgba(156,127,79,.2) 0%, rgba(12,12,13,.96) 100%); }
.service-num { font-size: 0.8rem; color: var(--accent-light); font-weight: 600; margin-bottom: 8px; }
.service-tile h3 { color: var(--heading); margin: 0 0 6px; font-size: 1.3rem; }
.service-tile .more { font-size: 0.82rem; color: var(--text-dim); transition: color .2s; }
.service-tile:hover .more { color: var(--accent-light); }

/* ---------- Offer / Guarantee columns ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 30px; } }
.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 10px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Realizacje strip ---------- */
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.strip-card {
  position: relative;
  flex: 0 0 auto;
  width: 250px;
  aspect-ratio: 3/4.5;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
}
.strip-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,16,17,0) 55%, rgba(10,10,10,.9) 100%);
}
.strip-card span {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: var(--heading); font-weight: 500;
}
.strip-card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.strip-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); }

/* ---------- Realizacje grid (portfolio index) ---------- */
.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .realizacje-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .realizacje-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .realizacje-grid { grid-template-columns: 1fr; } }
.realizacje-grid .strip-card { width: 100%; aspect-ratio: 3/4; }

/* ---------- Partners (full-bleed light band, matches original 1:1) ---------- */
.partners-section {
  background: #f4f3ee;
  padding: 80px 0;
}
.partners-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}
.partners-row + .partners-row { margin-top: 56px; }
@media (max-width: 760px) {
  .partners-row { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .partners-row .dash-eyebrow { justify-content: center; }
}
.dash-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c9a91;
}
.dash-eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: #b7b5a9;
  flex: 0 0 auto;
}
.partners-row p {
  margin: 10px 0 0;
  font-style: italic;
  font-size: 0.92rem;
  color: #8f8d84;
  max-width: 22ch;
}
.partners-logos {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partners-logos-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partnersMarquee 22s linear infinite;
}
.partners-logos:hover .partners-logos-track { animation-play-state: paused; }
@keyframes partnersMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partners-logos-track img {
  max-height: 64px;
  max-width: 170px;
  width: auto;
  flex: 0 0 auto;
  transition: transform .25s var(--ease);
}
.partners-logos-track img:hover { transform: translateY(-3px); }
@media (max-width: 760px) {
  .partners-logos { -webkit-mask-image: none; mask-image: none; }
  .partners-logos-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Gallery + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a {
  display: block;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,9,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.3); color: #fff; font-size: 1.3rem; cursor: pointer;
}

/* ---------- Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item summary {
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 500;
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; }
.accordion-item[open] summary::after { content: '–'; }
.accordion-item .acc-body { padding: 0 4px 20px; }

/* ---------- Contact CTA block (reused on offer pages) ---------- */
.contact-cta {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
}
.contact-cta .phones { display: flex; flex-wrap: wrap; gap: 26px 40px; }
.contact-cta .phones div { font-size: 0.86rem; color: var(--text-dim); }
.contact-cta .phones strong { display: block; color: var(--heading); font-size: 1.05rem; font-weight: 500; }

/* ---------- Details block (realizacje) ---------- */
.detail-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
@media (max-width: 700px) { .detail-box { grid-template-columns: repeat(2, 1fr); } }
.detail-box div span { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 4px; }
.detail-box div strong { color: var(--heading); font-weight: 500; }

/* ---------- Komis cards ---------- */
.komis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .komis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .komis-grid { grid-template-columns: 1fr; } }
.komis-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.komis-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.5);
}
.komis-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.komis-card img { width: 100%; height: 100%; object-fit: cover; }
.komis-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.komis-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--heading); }
.komis-card .price { color: var(--accent-light); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.komis-card p { font-size: 0.86rem; color: var(--text-dim); margin: 0; }

/* ---------- Contact page ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.contact-card strong { display: block; color: var(--heading); font-size: 1.15rem; margin-bottom: 8px; }
.contact-card p { font-size: 0.86rem; margin: 0; }

.form-wrap { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
input, textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--heading);
  font-family: var(--font);
  font-size: 0.94rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; margin-bottom: 20px; }

/* ---------- Footer (light, continues the partners band) ---------- */
footer.site-footer {
  background: #f4f3ee;
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-grid h4 { color: #1c1b18; font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid li { font-size: 0.86rem; color: #5c5a52; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent-deep); }

/* ---------- Copyright bar (dark, matches original 1:1) ---------- */
.copyright-bar {
  background: #0c0d0e;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.copyright-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.copyright-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #6b6e73;
}
.copyright-text .brand { color: var(--heading); font-weight: 600; }
.copyright-text .dash { width: 34px; height: 1px; background: #3a3c40; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.social-icon:hover { color: var(--accent-light); border-color: var(--accent-light); }
.social-icon svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Breadcrumb / page header (non-home pages) ---------- */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-hero .subtitle { color: var(--text-dim); font-size: 1.05rem; margin-top: -8px; }
