:root {
  --ink: #0e1424;
  --paper: #eef0f3;
  --muted: #566074;
  --line: #d6dae2;
  --navy: #0b1a33;
  --navy-2: #14284d;
  --green: #0a1f15;
  --green-2: #123623;
  --gold: #d4af37;
  --gold-ink: #7a5f12;
  --gutter: clamp(20px, 5vw, 64px);
  --serif-bar: 'Fraunces', Georgia, 'Times New Roman', serif;
  --serif-fin: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
}

.wordmark {
  font-family: var(--serif-bar);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--gold-ink); }

.top-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.top-link:hover { color: var(--gold-ink); border-color: var(--gold-ink); }

.intro {
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(32px, 5vw, 56px);
  max-width: 1200px;
}
.intro h1 {
  font-family: var(--serif-bar);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.intro p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Dwa projekty jako dwa wejścia */
.doors {
  display: flex;
  min-height: min(76vh, 740px);
}

.door {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  text-decoration: none;
  color: #f4f1ea;
  position: relative;
  overflow: hidden;
  transition: flex 0.5s ease;
}

.door-fin {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    linear-gradient(160deg, #151517, #09090a);
}
.door-bar {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(201, 160, 80, 0.16), transparent 60%),
    linear-gradient(160deg, var(--green-2), var(--green));
  --gold: #c9a050;
}
.door-bar .door-tag { color: #b4c1b7; }
.door-bar .door-desc { color: #b4c1b7; }
.door-bar .services li { color: #e4eadf; }

.door-tag {
  font-size: 0.95rem;
  color: #c9cfdb;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.door-tag::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.door-title {
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.door-fin .door-title { font-family: var(--serif-fin); }
.door-bar .door-title { font-family: var(--serif-bar); }

.door-desc {
  max-width: 44ch;
  color: #c4cad6;
  font-size: 1.02rem;
}

.door-cta {
  align-self: flex-start;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.services {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  max-width: 360px;
}
.services li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #dfe3ea;
  font-size: 0.98rem;
}
.services li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

/* Mini karta członkowska */
.mini-card {
  width: min(280px, 100%);
  aspect-ratio: 1.6;
  border-radius: 14px;
  border: 1px solid rgba(201, 160, 80, 0.6);
  background: linear-gradient(135deg, #18432c, #0a1f15);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 32px;
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.mini-card b {
  font-family: var(--serif-bar);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--gold);
}
.mini-card span { font-size: 0.85rem; color: #dfe5da; }

@media (hover: hover) and (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .doors:hover .door { flex: 0.9; }
  .doors .door:hover { flex: 1.2; }
}

.contact {
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  max-width: 1200px;
  width: 100%;
}
.contact h2 {
  font-family: var(--serif-bar);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 40px;
}
.contact-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-item dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.contact-item dd { font-size: 1.1rem; font-weight: 500; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--gold-ink); }

footer {
  margin-top: auto;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

@media (max-width: 899px) {
  .doors { flex-direction: column; min-height: 0; }
  .door { min-height: 440px; }
}

/* ===== Remont wizualny: landing ===== */
body { background: radial-gradient(1000px 420px at 88% -8%, rgba(212,175,55,.16), transparent 62%), var(--paper); }
.top { border-bottom: 1px solid var(--line); padding-block: 20px; }
.wordmark { font-size: 1.7rem; }
.top-link { letter-spacing: 0.04em; }
.intro { padding-top: clamp(48px, 8vw, 104px); }
.intro h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.intro h1::before { content: ''; display: block; width: 64px; height: 2px; margin-bottom: 28px; background: linear-gradient(90deg, #f0d77a, #d4af37 45%, #9c7a1e); }
.intro p { line-height: 1.75; font-size: 1.14rem; }

.doors { min-height: min(82vh, 800px); }
.door { isolation: isolate; }
.door > * { position: relative; z-index: 1; }
.door::before { content: ''; position: absolute; inset: 16px; z-index: 0; border: 1px solid rgba(255,255,255,.09); pointer-events: none; transition: border-color .5s; }
.door:hover::before, .door:focus-visible::before { border-color: rgba(212,175,55,.5); }
.door::after { content: ''; position: absolute; z-index: 0; pointer-events: none; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.door-fin::after { content: 'F'; right: 4%; bottom: -12%; font: 400 clamp(16rem, 32vw, 28rem)/1 var(--serif-fin); color: rgba(212,175,55,.06); }
.door-bar::after { right: -6%; bottom: -8%; width: clamp(280px, 38vw, 480px); aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 4 196 100 100 196 4 100Z' fill='none' stroke='%23c9a050' stroke-opacity='.22' stroke-width='1.5'/%3E%3Cpath d='M100 32 168 100 100 168 32 100Z' fill='none' stroke='%23c9a050' stroke-opacity='.14'/%3E%3C/svg%3E") center / contain no-repeat; }
.door:hover::after { transform: scale(1.05) translateY(-6px); }
.door-tag { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; }
.door-title { font-size: clamp(2.3rem, 4.8vw, 4rem); letter-spacing: -0.03em; }
.door-desc { line-height: 1.75; }
.door-cta { border: 0; display: inline-flex; align-items: center; letter-spacing: 0.03em; }
.door-cta::after { content: ''; width: 30px; height: 1px; margin-left: 14px; background: currentColor; transition: width .35s; }
.door:hover .door-cta::after { width: 56px; }
.mini-card { box-shadow: 0 24px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1); }

.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.contact h2::before { content: ''; display: block; width: 48px; height: 2px; margin-bottom: 22px; background: linear-gradient(90deg, #f0d77a, #d4af37 45%, #9c7a1e); }
.contact-item { border-top: 1px solid; border-image: linear-gradient(90deg, #d4af37, var(--line) 70%) 1; padding-block: 22px; }
.contact-item dd { font-size: 1.2rem; }
footer { background: #0b0e17; color: #8b93a5; border-top: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .intro h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .intro p { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  .doors { animation: rise 1s cubic-bezier(.2,.7,.2,1) .3s both; }
}

/* Trzeci kafelek: kawa */
.door-cof { background: radial-gradient(800px 500px at 50% 0%, rgba(201,160,80,.14), transparent 60%), linear-gradient(160deg, #2b1b12, #110a06); --gold: #c9a050; }
.door-cof .door-title { font-family: var(--serif-bar); }
.door-cof .door-tag, .door-cof .door-desc { color: #c9bba9; }
.door-cof::after { right: -8%; bottom: -6%; width: clamp(240px, 30vw, 380px); aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23c9a050' stroke-opacity='.2' stroke-width='2'%3E%3Cellipse cx='100' cy='100' rx='58' ry='84' transform='rotate(35 100 100)'/%3E%3Cpath d='M70 36C98 78 66 120 130 164'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 900px) { .doors .door { padding-inline: clamp(24px, 3vw, 48px); } .door-title { font-size: clamp(2rem, 3.4vw, 3.2rem); } }
