/* ==========================================================================
   HS CONSTRUCTION — style sekcji (nagłówek, hero, usługi, proces, FAQ, stopka)
   Klasy nadawane kontenerom/widgetom w Elementorze (Zaawansowane → Klasy CSS)
   oraz markupowi renderowanemu w mu-plugins/hs-site.php.
   Tokeny: tokens.css
   ========================================================================== */

/* ==========================================================================
   0. NADPISANIA ELEMENTORA
   Elementor generuje dla każdego kontenera regułę o specyficzności dwóch klas
   (.elementor-11 .elementor-element-xxx), która wygrywa z naszymi pojedynczymi
   klasami. Dlatego layout siatek i kolory nagłówków w sekcjach na ciemnym tle
   muszą być tu wzmocnione — inaczej tekst byłby czarny na czarnym.
   ========================================================================== */

/* Kontener Elementora ustawia display zmienną --display; dla splitu wymuszamy grid */
.hs-split { display: grid !important; }

/* Nagłówki i tekst na ciemnym tle.
   Elementor wypisuje .elementor-widget-heading .elementor-heading-title (0,2,0)
   w arkuszu ładowanym po naszym, więc override musi mieć trzy klasy. */
.hs-hero .elementor-widget-heading .elementor-heading-title,
.hs-page-hero .elementor-widget-heading .elementor-heading-title,
.hs-section--ink .elementor-widget-heading .elementor-heading-title,
.hs-cta-band .elementor-widget-heading .elementor-heading-title {
  color: var(--hs-white);
}
.hs-hero .elementor-widget-text-editor,
.hs-page-hero .elementor-widget-text-editor,
.hs-section--ink .elementor-widget-text-editor {
  color: rgba(255, 255, 255, 0.75);
}
.hs-hero .elementor-widget-text-editor a,
.hs-page-hero .elementor-widget-text-editor a,
.hs-section--ink a:not(.hs-btn) { color: var(--hs-accent); }

/* Widget shortcode nie może zawężać zawartości (formularz, FAQ, kafle kontaktu) */
.elementor-widget-shortcode, .elementor-widget-html { width: 100%; }

/* ==========================================================================
   1. TOPBAR + NAGŁÓWEK
   ========================================================================== */

.hs-topbar {
  background: var(--hs-ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.hs-topbar__inner {
  max-width: var(--hs-container);
  margin: 0 auto;
  padding: 12px var(--hs-gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hs-topbar a { color: rgba(255, 255, 255, 0.7); }
.hs-topbar a:hover { color: var(--hs-accent); }
.hs-topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.hs-topbar__item svg { width: 16px; height: 16px; flex: none; color: var(--hs-accent); }
.hs-topbar__sep { margin-left: auto; }

.hs-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--hs-white);
  border-bottom: 1px solid var(--hs-line);
  transition: box-shadow 0.3s ease;
}
.hs-header.is-stuck { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.45); }
.hs-header__inner {
  max-width: var(--hs-container);
  margin: 0 auto;
  padding: 18px var(--hs-gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.hs-logo {
  font: 700 1.35rem/1 'DM Sans', sans-serif;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--hs-ink);
  white-space: nowrap;
}
.hs-logo:hover { color: var(--hs-accent); }
.hs-logo b { color: var(--hs-accent); font-weight: 700; }

/* Menu desktop */
.hs-nav { margin-left: auto; }
.hs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
.hs-nav li { position: relative; }
.hs-nav a {
  font: 600 0.95rem/1 'DM Sans', sans-serif;
  color: var(--hs-ink);
  white-space: nowrap;
  padding-block: 10px;
  display: inline-block;
}
.hs-nav a:hover,
.hs-nav .current-menu-item > a,
.hs-nav .current-page-ancestor > a { color: var(--hs-accent); }

/* Rozwijane „Oferta" */
.hs-nav .menu-item-has-children > a::after {
  content: "\25BE";
  font-size: 0.7em;
  margin-left: 7px;
  color: var(--hs-accent);
}
.hs-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 290px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--hs-white);
  border: 1px solid var(--hs-line);
  border-top: 3px solid var(--hs-accent);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.5);
}
.hs-nav li:hover > .sub-menu,
.hs-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hs-nav .sub-menu a { display: block; padding: 13px 22px; font-weight: 500; }
.hs-nav .sub-menu a:hover { background: var(--hs-grey); }

.hs-header__cta { flex: none; }

/* Hamburger.
   Motyw Hello ma w resecie `button { border/color: #c36 }` z podświetleniem tła
   na hover/focus — stąd jawne wyzerowanie wszystkich stanów. */
.hs-burger,
.hs-burger:hover,
.hs-burger:focus,
.hs-burger:active,
.hs-burger[aria-expanded="true"] {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius);
  background: var(--hs-white);
  color: var(--hs-ink);
  cursor: pointer;
  position: relative;
}
.hs-burger span,
.hs-burger span::before,
.hs-burger span::after {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  background: var(--hs-ink);
  transition: transform 0.3s var(--hs-ease), opacity 0.2s;
}
.hs-burger span { top: 23px; }
.hs-burger span::before { content: ""; left: 0; top: -7px; }
.hs-burger span::after  { content: ""; left: 0; top: 7px; }
.hs-burger[aria-expanded="true"] span { background: transparent; }
.hs-burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.hs-burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Panel mobilny */
.hs-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--hs-ink);
  padding: 96px 24px 40px;
  overflow-y: auto;
}
.hs-mobile-nav.is-open { display: block; }
.hs-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.hs-mobile-nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--hs-line-dark);
  color: var(--hs-white);
  font: 700 1.35rem/1.2 'DM Sans', sans-serif;
}
.hs-mobile-nav a:hover,
.hs-mobile-nav .current-menu-item > a { color: var(--hs-accent); }
.hs-mobile-nav .sub-menu { padding-left: 16px; }
.hs-mobile-nav .sub-menu a { font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.hs-mobile-nav .hs-btn { margin-top: 28px; width: 100%; }
body.hs-nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .hs-nav, .hs-header__cta { display: none; }
  .hs-burger,
  .hs-burger:hover,
  .hs-burger:focus,
  .hs-burger:active,
  .hs-burger[aria-expanded="true"] { display: block; }
  .hs-topbar__item--address { display: none; }
}
@media (max-width: 767px) {
  .hs-topbar__inner { gap: 16px; font-size: 0.8rem; justify-content: center; }
  .hs-topbar__sep { margin-left: 0; }
  .hs-header__inner { padding: 14px 20px; }
  .hs-logo { font-size: 1.1rem; }
}

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hs-hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.72) 55%, rgba(20, 20, 20, 0.45) 100%),
    url('../img/hero-architektura.webp') center / cover no-repeat,
    var(--hs-ink);
  color: var(--hs-white);
  overflow: hidden;
}
.hs-hero .hs-kicker { color: var(--hs-accent); }
.hs-hero h1, .hs-hero .hs-hero-title { color: var(--hs-white); }
.hs-hero-title .accent { color: var(--hs-accent); }
.hs-hero-sub,
.hs-hero-sub p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0;
}
.hs-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Pasek faktów pod hero (na krawędzi sekcji) */
.hs-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hs-line-dark);
  margin-top: 12px;
}
.hs-hero-facts > div {
  flex: 1 1 200px;
  padding: 24px 28px 0 0;
}
.hs-hero-facts strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hs-white);
  line-height: 1.1;
}
.hs-hero-facts span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Hero podstron (breadcrumb + tytuł) */
.hs-page-hero {
  background:
    linear-gradient(rgba(20, 20, 20, 0.86), rgba(20, 20, 20, 0.86)),
    url('../img/hero-architektura.webp') center / cover no-repeat,
    var(--hs-ink);
  color: var(--hs-white);
}
/* Nagłówki podstron są dłuższe od hasła na stronie głównej (pełne frazy SEO),
   więc display 7.5rem z Gacora zajmowałby cztery wiersze — skalujemy w dół. */
.hs-page-hero h1,
.hs-page-hero .elementor-widget-heading .elementor-heading-title {
  color: var(--hs-white);
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  max-width: 20ch;
}
.hs-page-hero p { color: rgba(255, 255, 255, 0.72); max-width: 640px; }

.hs-crumbs {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hs-crumbs a { color: rgba(255, 255, 255, 0.55); }
.hs-crumbs a:hover { color: var(--hs-accent); }
.hs-crumbs span[aria-current] { color: var(--hs-accent); }

@media (max-width: 767px) {
  .hs-hero { background-position: 70% center; }
  .hs-hero__actions .hs-btn,
  .hs-hero__actions .elementor-button { width: 100%; }
  .hs-hero-facts > div { padding-right: 16px; }
  .hs-hero-facts strong { font-size: 1.5rem; }
}

/* ==========================================================================
   3. KARTY USŁUG
   ========================================================================== */

.hs-service-card {
  display: flex;
  flex-direction: column;
  background: var(--hs-white);
  border: 1px solid var(--hs-line);
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s var(--hs-ease);
}
.hs-section--grey .hs-service-card { border-color: #DCDCDC; }
.hs-service-card__media { position: relative; overflow: hidden; }
.hs-service-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--hs-ease);
}
.hs-service-card__num {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--hs-accent);
  color: var(--hs-white);
  font: 700 0.9rem/1 'DM Sans', sans-serif;
  letter-spacing: 2px;
  padding: 14px 18px;
}
.hs-service-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 32px 28px;
}
.hs-service-card h3 { font-size: 1.5rem; line-height: 1.25; }
.hs-service-card p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--hs-body); }
.hs-service-card .hs-link { margin-top: auto; padding-top: 8px; }

@media (hover: hover) {
  .hs-service-card:hover { border-color: var(--hs-accent); transform: translateY(-6px); }
  .hs-service-card:hover .hs-service-card__media img { transform: scale(1.06); }
}

/* ==========================================================================
   4. BLOK „O FIRMIE" / SPLIT TEKST + OBRAZ
   ========================================================================== */

.hs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: 100%; --display: grid; }
.hs-split--reverse .hs-split__media { order: -1; }
.hs-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hs-split__body { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

@media (max-width: 1024px) { .hs-split { gap: 40px; } }
@media (max-width: 767px)  { .hs-split { grid-template-columns: 1fr; } .hs-split--reverse .hs-split__media { order: 0; } }

/* Lista z „ptaszkami" */
.hs-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hs-check li {
  position: relative;
  padding-left: 36px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--hs-body);
}
.hs-check li strong { color: var(--hs-ink); font-weight: 700; }
.hs-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--hs-accent);
  color: var(--hs-white);
  font-size: 0.75rem;
  font-weight: 700;
}
.hs-section--ink .hs-check li { color: rgba(255, 255, 255, 0.72); }
.hs-section--ink .hs-check li strong { color: var(--hs-white); }

/* ==========================================================================
   5. PASEK CTA
   ========================================================================== */

.hs-cta-band {
  background:
    linear-gradient(rgba(20, 20, 20, 0.9), rgba(20, 20, 20, 0.9)),
    url('../img/proces-audyt.webp') center / cover no-repeat,
    var(--hs-ink);
  color: var(--hs-white);
}
.hs-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}
.hs-cta-band h2 { color: var(--hs-white); max-width: 20ch; }
.hs-cta-band p { color: rgba(255, 255, 255, 0.7); max-width: 46ch; margin: 12px 0 0; }

/* ==========================================================================
   6. LICZNIKI / STATYSTYKI
   ========================================================================== */

.hs-stat { text-align: left; }
.hs-stat__num {
  display: block;
  font: 700 4rem/1 'DM Sans', sans-serif;
  color: var(--hs-ink);
  font-variant-numeric: tabular-nums;
}
.hs-stat__num .u { color: var(--hs-accent); }
.hs-stat__label {
  display: block;
  margin-top: 10px;
  font: 600 0.85rem/1.4 'DM Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hs-body);
}
.hs-stat__desc { margin: 10px 0 0; font-size: 1rem; line-height: 1.5; }
.hs-section--ink .hs-stat__num { color: var(--hs-white); }
.hs-section--ink .hs-stat__label { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 767px) { .hs-stat__num { font-size: 3rem; } }

/* ==========================================================================
   7. PROCES WSPÓŁPRACY
   ========================================================================== */

/* Linia rysowana przy scrollu — klasę .is-drawn nadaje scroll-effects.js */
.hs-process-line {
  height: 2px;
  width: 100%;
  background: var(--hs-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--hs-ease);
}
.hs-process-line.is-drawn { transform: scaleX(1); }

/* Scrollspy (kotwice sekcji na podstronach) */
.hs-spy-link {
  display: block;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--hs-line);
  font: 600 0.95rem/1.4 'DM Sans', sans-serif;
  color: var(--hs-body);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hs-spy-link.is-active { color: var(--hs-accent); border-left-color: var(--hs-accent); }
.hs-sticky { position: sticky; top: 110px; }

.hs-step { display: flex; flex-direction: column; gap: 12px; padding-right: 24px; }
.hs-step__num {
  font: 700 3.5rem/1 'DM Sans', sans-serif;
  color: var(--hs-accent);
}
.hs-step h3 { font-size: 1.5rem; }
.hs-step p { margin: 0; font-size: 1rem; line-height: 1.6; }

@media (max-width: 767px) { .hs-step { padding-right: 0; } .hs-step__num { font-size: 2.5rem; } }

/* ==========================================================================
   8. SEKTORY („dla kogo pracujemy")
   ========================================================================== */

.hs-sector {
  padding: 30px 24px;
  background: var(--hs-white);
  border: 1px solid var(--hs-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hs-sector h3 { font-size: 1.2rem; }
.hs-sector p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.hs-sector__icon { width: 34px; height: 34px; color: var(--hs-accent); }
@media (hover: hover) {
  .hs-sector:hover { background: var(--hs-ink); border-color: var(--hs-ink); }
  .hs-sector:hover h3 { color: var(--hs-white); }
  .hs-sector:hover p { color: rgba(255, 255, 255, 0.7); }
}

/* ==========================================================================
   9. FAQ (natywny <details> — bez JS, dostępny z klawiatury)
   ========================================================================== */

.hs-faq { width: 100%; border-top: 1px solid var(--hs-line); }
.hs-faq details { border-bottom: 1px solid var(--hs-line); }
.hs-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font: 700 1.25rem/1.4 'DM Sans', sans-serif;
  color: var(--hs-ink);
  transition: color 0.25s ease;
}
.hs-faq summary::-webkit-details-marker { display: none; }
.hs-faq summary::after {
  content: "+";
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--hs-grey);
  color: var(--hs-ink);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.hs-faq summary:hover { color: var(--hs-accent); }
.hs-faq details[open] summary { color: var(--hs-accent); }
.hs-faq details[open] summary::after { content: "\2212"; background: var(--hs-accent); color: var(--hs-white); }
.hs-faq details > div { padding: 0 70px 26px 0; font-size: 1.05rem; line-height: 1.65; }
.hs-faq details > div p { margin: 0 0 12px; }
.hs-faq details > div p:last-child { margin-bottom: 0; }

.hs-section--grey .hs-faq summary::after { background: var(--hs-white); }

@media (max-width: 767px) {
  .hs-faq summary { font-size: 1.05rem; padding: 20px 0; gap: 14px; }
  .hs-faq summary::after { width: 32px; height: 32px; }
  .hs-faq details > div { padding-right: 0; }
}

/* ==========================================================================
   10. PODSTRONA USŁUGI — blok problemu i korzyści
   ========================================================================== */

.hs-problem {
  border-left: 4px solid var(--hs-accent);
  padding: 8px 0 8px 32px;
}
.hs-problem p {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--hs-ink);
  font-weight: 500;
}
.hs-problem p + p { margin-top: 14px; font-size: 1.1rem; font-weight: 400; color: var(--hs-body); }
@media (max-width: 767px) {
  .hs-problem { padding-left: 20px; }
  .hs-problem p { font-size: 1.1rem; }
  .hs-problem p + p { font-size: 1rem; }
}

.hs-benefit {
  padding: 28px 26px;
  background: var(--hs-white);
  border: 1px solid var(--hs-line);
  border-top: 3px solid var(--hs-accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-benefit h3 { font-size: 1.2rem; }
.hs-benefit p { margin: 0; font-size: 1rem; line-height: 1.6; }

/* Zdjęcia w sekcjach */
.hs-img { margin: 0; width: 100%; }
.hs-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hs-img--wide img { aspect-ratio: 16 / 7; }
.hs-img figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--hs-body);
}
.hs-section--ink .hs-img figcaption { color: rgba(255, 255, 255, 0.5); }

/* Kotwice sekcji (offset pod sticky header) */
.hs-anchor { scroll-margin-top: 110px; }

/* ==========================================================================
   11. KONTAKT — kafle danych
   ========================================================================== */

.hs-contact-card {
  padding: 34px 28px;
  background: var(--hs-white);
  border: 1px solid var(--hs-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.hs-contact-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--hs-accent);
  color: var(--hs-white);
}
.hs-contact-card__icon svg { width: 24px; height: 24px; }
.hs-contact-card h3 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hs-body);
  font-weight: 600;
}
.hs-contact-card p, .hs-contact-card a {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--hs-ink);
}
.hs-contact-card a:hover { color: var(--hs-accent); }
.hs-contact-card small { font-size: 0.95rem; font-weight: 400; color: var(--hs-body); }

.hs-map { width: 100%; border: 1px solid var(--hs-line); }
.hs-map iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 767px) { .hs-map iframe { height: 300px; } }

/* ==========================================================================
   12. FORMULARZ CONTACT FORM 7
   ========================================================================== */

.wpcf7 { width: 100%; }
.hs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hs-form-grid > p { margin: 0; }
.hs-form-grid > .hs-form-full { grid-column: 1 / -1; }
@media (max-width: 767px) { .hs-form-grid { grid-template-columns: 1fr; } }

.wpcf7 label {
  display: block;
  font: 600 0.85rem/1.4 'DM Sans', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hs-ink);
  margin-bottom: 8px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius);
  background: var(--hs-white);
  font: 400 1rem/1.4 'DM Sans', sans-serif;
  color: var(--hs-ink);
  transition: border-color 0.25s ease;
}
.hs-section--grey .wpcf7 input[type="text"],
.hs-section--grey .wpcf7 input[type="email"],
.hs-section--grey .wpcf7 input[type="tel"],
.hs-section--grey .wpcf7 select,
.hs-section--grey .wpcf7 textarea { border-color: #DCDCDC; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hs-accent) 50%), linear-gradient(135deg, var(--hs-accent) 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 46px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--hs-accent);
  box-shadow: inset 0 0 0 1px var(--hs-accent);
}
.wpcf7 .wpcf7-acceptance label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--hs-body);
}
.wpcf7 input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--hs-accent); margin-top: 2px; }
.wpcf7-not-valid-tip { color: #C0392B; font-size: 0.85rem; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--hs-line);
  border-left: 3px solid var(--hs-accent);
  font-size: 0.95rem;
}

/* ==========================================================================
   13. STOPKA
   ========================================================================== */

/* Header/footer motywu Hello wyłączone filtrem w hs-site.php — poniższe
   jako zabezpieczenie, gdyby motyw został podmieniony. */
.site-header, .site-footer, footer.dynamic-footer { display: none; }

.hs-footer {
  background: var(--hs-ink);
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
}
.hs-footer__inner { max-width: var(--hs-container); margin: 0 auto; padding: 80px var(--hs-gutter) 28px; }
.hs-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; }
.hs-footer__logo {
  display: block;
  color: var(--hs-white);
  font: 700 1.35rem/1 'DM Sans', sans-serif;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hs-footer__logo b { color: var(--hs-accent); }
.hs-footer__brand p { margin: 0 0 20px; max-width: 380px; }
.hs-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--hs-accent);
  color: var(--hs-accent);
  font: 600 0.8rem/1 'DM Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hs-footer__col { display: flex; flex-direction: column; gap: 12px; }
.hs-footer__col h4 {
  color: var(--hs-white);
  font: 600 0.85rem/1 'DM Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hs-footer__col a, .hs-footer__col span { color: rgba(255, 255, 255, 0.65); }
.hs-footer__col a:hover { color: var(--hs-accent); }
.hs-footer__phone {
  color: var(--hs-white) !important;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
}
.hs-footer__phone:hover { color: var(--hs-accent) !important; }
.hs-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--hs-line-dark);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) { .hs-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 767px) {
  .hs-footer__inner { padding: 56px 20px 24px; }
  .hs-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .hs-footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   14. TREŚĆ CIĄGŁA (polityka prywatności, strony tekstowe)
   ========================================================================== */

.hs-prose { max-width: 820px; }
.hs-prose h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--hs-line);
}
.hs-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hs-prose p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.7; }
@media (max-width: 767px) { .hs-prose h2 { font-size: 1.4rem; margin-top: 32px; } }

/* ==========================================================================
   15. DROBIAZGI
   ========================================================================== */

/* FAB nie może zasłaniać wysyłki formularza na mobile */
@media (max-width: 767px) { .wpcf7 { padding-bottom: 72px; } }

/* Elementor: kontenery „boxed" domyślnie 1140 px — zrównujemy z resztą */
.e-con { --container-max-width: var(--hs-container); }

/* Fokus widoczny wszędzie (dostępność) */
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--hs-accent);
  outline-offset: 2px;
}
