* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 86px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--black);
  color: #fff;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

.brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--rail);
  background: var(--black);
  color: #fff;
}

.brand-rail a {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .22s ease, color .22s ease;
}

/* Tekst leci pionowo, ikona zostaje w poziomie — obrocona ikona wyglada jak blad. */
.brand-rail a span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.brand-rail a i {
  writing-mode: horizontal-tb;
  font-size: 20px;
  color: var(--red);
  transition: color .22s ease;
}

.brand-rail a:hover i,
.brand-rail a:focus-visible i {
  color: #fff;
}

.brand-rail a:hover,
.brand-rail a:focus-visible {
  background: var(--red);
  color: #fff;
}

.brand-rail a:focus-visible {
  outline-offset: -6px;
  outline-color: #fff;
}

.page-shell {
  margin-left: var(--rail);
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}

/* Wlasny, wezszy padding niz --pad sekcji: pasek musi pomiescic logo, pelne
   menu, telefon i CTA — przy szerokosci sekcji przycisk wypadal poza ekran. */
.header-inner {
  height: 100%;
  padding-inline: clamp(20px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  width: 200px;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-logo--text {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.03em;
}

/* margin-inline: auto centruje nawigacje w wolnej przestrzeni miedzy logo
   a blokiem telefon + CTA, zamiast dociskac ja do prawej. */
.main-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a,
.header-phone {
  position: relative;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s var(--ease);
}

/* Czerwona kreska tylko na hover/focus. Pozycje-kotwice (custom link) nie
   dostaja stanu aktywnego w spoczynku — na stronie glownej swiecilyby caly czas. */
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .current-menu-item:not(.menu-item-type-custom) > a::after,
.main-nav .current_page_item:not(.menu-item-type-custom) > a::after {
  transform: scaleX(1);
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  z-index: 5;
  min-width: 250px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  gap: 0;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  padding: 9px 18px;
  white-space: normal;
  font-size: 14px;
}

.main-nav .sub-menu a::after {
  display: none;
}

.main-nav .sub-menu a:hover {
  color: var(--red);
}

.header-phone {
  flex: 0 0 auto;
  margin-left: clamp(10px, 1.4vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.header-phone i {
  color: var(--red);
  font-size: 16px;
}

/* white-space:nowrap jest tu obowiazkowe — etykieta lamana na dwie linie
   rozpychala pigulke w kolo i wypychala CTA poza pasek naglowka. */
.button {
  min-height: 42px;
  border: 1px solid var(--red);
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
  background: var(--black);
  border-color: var(--black);
}

.button--dark {
  border-color: var(--black);
  background: var(--black);
}

.button--dark:hover {
  background: #fff;
  color: var(--black);
}

.button--line {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--black);
}

.button--line:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 8px;
}

/* Kontener nawigacji istnieje glownie po to, zeby ponizej 992 px zamienic sie
   w modal. Na desktopie display:contents wypisuje go z ukladu — nav, telefon
   i CTA zostaja bezposrednimi elementami flexa .header-inner. */
.nav-panel,
.nav-panel__scroll,
.nav-panel__actions {
  display: contents;
}

.nav-panel__bar {
  display: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 0;
  border-color: var(--red);
}

.menu-toggle__icon {
  position: relative;
  display: block;
  width: 26px;
  height: 16px;
  margin: 0 auto;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--black);
  transition: transform .28s var(--ease), opacity .18s ease, background .2s ease;
}

.menu-toggle__icon span:nth-child(1) {
  top: 0;
}

.menu-toggle__icon span:nth-child(2) {
  top: 7px;
}

.menu-toggle__icon span:nth-child(3) {
  top: 14px;
}

.menu-toggle:hover .menu-toggle__icon span {
  background: var(--red);
}

/* Stan otwarty trzymamy na przycisku w naglowku, bo modal ma wlasny X —
   burger i tak znika pod modalem, ale animacja gra przy zamykaniu. */
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.nav-close:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.nav-close__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

.nav-close__icon span {
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-close__icon span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-close__icon span:nth-child(2) {
  transform: rotate(-45deg);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.eyebrow--black {
  color: var(--black);
}

.display-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 3.8vw, 56px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .92;
}

.section-copy {
  max-width: 560px;
  margin: 0;
  color: var(--gray);
  font-size: 18px;
}

.section {
  padding-block: var(--section-y);
}

.section-heading {
  margin-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  align-items: end;
  gap: 72px;
}

.hero {
  min-height: calc(100svh - var(--header));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
}

.hero-panel {
  position: relative;
  z-index: 2;
  padding: clamp(62px, 8vh, 100px) var(--pad) 46px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  width: min(100%, 650px);
}

.hero .eyebrow {
  color: var(--black);
  margin-bottom: 34px;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .94;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title .accent,
.hero-title em {
  color: var(--red);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 36px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

/* Hero ma najwiekszy naglowek w serwisie — przyciski w bazowym rozmiarze
   gubily sie przy nim. Wlasna, wieksza skala tylko tutaj. */
.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-actions .button {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
}

.hero-actions .button:not(.button--line) {
  box-shadow: 0 14px 30px rgba(201, 26, 21, .3);
}

.hero-actions .button:not(.button--line):hover {
  box-shadow: 0 14px 30px rgba(12, 12, 12, .28);
}

.hero-actions .button--line {
  border-width: 2px;
  min-height: 52px;
  padding: 13px 26px;
}

.hero-media {
  min-height: calc(100svh - var(--header));
  background: #d7d7d7;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}

.metrics {
  background: var(--black);
  color: #fff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  min-height: 205px;
  padding: 42px clamp(28px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric + .metric {
  border-left: 1px solid #434343;
}

.metric strong {
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
}

.metric span {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.benefits {
  background: var(--mist);
}

.benefits .section-heading {
  max-width: 820px;
  margin: 0 auto 62px;
  display: block;
  text-align: center;
}

.benefits .section-copy {
  max-width: 650px;
  margin: 22px auto 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.benefit-card {
  position: relative;
  min-height: 390px;
  padding: 26px;
  border: 0;
  border-radius: var(--radius);
  background: #2a2a2a 58% center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.benefit-card::before,
.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.benefit-card::before {
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .74) 20%, rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, 0) 66%);
}

.benefit-card::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .88) 30%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .1) 85%);
  opacity: 0;
  transition: opacity .3s ease;
}

.benefit-card:hover::after,
.benefit-card:focus-visible::after {
  opacity: 1;
}

.benefit-card:focus-visible {
  outline-color: #fff;
}

.benefit-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.feature-icon,
.service-icon,
.trustindex-icon,
.badge-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 22px;
}

.module-number {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}

.benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  color: #fff;
  font-size: 27px;
  line-height: 1.1;
}

.benefit-card p {
  position: relative;
  z-index: 1;
  max-height: 0;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  opacity: 0;
  overflow: hidden;
  transition: max-height .32s ease, margin .32s ease, opacity .25s ease;
}

.benefit-card:hover p,
.benefit-card:focus-visible p {
  max-height: 160px;
  margin-top: 12px;
  opacity: 1;
}

.offer {
  background: #fff;
}

.offer .section-heading {
  max-width: 980px;
  display: block;
}

.offer .display-title,
.portfolio .display-title {
  white-space: nowrap;
}

.offer-intro {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--gray);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  border: 1px solid #deded9;
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color .22s ease;
}

.service-card:hover {
  border-color: rgba(201, 26, 21, .55);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-body {
  flex: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.service-label {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.service-heading {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 19px;
}

.service-card h3 {
  margin: 5px 0 0;
  font-size: 26px;
  line-height: 1.08;
}

.service-card ul {
  margin: 24px 0 34px;
  padding: 0;
  display: grid;
  gap: 13px;
}

.service-card li {
  list-style: none;
  color: var(--gray);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.service-card li i {
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
}

.service-card .button--line {
  align-self: flex-start;
  margin-top: auto;
}

.technology {
  background: var(--black);
  color: #fff;
}

.technology .section-heading {
  max-width: 900px;
  margin-bottom: 44px;
  display: block;
}

.technology .display-title em {
  color: var(--red);
  font-style: normal;
}

.technology .section-copy {
  max-width: 820px;
  margin-top: 24px;
  color: #bcbcbc;
}

.technology-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: stretch;
}

.technology-list {
  border-top: 1px solid #303030;
}

.technology-item {
  padding: 28px 0;
  border-bottom: 1px solid #303030;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
}

.technology-item b {
  color: var(--red);
  font-size: 14px;
  letter-spacing: .16em;
}

.technology-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.technology-item p {
  margin: 0;
  color: #a9a9a9;
}

.technology-visual {
  height: 100%;
  background: #202020;
  border-radius: var(--radius);
  overflow: hidden;
}

.technology-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.portfolio {
  background: #fff;
}

.portfolio-heading {
  margin-bottom: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.filter-button {
  min-height: 44px;
  padding: 7px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--gray);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  border: 1px solid #deded9;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .22s ease;
}

.project-card:hover {
  border-color: rgba(201, 26, 21, .6);
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 7.2;
  object-fit: cover;
}

.project-content {
  padding: 20px 22px 22px;
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 18px;
  align-items: end;
}

.project-type {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
}

.project-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}

.project-card:hover .project-link-icon {
  background: var(--black);
}

.portfolio-more {
  margin-top: 48px;
  display: flex;
  justify-content: flex-end;
}

.testimonials {
  background: var(--mist);
}

.testimonials .section-heading {
  grid-template-columns: 1fr;
  margin-bottom: 42px;
}

.testimonials .display-title {
  max-width: none;
  white-space: nowrap;
}

.trustindex-slot {
  min-height: 164px;
  border: 1px dashed #bdbdb7;
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  place-items: center;
}

.trustindex-slot.is-filled {
  min-height: 0;
  border: 0;
  background: transparent;
  display: block;
}

.trustindex-placeholder {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #4d4d4d;
  text-align: left;
}

.trustindex-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #e1e1dc;
  border-radius: 8px;
  color: var(--red);
  font-size: 23px;
}

.trustindex-placeholder strong,
.trustindex-placeholder span {
  display: block;
}

.trustindex-placeholder strong {
  color: var(--black);
  font-size: 19px;
}

.trustindex-placeholder span {
  margin-top: 4px;
  font-size: 14px;
}

.contact {
  padding-block: clamp(82px, 8vw, 124px);
  background: var(--red);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(54px, 8vw, 118px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header) + 42px);
}

.contact-copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(40px, 3.7vw, 56px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .96;
}

.contact-copy > p {
  max-width: 520px;
  margin: 34px 0 0;
  font-size: 18px;
}

.contact-list {
  margin: 46px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .55);
}

.contact-list li {
  list-style: none;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
}

.contact-list i {
  font-size: 21px;
}

.contact-list small,
.contact-list strong {
  display: block;
}

.contact-list small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: 20px;
}

.contact-form {
  padding: clamp(30px, 4vw, 54px);
  background: #fff;
  color: var(--black);
  border-radius: var(--radius);
}

.contact-form h3 {
  margin: 0 0 34px;
  font-size: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label,
.contact-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea,
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #9b9b9b;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--black);
  padding: 15px 16px;
}

.form-field input,
.form-field select,
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select {
  min-height: 54px;
}

.form-field textarea,
.contact-form textarea {
  height: 120px;
  max-height: 120px;
  resize: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}

.contact-form .button,
.contact-form input[type="submit"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--red);
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.contact-form input[type="submit"]:hover {
  background: var(--black);
  border-color: var(--black);
}

.form-note {
  margin: 13px 0 0;
  color: #777;
  font-size: 11px;
  text-align: center;
}

/* Zgoda RODO. Etykieta checkboxa to ten sam <label> co przy polach formularza,
   wiec dziedziczy uppercase/900/12px — tutaj wraca do normalnego zdania. */
.form-consent {
  margin-bottom: 20px;
}

.contact-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.contact-form .wpcf7-acceptance label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  color: var(--gray);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  cursor: pointer;
}

.contact-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  min-height: 0;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--red);
}

.contact-form .wpcf7-acceptance a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact Form 7 — neutralizacja domyslnych marginesow wtyczki. */
.contact-form .wpcf7-form p {
  margin: 0 0 20px;
}

.contact-form .wpcf7-spinner {
  margin: 10px auto 0;
  display: block;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.contact-form .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: var(--radius-sm);
  border-width: 1px !important;
  font-size: 14px;
  font-weight: 700;
}

.contact-form .wpcf7 form.sent .wpcf7-response-output {
  border-color: #07752c !important;
  color: #07752c;
}

.site-footer {
  padding: 72px 0 28px;
  background: var(--black);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .72fr 1fr 1.08fr;
  gap: clamp(34px, 5vw, 72px);
}

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  width: 230px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.footer-company {
  margin-top: 26px;
  color: #9d9d9d;
  display: grid;
  gap: 5px;
  font-size: 14px;
}

.footer-company strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 17px;
}

.footer-column h3,
.footer-contact h3 {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  color: #bdbdbd;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.footer-badges {
  display: grid;
}

.contact-badge {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  color: #bdbdbd;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.contact-badge:last-child {
  border-bottom: 0;
}

.contact-badge:hover {
  color: #fff;
}

.contact-badge--main {
  padding-top: 0;
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.badge-icon {
  justify-self: start;
  color: var(--red);
  font-size: 15px;
}

.contact-badge--main .badge-icon {
  font-size: 17px;
}

.footer-bottom {
  margin-top: 64px;
  padding: 24px 72px 0 0;
  border-top: 1px solid var(--line-dark);
  color: #777;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.footer-bottom a {
  color: #bdbdbd;
  transition: color .2s ease;
}

.footer-bottom a:hover {
  color: var(--red);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--black);
}
