:root {
  --blue: #004571;
  --text: #383838;
  --mid-blue: #4f7e9d;
  --pale-blue: #8eacc0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; }
p, h1, h2, h3 { margin: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(260px, 38.55vw, 740px);
  overflow: hidden;
  background: var(--blue);
}
.hero-carousel__viewport,
.hero-carousel__slides,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Widoczne strzałki i kropki są częścią referencyjnych slajdów.
   Poniższe elementy są przezroczystymi, klikalnymi obszarami na nich. */
.hero-carousel__nav,
.hero-carousel__dots button {
  position: absolute;
  z-index: 5;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-carousel__nav {
  top: 35%;
  width: 72px;
  height: 30%;
}
.hero-carousel__nav--prev { left: 0; }
.hero-carousel__nav--next { right: 0; }
.hero-carousel__dots {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 18px;
  display: flex;
  width: 68px;
  height: 28px;
  justify-content: space-between;
  align-items: center;
}
.hero-carousel__dots button {
  position: relative;
  width: 20px;
  height: 28px;
}
.hero-carousel__nav:focus-visible,
.hero-carousel__dots button:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: -3px;
}

.about,
.why,
.contact,
.footer { position: relative; }

.about {
  height: 402px;
  background: #fff;
}
.about::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -20px;
  width: 40px;
  height: 40px;
  background: var(--mid-blue);
  transform: translateX(-50%) rotate(45deg);
}
.about__inner { position: relative; height: 100%; }
.about h2 {
  position: absolute;
  top: 26px;
  left: 6px;
  width: calc(100% - 6px);
  text-align: center;
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -1.20px;
  font-weight: 700;
  color: var(--text);
}
.heading-rule {
  position: absolute;
  top: 90px;
  left: 50%;
  width: 30px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--blue);
}
.about__lead {
  position: absolute;
  top: 93px;
  left: 8px;
  width: calc(100% - 8px);
  text-align: center;
  color: #606060;
  font-size: 10px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: .05px;
}
.about__copy {
  position: absolute;
  top: 133px;
  left: 27px;
  right: 27px;
  color: #555;
  font-size: 7.8px;
  line-height: 14px;
  font-weight: 400;
}
.about__copy p { margin: 0 0 13px; }
.about__copy p:nth-child(2) { margin-bottom: 13px; }
.about__copy p:nth-child(3) { margin-bottom: 13px; }

.why {
  height: 627px;
  background: var(--blue);
  color: #fff;
}
.why::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -20px;
  width: 40px;
  height: 40px;
  background: var(--pale-blue);
  transform: translateX(-50%) rotate(45deg);
}
.why__inner { position: relative; height: 100%; }
.why h2 {
  position: absolute;
  top: 58px;
  left: 6px;
  width: calc(100% - 6px);
  text-align: center;
  font-size: 25px;
  line-height: 31px;
  letter-spacing: .30px;
  font-weight: 700;
}
.why__lead {
  position: absolute;
  top: 101px;
  left: 10px;
  width: calc(100% - 10px);
  text-align: center;
  font-size: 10px;
  line-height: 14px;
  font-weight: 400;
}
.feature {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
}
.feature img {
  position: absolute;
  left: 172px;
  width: 67px;
  height: 67px;
}
.feature h3 {
  position: absolute;
  left: 22px;
  width: calc(100% - 22px);
  font-size: 12.3px;
  line-height: 18px;
  font-weight: 700;
}
.feature p {
  position: absolute;
  left: 41px;
  right: 19px;
  font-size: 8.3px;
  line-height: 17px;
  font-weight: 400;
}
.feature--1 { top: 125px; height: 144px; }
.feature--1 img { top: 0; }
.feature--1 h3 { top: 76px; }
.feature--1 p { top: 107px; }
.feature--2 { top: 274px; height: 144px; }
.feature--2 img { top: 0; }
.feature--2 h3 { top: 78px; }
.feature--2 p { top: 109px; }
.feature--3 { top: 424px; height: 110px; }
.feature--3 img { top: 0; }
.feature--3 h3 { top: 78px; }
.feature--3 p { top: 109px; }

.contact {
  height: 725px;
  background: #fff;
  color: var(--text);
}
.contact__inner { position: relative; height: 100%; }
.contact h2 {
  position: absolute;
  top: 53px;
  left: 9px;
  width: calc(100% - 9px);
  text-align: center;
  font-size: 27px;
  line-height: 34px;
  letter-spacing: .25px;
  font-weight: 700;
}
.heading-rule--contact { top: 96px; }
.contact__lead {
  position: absolute;
  top: 106px;
  left: 10px;
  width: calc(100% - 10px);
  text-align: center;
  font-size: 9px;
  line-height: 14px;
  color: #555;
}
.contact-form {
  position: absolute;
  top: 142px;
  left: 23px;
  width: 354px;
  height: 175px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 354px;
  margin: 0 0 8px 0;
  padding: 1px 4px;
  border: 1px solid #c1c1c1;
  border-radius: 0;
  outline: none;
  background: #dbdbdb;
  color: #777;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 7px;
  font-weight: 300;
  line-height: 14px;
  box-shadow: none;
}
.contact-form input { height: 17px; }
.contact-form textarea {
  height: 68px;
  resize: none;
  padding-top: 2px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #777; opacity: .72; }
.contact-form button {
  display: block;
  width: 45px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: var(--blue);
  color: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 6px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
}
.contact-block {
  position: absolute;
  left: 0;
  width: 100%;
  color: var(--text);
}
.contact-block img { position: absolute; left: 10px; }
.contact-block h3 {
  position: absolute;
  left: 18px;
  font-size: 10.5px;
  line-height: 12px;
  font-weight: 700;
}
.contact-block p {
  position: absolute;
  left: 18px;
  font-size: 8px;
  line-height: 10px;
  font-weight: 400;
}
.contact-block--address { top: 330px; height: 190px; }
.contact-block--address img { top: 0; width: 58px; height: 62px; }
.contact-block--address h3 { top: 62px; }
.contact-block--address p:nth-of-type(1) { top: 90px; }
.contact-block--address p:nth-of-type(2) { top: 117px; }
.contact-block--address p:nth-of-type(3) { top: 145px; }
.contact-block--address p:nth-of-type(4) { top: 172px; }
.contact-block--phone { top: 517px; height: 160px; }
.contact-block--phone img { top: 0; width: 58px; height: 70px; }
.contact-block--phone h3 { top: 82px; }
.contact-block--phone p:nth-of-type(1) { top: 110px; left: 17px; }
.contact-block--phone p:nth-of-type(2) { top: 137px; left: 17px; }

.footer {
  height: 75px;
  background: var(--blue);
  color: #fff;
}
.footer__inner {
  position: relative;
  height: 100%;
  padding: 17px 18px 0;
}
.footer p {
  height: 12px;
  font-size: 6.7px;
  line-height: 12px;
  font-weight: 400;
}

/* Larger screens: same content, expanded without WordPress dependencies. */
@media (min-width: 601px) {
  .about,
  .why,
  .contact { height: auto; }
  .about__inner,
  .why__inner,
  .contact__inner {
    position: relative;
    width: min(1100px, calc(100% - 80px));
    height: auto;
    margin: 0 auto;
  }
  .about { padding: 72px 0 90px; }
  .about h2,
  .about__lead,
  .about__copy,
  .why h2,
  .why__lead,
  .feature,
  .contact h2,
  .contact__lead,
  .contact-form,
  .contact-block,
  .heading-rule,
  .heading-rule--contact {
    position: static;
    width: auto;
  }
  .about h2 { font-size: 38px; line-height: 1.1; }
  .heading-rule { margin: 14px auto 0; transform: none; }
  .about__lead { margin-top: 8px; font-size: 14px; line-height: 1.6; }
  .about__copy { margin: 40px auto 0; max-width: 850px; font-size: 13px; line-height: 1.65; }
  .about__copy p { margin-bottom: 18px; }

  .why { padding: 72px 0 90px; }
  .why h2 { font-size: 38px; line-height: 1.2; }
  .why__lead { margin-top: 8px; font-size: 14px; }
  .why__inner { text-align: center; }
  .feature {
    display: inline-block;
    vertical-align: top;
    width: 31%;
    margin: 60px 1% 0;
  }
  .feature img { position: static; margin: 0 auto 18px; }
  .feature h3, .feature p { position: static; }
  .feature h3 { font-size: 17px; }
  .feature p { margin-top: 13px; font-size: 12px; line-height: 1.7; }

  .contact { padding: 72px 0 90px; }
  .contact h2 { font-size: 38px; line-height: 1.2; }
  .heading-rule--contact { margin-top: 14px; }
  .contact__lead { margin-top: 9px; font-size: 12px; }
  .contact-form {
    height: auto;
    margin: 38px auto 0;
    max-width: 800px;
  }
  .contact-form input,
  .contact-form textarea { width: 100%; font-size: 12px; }
  .contact-form input { height: 34px; }
  .contact-form textarea { height: 120px; }
  .contact-form button { width: 72px; height: 34px; font-size: 10px; line-height: 34px; }
  .contact-block {
    display: inline-block;
    vertical-align: top;
    width: 48%;
    margin-top: 45px;
    min-height: 200px;
  }
  .contact-block img,
  .contact-block h3,
  .contact-block p { position: static; }
  .contact-block img { margin-left: 0; }
  .contact-block h3 { margin: 10px 0 20px; font-size: 14px; }
  .contact-block p { margin: 0 0 12px; font-size: 12px; }
  .footer { height: 82px; }
  .footer__inner { width: min(1100px, calc(100% - 80px)); margin: 0 auto; padding-left: 0; padding-right: 0; }
  .footer p { font-size: 10px; }
  .desktop-only { display: none; }
}


@media (max-width: 600px) {
  .hero-carousel {
    height: 219px;
  }
  .hero-slide img {
    object-position: center center;
  }
  .hero-carousel__nav {
    width: 48px;
  }
  .hero-carousel__dots {
    right: 8px;
    bottom: 5px;
    width: 52px;
    height: 22px;
  }
  .hero-carousel__dots button {
    width: 16px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Contact form: PHP + Cloudflare Turnstile */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-status {
  position: absolute;
  top: -26px;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 9px;
  line-height: 18px;
}
.form-status--success { color: #1f6f3f; }
.form-status--error { color: #9f2323; }
.contact-form__verification {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 354px;
  min-height: 65px;
}
.contact-form__verification .cf-turnstile {
  flex: 0 0 300px;
  min-height: 65px;
}
.contact-form__verification button {
  flex: 0 0 45px;
}

@media (max-width: 600px) {
  .contact { height: 775px; }
  .contact-form { height: 216px; }
  .contact-block--address { top: 378px; }
  .contact-block--phone { top: 565px; }
}

@media (min-width: 601px) {
  .contact-form { position: relative; }
  .form-status { top: -28px; font-size: 12px; line-height: 20px; }
  .contact-form__verification {
    width: 100%;
    gap: 12px;
  }
  .contact-form__verification button {
    flex: 0 0 72px;
  }
}

/* Desktop contact layout: form on the left, address details on the right. */
@media (min-width: 900px) {
  .contact__inner {
    width: min(1180px, calc(100% - 96px));
  }

  .contact-content {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(380px, 1fr);
    column-gap: 40px;
    align-items: start;
    margin-top: 38px;
  }

  .contact-form {
    margin: 0;
    max-width: none;
    width: 100%;
  }

  .contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    align-items: start;
  }

  .contact-block {
    display: block;
    width: auto;
    min-height: 0;
    margin-top: 0;
  }

  .contact-block img {
    margin: 0 0 18px 0;
  }

  .contact-block h3 {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.2;
  }

  .contact-block p {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.35;
  }

  .contact-form__verification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 65px;
  }

  .contact-form__verification .cf-turnstile {
    flex: 0 0 300px;
  }

  .contact-form__verification button {
    flex: 0 0 72px;
    margin-top: 0;
  }
}

/* Tablet: keep the contact data below the form, but never let the blocks overlap. */
@media (min-width: 601px) and (max-width: 899px) {
  .contact-content {
    margin-top: 38px;
  }

  .contact-form {
    margin: 0 auto;
  }

  .contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 44px;
  }

  .contact-block {
    display: block;
    width: auto;
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .contact-content,
  .contact-details {
    display: contents;
  }
}

/* Final desktop contact alignment fix:
   reset legacy absolute-position offsets so the form participates in grid flow. */
@media (min-width: 900px) {
  .contact {
    padding-bottom: 90px;
  }

  .contact-content {
    align-items: start;
  }

  .contact-form {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .contact-details {
    align-self: start;
  }

  .contact-form__verification {
    margin-top: 0;
  }
}

@media (min-width: 601px) and (max-width: 899px) {
  .contact-form {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

/* Visual parity fixes: typography, carousel controls and contact alignment */

/*
 * The WordPress version uses Open Sans. The font is loaded in <head> so the
 * fallback Arial no longer changes the apparent size and spacing of text.
 */
body,
.contact-form input,
.contact-form textarea,
.contact-form button {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* Real, visible carousel controls. The previous buttons were only transparent
   click targets, which made the carousel look as if it had no navigation. */
.hero-carousel__nav {
  top: 50%;
  width: 48px;
  height: 70px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: rgba(0, 47, 79, .16);
  opacity: .82;
  transition: background-color .2s ease, opacity .2s ease;
}
.hero-carousel__nav--prev { left: 0; }
.hero-carousel__nav--next { right: 0; }
.hero-carousel__nav::before {
  content: "";
  width: 15px;
  height: 15px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}
.hero-carousel__nav--prev::before {
  transform: translateX(3px) rotate(-135deg);
}
.hero-carousel__nav--next::before {
  transform: translateX(-3px) rotate(45deg);
}
.hero-carousel__nav:hover,
.hero-carousel__nav:focus-visible {
  background: rgba(0, 47, 79, .38);
  opacity: 1;
}

.hero-carousel__dots {
  right: 22px;
  bottom: 17px;
  width: auto;
  height: auto;
  gap: 8px;
  justify-content: flex-end;
}
.hero-carousel__dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  transition: background-color .2s ease, transform .2s ease;
}
.hero-carousel__dots button:hover,
.hero-carousel__dots button:focus-visible {
  background: rgba(255,255,255,.68);
}
.hero-carousel__dots button.is-active,
.hero-carousel__dots button[aria-current="true"] {
  background: #fff;
  transform: scale(1.15);
}

/* Avoid the abrupt typography jump just above the mobile breakpoint. */
@media (min-width: 601px) {
  .about h2 {
    font-size: clamp(30px, 4vw, 38px);
    letter-spacing: -.65px;
  }
  .about__lead {
    font-size: clamp(11px, 1.45vw, 14px);
  }
  .about__copy {
    font-size: clamp(11px, 1.35vw, 13px);
  }
  .why h2,
  .contact h2 {
    font-size: clamp(30px, 4vw, 38px);
  }
  .why__lead {
    font-size: clamp(11px, 1.45vw, 14px);
  }
  .feature h3 {
    font-size: clamp(13px, 1.7vw, 17px);
  }
  .feature p {
    font-size: clamp(10px, 1.25vw, 12px);
  }
  .contact__lead {
    font-size: clamp(10px, 1.2vw, 12px);
  }
  .contact-form input,
  .contact-form textarea {
    font-size: clamp(10px, 1.2vw, 12px);
  }
}

/* The source PNGs have different amounts of white padding above the glyph.
   Correct it visually without replacing the assets. */
@media (min-width: 601px) and (max-width: 899px) {
  .contact-block--phone img {
    transform: translateY(-17px);
  }
  .contact-block--phone h3 {
    margin-top: 2px;
  }
}

@media (min-width: 900px) {
  .contact-block--phone img {
    transform: translateY(-17px);
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .hero-carousel__nav {
    width: 38px;
    height: 58px;
    background: rgba(0, 47, 79, .10);
  }
  .hero-carousel__nav::before {
    width: 12px;
    height: 12px;
  }
  .hero-carousel__dots {
    right: 10px;
    bottom: 8px;
    width: auto;
    height: auto;
    gap: 6px;
  }
  .hero-carousel__dots button {
    width: 8px;
    height: 8px;
    min-width: 8px;
  }
}

