/* =====================================================================
   KRD — formularz kontaktowy (LP + Thank You Page) — skill camino-lp v2.2
   Makieta 1448 px: kontener 1186 px, karta formularza 429 px.
   ===================================================================== */
:root {
  --accent:     #E40421;   /* czerwien KRD (tytul) */
  --card:       #db0a0b;   /* czerwien karty formularza (jak GRAF-4931); makieta AI: #C80101 */
  --text:       #1B2330;
  --text-2:     #2B3442;
  --muted:      #555B63;
  --line:       #E6E6E6;
  --warn:       #FFD54F;   /* komunikaty bledow na czerwonym tle */
  --container:  1186px;
  --font:       'Open Sans', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #FFF; line-height: 1.45; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 0 20px; }

/* ------------------------------ HEADER ----------------------------- */
.topbar { position: relative; z-index: 2; background: #FFF; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo img { width: 170px; height: auto; }   /* logo GRAF-3011: proporcje 317.5 x 104.9 */
.phone {
  display: flex; align-items: center; gap: 12px; margin-right: 130px;
  font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
}
.phone-ico {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid #2B3442; border-radius: 6px; background: #FFF;
}
.phone-ico img { width: 22px; height: 22px; }

/* ------------------------------- HERO ------------------------------ */
.hero {
  position: relative;
  background: radial-gradient(ellipse 70% 80% at 45% 55%, #FFFFFF 0%, #F7F7F7 55%, #EFEFEF 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 429px; gap: 40px; align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.hero-copy h1 {
  margin: 0 0 32px; max-width: 720px;
  font-size: 39px; font-weight: 700; line-height: 1.3; letter-spacing: -.6px; color: var(--text);
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin: 0; max-width: 640px; font-size: 28px; font-weight: 400; line-height: 1.4; color: var(--text-2); }

/* -------------------------- KARTA FORMULARZA ----------------------- */
.form-card {
  margin-top: -6px;                       /* jak na makiecie: karta zachodzi lekko na naglowek */
  padding: 34px 32px 26px;
  background: var(--card); color: #FFF;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.form-title { margin: 0 0 22px; font-size: 26px; font-weight: 700; line-height: 1.2; color: #FFF; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; color: #FFF; }
.field input[type="text"] {
  width: 100%; height: 51px; padding: 0 16px;
  font: inherit; font-size: 18px; color: var(--text);
  background: #FFF; border: 2px solid #FFF; border-radius: 6px; outline: none;
}
.field input:focus { border-color: #1B2330; }
.tel-wrap { display: flex; align-items: center; height: 51px; background: #FFF; border: 2px solid #FFF; border-radius: 6px; }
.tel-wrap:focus-within { border-color: #1B2330; }
.tel-prefix { padding: 0 6px 0 16px; font-size: 20px; color: #8A9099; }
.tel-wrap input[type="text"] { height: 47px; border: 0; padding-left: 4px; }
.field input::placeholder { color: #A3A9B1; }
/* stany z functions.js — na czerwonym tle bledy w kolorze bursztynowym */
.valid-error, .tel-wrap:has(.valid-error) { border-color: var(--warn) !important; }
.txt-error { margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--warn); }
.txt-error:empty { display: none; }

.check-row { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 18px 0 0; cursor: pointer; }
.check-row input[type="checkbox"] { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; }
.check-box { width: 20px; height: 20px; margin-top: 1px; background: #FFF; border: 2px solid #FFF; border-radius: 3px; }
.check-row input:checked + .check-box {
  background: #FFF no-repeat center / 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23BB061E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-row input:focus-visible + .check-box { outline: 2px solid #FFF; outline-offset: 2px; }
.check-row.valid-error .check-box { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn); }
.check-txt { font-size: 12.5px; line-height: 1.4; color: #FFF; }
.check-row + .txt-error { margin: 4px 0 0 30px; }

.btn-send {
  display: block; width: 100%; height: 59px; margin: 20px 0 18px;
  font: inherit; font-size: 24px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #FFF; background: #0A0A0A; border: 0; border-radius: 6px; cursor: pointer;
  transition: background .15s;
}
.btn-send:hover { background: #2A2A2A; }
.form-legal { margin: 0; font-size: 11.5px; line-height: 1.5; color: #FFF; }
.form-legal a { color: #FFF; text-decoration: underline; }

/* ------------------------------ STOPKA ----------------------------- */
.footer { padding: 30px 0 34px; background: #FFF; }
.footer-inner { display: flex; align-items: flex-start; gap: 24px; }
.footer-logo { margin-left: 10px; }
.footer-logo { width: 150px; flex: 0 0 150px; }
.footer-legal { margin: 0; max-width: 760px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* --------------------------- THANK YOU PAGE ------------------------ */
.thx { padding: 14px 0 70px; }
.thx-title { margin: 0; font-size: 104px; font-weight: 800; line-height: 1.05; letter-spacing: -2px; color: var(--accent); }
.thx-sub   { margin: 0 0 40px; font-size: 31px; font-weight: 700; line-height: 1.25; color: #333; }
.thx-text  { margin: 0; font-size: 35px; font-weight: 400; line-height: 1.35; color: #3A3A3A; }
body.page-typ .footer-legal { font-size: 12px; max-width: 700px; }
.thx-line  { height: 3px; background: var(--accent); border: 0; margin: 0; }
.hidden { display: none; }

/* =========================== BREAKPOINTY =========================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 400px; gap: 32px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-lead { font-size: 22px; }
  .phone { margin-right: 0; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 32px 0 28px; }
  .hero-copy h1 { font-size: 28px; margin-bottom: 14px; }
  .hero-lead { font-size: 19px; }
  .form-card { margin: 0 0 32px; }
  .thx-title { font-size: 72px; } .thx-sub { font-size: 26px; } .thx-text { font-size: 26px; }
}
@media (max-width: 480px) {
  .topbar-inner { min-height: 64px; }
  .logo img { width: 128px; }
  .phone { gap: 8px; font-size: 15px; }
  .phone-ico { width: 38px; height: 38px; }
  .hero-copy h1 { font-size: 24px; }
  .hero-lead { font-size: 17px; }
  .form-card { padding: 24px 18px 20px; margin-left: -8px; margin-right: -8px; }
  .form-title { font-size: 22px; }
  .field label { font-size: 16px; }
  .btn-send { font-size: 20px; height: 54px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-logo { margin-left: 0; width: 130px; flex-basis: auto; }
  .footer-legal { font-size: 12.5px; }
  .thx { padding: 40px 0 36px; }
  .thx-title { font-size: 52px; letter-spacing: -1px; } .thx-sub { font-size: 21px; margin-bottom: 22px; } .thx-text { font-size: 20px; }
}
@media (max-width: 360px) {
  .thx-title { font-size: 44px; }
  .logo img { width: 112px; }
  .phone { gap: 6px; font-size: 14px; }
  .phone-ico { width: 34px; height: 34px; }
}
