/* =========================================================
   WK Marketing — arkusz stylów
   Paleta: biel / głęboki granat / stalowy błękit / ciepła cegła
   ========================================================= */

:root {
  --ink: #0E2340;
  --steel: #3E7CB1;
  --steel-light: #E7F0F8;
  --brick: #C1502E;
  --white: #FFFFFF;
  --paper: #FAFBFC;
  --line: #E6E9EF;
  --gray: #5C6474;
  --gray-light: #8B93A3;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 .5em 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; line-height: 1.3;
  color: var(--ink); letter-spacing: .02em; text-transform: uppercase; display: flex; flex-direction: column;
}
.brand .l1 { font-size: 13.5px; color: var(--gray); font-weight: 500; }
.brand .l2 { font-size: 15.5px; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--gray); position: relative; padding: 4px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brick); }
.main-nav a.admin-link {
  font-size: 12px; font-weight: 600; color: var(--gray-light); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; text-transform: uppercase; letter-spacing: .04em;
}
.main-nav a.admin-link:hover { color: var(--ink); border-color: var(--ink); }
.main-nav a.admin-link.active::after { display: none; }
.header-social { display: flex; gap: 12px; align-items: center; }
.header-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: all .2s;
}
.header-social a svg { width: 15px; height: 15px; }
.header-social a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .header-social { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg span {
  position: absolute; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle at 30% 30%, var(--steel-light), transparent 70%);
  animation: drift 18s ease-in-out infinite;
}
.hero-bg span:nth-child(1) { width: 480px; height: 480px; top: -180px; left: -120px; animation-delay: 0s; }
.hero-bg span:nth-child(2) { width: 360px; height: 360px; bottom: -140px; right: 6%; animation-delay: -6s; opacity: .4;}
.hero-bg span:nth-child(3) { width: 240px; height: 240px; top: 30%; right: 20%; animation-delay: -11s; opacity: .3;}
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-24px) scale(1.06); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.eyebrow {
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brick); font-weight: 600; margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; color: var(--ink); max-width: 12ch;
}
.hero-copy p.lead {
  font-size: 17px; color: var(--gray); max-width: 46ch; margin-top: 18px;
}
.hero-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.icon-badge {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); transition: all .2s; flex-shrink: 0;
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 3px; font-weight: 600; font-size: 14.5px;
  font-family: var(--font-body); cursor: pointer; border: 1px solid transparent; transition: all .2s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--brick); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------------- Vertical ticker (signature element) ---------------- */
.ticker-panel {
  position: relative; border: 1px solid var(--line); border-radius: 4px;
  background: var(--ink); overflow: hidden; min-height: 420px;
  cursor: pointer; transition: box-shadow .2s, border-color .2s;
}
.ticker-panel:hover { box-shadow: 0 0 0 3px rgba(62,124,177,.35); border-color: var(--steel); }
.ticker-panel .ticker-label {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7); background: var(--ink); padding: 20px 20px 26px;
}
.ticker-panel .ticker-label::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px;
  background: linear-gradient(to bottom, var(--ink), transparent);
}
.ticker-mask {
  position: absolute; inset: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}
.ticker-track {
  display: flex; flex-direction: column; gap: 0;
  animation: scrollUp 42s linear infinite;
  padding: 60px 0;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track li {
  list-style: none; padding: 15px 26px; font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,.88); border-top: 1px solid rgba(255,255,255,.08);
  white-space: normal;
}
.ticker-track li::before { content: '— '; color: var(--brick); font-weight: 700; }
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ticker-panel { min-height: 320px; }
}

/* ---------------- Section shared ---------------- */
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); }
.section-head p { color: var(--gray); font-size: 16px; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Services grid on homepage teaser */
.teaser-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.teaser-card { background: var(--white); padding: 30px 26px; }
.teaser-card .num { font-family: var(--font-display); color: var(--gray-light); font-size: 13px; margin-bottom: 10px; }
.teaser-card h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.teaser-card p { font-size: 14px; color: var(--gray); margin: 0; }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ---------------- Full services list page ---------------- */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row .num { font-family: var(--font-display); font-size: 15px; color: var(--brick); font-weight: 600; }
.service-row h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.service-row p { color: var(--gray); font-size: 15px; max-width: 68ch; }
.service-row .media { margin-top: 16px; max-width: 480px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------------- Formularz zapytania przy usłudze ---------------- */
.interest-btn {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 3px; font-weight: 600; font-size: 13.5px;
  font-family: var(--font-body); cursor: pointer; border: 1px solid var(--ink); background: var(--white); color: var(--ink);
  transition: all .2s;
}
.interest-btn:hover { background: var(--ink); color: var(--white); }
.inquiry-panel {
  display: none; margin-top: 20px; padding: 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; max-width: 640px;
}
.inquiry-panel.open { display: block; }
.inquiry-panel label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.inquiry-contact-input {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink); margin-bottom: 14px;
}
.inquiry-panel textarea {
  width: 100%; min-height: 100px; border: 1px solid var(--line); border-radius: 4px; padding: 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--white); resize: vertical;
}
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.other-scopes-panel {
  display: none; margin-top: 16px; padding: 16px; background: var(--white);
  border: 1px dashed var(--line); border-radius: 6px;
}
.other-scopes-panel.open { display: block; }
.other-scopes-panel .os-title { font-size: 12.5px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.other-scopes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.other-scopes-grid label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.other-scopes-grid input { accent-color: var(--ink); width: 15px; height: 15px; }
.inquiry-sent { margin-top: 14px; font-size: 13.5px; color: var(--steel); display: none; }
.inquiry-sent.show { display: block; }
.inquiry-sent .fallback-box { margin-top: 8px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--gray); white-space: pre-wrap; }

/* ---------------- About page ---------------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start;
}
.about-photo {
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line);
  position: sticky; top: 100px; order: 2;
}
.about-content { font-size: 16.5px; color: var(--ink); order: 1; }
.about-content p { margin-bottom: 1.2em; }
.about-content img, .about-content video { border-radius: 4px; margin: 24px 0; border: 1px solid var(--line); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 340px; order: 1; }
  .about-content { order: 2; }
}

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center;
}
.contact-photo { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.contact-info h2 { font-size: clamp(28px, 3.6vw, 40px); }
.contact-info > p { color: var(--gray); font-size: 16px; max-width: 46ch; margin-bottom: 32px; }
.contact-block { margin-bottom: 26px; }
.contact-block .label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-light); margin-bottom: 6px; font-weight: 600; }
.contact-block a.value { font-size: 19px; font-weight: 600; color: var(--ink); }
.contact-block a.value:hover { color: var(--brick); }
.social-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.social-grid a {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: all .2s;
}
.social-grid a svg { width: 20px; height: 20px; }
.social-grid a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { max-width: 380px; margin: 0 auto; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 30px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 20px; color: var(--white); font-weight: 700; margin-bottom: 22px; }
.footer-brand span { color: var(--brick); }
.footer-brand small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: rgba(255,255,255,.5); margin-left: 10px; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); transition: all .2s;
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { background: var(--brick); border-color: var(--brick); color: var(--white); }
.footer-contact { display: flex; justify-content: center; gap: 24px; margin-bottom: 26px; font-size: 14.5px; }
.footer-contact a:hover { color: var(--white); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-legal p { margin: 3px 0; }
.footer-legal strong { color: rgba(255,255,255,.7); }


/* Nagłówki H1 na podstronach zachowują typografię pierwotnego projektu. */
.section-head h1 { font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); }
.contact-info h1 { font-size: clamp(28px, 3.6vw, 40px); }

/* Pole antyspamowe pozostaje poza ekranem i nie zmienia układu formularza. */
.inquiry-panel .wk-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Polityka prywatności i prawdziwa strona błędu korzystają z istniejącego języka wizualnego. */
.privacy-page { max-width: 820px; }
.privacy-page .privacy-content { color: var(--gray); font-size: 16px; }
.privacy-page .privacy-content h2 { color: var(--ink); font-size: 22px; margin: 34px 0 10px; }
.privacy-page .privacy-content p { margin-bottom: 1em; }
.privacy-page .privacy-warning {
  margin: 22px 0 28px; padding: 16px 18px; border: 1px solid var(--brick);
  background: rgba(166, 74, 48, .06); color: var(--ink); border-radius: 4px;
}
.error-page { min-height: 58vh; display: grid; align-items: center; text-align: center; }
.error-page .error-code { font-family: var(--font-display); color: var(--brick); font-weight: 700; letter-spacing: .16em; }
.error-page h1 { font-size: clamp(34px, 5vw, 58px); margin: 12px auto; }
.error-page p { color: var(--gray); max-width: 560px; margin: 0 auto 28px; }
