﻿:root {
  --bg: #f4f8fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #102033;
  --muted: #5f7287;
  --line: rgba(102, 126, 158, 0.18);
  --accent: #0f766e;
  --accent-strong: #0a8f86;
  --accent-soft: #e8fbf8;
  --shadow: 0 24px 70px rgba(17, 36, 62, 0.1);
  --radius: 28px;
  --cloud-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cpath fill='%23ffffff' d='M54 88c-20 0-36-13-36-30 0-15 12-27 29-29 5-16 22-27 42-27 18 0 34 9 41 23 4-1 9-2 14-2 21 0 38 14 38 32s-17 33-38 33H54z'/%3E%3Cpath fill='%23d9edf7' d='M72 95c10 9 23 14 38 14 25 0 46-12 58-30-6 6-16 10-27 10H54c-16 0-30-8-36-20 0 17 16 30 36 30h18z' opacity='.9'/%3E%3Cellipse cx='82' cy='84' rx='12' ry='6' fill='%23d9edf7'/%3E%3Cellipse cx='112' cy='88' rx='14' ry='7' fill='%23d9edf7'/%3E%3Cellipse cx='146' cy='83' rx='13' ry='6' fill='%23d9edf7'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 143, 134, 0.18), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(59, 130, 246, 0.12), transparent 18%),
    linear-gradient(180deg, #fbfeff 0%, var(--bg) 100%);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
  background: var(--cloud-svg) center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(144, 181, 201, 0.12));
}

body::before {
  width: 240px;
  height: 132px;
  top: 14%;
  right: -40px;
}

body::after {
  width: 210px;
  height: 116px;
  bottom: 10%;
  left: -28px;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  border-radius: 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.2rem 0 0.5rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17, 36, 62, 0.08);
  backdrop-filter: blur(12px);
}

#main-content {
  scroll-margin-top: 120px;
}

#o-nas,
#oferta,
#cennik,
#zapisy,
#zalety,
#kontakt {
  scroll-margin-top: 120px;
}

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

.brand-mark {
  position: relative;
  width: 66px;
  height: 38px;
  background: var(--cloud-svg) center / contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(144, 181, 201, 0.18));
}

.brand-text {
  font-family: "Literata", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.card-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.card-kicker {
  margin-bottom: 0.8rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  color: var(--text);
}

.hero,
.info-section,
.cards-section,
.enroll-section,
.contact-section {
  padding: 3.25rem 0;
  position: relative;
}

.info-section::before,
.cards-section::before,
.enroll-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 188px;
  height: 104px;
  opacity: 0.5;
  background: var(--cloud-svg) center / contain no-repeat;
}

.info-section::before,
.enroll-section::before {
  top: 26px;
  right: 6%;
}

.cards-section::before,
.contact-section::before {
  bottom: 22px;
  left: 6%;
}

.info-section .container,
.cards-section .container,
.enroll-section .container,
.contact-section .container {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  background: var(--cloud-svg) center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(159, 191, 208, 0.12));
}

.hero::before {
  width: 260px;
  height: 140px;
  top: 26px;
  left: -54px;
}

.hero::after {
  width: 190px;
  height: 112px;
  top: 108px;
  right: -24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 1.75rem;
  align-items: stretch;
}

.hero-copy {
  padding: 1.2rem 0;
}

h1,
h2,
h3 {
  font-family: "Literata", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  margin: 0.6rem 0 1rem;
  max-width: 10.5ch;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0.35rem 0 1rem;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
}

.lead {
  font-size: 1.08rem;
  max-width: 58ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong) 0%, #11a89d 100%);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(102, 126, 158, 0.18);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.96);
}

.hero-stats {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stats div {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(17, 36, 62, 0.08);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0.45rem 0 0;
  font-family: "Literata", serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.highlight-card,
.card,
.contact-box,
.price-card,
.enroll-card,
.signup-form,
.section-shell {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.highlight-card {
  position: relative;
  padding: 1.9rem;
  overflow: hidden;
}

.highlight-card::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 70%);
  pointer-events: none;
}

.feature-list {
  padding-left: 1.25rem;
  margin: 1rem 0 0;
}

.cloud {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 150px;
  height: 94px;
  background: var(--cloud-svg) center / contain no-repeat;
  opacity: 0.88;
  filter: drop-shadow(0 10px 16px rgba(159, 191, 208, 0.14));
}

.cloud::before,
.cloud::after {
  content: none;
}

.cloud span {
  display: none;
}

.cluster-one {
  top: 14px;
  right: -12px;
}

.cluster-two {
  bottom: 18px;
  left: -22px;
  transform: scale(0.78);
}

.highlight-card > * {
  position: relative;
  z-index: 1;
}

.section-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  padding: 1.6rem 1.75rem;
}

.section-copy,
.section-intro,
.form-hint,
.enroll-summary span,
.enroll-note,
.price-note,
.contact-box p {
  color: var(--muted);
}

.card-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.price-card,
.enroll-card,
.signup-form {
  padding: 1.55rem;
  position: relative;
  overflow: hidden;
}

.card::before,
.price-card::before,
.enroll-card::before,
.signup-form::before,
.contact-box::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 88px;
  height: 52px;
  opacity: 0.38;
  pointer-events: none;
  background: var(--cloud-svg) center / contain no-repeat;
}

.subjects-panel {
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 251, 252, 0.96));
  border: 1px solid rgba(102, 126, 158, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.subjects-panel + .subjects-panel {
  margin-top: 1rem;
}

.subjects-panel-accent,
.price-card-accent,
.enroll-card-accent {
  background: linear-gradient(180deg, rgba(232, 251, 248, 0.96), rgba(234, 244, 255, 0.96));
  border-color: rgba(15, 118, 110, 0.14);
}

.subjects-intro {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.subjects-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.subjects-columns-single {
  grid-template-columns: 1fr;
}

.subjects-columns p {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-left: 4px solid var(--accent-strong);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  font-size: 1rem;
}

.subjects-columns strong,
.subject-note strong,
.enroll-summary strong,
.price-label {
  color: var(--accent);
}

.subject-note {
  margin: 0.45rem 0 0;
  font-size: 1rem;
}

.price-label {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.price-value {
  margin: 0;
  font-family: "Literata", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.price-note,
.enroll-note {
  margin: 0.9rem 0 0;
}

.section-intro {
  max-width: 62ch;
  margin: 0 0 1.5rem;
}

.enroll-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  align-items: start;
}

.enroll-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.enroll-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.enroll-summary li:last-child {
  border-bottom: 0;
}

.enroll-summary span {
  text-align: right;
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-field label,
.form-fieldset legend {
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(102, 126, 158, 0.18);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(102, 126, 158, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  cursor: pointer;
}

.choice-card input {
  margin: 0;
}

.form-actions {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.form-hint {
  margin: 0;
  max-width: 52ch;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thank-you-box {
  padding: 2rem;
  max-width: 720px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .site-header .container,
  .hero-grid,
  .section-shell,
  .card-grid,
  .price-grid,
  .enroll-layout,
  .contact-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .form-grid,
  .choice-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  body::before,
  body::after,
  .info-section::before,
  .cards-section::before,
  .enroll-section::before,
  .contact-section::before {
    opacity: 0.32;
    transform: scale(0.8);
  }

  .brand {
    justify-content: center;
  }

  .nav-list {
    justify-content: center;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
