/* Averquon — wspólne tokeny i elementy. Źródło: Averquon Brand Book 1.0 (s. 6–10, 16). */

:root {
  /* Paleta z brandbooka, s. 6 */
  --navy: #0E131D;       /* tekst / kontrast */
  --deep: #16686B;       /* CTA / ikony */
  --deep-hover: #10585A;
  --teal: #348587;       /* akcent, duże nagłówki */
  --soft: #669FA1;       /* linie / dodatki */
  --mint: #ADCFCD;       /* grafika / tło */
  --cloud: #F4F8F6;      /* karty / sekcje */
  --ivory: #FEFEFC;      /* tło główne */
  --red: #C94F45;        /* tylko alert / zaległości */

  /* Pochodne — wyłącznie do czytelności (AA) i cienkich linii */
  --ink-2: #3F4957;      /* tekst pomocniczy, 9,6:1 na ivory */
  --on-deep: #D6E8E6;    /* tekst pomocniczy na Deep Teal, 5,2:1 */
  --line: #DDE9E6;
  --field: #5C9496;      /* obramowanie pól, ≥3:1 na bieli */
  --tint: #E3F0EE;

  --font: "Montserrat", Arial, sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
  --wrap: 1240px;
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(14, 19, 29, .05), 0 18px 40px -24px rgba(14, 19, 29, .22);
  --head-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
button, input, textarea, select { font: inherit; color: inherit; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--mint); }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--navy); color: var(--ivory);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 136px); }

.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typografia (s. 8) ---------- */
.h1 { font-size: clamp(2.125rem, 1.05rem + 4.6vw, 4.75rem); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; line-height: 1.55; }

.on-dark { color: var(--ivory); }
.on-dark .muted, .on-dark .lead { color: var(--on-deep); }
.on-dark .eyebrow { color: var(--on-deep); }

/* Znacznik lokalny: „Tarnów i okolice” */
.loc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--tint); color: var(--navy);
  font-size: .9375rem; font-weight: 600; line-height: 1.3;
}
.loc .i { width: 18px; height: 18px; color: var(--deep); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--deep); color: #fff;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s ease;
}
.btn:hover { background: var(--deep-hover); }
.btn .i { width: 20px; height: 20px; transition: transform .2s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-light { background: var(--ivory); color: var(--deep); }
.btn-light:hover { background: var(--cloud); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--deep); font-weight: 600; text-decoration: none;
  background-image: linear-gradient(var(--mint), var(--mint));
  background-size: 100% 2px; background-position: 0 calc(100% - 8px); background-repeat: no-repeat;
}
.link-arrow:hover { background-image: linear-gradient(var(--deep), var(--deep)); }
.link-arrow .i { width: 18px; height: 18px; }
.on-dark .link-arrow { color: var(--ivory); background-image: linear-gradient(var(--soft), var(--soft)); }

/* ---------- Nagłówek i nawigacja ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory); border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.is-scrolled, .site-head.nav-open { border-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }
.brand { display: block; border-radius: 8px; }
.brand img { width: 150px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--mint); border-radius: 999px;
  background: transparent; font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
}
.site-head.nav-open .nav { display: block; }
.nav li a {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; text-decoration: none;
}
.nav .btn { margin-top: 20px; width: 100%; }

@media (min-width: 900px) {
  .brand img { width: 164px; }
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; align-items: center; gap: 36px; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: 28px; }
  .nav li a { min-height: 44px; border: 0; font-size: .9375rem; }
  .nav li a:hover { color: var(--deep); }
  .nav .btn { margin: 0; width: auto; }
}

/* ---------- Listy z ptaszkiem ---------- */
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; }
.checks .i { width: 20px; height: 20px; margin-top: 4px; color: var(--deep); stroke-width: 2.5; }
.on-dark .checks .i { color: var(--mint); }

/* ---------- Formularz ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1.5px solid var(--field); border-radius: var(--r-sm); background: #fff;
  font-size: 1.0625rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 128px; resize: vertical; }
.input::placeholder { color: #6B7480; }
.input:hover { border-color: var(--deep); }
.input:focus-visible { outline: none; border-color: var(--deep); box-shadow: 0 0 0 4px rgba(52, 133, 135, .35); }
.form .btn { width: 100%; }
@media (min-width: 600px) { .form .btn { width: auto; justify-self: start; } }
.form-note { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.form-status {
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--cloud); border: 1.5px solid var(--mint); color: var(--navy);
  font-size: .9375rem; font-weight: 500;
}

/* ---------- Stopka ---------- */
.site-foot { background: var(--cloud); border-top: 1px solid var(--line); padding-block: 56px 32px; }
.foot-grid { display: grid; gap: 28px; align-items: start; }
.foot-grid .loc { justify-self: start; }
.foot-brand img { width: 150px; }
.foot-brand p { margin-top: 16px; max-width: 32ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--deep); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--ink-2);
}
.foot-bottom a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.3fr auto auto; gap: 56px; }
}

/* ---------- Jeden moment ruchu: wejście pierwszego ekranu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
