/* Podstrona kontaktu — układ według projektu.
   Bazuje na spec-detail.css (nagłówek, stopka, szerokości kontenera, łuki). */

.contact-page {
  --ck-dark: #04322b;
  --ck-cream: #faf6ec;
  --ck-card: #fdfbf4;
  --ck-gold: #c19a5b;
  --ck-gold-light: #e0c08a;
  --ck-ink: #0b3a32;
  --ck-body: #5d6b67;
  --ck-hair: rgba(193, 154, 91, .4);
}

/* etykiety pól czytane przez czytniki ekranu (w projekcie widoczne są placeholdery) */
.contact-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.ck-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
  color: #eae5d8;
  background: var(--ck-dark);
}
.ck-hero-copy {
  padding-bottom: 70px;
}
.ck-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: start;
  gap: 70px;
}
.ck-eyebrow {
  margin: 0 0 18px;
  color: var(--ck-gold);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.ck-eyebrow-rule { display: block; width: 36px; height: 1px; margin-bottom: 44px; background: var(--ck-gold); }
.ck-hero-copy h1 {
  margin: 0 0 30px;
  color: #f7f3e7;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.18;
}
.ck-hero-sub { margin: 0 0 44px; color: #cdd6cf; font-size: 15px; line-height: 1.75; }
.ck-hero-contacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 30px; }
.ck-hero-contacts li { display: flex; align-items: center; gap: 22px; }
.ck-hero-contacts svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: var(--ck-gold); stroke-width: 1.4; }
.ck-hero-contacts a { color: #f2efe4; font-size: 18px; transition: color .22s ease; }
.ck-hero-contacts a:hover { color: var(--ck-gold-light); }

/* zdjęcie w arkadzie + złoty obrys przesunięty w prawo */
.ck-hero-photo { position: relative; margin: 0; align-self: end; }
.ck-hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(420px, 44vw, 580px);
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
}
.ck-hero-photo::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -26px -30px -26px 30px;
  border: 1px solid rgba(214, 178, 116, .55);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 24% 24% 0 0;
}

/* dekoracyjne łuki w lewym dolnym rogu */
.ck-hero-arcs {
  position: absolute;
  z-index: 0;
  left: -70px;
  bottom: -40px;
  width: 340px;
  height: 300px;
  fill: none;
  stroke: rgba(214, 178, 116, .3);
  stroke-width: 1;
  pointer-events: none;
}

/* kremowa karta wchodząca na granicę hero i jasnej sekcji */
.ck-hero-card-wrap {
  position: relative;
  z-index: 4;
  margin-top: -172px;
}
.ck-hero-card {
  width: min(438px, 100%);
  margin-left: 26%;
  padding: 34px 40px;
  background: var(--ck-card);
  box-shadow: 0 26px 60px rgba(2, 20, 17, .22);
}
.ck-info-row { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.ck-info-row svg { flex: 0 0 auto; width: 24px; height: 24px; fill: none; stroke: var(--ck-gold); stroke-width: 1.4; }
.ck-info-row p { margin: 0; color: #3d4c48; font-size: 15px; line-height: 1.6; }
.ck-info-row a { color: inherit; transition: color .22s ease; }
.ck-info-row a:hover { color: var(--ck-gold); }

/* ---------- Dane kancelarii + formularz ---------- */
.ck-main { padding: 84px 0 92px; background: var(--ck-cream); }
.ck-main-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 78px; align-items: start; }
.ck-main-grid > * { min-width: 0; }
.ck-details { padding-right: 78px; border-right: 1px solid var(--ck-hair); }
.ck-main h2 { margin: 0; color: var(--ck-ink); font-size: clamp(27px, 2.6vw, 33px); }
.ck-rule { display: block; width: 52px; height: 1px; margin: 20px 0 34px; background: var(--ck-gold); }

.ck-details-list { display: grid; }
.ck-details-list .ck-info-row { padding: 20px 0; }
.ck-details-list .ck-info-row.has-line { border-bottom: 1px solid var(--ck-hair); }
.ck-details-list .ck-info-row:first-child { padding-top: 0; }

/* formularz */
.ck-form { display: grid; gap: 14px; }
.ck-form .field { display: block; }
.ck-form input,
.ck-form textarea,
.ck-form select {
  width: 100%;
  padding: 15px 18px;
  color: var(--ck-ink);
  font: 400 14px/1.5 var(--sans);
  background: #fdfcf7;
  border: 1px solid rgba(193, 154, 91, .45);
  border-radius: 0;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.ck-form textarea { min-height: 118px; resize: vertical; }
.ck-form input::placeholder,
.ck-form textarea::placeholder { color: #8d9793; }
.ck-form input:focus,
.ck-form textarea:focus,
.ck-form select:focus {
  outline: 0;
  border-color: var(--ck-gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 91, .14);
}
.ck-form .is-invalid { border-color: #b4553f; }

.ck-form-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--ck-dark);
  color: #f4efe2;
  background: var(--ck-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ck-form-submit:hover { color: var(--ck-dark); border-color: var(--ck-gold); background: var(--ck-gold-light); }
.ck-form-submit[disabled] { opacity: .6; cursor: progress; }

.ck-consent { display: flex; align-items: flex-start; gap: 12px; color: var(--ck-body); font-size: 11.5px; line-height: 1.6; }
.ck-consent a { color: var(--ck-gold); text-decoration: underline; transition: color .22s ease; }
.ck-consent a:hover { color: var(--ck-gold-light); }
.ck-consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ck-gold); }
.ck-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ck-status { margin: 4px 0 0; font-size: 13px; line-height: 1.6; }
.ck-status:empty { display: none; }
.ck-status.is-ok { color: #2f6b4f; }
.ck-status.is-error { color: #a5462f; }

/* ---------- Jak możemy się spotkać ---------- */
.ck-meet { padding: 0 0 96px; background: var(--ck-cream); text-align: center; }
.ck-meet h2 { margin: 0 0 40px; color: var(--ck-ink); font-size: clamp(27px, 2.7vw, 34px); }
.ck-meet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; text-align: left; }
.ck-meet-card {
  position: relative;
  display: block;
  padding: 34px 38px 32px;
  border: 1px solid var(--ck-hair);
  background: #fdfbf5;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.ck-meet-card:hover { transform: translateY(-4px); border-color: rgba(193, 154, 91, .8); box-shadow: 0 20px 44px rgba(37, 50, 46, .1); }
.ck-meet-card h3 { margin: 0 0 18px; color: var(--ck-ink); font-size: 23px; }
.ck-meet-card p { margin: 0; max-width: 300px; color: var(--ck-body); font-size: 13px; line-height: 1.75; }
.ck-meet-arrow { position: absolute; right: 34px; bottom: 34px; display: inline-flex; color: var(--ck-gold); }
.ck-meet-arrow svg { width: 34px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ck-meet-card:hover .ck-meet-arrow svg { transform: translateX(7px); }

/* ---------- Pas z mapą ---------- */
.ck-map {
  position: relative;
  overflow: hidden;
  height: 450px;
  background: #f2ebdf;
}
.ck-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) sepia(15%) contrast(95%);
}

/* ---------- Domykające CTA ---------- */
.ck-cta {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  text-align: center;
  background: var(--ck-dark);
}
.ck-cta-inner { position: relative; z-index: 1; }
.ck-cta h2 { margin: 0 0 20px; color: var(--ck-gold-light); font-size: clamp(28px, 2.9vw, 36px); }
.ck-cta p { margin: 0 0 40px; color: #cdd6cf; font-size: 14px; }
.ck-cta .button {
  min-height: 58px;
  padding-inline: 40px;
  color: var(--ck-gold-light);
  border-color: rgba(214, 178, 116, .8);
  background: transparent;
}
.ck-cta .button:hover { color: var(--ck-dark); background: var(--ck-gold-light); }
.ck-cta-arcs {
  position: absolute;
  z-index: 0;
  bottom: -60px;
  width: 300px;
  height: 300px;
  fill: none;
  stroke: rgba(214, 178, 116, .28);
  stroke-width: 1;
  pointer-events: none;
}
.ck-cta-arcs.is-left { left: -80px; }
.ck-cta-arcs.is-right { right: -80px; }

/* ---------- Responsywność ---------- */
@media (max-width: 1120px) {
  .ck-hero { padding: 56px 0 0; }
  .ck-hero-copy { padding-bottom: 56px; }
  .ck-hero-grid { gap: 44px; }
  .ck-hero-card { margin-left: 12%; padding: 28px 32px; }
  .ck-main { padding-top: 70px; }
  .ck-main-grid { gap: 48px; }
  .ck-details { padding-right: 48px; }
  .ck-meet-card { padding: 30px 30px 28px; }
  .ck-meet-arrow { right: 28px; bottom: 28px; }
}

@media (max-width: 900px) {
  .ck-hero { padding: 44px 0 56px; }
  .ck-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ck-hero-copy { padding-bottom: 0; }
  .ck-eyebrow-rule { margin-bottom: 30px; }
  .ck-hero-sub { margin-bottom: 32px; }
  .ck-hero-contacts { gap: 22px; }
  .ck-hero-photo { order: -1; }
  .ck-hero-photo img { height: clamp(320px, 58vw, 460px); }
  .ck-hero-photo::after { inset: -18px -18px -18px 18px; }
  .ck-hero-card-wrap { margin-top: -34px; }
  .ck-hero-card { width: 100%; margin-left: 0; }
  .ck-hero-arcs { display: none; }
  .ck-main { padding: 62px 0 70px; }
  .ck-main-grid { grid-template-columns: 1fr; gap: 48px; }
  .ck-details { padding-right: 0; padding-bottom: 40px; border-right: 0; border-bottom: 1px solid var(--ck-hair); }
  .ck-meet { padding-bottom: 70px; }
  .ck-meet-grid { grid-template-columns: 1fr; gap: 16px; }
  .ck-meet-card p { max-width: none; padding-right: 60px; }
  .ck-cta { padding: 66px 0 72px; }
}

@media (max-width: 680px) {
  .ck-hero { padding: 32px 0 44px; }
  .ck-hero-copy h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .ck-hero-sub { font-size: 14px; }
  .ck-hero-contacts a { font-size: 16px; }
  .ck-hero-contacts svg { width: 22px; height: 22px; }
  .ck-hero-card { padding: 22px 24px; }
  .ck-info-row { gap: 16px; }
  .ck-info-row p { font-size: 14px; }
  .ck-main { padding: 52px 0 58px; }
  .ck-details { padding-bottom: 32px; }
  .ck-rule { margin-bottom: 26px; }
  .ck-form input, .ck-form textarea, .ck-form select { padding: 13px 15px; }
  .ck-meet { padding-bottom: 56px; }
  .ck-meet h2 { margin-bottom: 28px; }
  .ck-meet-card { padding: 26px 24px 24px; }
  .ck-meet-card p { padding-right: 46px; }
  .ck-meet-arrow { right: 24px; bottom: 24px; }
  .ck-map { height: 320px; }
  .ck-map-pin svg { width: 38px; height: 38px; }
  .ck-cta { padding: 54px 0 60px; }
  .ck-cta .button { width: 100%; max-width: 320px; padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-meet-card,
  .ck-meet-arrow svg { transition: none; }
}
