/* =========================================================
   CONTACT – wzorzec: „CONTACT_FINAL_WZOR.png” (1672 × 941)
   Samodzielny arkusz – pozostałe podstrony nie są tu ładowane ani zmieniane.
   1u = 1/100 szerokości wzorca; --p = 1 piksel wzorca.
   Nagłówek identyczny jak w pozostałych podstronach.
   ========================================================= */

:root {
  --u: 1vw;
  --p: calc(var(--u) / 16.72);
  /* pionowa jednostka sceny: = --p, a gdy okno jest niższe – dopasowana tak,
     by nagłówek + scena (628) + stopka (72) zmieściły się w 100vh */
  --q: min(var(--p), calc((100vh - var(--header-h) - var(--p) * 72) / 628));
  --bg: #000502;
  --lime: #b4ec0c;
  --lime-soft: #a6dc22;
  --text: #ffffff;
  --line: rgba(180, 236, 12, .18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Roboto", Arial, sans-serif;
  --header-h: calc(var(--u) * 5.5);
}

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

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

body.ct {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.ct-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   NAGŁÓWEK
   ========================================================= */
.ct-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 calc(var(--u) * 3);
  background: linear-gradient(180deg, #000 0%, rgba(0, 4, 1, .96) 100%);
}

.ct-header::after {               /* cienka linia pod nagłówkiem */
  content: "";
  position: absolute;
  left: calc(var(--u) * 21);
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 180, 120, .45) 12%, rgba(150, 180, 120, .45));
}

.ct-brand img {
  width: auto;
  height: min(calc(var(--u) * 4.3), 80px);
}

.ct-nav { margin-left: calc(var(--u) * 5.4); }

.ct-nav ul { display: flex; gap: calc(var(--u) * 2.15); }

.ct-nav a {
  position: relative;
  display: block;
  padding: calc(var(--u) * .6) 0;
  font-family: var(--sans);
  font-size: calc(var(--u) * 1.1);
  font-weight: 400;
  white-space: nowrap;
  transition: color .2s;
}

.ct-nav a:hover,
.ct-nav a.is-active { color: var(--lime); }

.ct-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--u) * -.55);
  height: calc(var(--u) * .25);
  min-height: 3px;
  border-radius: 2px;
  background: var(--lime);
}

.ct-wa {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * .9);
  margin-left: auto;
}

.ct-wa svg {
  width: calc(var(--u) * 2.6);
  height: calc(var(--u) * 2.6);
  color: #25d366;
  flex-shrink: 0;
}

.ct-wa > span {
  display: flex;
  flex-direction: column;
  font-size: calc(var(--u) * 1.08);
  line-height: 1.3;
}

.ct-lang {
  display: flex;
  gap: calc(var(--u) * 2.1);
  margin-left: calc(var(--u) * 4.4);
  font-size: calc(var(--u) * 1.3);
  font-weight: 500;
}

.ct-lang a { position: relative; padding-bottom: calc(var(--u) * .35); }
.ct-lang a.is-active { color: var(--lime); }

.ct-lang a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--u) * -.3);
  height: calc(var(--u) * .22);
  min-height: 2px;
  background: var(--lime);
}

.ct-burger { display: none; }

/* =========================================================
   SCENA (współrzędne wzorca, y liczone od dołu nagłówka)
   ========================================================= */
.ct-main {
  background:
    radial-gradient(ellipse 30% 40% at 0% 70%, rgba(20, 70, 6, .45), transparent 72%),
    radial-gradient(ellipse 40% 30% at 30% 20%, rgba(14, 50, 4, .45), transparent 72%),
    linear-gradient(180deg, #010d04 0%, #020f05 50%, #010a03 100%);
}

.ct-stage {
  position: relative;
  height: calc(var(--q) * 628);
  overflow: hidden;
}

.ct-band {
  position: absolute;
  left: calc(var(--p) * 530);
  top: calc(var(--q) * 1);
  width: calc(var(--p) * 1142);
  height: calc(var(--q) * 263);
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
}

.ct-line {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(184, 240, 10, .9)) drop-shadow(0 0 12px rgba(150, 220, 10, .45));
}

/* ---------- nagłówek strony ---------- */
.ct-intro {
  position: absolute;
  z-index: 3;
  left: calc(var(--p) * 95);
  top: calc(var(--q) * 9);
}

.ct-eyebrow {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.6);
  font-size: calc(var(--u) * 1.0);
  font-weight: 400;
  letter-spacing: .78em;
  text-transform: uppercase;
}

.ct-eyebrow::after {
  content: "";
  width: calc(var(--u) * 12);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(180, 236, 12, .15));
}

.ct-title {
  margin-top: calc(var(--p) * 1);
  margin-left: calc(var(--p) * -6);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: calc(var(--p) * 86);
  line-height: 1.02;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

.ct-subtitle {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--p) * 34);
  line-height: 1.2;
}

.ct-subtitle span { color: var(--lime-soft); }

.ct-lead {
  margin-top: calc(var(--q) * 4);
  font-size: calc(var(--p) * 21);
  line-height: 1.28;
  color: #f0f2ee;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}

/* ---------- karty ---------- */
.ct-card {
  position: absolute;
  z-index: 2;
  border: 1.5px solid rgba(180, 236, 12, .85);
  border-radius: calc(var(--p) * 24);
  background: linear-gradient(160deg, rgba(4, 30, 10, .82), rgba(1, 14, 5, .9));
  box-shadow: 0 0 calc(var(--p) * 8) rgba(180, 236, 12, .35), inset 0 0 calc(var(--p) * 30) rgba(120, 200, 10, .06);
}

.ct-card-title {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--p) * 34);
  line-height: 1.2;
}

.ct-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--p) * -12);
  width: calc(var(--p) * 75);
  height: calc(var(--p) * 5);
  border-radius: 3px;
  background: var(--lime);
  box-shadow: 0 0 calc(var(--p) * 6) rgba(180, 236, 12, .6);
}

/* dane kontaktowe */
.ct-data {
  left: calc(var(--p) * 91);
  top: calc(var(--q) * 266);
  width: calc(var(--p) * 468);
  height: calc(var(--q) * 352);
  padding: calc(var(--q) * 16) calc(var(--p) * 36) 0 calc(var(--p) * 39);
}

.ct-data ul { margin-top: calc(var(--q) * 19); }

.ct-data li {
  display: flex;
  align-items: center;
  gap: calc(var(--p) * 36);
  height: calc(var(--q) * 53);
  padding-left: calc(var(--p) * 5);
}

.ct-data li + li { border-top: 1px solid rgba(255, 255, 255, .22); }

.ct-data svg {
  flex-shrink: 0;
  width: calc(var(--p) * 46);
  height: calc(var(--p) * 46);
  color: var(--lime);
  filter: drop-shadow(0 0 4px rgba(180, 236, 12, .4));
}

.ct-data h3 {
  font-size: calc(var(--p) * 20);
  font-weight: 700;
  line-height: 1.2;
}

.ct-data a {
  display: inline-block;
  font-size: calc(var(--p) * 22);
  line-height: 1.25;
  color: #eef3e8;
  transition: color .2s;
}

.ct-data a:hover { color: var(--lime); }

/* formularz */
.ct-form-card {
  left: calc(var(--p) * 591);
  top: calc(var(--q) * 264);
  width: calc(var(--p) * 780);
  height: calc(var(--q) * 354);
  padding: calc(var(--q) * 16) 0 0 calc(var(--p) * 42);
}

.ct-form {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--p) * 335) calc(var(--p) * 262);
  grid-template-rows: calc(var(--q) * 38) calc(var(--q) * 38) calc(var(--q) * 76) calc(var(--q) * 54);
  column-gap: calc(var(--p) * 28);
  row-gap: calc(var(--q) * 10);
  margin-top: calc(var(--q) * 26);
}

.ct-field { position: relative; display: block; }
.ct-f-message { grid-column: 1 / -1; }

.ct-field input,
.ct-field textarea {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 calc(var(--p) * 16);
  border: 1.5px solid rgba(214, 236, 190, .55);
  border-radius: calc(var(--p) * 12);
  background: rgba(0, 10, 3, .55);
  color: #fff;
  font-family: var(--sans);
  font-size: calc(var(--p) * 19);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.ct-field textarea {
  padding-top: calc(var(--p) * 10);
  resize: none;
  line-height: 1.35;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgba(255, 255, 255, .88); opacity: 1; }

.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 calc(var(--p) * 12) rgba(180, 236, 12, .35);
}

.ct-submit {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--p) * 14);
  width: calc(var(--p) * 280);
  height: calc(var(--q) * 54);
  margin-top: calc(var(--q) * 4);
  padding: 0;
  border: 0;
  border-radius: calc(var(--p) * 14);
  background: linear-gradient(180deg, #c6f53a 0%, #a9e00c 100%);
  box-shadow: 0 0 calc(var(--p) * 16) rgba(180, 236, 12, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
  color: #0a1a02;
  font-family: var(--sans);
  font-weight: 700;
  font-size: calc(var(--p) * 22);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.ct-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 calc(var(--p) * 24) rgba(180, 236, 12, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.ct-submit svg {
  width: calc(var(--p) * 34);
  height: calc(var(--p) * 34);
}

/* dekoracje */
.ct-decor {
  position: absolute;
  z-index: 3;
  left: 0;
  top: calc(var(--q) * 618 - var(--p) * 228);
  width: calc(var(--p) * 600);
  height: calc(var(--p) * 238);
  max-width: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

.ct-mascot {
  position: absolute;
  z-index: 4;
  left: calc(var(--p) * 1262);
  top: calc(var(--q) * 127);
  width: calc(var(--p) * 410);
  height: calc(var(--p) * 552);
  max-width: none;
  pointer-events: none;
}

/* =========================================================
   STOPKA
   ========================================================= */
.ct-footer {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(var(--p) * 72);
  padding: 0 calc(var(--p) * 60);
  background: linear-gradient(180deg, #000 0%, #010802 100%);
}

.ct-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(180, 236, 12, .2), var(--lime) 30%, var(--lime) 70%, rgba(180, 236, 12, .2));
  box-shadow: 0 0 10px rgba(180, 236, 12, .7);
}

.ct-footer-brand img {
  width: auto;
  height: calc(var(--p) * 52);
}

.ct-footer-line {
  flex: 0 0 calc(var(--p) * 395);
  height: 3px;
  margin-left: calc(var(--p) * 75);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(180, 236, 12, .25), var(--lime));
  box-shadow: 0 0 8px rgba(180, 236, 12, .5);
}

.ct-footer-tags {
  display: flex;
  margin-left: auto;
  font-size: calc(var(--p) * 20);
  white-space: nowrap;
}

.ct-footer-tags li + li::before {
  content: "•";
  margin: 0 calc(var(--p) * 18);
  color: var(--lime);
}

/* =========================================================
   TABLET / TELEFON
   ========================================================= */
@media (max-width: 1000px), (max-aspect-ratio: 1/1) {
  :root { --u: 10px; --header-h: 72px; }

  .ct-header { padding: 0 18px; }
  .ct-header::after { left: 0; }
  .ct-brand img { height: 44px; }

  .ct-wa > span { display: none; }
  .ct-wa svg { width: 34px; height: 34px; }
  .ct-lang { margin-left: 18px; gap: 14px; font-size: 1.05rem; }

  .ct-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    margin-left: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .ct-burger span { height: 3px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .ct-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .ct-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .ct-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

  .ct-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 18px 18px;
    background: rgba(0, 5, 2, .98);
    border-bottom: 1px solid var(--line);
  }
  .ct-nav.is-open { display: block; }
  .ct-nav ul { flex-direction: column; gap: 0; }
  .ct-nav a { padding: 12px 0; font-size: 1.15rem; }
  .ct-nav a.is-active::after { right: auto; width: 56px; bottom: 6px; }

  .ct-stage {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-bottom: 36px;
  }

  .ct-line, .ct-decor { display: none; }

  .ct-intro {
    order: 1;
    position: relative;
    left: auto;
    top: auto;
    padding: 40px 20px 28px;
  }
  .ct-eyebrow { font-size: .85rem; gap: 18px; letter-spacing: .5em; }
  .ct-eyebrow::after { width: 70px; }
  .ct-title { font-size: clamp(3rem, 15vw, 5.4rem); margin: 10px 0 0 -4px; }
  .ct-subtitle { font-size: clamp(1.35rem, 6vw, 1.9rem); margin-top: 6px; }
  .ct-lead { font-size: 1.05rem; line-height: 1.5; margin-top: 14px; }
  .ct-lead br { display: none; }

  .ct-band {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 760 / 313;
    object-fit: cover;
    object-position: 0 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  }

  .ct-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    margin: 24px 16px 0;
    border-radius: 18px;
  }
  .ct-card-title { font-size: 1.6rem; }
  .ct-card-title::after { width: 60px; height: 4px; bottom: -12px; }

  .ct-data { order: 3; padding: 24px 20px 10px; }
  .ct-data ul { margin-top: 26px; }
  .ct-data li { height: auto; gap: 18px; padding: 14px 0 14px 2px; }
  .ct-data svg { width: 40px; height: 40px; }
  .ct-data h3 { font-size: 1rem; }
  .ct-data a { font-size: 1.1rem; overflow-wrap: anywhere; }

  .ct-form-card { order: 4; padding: 24px 20px 22px; }
  .ct-form {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 50px;
    row-gap: 12px;
    margin-top: 30px;
  }
  .ct-f-message { grid-column: auto; grid-row: span 3; }
  .ct-field input, .ct-field textarea { font-size: 1rem; padding: 0 14px; border-radius: 12px; }
  .ct-field textarea { padding-top: 12px; }
  .ct-submit {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 56px;
    margin-top: 6px;
    gap: 12px;
    border-radius: 14px;
    font-size: 1.1rem;
  }
  .ct-submit svg { width: 26px; height: 26px; }

  .ct-mascot {
    order: 5;
    position: relative;
    left: auto;
    top: auto;
    width: min(78vw, 340px);
    height: auto;
    margin: 18px auto 0;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  }

  .ct-footer {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    height: auto;
    padding: 26px 16px 30px;
  }
  .ct-footer-brand img { height: 52px; }
  .ct-footer-line { flex: none; width: 140px; margin: 0; }
  .ct-footer-tags {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: .95rem;
  }
  .ct-footer-tags li + li::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
