:root {
  --navy: #063f83;
  --navy-dark: #062d61;
  --blue: #0d5fae;
  --light-blue: #eaf2fb;
  --text: #172033;
  --muted: #5f6b7a;
  --white: #ffffff;
  --border: rgba(15, 74, 140, 0.16);
  --shadow: 0 18px 45px rgba(19, 55, 93, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,74,140,0.10);
}

.header-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.logo-frame {
  width: 315px;
  height: 88px;
  display: flex;
  align-items: center;
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3b50;
}

.main-nav a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.hero {
  min-height: calc(100vh - 108px);
  position: relative;
  display: flex;
  align-items: center;
  background-image: url("images/bg-tytul.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 42%, rgba(255,255,255,0.08) 72%);
}

.hero-content { position: relative; z-index: 2; }

.hero-copy {
  max-width: 650px;
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.15; margin-top: 0; }

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  margin-bottom: 22px;
  color: var(--navy);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 22px;
  color: var(--navy);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  max-width: 580px;
  color: #25364f;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(6,63,131,0.24);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--blue); }

.btn-secondary {
  border: 1px solid rgba(6,63,131,0.28);
  color: var(--navy);
  background: rgba(255,255,255,0.75);
}

.btn-secondary:hover { background: #fff; }

.section { padding: 100px 0; }

.about-section {
  background:
    linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.90)),
    url("images/bg-lekcja.png") center/cover no-repeat;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 70px;
}

.section-copy p {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.media-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.9);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading.narrow { max-width: 600px; }

.section-heading > p:last-child {
  font-size: 1.05rem;
  color: var(--muted);
}

.courses-section {
  background:
    linear-gradient(rgba(242,247,253,0.94), rgba(242,247,253,0.94)),
    url("images/bg-blok.png") center/cover no-repeat;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(29,66,112,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(29,66,112,0.16);
}

.course-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.course-card-body { padding: 24px; }

.course-card-body p {
  color: var(--muted);
  margin-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f9;
  color: #526276;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.status.available {
  color: #084d93;
  background: #e2effd;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.learning-section { background: #fff; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-grid article {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7faff);
}

.feature-number {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 28px;
}

.feature-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-section {
  position: relative;
  color: #fff;
  background-image: url("images/bg-blok.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,42,92,0.96), rgba(5,42,92,0.84));
}

.contact-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact-content h2 { color: #fff; }
.eyebrow.light { color: #a9d3ff; }

.contact-content p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.80);
}

.contact-mail {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

.site-footer {
  background: #031d3f;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a { color: inherit; text-decoration: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 108px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(15,74,140,0.08);
  }

  .hero { min-height: 720px; background-position: 62% center; }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.36) 100%);
  }

  .two-column { grid-template-columns: 1fr; gap: 36px; }
  .course-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 88px; }
  .main-nav { top: 88px; }
  .logo-frame { width: 235px; height: 68px; }

  .hero {
    min-height: 650px;
    background-position: 70% center;
  }
  .hero-copy { padding: 70px 0; }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 74%, rgba(255,255,255,0.58) 100%);
  }

  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; justify-content: center; padding: 18px 0; }
}



.contact-layout { position:relative; z-index:2; display:grid; grid-template-columns:.82fr 1.18fr; gap:64px; align-items:start; }
.contact-copy { padding-top:22px; }
.contact-copy h2 { color:#fff; }
.contact-copy > p:last-child { max-width:480px; color:rgba(255,255,255,.82); font-size:1.08rem; }
.contact-form { background:rgba(255,255,255,.98); color:var(--text); padding:32px; border-radius:18px; box-shadow:0 24px 60px rgba(0,0,0,.22); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field { margin-bottom:18px; }
.form-field label { display:block; margin-bottom:7px; color:var(--navy); font-size:.9rem; font-weight:700; }
.form-field input,.form-field textarea { width:100%; border:1px solid #cad6e4; border-radius:9px; padding:13px 14px; font:inherit; color:var(--text); background:#fff; }
.form-field textarea { min-height:150px; resize:vertical; }
.form-field input:focus,.form-field textarea:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(13,95,174,.13); }
.consent-field { display:grid; grid-template-columns:auto 1fr; gap:10px; margin:2px 0 22px; color:#536174; font-size:.84rem; line-height:1.45; }
.consent-field input { margin-top:3px; }
.honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.btn-form { border:0; cursor:pointer; background:var(--navy); color:#fff; }
.btn-form:hover { background:var(--blue); }
.btn-form:disabled { cursor:wait; opacity:.7; }
.form-status { min-height:24px; margin:15px 0 0; font-size:.92rem; font-weight:600; }
.form-status.success { color:#167044; }
.form-status.error { color:#b42318; }
@media (max-width:900px) { .contact-layout { grid-template-columns:1fr; gap:32px; } }
@media (max-width:620px) { .contact-form { padding:22px; } .form-row { grid-template-columns:1fr; gap:0; } }

.captcha-wrap {
  margin: 2px 0 20px;
  min-height: 78px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
