:root {
  --bg: #f7f7f8;
  --bg-2: #ffffff;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #f58220;
  --line: #e6e7ea;
  --shadow: 0 8px 24px rgba(16,24,40,.08);
  --radius: 12px;
  --transition: 0.25s ease;
}

/* =================== MAIN WRAP =================== */
main#kontakt {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) 20px;
  color: var(--text);
}

/* =================== HEADER =================== */
.k-header {
  margin: 12px 0 28px;
}
.k-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}
.k-header p {
  color: var(--muted);
  margin-top: 6px;
}

/* =================== GRID =================== */
.k-grid {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
@media (max-width: 900px) {
  .k-grid { grid-template-columns: 1fr; }
}

/* =================== CARD =================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: var(--shadow);
}
.info-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}
.info-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.info-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =================== FORM =================== */
form.k-form {
  display: grid;
  gap: 14px;
}
.row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
}

label {
  font-weight: 600;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

/* Focus elegancki */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.25);
  outline: none;
}

/* Hint text */
.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* =================== RODO =================== */
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.agree a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}
.agree input[type="checkbox"] {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 2px solid var(--accent);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.agree input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.agree input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =================== BUTTONS =================== */
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn,
.btn-ghost {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), color var(--transition), background var(--transition);
}
.btn {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.28);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =================== MAP =================== */
.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
}

/* =================== FAQ =================== */
.faq {
  margin-top: 26px;
}
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 10px 0;
  transition: box-shadow var(--transition);
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.faq details[open] {
  box-shadow: var(--shadow);
}

/* =================== ACCESSIBILITY =================== */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 480px) {
  .actions a,
  .actions button {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-ghost,
  input,
  select,
  textarea,
  .faq details {
    transition: none !important;
  }
}
/* ==== PATCH: przyciski w kontakcie (widoczne + mniej świecą) ==== */

/* Zawsze widoczne – na wszelki wypadek */
.actions .btn,
.actions .btn-ghost {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Główny */
.actions .btn {
  background: var(--accent) !important;
  color: #111 !important;                 /* bardzo czytelny tekst */
  border: 1px solid #e07c1f;              /* delikatna ramka dla ostrości */
  text-shadow: none !important;           /* bez rozmycia tekstu */
  box-shadow: 0 6px 14px rgba(245,130,32,.12) !important; /* mniejszy glow */
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.actions .btn:hover {
  background: #ff983a !important;
  box-shadow: 0 8px 18px rgba(245,130,32,.18) !important;
}
.actions .btn:focus {
  outline: 3px solid rgba(245,130,32,.25);
  outline-offset: 2px;
}

/* Wariant „ghost” – wyraźniejsza ramka i czytelne kolory */
.actions .btn-ghost {
  background: transparent !important;
  border: 1.5px solid #b8bcc2 !important; /* mocniejsza, jasnoszara ramka */
  color: var(--text) !important;
  box-shadow: none !important;            /* zero pomarańczowego poświaty */
}
.actions .btn-ghost:hover {
  background: rgba(245,130,32,.10) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* Jeżeli gdzieś globalnie było zbyt mocne świecenie na focusie pól */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(245,130,32,.18) !important; /* trochę lżej */
}

/* Dla bardzo jasnych motywów przeglądarki – upewnij się, że linki w .actions nie gasną */
.actions a { color: inherit !important; text-decoration: none; }
