/* CORVINO — statyczna strona pod GitHub Pages */
:root {
  --bg: #f4f1e9;
  --paper: #f8f6f0;
  --ink: #0f0f0e;
  --muted: #68665f;
  --line: rgba(15, 15, 14, .16);
  --radius: 999px;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.42;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.section-shell {
  width: min(calc(100% - 72px), var(--max));
  margin-inline: auto;
}
.section-divider { border-top: 1px solid var(--line); }

.site-header {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 27px;
  letter-spacing: .24em;
  font-weight: 500;
  justify-self: start;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
}
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-cta { justify-self: end; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius);
  padding: 14px 22px;
  width: max-content;
  font-size: 14px;
  transition: transform .15s ease, opacity .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--ink); color: #fff; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  width: max-content;
}
.eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 600;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 450; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(64px, 6.2vw, 118px); margin-bottom: 28px; }
h2 { font-size: clamp(46px, 4.4vw, 82px); margin-bottom: 0; }
h3 { font-size: 28px; margin: 16px 0 7px; }
.lead { max-width: 650px; font-size: 19px; color: var(--muted); }
.hero {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 0;
  min-height: 690px;
  padding-bottom: 44px;
}
.hero-copy {
  padding: 84px 54px 58px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-actions { display: flex; align-items: center; gap: 36px; margin-top: 24px; flex-wrap: wrap; }

.hero-visual {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(255,255,255,.16), transparent 35%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(130deg, #5a5043 0 31%, #766c5e 31% 56%, #443d35 56%);
}
.wall-shadow {
  position: absolute; inset: 0;
  background:
    linear-gradient(78deg, transparent 0 28%, rgba(0,0,0,.30) 28.2% 30.2%, transparent 30.5% 34%, rgba(255,255,255,.22) 34.5% 36%, transparent 36.5%),
    linear-gradient(78deg, transparent 0 53%, rgba(0,0,0,.25) 53.5% 55%, transparent 55.5%);
  opacity: .7;
}
.desk {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 155px;
  background: linear-gradient(#5a5147, #342f2b);
  box-shadow: inset 0 12px 25px rgba(255,255,255,.08);
}
.laptop { position: absolute; width: 300px; left: 46%; top: 45%; transform: translate(-50%, -50%); }
.laptop-screen {
  width: 246px; height: 162px; margin: auto;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(145deg, #8f887e, #5f5a54);
  border: 5px solid #2b2927;
  box-shadow: 0 20px 30px rgba(0,0,0,.25);
}
.laptop-screen::after {
  content: "●";
  display: grid; place-items: center;
  height: 100%;
  font-size: 24px; color: #252321;
}
.laptop-base {
  width: 300px; height: 13px;
  background: #b5ada2;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}
.book-stack {
  position: absolute;
  left: 8%; bottom: 92px;
  width: 160px; height: 66px;
  background: linear-gradient(#c9c1b5 0 20%, #292724 20% 45%, #8b8378 45% 67%, #191817 67%);
  transform: skewX(-8deg);
}
.plant::before, .plant::after { content: ""; position: absolute; background: #1e271c; border-radius: 80% 0 80% 0; transform-origin: bottom left; }
.plant-a { position: absolute; left: 4%; bottom: 135px; width: 160px; height: 250px; border-left: 4px solid #222a1f; transform: rotate(-7deg); }
.plant-a::before { width: 64px; height: 29px; left: -4px; top: 62px; transform: rotate(-28deg); box-shadow: 40px 42px 0 #1e271c, 5px 82px 0 #1e271c, 62px 115px 0 #1e271c, 12px 146px 0 #1e271c; }
.plant-a::after { width: 58px; height: 26px; left: -2px; top: 18px; transform: rotate(18deg) scaleX(-1); box-shadow: -52px 58px 0 #1e271c, -15px 94px 0 #1e271c; }
.hero-caption {
  position: absolute; right: 7%; top: 18%;
  border-left: 1px solid rgba(255,255,255,.65);
  padding: 18px 0 18px 18px;
  display: grid; gap: 7px;
  color: #fff; font-size: 11px; letter-spacing: .18em;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  gap: 54px;
  padding: 56px 0 72px;
  align-items: center;
}
.about-copy { max-width: 540px; font-size: 18px; color: var(--muted); }
.about-copy .text-link { margin-top: 14px; color: var(--ink); }
.portrait-placeholder, .founder-visual {
  min-height: 300px;
  background:
    radial-gradient(circle at 58% 33%, rgba(255,255,255,.55), transparent 18%),
    linear-gradient(140deg, #e8e4db, #b9b3aa);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.portrait-mark {
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  display: grid; place-items: center;
  font-size: 64px; font-family: Georgia, serif;
}
.portrait-placeholder span, .founder-visual span {
  position: absolute; bottom: 18px; left: 20px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}

.services {
  display: grid;
  grid-template-columns: .72fr 2.28fr;
  gap: 44px;
  padding: 64px 0 72px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  min-height: 330px;
  padding: 8px 30px 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.service-icon { font-size: 35px; margin-bottom: 22px; }
.service-card h3 { font-size: 31px; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; }

.projects { padding: 62px 0 78px; }
.projects-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 36px;
  margin-bottom: 34px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-left: 22%;
}
.project-image {
  aspect-ratio: 1.48 / 1;
  position: relative;
  display: block;
  overflow: hidden;
  background: #d8d3c9;
}
.project-arrow {
  position: absolute; right: 14px; bottom: 14px;
  width: 42px; height: 42px; background: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 20px;
}
.ksef-thumb {
  background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.6), transparent 20%),
    linear-gradient(135deg, #d7d0c5, #80766b);
  padding: 44px;
}
.mock-browser {
  width: 78%;
  height: 78%;
  background: #f7f7f4;
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
  padding: 20px;
  transform: rotate(-2deg);
}
.mock-browser-top { display: flex; gap: 5px; margin-bottom: 26px; }
.mock-browser-top span { width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.mock-browser strong { font-size: 30px; line-height: 1; font-weight: 600; }
.mock-lines { display: grid; gap: 8px; margin-top: 24px; }
.mock-lines i { display: block; height: 7px; background: #d5d5d1; width: 92%; }
.mock-lines i:nth-child(2) { width: 72%; }
.mock-lines i:nth-child(3) { width: 84%; }
.warm-placeholder {
  background:
    linear-gradient(110deg, rgba(255,255,255,.25), transparent 30%),
    linear-gradient(135deg, #c8b49b, #87715f);
}
.dark-placeholder {
  background:
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,.11) 40% 43%, transparent 43%),
    linear-gradient(135deg, #5e5248, #2a2825);
}
.warm-placeholder > span:first-child, .dark-placeholder > span:first-child {
  position: absolute; left: 22px; top: 22px; color: white;
  letter-spacing: .18em; font-size: 11px;
}
.project-card h3 a:hover { opacity: .65; }
.project-card > p { color: var(--muted); max-width: 390px; }
.project-meta { font-size: 11px; letter-spacing: .22em; color: var(--ink) !important; }

.founder {
  display: grid;
  grid-template-columns: 1.05fr .9fr .55fr;
  gap: 48px;
  padding: 0 0 72px;
  align-items: stretch;
}
.founder-visual { min-height: 440px; }
.portrait-mark.big { width: 180px; height: 180px; font-size: 88px; }
.founder-copy { padding-top: 40px; }
.founder-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 28px; }
blockquote {
  margin: 40px 0 0;
  border-left: 1px solid var(--line);
  padding-left: 34px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
blockquote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
  line-height: 1.18;
}

.contact {
  display: grid;
  grid-template-columns: .95fr 1fr .75fr;
  gap: 48px;
  padding: 54px 0 60px;
  align-items: center;
}
.contact-copy p { max-width: 480px; color: var(--muted); }
.contact-details {
  min-height: 120px;
  border-left: 1px solid var(--line);
  padding-left: 34px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  min-height: 106px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px; align-items: center;
}
.site-footer nav { display: flex; gap: 28px; font-size: 13px; }
.site-footer small { justify-self: end; color: var(--muted); }

.menu-button { display: none; }

/* KSeF */
.ksef-body { background: #f5f2ea; }
.ksef-header { border-bottom: 1px solid var(--line); }
.ksef-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245,242,234,.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.ksef-nav-inner {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  font-size: 13px;
}
.ksef-nav-inner::-webkit-scrollbar { display: none; }

.product-hero {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
  border-bottom: 1px solid var(--line);
}
.product-hero-copy {
  padding: 88px 70px 80px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.product-hero h1 { font-size: clamp(62px, 6.4vw, 110px); }
.product-hero-visual {
  background: linear-gradient(135deg, #d9d4ca, #8d847a);
  display: grid; place-items: center; padding: 54px;
}
.app-window {
  width: min(620px, 90%);
  background: #fbfbf8;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
}
.app-toolbar {
  height: 46px; border-bottom: 1px solid #ddd;
  display: flex; align-items: center; gap: 7px; padding: 0 16px;
}
.app-toolbar i { width: 9px; height: 9px; border-radius: 50%; background: #b8b8b3; }
.app-content { padding: 34px; }
.app-content h3 { margin-top: 0; }
.invoice-row {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  padding: 14px 0; border-top: 1px solid #ddd;
}
.invoice-row small { color: #777; display: block; }

.ksef-shell {
  width: min(calc(100% - 72px), 1120px);
  margin: 0 auto;
}
.ksef-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}
.ksef-section h2 { font-size: clamp(42px, 5vw, 74px); margin-bottom: 30px; }
.ksef-section h3 { margin-top: 32px; font-size: 26px; }
.ksef-section p, .ksef-section li { color: #3d3b37; font-size: 17px; }
.ksef-section ul { padding-left: 22px; }
.ksef-section li + li { margin-top: 8px; }

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}
.store-link {
  background: var(--paper);
  padding: 22px;
}
.store-link strong { display: block; margin-bottom: 7px; }
.store-link code {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  word-break: break-all;
  color: #57534d;
}
.notice {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.32);
  margin: 24px 0;
}
.notice strong { display: block; margin-bottom: 4px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
}
.data-table th, .data-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.data-table th { width: 32%; font-weight: 600; }
.placeholder {
  display: inline-block;
  border: 1px dashed #6e6a63;
  padding: 2px 7px;
  font-size: .9em;
  color: #5f5b54;
  background: rgba(255,255,255,.3);
}
.ksef-footer {
  width: min(calc(100% - 72px), var(--max));
  margin: 0 auto;
  min-height: 100px;
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
}
.back-link { border-bottom: 1px solid currentColor; }

/* responsive */
@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, .header-cta { display: none; }
  .menu-button {
    justify-self: end;
    display: grid;
    width: 46px; height: 46px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }
  .menu-button span:not(.sr-only) { width: 18px; height: 1px; background: var(--ink); }
  .main-nav.open {
    display: flex;
    position: absolute;
    z-index: 20;
    top: 75px; left: 24px; right: 24px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; min-height: auto; }
  .hero-visual { min-height: 540px; }
  .about { grid-template-columns: 1fr 1fr; }
  .portrait-placeholder { grid-column: 1 / -1; min-height: 420px; }
  .services { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { margin-left: 0; }
  .founder { grid-template-columns: 1fr 1fr; }
  blockquote { grid-column: 2; margin-top: 0; }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact-details { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-copy { padding-right: 0; }
  .product-hero-visual { min-height: 500px; }
}

@media (max-width: 720px) {
  .section-shell, .site-header, .ksef-nav-inner, .product-hero, .ksef-shell, .ksef-footer {
    width: min(calc(100% - 36px), var(--max));
  }
  .site-header { min-height: 72px; }
  .brand { font-size: 21px; }
  .hero { padding-bottom: 28px; }
  .hero-copy { padding: 56px 0 44px; }
  h1 { font-size: clamp(52px, 14vw, 72px); }
  h2 { font-size: clamp(42px, 11vw, 58px); }
  .lead { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-visual { min-height: 420px; }
  .laptop { transform: translate(-50%, -50%) scale(.78); }
  .hero-caption { right: 5%; top: 9%; }
  .about { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 54px; }
  .portrait-placeholder { grid-column: auto; min-height: 360px; }
  .services { padding: 50px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .founder-visual {
  min-height: 360px;
  padding: 35px;
}

.founder-photo {
  width: min(60%, 190px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}
  .projects { padding: 48px 0 58px; }
  .projects-heading { align-items: flex-start; }
  .project-grid { grid-template-columns: 1fr; gap: 38px; }
  .desktop-only { display: none; }
  .project-image { aspect-ratio: 1.35 / 1; }
  .founder { grid-template-columns: 1fr; gap: 32px; padding-bottom: 54px; }
  .founder-copy { padding-top: 0; }
  blockquote { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .contact { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
  .site-footer { grid-template-columns: 1fr; padding: 28px 0; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer small { justify-self: start; }
  .product-hero-copy { padding: 64px 0 50px; }
  .product-hero-visual { min-height: 390px; padding: 28px; }
  .store-links { grid-template-columns: 1fr; }
  .ksef-section { padding: 58px 0; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table th { padding-bottom: 5px; border-bottom: 0; }
  .data-table td { padding-top: 0; }
  .ksef-footer { flex-direction: column; align-items: flex-start; padding: 28px 0; }
}
.founder-visual {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.founder-photo {
  width: 480px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
.founder-visual {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  align-self: center;
  overflow: visible;
}

.founder-photo {
  width: 480px;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 720px) {

  .founder-visual {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .founder-visual .founder-photo {
    width: 260px !important;
    max-width: 78vw !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto 30px !important;
  }

}
.hero-visual {
  min-height: 0 !important;
  background: transparent !important;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 720px) {
  .hero-photo {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }
}
.hero-visual {
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  overflow: visible !important;
  align-self: center;
}

.hero-photo {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

@media (max-width: 720px) {
  .hero-visual {
    min-height: 0 !important;
    height: auto !important;
  }

  .hero-photo {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}
