:root {
  --navy: #13283b;
  --deep: #102133;
  --muted: #52616c;
  --sand: #f7f4ee;
  --gold: #dec18d;
  --line: #ded9cf;
  --paper: #fffefa;
  color: var(--navy);
  background: var(--paper);
  font: 16px/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a86410; outline-offset: 4px; }
.hero :focus-visible, footer :focus-visible, .custom :focus-visible { outline-color: #ffe3ae; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .5rem 1rem; z-index: 2; background: white; }
.skip:focus { transform: none; }
.wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.35rem Georgia, serif; text-decoration: none; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 39px; height: 39px; color: #76551f; border: 1px solid #ba985a; font-size: .86rem; letter-spacing: -.06em; }
nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(.85rem, 3vw, 2.2rem); }
nav a { padding-block: .45rem; font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3rem; }
.hero { color: white; background: radial-gradient(ellipse at 92% 12%, #263d52, var(--deep) 67%); border-bottom: 3px solid var(--gold); overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .47fr); align-items: center; gap: 2rem; padding-block: clamp(3rem, 6.5vw, 6rem); }
h1, h2, h3 { margin: 0; text-wrap: pretty; }
h1, h2, .phone-help, .bundle h3 { font-family: Georgia, serif; font-weight: 500; }
h1 { max-width: 19ch; font-size: clamp(2.3rem, 5.25vw, 4.65rem); line-height: 1.03; letter-spacing: -.04em; }
.hero p { color: #e1e7eb; font-size: clamp(1rem, 1.65vw, 1.18rem); max-width: 53ch; margin: 1.35rem 0 1.6rem; }
.hero-mark { width: min(100%, 285px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; border: 1px solid #d4b27b76; position: relative; color: var(--gold); }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; inset: 7%; border: 1px solid #d4b27b50; }
.hero-mark::after { inset: 12%; border-radius: 50%; }
.hero-mark div { display: grid; place-items: center; width: 68%; height: 68%; border: 1px solid #d4b27b55; border-radius: 50%; font: 500 clamp(3.6rem, 7vw, 6.6rem) Georgia, serif; letter-spacing: -.15em; padding-right: .15em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; gap: .7em; justify-content: center; align-items: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 3px; font: inherit; font-size: .9rem; font-weight: 700; line-height: 1.32; text-align: center; text-decoration: none; cursor: pointer; }
.gold { color: var(--deep); background: var(--gold); }
.gold:hover { background: #efd5a5; }
.ghost { color: white; border-color: #99a7b1; }
.ghost:hover { background: #ffffff16; }
.outline { color: var(--navy); background: transparent; border-color: #9b8c72; }
.outline:hover { background: #f2e9d8; }
.section { padding-block: clamp(2.6rem, 5.5vw, 4.6rem); scroll-margin-top: 1rem; }
.section-head { margin-bottom: 1.5rem; }
h2, .phone-help { font-size: clamp(1.9rem, 3.65vw, 3.15rem); line-height: 1.1; letter-spacing: -.035em; }
.section-head p, .custom p { margin: .7rem 0 0; }
.section-head p, #wyniki { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { padding: clamp(1rem, 2vw, 1.55rem); background: white; border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.bundle { border-top: 3px solid #ad874b; background: #faf8f2; }
.offer-number { font-size: .9rem; font-weight: 700; margin: 0 0 .45rem; }
.bundle .offer-number, .course .offer-number { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; }
.points { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 750; color: #745522; line-height: 1.15; margin: 0 0 .7rem; }
.bundle .points { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .35rem; }
.bundle-size { color: var(--muted); font-size: .9rem; margin: 0 0 .7rem; }
#punkty { font-size: 1.1rem; font-weight: 650; }
.bundle h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.18; }
.course h3 { font-size: 1.03rem; line-height: 1.48; overflow-wrap: anywhere; margin-bottom: .8rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .85rem; margin: .85rem 0; }
.price strong { font-size: 1.25rem; }
.bundle .price strong { font-size: 1.6rem; }
.price small { color: var(--muted); font-size: .83rem; }
.bundle ul { margin: .15rem 0 1.25rem; padding: .85rem 0 0 1.1rem; border-top: 1px solid var(--line); font-size: .94rem; }
.bundle li + li { margin-top: .45rem; }
.card-bottom { margin-top: auto; }
.payment { width: 100%; color: white; background: var(--navy); border-color: var(--navy); }
.payment:hover, .payment:focus-visible { color: white; background: #305b7b; border-color: #305b7b; }
.catalog { background: var(--sand); border-block: 1px solid var(--line); }
.filters { display: grid; align-items: end; grid-template-columns: 2fr 1.25fr .8fr auto; gap: .8rem; background: white; border: 1px solid var(--line); padding: 1rem; }
label { display: grid; min-width: 0; gap: .3rem; font-weight: 650; font-size: .88rem; }
input, select { min-width: 0; width: 100%; height: 44px; color: var(--navy); background: white; border: 1px solid #a7a099; padding: .4rem .55rem; border-radius: 3px; font: 1rem system-ui, sans-serif; }
#wyniki { margin: 1rem 0; }
.custom { display: flex; gap: 1.4rem 3rem; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--navy); border-left: 3px solid var(--gold); color: white; padding: clamp(1.4rem, 4vw, 3rem); }
.custom p { max-width: 57ch; color: #e1e7eb; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.certificate { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-top: 1.5rem; padding: clamp(1rem, 3vw, 1.75rem); border: 2px solid #3c6584; background: #eef5fa; color: var(--navy); }
.certificate p { margin: 0; }
.certificate p + p { margin-top: .8em; }
.invoice-note { margin: 1.15rem 0 0; font-size: 1.1rem; line-height: 1.5; }
footer { color: #edf2f4; background: var(--deep); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.4rem 2rem; padding-block: 2.2rem; }
footer h2 { font-size: 1.65rem; }
footer p { margin: .6rem 0 0; }
address { display: grid; gap: .45rem; font-style: normal; overflow-wrap: anywhere; }
footer a { text-underline-offset: .22em; }
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundles .bundle:last-child { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .bar { padding-block: .75rem; gap: .45rem 1.25rem; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filters button { justify-self: start; }
}

.phone-help { margin: 1.5rem 0 0; }
.phone-help a { white-space: nowrap; font-weight: 700; text-decoration: none; }
