*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f6f7fb;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.6;
}

main{ flex: 1; }

.container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

header,
.site-header{
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: nowrap;
}

nav,
.site-nav{
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

a{
  color: #4f46e5;
  text-decoration: none;
}

nav a,
.site-nav a{
  color: #0f172a;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

nav a:hover,
.site-nav a:hover{
  background: rgba(79, 70, 229, 0.08);
}

.button1,
.btn{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary{
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

.button1:hover,
.btn:hover{
  filter: brightness(0.98);
}

.button1:focus-visible,
.btn:focus-visible,
a:focus-visible{
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
}

.section{ padding: 28px 0; }

h1, h2, h3{ margin: 0 0 10px 0; line-height: 1.2; }
h1{ font-size: clamp(30px, 4vw, 48px); }
p{ margin: 8px 0; color: #475569; }

.Welcome{ text-align: left; }

.hero-card{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 18px;
}

.cta-row{ margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }

.Moje-projekty{ text-align: center; }

.Projekty{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.Kalkulator,
.ToDoApp,
.Aplikacja-pogodowa{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}

.Kalkulator h3,
.ToDoApp h3,
.Aplikacja-pogodowa h3{ margin-bottom: 6px; }

.Kalkulator a,
.ToDoApp a,
.Aplikacja-pogodowa a{ color: #0f172a; }

.Links{ display: flex; flex-wrap: wrap; gap: 12px; }

footer{
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.p{
  margin: 0;
  padding: 14px 10px;
  text-align: center;
  color: #475569;
}