/* Kalisz Legal - kancelaria prawa gospodarczego
   Faza 2: statyczny HTML/CSS
   Projekt koncepcyjny / portfolio Sabotage Studio */

:root {
  --granat: #0F1B2D;
  --granat-deep: #0B1421;
  --krem: #F5F1E8;
  --stal: #8A94A6;
  --stal-dark: #5A6B85;
  --srebro: #C6CCD6;

  --line-dark: rgba(15, 27, 45, 0.2);
  --line-light: rgba(245, 241, 232, 0.16);
  --on-dark-70: rgba(245, 241, 232, 0.72);

  --display: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;

  --rail: 264px;
  --col-x: 88px;
  --col-y: 104px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--krem);
  color: var(--granat);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--granat); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--stal-dark); }
:focus-visible { outline: 1px solid var(--granat); outline-offset: 3px; }
::selection { background: var(--granat); color: var(--krem); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stal-dark); }
.label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stal); }

/* --- pion nawigacyjny --- */

.rail {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--rail);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 32px;
  background: var(--granat);
  color: var(--krem);
  overflow-y: auto;
  z-index: 10;
}

.rail__mark { display: flex; flex-direction: column; gap: 4px; }
.rail__mark strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--krem);
}
.rail__mark span { font-size: 8px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--stal); }

.toc { display: flex; flex-direction: column; border-bottom: 0.5px solid var(--line-light); list-style: none; }
.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 0.5px solid var(--line-light);
  color: var(--krem);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc a:hover { color: var(--srebro); }
.toc a span { color: var(--stal); }

.rail__foot { display: flex; flex-direction: column; gap: 18px; }
.rail__contact { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: rgba(245, 241, 232, 0.62); }
.rail__contact a { color: rgba(245, 241, 232, 0.62); }
.rail__contact a:hover { color: var(--krem); }

.btn {
  display: inline-block;
  padding: 14px 18px;
  background: var(--krem);
  color: var(--granat);
  border: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--srebro); color: var(--granat); }
.btn--dark { background: var(--granat); color: var(--krem); padding: 16px 32px; font-size: 11px; }
.btn--dark:hover { background: var(--stal-dark); color: var(--krem); }

.rail__cta-mobile { display: none; }

/* --- kolumna treści --- */

.main { margin-left: var(--rail); min-width: 0; }

.col { padding: var(--col-y) var(--col-x); }
.col--rule { border-bottom: 1px solid var(--granat); }
.col--dark { background: var(--granat); color: var(--krem); }

.hang { display: grid; grid-template-columns: 88px 1fr; gap: 0 32px; align-items: start; }
.hang__num { font-family: var(--display); font-size: 15px; letter-spacing: 0.1em; color: var(--stal); padding-top: 10px; }
.hang__body { display: flex; flex-direction: column; min-width: 0; }

/* --- hero --- */

.hero { display: flex; flex-direction: column; gap: 56px; padding: 132px var(--col-x) 96px; border-bottom: 1px solid var(--granat); }
.hero h1 { font-size: clamp(42px, 6vw, 92px); line-height: 1.03; max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--stal-dark); }
.hero__lede { max-width: 52ch; font-size: 19px; color: var(--stal-dark); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); max-width: 900px; }
.facts > div { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; background: var(--krem); }
.facts strong { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.3; }

/* --- specjalizacje --- */

.areas { display: flex; flex-direction: column; border-bottom: 0.5px solid var(--line-dark); }
.row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 0.5px solid var(--line-dark);
}
.row__head { display: flex; flex-direction: column; gap: 12px; }
.row h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.14; }
.row__body { display: flex; flex-direction: column; gap: 18px; }
.row__body p { font-size: 16px; color: var(--stal-dark); }
.row__list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.row__list li { font-size: 14px; }
.row__list li::before { content: "- "; color: var(--stal); }

.stack-56 { gap: 56px; }
.stack-48 { gap: 48px; }
.stack-44 { gap: 44px; }
.stack-40 { gap: 40px; }
.stack-20 { gap: 20px; }

/* --- kancelaria --- */

.quote {
  max-width: 30ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; max-width: 1000px; }
.two-col p { font-size: 16px; color: var(--on-dark-70); }

.portrait { width: 100%; max-width: 520px; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(0.45) contrast(1.03); }

.credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: rgba(245, 241, 232, 0.18); }
.credentials > div { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 30px; background: var(--granat); }
.credentials span:first-child { font-size: 11px; letter-spacing: 0.16em; color: var(--stal); }
.credentials strong { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.24; }
.credentials p { font-size: 13px; color: rgba(245, 241, 232, 0.58); }

.note-dark { font-size: 12px; color: rgba(245, 241, 232, 0.45); }

/* --- współpraca --- */

.steps { display: flex; flex-direction: column; border-bottom: 0.5px solid var(--line-dark); }
.step { align-items: start; }
.step__head { display: flex; align-items: baseline; gap: 20px; }
.step__num { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--stal); }
.step h3 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.16; }
.step__meta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stal); }

/* --- konsultacja --- */

.consult { max-width: 660px; }
.consult h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.07; max-width: 18ch; }
.consult > p { font-size: 17px; color: var(--stal-dark); }

form { display: flex; flex-direction: column; gap: 24px; padding: 40px; border: 1px solid var(--granat); }
form label { display: flex; flex-direction: column; gap: 9px; }
form input, form textarea {
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid rgba(15, 27, 45, 0.35);
  color: var(--granat);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  outline: none;
}
form textarea { resize: vertical; }
form input:focus, form textarea:focus { border-bottom-color: var(--granat); }
form button { align-self: flex-start; margin-top: 8px; }
form .note { font-size: 12px; color: var(--stal); }

/* --- stopka --- */

footer { padding: 64px var(--col-x) 40px; background: var(--granat-deep); color: rgba(245, 241, 232, 0.68); }
footer a { color: rgba(245, 241, 232, 0.68); }
footer a:hover { color: var(--krem); }
.foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--line-light);
}
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot__col .label { color: rgba(245, 241, 232, 0.4); }
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245, 241, 232, 0.4);
}

/* --- responsywność --- */

@media (max-width: 1000px) {
  :root { --col-x: 24px; }

  .rail {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    overflow: visible;
  }
  .toc, .rail__foot { display: none; }
  .rail__cta-mobile { display: inline-block; padding: 11px 18px; font-size: 10px; }
  .main { margin-left: 0; }

  .hang { grid-template-columns: 1fr; gap: 14px; }
  .hang__num { padding-top: 0; font-size: 12px; }

  .row { grid-template-columns: 1fr; gap: 14px; }
  .quote { font-size: 28px; }
}

@media (max-width: 640px) {
  :root { --col-y: 64px; }
  .hero { padding: 72px var(--col-x) 64px; }
  .facts { grid-template-columns: 1fr; }
  form { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
