/* ==========================================================
   Studio Kacpra Kondrackiego — arkusz stylów
   Wszystkie kolory sterowane zmiennymi poniżej.
   ========================================================== */

:root{
  --bg:        #fbfaf8;
  --bg-soft:   #f2f0ec;
  --fg:        #12110f;
  --muted:     #78746c;
  --line:      #e3e0d9;
  --accent:    #b4532f;
  --max:       1140px;
}

html[data-theme="dark"]{
  --bg:        #0d0d0c;
  --bg-soft:   #161615;
  --fg:        #f3f1ed;
  --muted:     #918c83;
  --line:      #262523;
  --accent:    #e0805a;
}

@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]){
    --bg:        #0d0d0c;
    --bg-soft:   #161615;
    --fg:        #f3f1ed;
    --muted:     #918c83;
    --line:      #262523;
    --accent:    #e0805a;
  }
}

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

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:"Inter","Helvetica Neue",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  letter-spacing:-0.005em;
  -webkit-font-smoothing:antialiased;
  transition:background .25s ease, color .25s ease;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }

/* ---------- typografia ---------- */

h1,h2,h3,h4{
  font-weight:500;
  letter-spacing:-0.035em;
  line-height:1.05;
  margin:0;
}
h1{ font-size:clamp(2.6rem, 6.5vw, 5.1rem); }
h2{ font-size:clamp(1.9rem, 3.6vw, 2.9rem); }
h3{ font-size:1.22rem; letter-spacing:-0.02em; line-height:1.25; }

p{ margin:0 0 1.15em; }
p:last-child{ margin-bottom:0; }

.lead{
  font-size:clamp(1.08rem, 1.6vw, 1.32rem);
  line-height:1.55;
  color:var(--muted);
  max-width:36em;
}

.eyebrow{
  font-size:.685rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:500;
  margin:0 0 1.6rem;
  display:block;
}

.muted{ color:var(--muted); }
.small{ font-size:.9rem; }

/* ---------- układ ---------- */

.wrap{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 28px;
}

section{ padding:clamp(64px,9vw,124px) 0; }
section + section{ border-top:1px solid var(--line); }

.grid-2{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  gap:clamp(32px,6vw,88px);
  align-items:start;
}

/* ---------- nagłówek ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  gap:22px;
  min-height:74px;
  flex-wrap:wrap;
  padding-top:10px;
  padding-bottom:10px;
}

.brand{
  font-size:.75rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  margin-right:auto;
}
.brand span{ color:var(--muted); font-weight:400; }

.nav{
  display:flex;
  gap:26px;
  align-items:center;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  font-size:.875rem;
  color:var(--muted);
  padding:4px 0;
  border-bottom:1px solid transparent;
  transition:color .18s ease, border-color .18s ease;
}
.nav a:hover{ color:var(--fg); }
.nav a[aria-current="page"]{ color:var(--fg); border-bottom-color:var(--accent); }

.header-tel{
  font-size:.875rem;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  padding:8px 15px;
  border:1px solid var(--line);
  border-radius:999px;
  transition:border-color .18s ease, color .18s ease;
}
.header-tel:hover{ border-color:var(--accent); color:var(--accent); }

.theme-toggle{
  width:34px; height:34px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  padding:0;
  flex:0 0 auto;
  transition:border-color .18s ease, color .18s ease;
}
.theme-toggle:hover{ border-color:var(--accent); color:var(--accent); }
.theme-toggle svg{ width:15px; height:15px; display:block; }
.theme-toggle .icon-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon{ display:block; }
  html:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun{ display:none; }
}

/* ---------- hero ---------- */

.hero{ padding:clamp(72px,13vw,168px) 0 clamp(56px,8vw,104px); }
.hero h1{ max-width:15ch; }
.hero .lead{ margin-top:clamp(24px,3vw,38px); }

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px 26px;
  align-items:center;
  margin-top:clamp(30px,4vw,46px);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-size:.95rem;
  font-weight:500;
  padding:14px 26px;
  border-radius:999px;
  border:1px solid var(--fg);
  background:var(--fg);
  color:var(--bg);
  transition:opacity .18s ease, transform .18s ease;
}
.btn:hover{ opacity:.86; }

.btn-ghost{
  background:transparent;
  color:var(--fg);
  border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--fg); opacity:1; }

/* ---------- pasek faktów ---------- */

.facts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:1px;
  background:var(--line);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.facts div{
  background:var(--bg);
  padding:26px 4px 26px 0;
}
.facts b{
  display:block;
  font-size:1.55rem;
  font-weight:500;
  letter-spacing:-0.03em;
  line-height:1.1;
}
.facts span{
  display:block;
  font-size:.76rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:8px;
}

/* ---------- lista pozycji (portfolio, proces) ---------- */

.rows{ border-top:1px solid var(--line); }

.row{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) minmax(0,1.5fr) 200px;
  gap:24px;
  align-items:baseline;
  padding:26px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  transition:padding-left .2s ease;
}
.row:hover{ padding-left:8px; }
.row .idx{
  font-size:.75rem;
  color:var(--accent);
  letter-spacing:.12em;
  font-variant-numeric:tabular-nums;
}
.row .name{
  font-size:1.28rem;
  font-weight:500;
  letter-spacing:-0.025em;
}
.row .desc{ color:var(--muted); font-size:.97rem; line-height:1.5; }
.row .role{
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  text-align:right;
  line-height:1.5;
}

/* ---------- karty ---------- */

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.card{
  background:var(--bg);
  padding:clamp(24px,3vw,34px);
}
.card h3{ margin-bottom:12px; }
.card p{ color:var(--muted); font-size:.97rem; }

/* ---------- cennik ---------- */

.price{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);
  gap:clamp(20px,4vw,60px);
  padding:clamp(30px,4vw,46px) 0;
  border-bottom:1px solid var(--line);
}
.price:first-of-type{ border-top:1px solid var(--line); }
.price .amount{
  font-size:clamp(2rem,4vw,2.9rem);
  font-weight:500;
  letter-spacing:-0.04em;
  line-height:1;
  margin-top:10px;
  display:block;
}
.price .amount small{
  display:block;
  font-size:.78rem;
  font-weight:400;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:10px;
}
.price p{ color:var(--muted); }

/* ---------- cytat ---------- */

.quote{
  font-size:clamp(1.35rem,3vw,2.1rem);
  line-height:1.3;
  letter-spacing:-0.03em;
  font-weight:400;
  max-width:20ch;
  margin:0;
}
.quote cite{
  display:block;
  font-style:normal;
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:22px;
}

/* ---------- sprzęt ---------- */

.gear{ border-top:1px solid var(--line); }
.gear-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);
  gap:clamp(16px,4vw,60px);
  padding:24px 0;
  border-bottom:1px solid var(--line);
}
.gear-item h3{ font-size:1.05rem; font-weight:500; }
.gear-item p{ color:var(--muted); font-size:.97rem; }

/* ---------- pas kontaktowy ---------- */

.cta{
  background:var(--bg-soft);
  border-top:1px solid var(--line);
}
.cta .tel-big{
  display:inline-block;
  font-size:clamp(2.1rem,6vw,4.2rem);
  font-weight:500;
  letter-spacing:-0.045em;
  text-decoration:none;
  line-height:1.05;
  margin:18px 0 10px;
  border-bottom:2px solid transparent;
  transition:border-color .2s ease, color .2s ease;
}
.cta .tel-big:hover{ color:var(--accent); border-bottom-color:var(--accent); }

/* ---------- stopka ---------- */

.site-footer{
  border-top:1px solid var(--line);
  padding:44px 0 60px;
  font-size:.87rem;
  color:var(--muted);
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  gap:18px 40px;
  align-items:baseline;
  justify-content:space-between;
}
.site-footer a{ text-decoration:none; }
.site-footer a:hover{ color:var(--fg); }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }

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

@media (max-width:860px){
  .grid-2{ grid-template-columns:1fr; }
  .row{ grid-template-columns:34px 1fr; row-gap:8px; }
  .row .desc{ grid-column:2; }
  .row .role{ grid-column:2; text-align:left; }
  .price{ grid-template-columns:1fr; }
  .gear-item{ grid-template-columns:1fr; gap:6px; }
  .header-inner{
    display:grid;
    grid-template-columns:1fr auto auto;
    grid-template-areas:"brand tel toggle" "nav nav nav";
    align-items:center;
    gap:12px 14px;
    min-height:0;
  }
  .brand{ grid-area:brand; margin-right:0; }
  .header-tel{ grid-area:tel; }
  .theme-toggle{ grid-area:toggle; }
  .nav{ grid-area:nav; width:100%; gap:20px; padding-bottom:4px; }
}

@media (max-width:420px){
  body{ font-size:16px; }
  .wrap{ padding:0 20px; }
  .header-tel{ padding:7px 12px; font-size:.8rem; }
}
