:root {
  --fw-blue: #055ED5;
  --fw-blue-dark: #044cae;
  --fw-anthracite: #292d32;
  --fw-light: #eef0f3;
  --fw-text: #111820;
}

html {
  scroll-padding-top: 88px;
}

body {
  color: var(--fw-text);
  margin: 0;
}

/*
 * V4: pobrane szablony strony głównej i produktów mają w kodzie źródłowym
 * stary padding 8–16 rem przygotowany dla przyklejonego nagłówka EUROCOLOR.
 * Nagłówek Fenster Wieladek jest elementem układu strony, dlatego ten pusty
 * obszar nie jest już potrzebny.
 */
body.index-page {
  padding: 0 !important;
}

body.index-page::before {
  content: none !important;
  display: none !important;
  height: 0 !important;
}

.fw-header,
.fw-header *,
.fw-footer,
.fw-footer *,
.fw-hero,
.fw-hero * {
  box-sizing: border-box;
}

.fw-header {
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  width: 100%;
  z-index: 1000;
}

.fw-header__inner {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 0 auto;
  max-width: 1450px;
  min-height: 116px;
  padding: 16px 24px;
}

.fw-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.fw-logo img {
  display: block;
  height: 84px;
  max-width: 400px;
  object-fit: contain;
  object-position: left center;
  width: 400px;
}

.fw-nav {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-left: auto;
  width: 100%;
}

.fw-nav a {
  text-decoration: none;
}

.fw-nav__link,
.fw-products__trigger {
  color: #111820;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  padding: 12px 0;
  position: relative;
  white-space: nowrap;
}

.fw-nav__link::after,
.fw-products__trigger::after {
  background: var(--fw-blue);
  bottom: 3px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  width: 100%;
}

.fw-nav__link:hover,
.fw-nav__link:focus-visible,
.fw-products__trigger:hover,
.fw-products__trigger:focus-visible {
  color: var(--fw-blue);
}

.fw-nav__link:hover::after,
.fw-nav__link:focus-visible::after,
.fw-products__trigger:hover::after,
.fw-products__trigger:focus-visible::after {
  transform: scaleX(1);
}

.fw-products {
  position: relative;
}

.fw-products__trigger {
  padding-right: 17px;
}

.fw-products__trigger::before {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 6px;
  position: absolute;
  right: 1px;
  top: 16px;
  transform: rotate(45deg);
  width: 6px;
}

.fw-products__menu {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  left: -18px;
  min-width: 210px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 2px);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fw-products__menu a {
  border-radius: 4px;
  color: #111820;
  font-size: 15px;
  padding: 10px 12px;
}

.fw-products__menu a:hover,
.fw-products__menu a:focus-visible {
  background: #edf5ff;
  color: var(--fw-blue);
}

.fw-products:hover .fw-products__menu,
.fw-products:focus-within .fw-products__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fw-nav__cta {
  background: var(--fw-blue);
  border: 2px solid var(--fw-blue);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  padding: 13px 18px;
  white-space: nowrap;
  margin-left: auto;
}

.fw-nav__cta:hover,
.fw-nav__cta:focus-visible {
  background: var(--fw-blue-dark);
  border-color: var(--fw-blue-dark);
  color: #fff;
}

.fw-nav__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.fw-nav__actions .fw-nav__cta {
  margin-left: 0;
}

.fw-nav__cta--secondary {
  background: #fff;
  color: var(--fw-blue);
}

.fw-nav__cta--secondary:hover,
.fw-nav__cta--secondary:focus-visible {
  background: var(--fw-blue);
  border-color: var(--fw-blue);
  color: #fff;
}

.fw-nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
}

.fw-nav-toggle__bar {
  background: #111820;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 26px;
}

.fw-hero {
  background: var(--fw-light);
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.fw-slider {
  aspect-ratio: 16 / 6;
  margin: 0 auto;
  max-height: 620px;
  max-width: 1920px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.fw-slider__track,
.fw-slide {
  height: 100%;
  margin: 0;
  width: 100%;
}

.fw-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.65s ease;
}

.fw-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.fw-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.fw-slide__content {
  align-items: flex-start;
  color: #fff;
  display: flex;
  flex-direction: column;
  left: clamp(60px, 9vw, 150px);
  max-width: min(620px, 60vw);
  position: absolute;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.fw-slide__content strong {
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
}

.fw-slide__content span {
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 14px;
}

.fw-slider__arrow {
  align-items: center;
  background: rgba(5, 94, 213, 0.9);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 34px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 2;
}

.fw-slider__arrow:hover,
.fw-slider__arrow:focus-visible {
  background: var(--fw-blue-dark);
}

.fw-slider__arrow--prev {
  left: 24px;
}

.fw-slider__arrow--next {
  right: 24px;
}

.fw-slider__dots {
  bottom: 18px;
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.fw-slider__dots button {
  background: rgba(255, 255, 255, 0.75);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 11px;
  padding: 0;
  width: 11px;
}

.fw-slider__dots button.is-active {
  background: var(--fw-blue);
  box-shadow: 0 0 0 2px #fff;
}

.fw-placeholder {
  background: #fff;
  min-height: 360px;
  padding: 72px 24px;
}

.fw-placeholder__inner {
  margin: 0 auto;
  max-width: 1200px;
}

.fw-placeholder h1 {
  color: #111820;
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 30px;
}

.fw-placeholder p {
  border: 2px dashed var(--fw-blue);
  color: var(--fw-blue);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  padding: 56px 24px;
  text-align: center;
}

.fw-footer {
  background: #fff;
  color: #111820;
}

.fw-footer-cta {
  background: var(--fw-blue);
  color: #fff;
}

.fw-footer-cta__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 34px 24px;
}

.fw-footer-cta p {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.fw-footer-cta a {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  color: var(--fw-blue);
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 22px;
  text-decoration: none;
}

.fw-footer-cta a:hover,
.fw-footer-cta a:focus-visible {
  background: transparent;
  color: #fff;
}

.fw-footer__inner {
  margin: 0 auto;
  max-width: 1450px;
  padding: 52px 24px 24px;
}

.fw-footer__brand {
  display: inline-flex;
}

.fw-footer__brand img {
  display: block;
  height: 84px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: 400px;
}

.fw-footer__grid {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(300px, 1.35fr) 1fr 0.9fr 1.25fr;
}

.fw-footer__column--logo {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.fw-footer__column .fw-footer__slogan {
  color: #111820;
  display: flex;
  flex-direction: column;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.15;
  margin: 18px 0 0;
}

.fw-footer__column h2 {
  color: #111820;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 20px;
}

.fw-footer__column:first-child h2 {
  color: var(--fw-blue);
}

.fw-footer__column address,
.fw-footer__column p,
.fw-footer__column li,
.fw-footer__column a {
  color: #111820;
  font-size: 16px;
  font-style: normal;
  line-height: 1.45;
}

.fw-footer__column address,
.fw-footer__column p {
  margin: 0 0 20px;
}

.fw-footer__column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fw-footer__column li {
  margin: 0 0 7px;
}

.fw-footer__column a {
  text-decoration: none;
}

.fw-footer__column a:hover,
.fw-footer__column a:focus-visible {
  color: var(--fw-blue);
  text-decoration: underline;
}

.fw-footer__bottom {
  align-items: center;
  border-top: 1px solid #e4e6e8;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
}

.fw-footer__bottom p {
  color: #59616b;
  font-size: 14px;
  margin: 0;
}

.fw-social {
  display: flex;
  gap: 9px;
}

.fw-social a {
  align-items: center;
  background: var(--fw-blue);
  border-radius: 50%;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 38px;
}

.fw-social a:hover,
.fw-social a:focus-visible {
  background: var(--fw-blue-dark);
  transform: translateY(-2px);
}

.fw-social svg {
  fill: #fff;
  height: 19px;
  width: 19px;
}

.index-page .nm-content-icon-text {
  margin-top: 0;
  padding-top: 42px;
}

.bg-magenta,
.btn--magenta,
.nm-button--magenta,
.link--magenta,
.color-magenta {
  background-color: var(--fw-blue) !important;
  border-color: var(--fw-blue) !important;
}

.text-magenta,
.color-pink,
.link--pink {
  color: var(--fw-blue) !important;
}

@media (max-width: 1399px) {
  .fw-header__inner {
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .fw-logo img {
    height: 70px;
    width: 330px;
  }

  .fw-nav {
    gap: 12px;
  }

  .fw-nav__link,
  .fw-products__trigger,
  .fw-nav__cta {
    font-size: 13px;
  }

  .fw-nav__cta {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 1199px) {
  .fw-header__inner {
    min-height: 88px;
  }

  .fw-nav-toggle {
    display: inline-flex;
  }

  .fw-nav-toggle[aria-expanded="true"] .fw-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .fw-nav-toggle[aria-expanded="true"] .fw-nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

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

  .fw-nav {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #e6e8eb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    margin: 0;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 12px 18px 20px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .fw-nav.is-open {
    display: flex;
  }

  .fw-nav__link,
  .fw-products__trigger {
    border-bottom: 1px solid #edf0f2;
    display: flex;
    font-size: 16px;
    padding: 13px 4px;
  }

  .fw-nav__link::after,
  .fw-products__trigger::after,
  .fw-products__trigger::before {
    display: none;
  }

  .fw-products__menu {
    border: 0;
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: auto;
    min-width: 0;
    opacity: 1;
    padding: 4px 0 10px 12px;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .fw-products__menu a {
    font-size: 14px;
    padding: 8px;
  }

  .fw-nav__cta {
    font-size: 16px;
    margin-top: 14px;
    padding: 14px;
  }

  .fw-nav__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .fw-nav__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199px) {
  .fw-logo img {
    height: 62px;
    width: 295px;
  }

  .fw-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .fw-slider {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }

  .fw-slide__content {
    left: 24px;
    max-width: calc(100% - 90px);
  }

  .fw-slide__content strong {
    font-size: clamp(34px, 11vw, 48px);
  }

  .fw-slide__content span {
    font-size: 20px;
    margin-top: 8px;
  }

  .fw-slider__arrow {
    height: 40px;
    width: 40px;
  }

  .fw-slider__arrow--prev {
    left: 12px;
  }

  .fw-slider__arrow--next {
    right: 12px;
  }

  .fw-footer-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .fw-footer__grid {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .fw-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}
