:root {
  --home-bg: #0c1318;
  --home-bg-soft: #101920;
  --home-card: rgba(16, 25, 32, 0.76);
  --home-card-solid: #182329;
  --home-light: #f3f0e8;
  --home-light-2: #e7e0d4;
  --home-text: #f5f7f2;
  --home-text-dark: #10181c;
  --home-muted: #b7c0c4;
  --home-muted-dark: #627078;
  --home-accent: #69b945;
  --home-accent-strong: #68bd45;
  --home-accent-soft: rgba(105, 185, 69, 0.18);
  --home-border: rgba(255, 255, 255, 0.1);
  --home-border-dark: rgba(16, 24, 28, 0.08);
  --home-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

body.home-modern-body {
  background:
    radial-gradient(circle at top left, rgba(105, 185, 69, 0.12), transparent 28%),
    linear-gradient(180deg, #0c1318 0%, #111c23 28%, #f3f0e8 28%, #f3f0e8 100%);
  color: var(--home-text-dark);
  font-family: "Montserrat", sans-serif;
}

.home-modern-body h1,
.home-modern-body h2,
.home-modern-body h3,
.home-modern-body h4,
.home-modern-body h5,
.home-modern-body h6 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.03em;
}

.home-modern-body #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0 0;
  background: transparent;
  box-shadow: none;
}

.home-modern-body #header .container {
  align-items: center;
  gap: 26px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(12, 19, 24, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.home-modern-body #header .logo img {
  height: 60px;
}

.home-modern-body .nav-menu {
  flex: 1;
}

.home-modern-body .nav-menu > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-modern-body .nav-menu > ul > li + li {
  padding-left: 18px;
}

.home-modern-body .nav-menu a,
.home-modern-body .mobile-nav a {
  color: var(--home-text);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.home-modern-body .nav-menu a:hover,
.home-modern-body .nav-menu .active > a,
.home-modern-body .nav-menu li:hover > a,
.home-modern-body .mobile-nav a:hover,
.home-modern-body .mobile-nav .active > a,
.home-modern-body .mobile-nav li:hover > a {
  color: var(--home-accent-strong);
}

.home-modern-body .nav-menu__fundusze a {
  margin-left: 14px;
  padding: 0;
}

.home-modern-body .nav-menu__fundusze img {
  width: 78px;
  border-radius: 12px;
  opacity: 0.92;
}

.home-modern-body .nav-menu .drop-down {
  position: relative;
}

.home-modern-body .nav-menu .drop-down > ul {
  top: calc(100% + 18px) !important;
  min-width: 240px;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.12), rgba(12, 19, 24, 0.96) 58%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.home-modern-body .nav-menu > ul > .drop-down > ul {
  left: 50% !important;
  transform: translateX(-50%) translateY(12px);
}

.home-modern-body .nav-menu .drop-down .drop-down > ul {
  left: calc(100% + 14px) !important;
  top: -8px !important;
  transform: translateY(12px);
}

.home-modern-body .nav-menu .drop-down > ul::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(18, 28, 34, 0.94);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-modern-body .nav-menu .drop-down .drop-down > ul::before {
  top: 22px;
  left: -7px;
  transform: rotate(315deg);
}

.home-modern-body .nav-menu .drop-down:hover > ul {
  opacity: 1;
  visibility: visible;
}

.home-modern-body .nav-menu > ul > .drop-down:hover > ul {
  top: calc(100% + 10px) !important;
  transform: translateX(-50%) translateY(0);
}

.home-modern-body .nav-menu .drop-down .drop-down:hover > ul {
  left: calc(100% + 10px) !important;
  transform: translateY(0);
}

.home-modern-body .nav-menu .drop-down li {
  min-width: 0;
}

.home-modern-body .nav-menu .drop-down > ul a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px !important;
  border-radius: 18px;
  color: #eef4ef !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease,
    color 0.22s ease;
}

.home-modern-body .nav-menu .drop-down > ul a::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--home-accent-strong);
  box-shadow: 0 0 0 8px rgba(105, 185, 69, 0.12);
}

.home-modern-body .nav-menu .drop-down > ul a:hover,
.home-modern-body .nav-menu .drop-down > ul li:hover > a,
.home-modern-body .nav-menu .drop-down > ul .active > a {
  color: #f7fbf4 !important;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(105, 185, 69, 0.24);
  transform: translateY(-2px);
}

.home-modern-body .nav-menu #menu-item-34 > ul {
  min-width: 320px;
  padding: 16px;
}

.home-modern-body .nav-menu .drop-down > ul > #menu-item-659 > a {
  min-height: 92px;
  align-items: flex-start;
  padding-right: 52px !important;
  overflow: hidden;
}

.home-modern-body .nav-menu .drop-down > ul > #menu-item-659 > a::after {
  content: "Zdjecia i realizacje";
  position: absolute;
  left: 42px;
  bottom: 14px;
  color: rgba(231, 240, 232, 0.68);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-modern-body .nav-menu .drop-down > ul > #menu-item-659 > a span {
  position: relative;
  z-index: 1;
}

.home-modern-body .nav-menu .drop-down > ul > #menu-item-659 > a::before {
  margin-top: 2px;
}

.home-modern-body .nav-menu .drop-down > ul > #menu-item-659 > a {
  background:
    radial-gradient(circle at right center, rgba(105, 185, 69, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.home-modern {
  position: relative;
  overflow: clip;
}

.home-modern section {
  position: relative;
  padding: 112px 0;
}

.home-modern .btn-green,
.home-modern .btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 18px 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.home-modern .btn-green {
  background: linear-gradient(135deg, var(--home-accent) 0%, var(--home-accent-strong) 100%);
  color: var(--home-text-dark);
  border: 0;
  box-shadow: 0 18px 36px rgba(105, 185, 69, 0.32);
}

.home-modern .btn-white {
  color: var(--home-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-modern .btn-green:hover,
.home-modern .btn-white:hover {
  transform: translateY(-3px);
}

.home-hero {
  padding-top: 176px;
  padding-bottom: 96px;
  background:
    linear-gradient(140deg, rgba(8, 13, 17, 0.98) 0%, rgba(10, 17, 22, 0.94) 52%, rgba(15, 24, 29, 0.92) 100%),
    linear-gradient(180deg, #0c1318 0%, #111b21 100%);
}

.home-hero__backdrop,
.home-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__backdrop {
  background:
    radial-gradient(circle at 74% 28%, rgba(105, 185, 69, 0.22), transparent 18%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.05), transparent 15%);
}

.home-hero__mesh {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.56), transparent 92%);
  opacity: 0.35;
}

.home-hero .container,
.home-benefits .container,
.home-offer .container,
.home-story .container {
  position: relative;
  z-index: 1;
}

.home-hero__grid {
  min-height: 76vh;
}

.home-hero__copy {
  max-width: 640px;
  color: var(--home-text);
  position: relative;
  padding-left: 34px;
}

.home-hero__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 3px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--home-accent-strong), rgba(105, 185, 69, 0.08));
}

.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--home-accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.home-hero__kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  margin-right: 12px;
  background: rgba(104, 189, 69, 0.55);
}

.home-hero__copy h1 {
  margin-bottom: 22px;
  max-width: 720px;
  font-size: clamp(3.1rem, 5.8vw, 5.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-hero__copy p {
  margin: 0;
  max-width: 520px;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.88;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.home-hero__visual {
  position: relative;
  min-height: 620px;
}

.home-hero__spec {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f7ef;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.home-hero__spec::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--home-accent-strong);
  box-shadow: 0 0 0 8px rgba(105, 185, 69, 0.12);
}

.home-hero__spec--top {
  top: 4%;
  left: 2%;
}

.home-hero__spec--side {
  top: 38%;
  right: 2%;
}

.home-hero__spec--bottom {
  bottom: 7%;
  left: 2%;
}

.home-hero__frame {
  position: absolute;
  inset: 34px 10px 24px 34px;
  border-radius: 40px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.15), transparent 52%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--home-shadow);
}

.home-hero__frame::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 30px;
  border: 1px solid rgba(105, 185, 69, 0.2);
  z-index: 2;
}

.home-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 19, 24, 0.24), rgba(12, 19, 24, 0.76)),
    linear-gradient(135deg, rgba(12, 19, 24, 0.45) 0%, transparent 42%, rgba(12, 19, 24, 0.75) 100%);
}

.home-hero__glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 54%;
  height: 20%;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 185, 69, 0.36), transparent 72%);
  filter: blur(20px);
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  filter: saturate(0.75) contrast(0.95) brightness(0.42) blur(4px);
}

.home-hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 12px 12px;
}

.home-hero__product {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 3;
  width: auto;
  max-width: 66%;
  max-height: 78%;
  transform: translateX(-50%);
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.52));
}

.home-hero__panel {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  max-width: 270px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(12, 19, 24, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--home-accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero__panel strong {
  display: block;
  color: #f3f7ef;
  font-size: 1.2rem;
  line-height: 1.25;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

.home-hero__features {
  margin-top: 52px;
}

.home-feature-pill {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 96px;
  height: 100%;
  padding: 20px 22px 20px 52px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef4ef;
  line-height: 1.55;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.home-feature-pill::before {
  content: "";
  position: absolute;
  left: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--home-accent-strong);
  box-shadow: 0 0 0 8px rgba(105, 185, 69, 0.12);
}

.home-metric-card {
  height: 100%;
  min-height: 158px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.08), transparent 62%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.home-metric-card__value {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--home-accent-strong);
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-metric-card strong {
  display: block;
  margin-bottom: 10px;
  color: #eef4ef;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-metric-card p {
  margin: 0;
  color: #b7c0c4;
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-metric-card--accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.18), rgba(105, 185, 69, 0.02) 72%);
}

.home-benefits {
  background:
    linear-gradient(180deg, #101920 0%, #172229 100%);
  color: var(--home-text);
}

.home-benefits__intro {
  position: sticky;
  top: 110px;
  padding: 12px 40px 12px 0;
}

.home-benefits__intro h3 {
  max-width: 420px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4vw, 3.9rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.home-benefits__intro p {
  max-width: 450px;
  margin-bottom: 28px;
  color: var(--home-muted);
  line-height: 1.9;
}

.home-benefits__cta {
  position: relative;
  min-width: 260px;
  box-shadow: 0 20px 38px rgba(105, 185, 69, 0.28);
}

.home-benefits__cta::after {
  content: "\2192";
  margin-left: 12px;
  font-size: 1rem;
}

.home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-benefit-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.11), transparent 56%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.home-benefit-card--wide {
  grid-column: span 2;
  min-height: 148px;
}

.home-benefit-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
}

.home-benefit-card p {
  margin: 0;
  color: #f0f5ef;
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-offer {
  background:
    radial-gradient(circle at top center, rgba(105, 185, 69, 0.08), transparent 24%),
    linear-gradient(180deg, #f3f0e8 0%, #e8e1d5 100%);
  overflow: visible;
}

.home-offer .section-title {
  position: relative;
  margin-bottom: 52px;
  text-align: center;
}

.home-offer .section-title h2 {
  margin: 0;
  color: #202b31;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  text-transform: uppercase;
}

.home-offer .section-title::before {
  content: "Produkty Drewmet";
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(105, 185, 69, 0.12);
  color: #325622;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[lang^="en"] .home-offer .section-title::before {
  content: "Drewmet products";
}

html[lang^="ru"] .home-offer .section-title::before {
  content: "Продукция Drewmet";
}

.home-offer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.home-offer__item {
  min-width: 0;
  margin: 0;
}

.home-offer__card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(13, 24, 32, 0.08);
  color: var(--home-text-dark);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.home-offer__card:hover {
  border-color: rgba(105, 185, 69, 0.34);
  box-shadow: 0 24px 58px rgba(13, 24, 32, 0.13);
  color: var(--home-text-dark);
  text-decoration: none;
  transform: translateY(-5px);
}

.home-offer__card:focus-visible {
  outline: 3px solid var(--home-accent-strong);
  outline-offset: 5px;
}

.home-offer__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 52% 20%, rgba(105, 185, 69, 0.17), transparent 33%),
    linear-gradient(180deg, #151f25 0%, #202a31 100%);
}

.home-offer__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.home-offer__image {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 88%;
  height: auto;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.38));
  transition: transform 260ms ease;
}

.home-offer__footer {
  display: flex;
  flex-direction: column;
  min-height: 124px;
  padding: 18px 8px 8px;
}

.home-offer__footer h3 {
  margin: 0;
  color: #121a1f;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.24;
  text-align: left;
  text-transform: uppercase;
}

.home-offer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 26, 31, 0.1);
  color: #3d7729;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-offer__cta > span {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.home-offer__card:hover .home-offer__image {
  transform: scale(1.025);
}

.home-offer__card:hover .home-offer__cta > span,
.home-offer__card:focus-visible .home-offer__cta > span {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .home-offer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-offer__item {
    grid-column: span 2;
  }

  .home-offer__item:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 992px) {
  .home-offer__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-offer__item {
    grid-column: span 2;
  }

  .home-offer__item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .home-offer__item:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 575px) {
  .home-offer__media {
    aspect-ratio: 16 / 10;
  }

  .home-offer__footer {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-offer__card,
  .home-offer__image,
  .home-offer__cta > span {
    transition: none;
  }

  .home-offer__card:hover,
  .home-offer__card:hover .home-offer__image,
  .home-offer__card:hover .home-offer__cta > span,
  .home-offer__card:focus-visible .home-offer__cta > span {
    transform: none;
  }
}

.home-story {
  background:
    linear-gradient(180deg, #e8e1d5 0%, #111b21 0%, #10191f 100%);
  color: var(--home-text);
}

.home-story__copy {
  max-width: 560px;
}

.home-story__copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 4vw, 4.6rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.home-story__copy p {
  margin-bottom: 30px;
  color: var(--home-muted);
  line-height: 1.9;
}

.home-story__visual {
  position: relative;
  padding: 24px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.14), transparent 56%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--home-shadow);
}

.home-story__visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(105, 185, 69, 0.22);
  z-index: 1;
}

.home-story__visual picture,
.home-story__visual img {
  display: block;
  width: 100%;
}

.home-story__visual img {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  max-height: 640px;
  object-fit: cover;
}

.home-map {
  background:
    linear-gradient(180deg, #10191f 0%, #121d24 100%);
  color: var(--home-text);
}

.home-map h2,
.home-map h3,
.home-map h4,
.home-map p {
  color: var(--home-text);
}

.home-map .btn-green {
  color: var(--home-text-dark);
}

.home-map .home-map__cta {
  position: static;
  top: auto;
  align-self: flex-start;
  margin-top: 2px;
}

.home-map img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

.home-cta {
  background:
    linear-gradient(135deg, rgba(105, 185, 69, 0.96) 0%, rgba(78, 155, 56, 0.98) 100%);
}

.home-support-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 38px 46px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(8, 13, 17, 0.18), rgba(8, 13, 17, 0.08)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.94) 0%, rgba(86, 162, 58, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 60px rgba(51, 92, 29, 0.22);
}

.home-support-cta__copy,
.home-support-cta__actions {
  position: relative;
  z-index: 2;
}

.home-support-cta__copy h3 {
  margin: 0;
  color: #f8fbf4;
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.home-support-cta__actions {
  display: flex;
  justify-content: flex-end;
}

.home-support-cta__button {
  min-width: 320px;
  padding: 22px 34px !important;
  color: #0f181d !important;
  background: linear-gradient(135deg, #f6fbef 0%, #dff1d2 100%) !important;
  box-shadow: 0 22px 44px rgba(15, 24, 29, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.44) inset;
}

.home-support-cta__button::after {
  content: "\2192";
  margin-left: 12px;
  font-size: 1rem;
}

.home-support-cta__pulse {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 68%);
}

.home-support-cta__pulse--one {
  top: -80px;
  right: 14%;
  width: 220px;
  height: 220px;
}

.home-support-cta__pulse--two {
  left: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(16, 24, 28, 0.14), transparent 70%);
}

.home-modern-body #footer,
.home-modern-body #footer .footer-top {
  background: #0c1318;
}

.home-modern-body #footer .footer-top {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-modern-body #footer h4,
.home-modern-body #footer a,
.home-modern-body #footer strong,
.home-modern-body #footer p,
.home-modern-body #footer li {
  color: #eef4ef !important;
}

.home-modern-body #footer h4 {
  color: var(--home-accent-strong) !important;
}

.home-modern-body #footer .btn-green {
  color: var(--home-text-dark) !important;
}

.home-modern-body #footer .social-links a {
  background: var(--home-accent);
}

@media (max-width: 1199px) {
  .home-modern section {
    padding: 92px 0;
  }

  .home-hero__visual {
    min-height: 560px;
    margin-top: 36px;
  }

  .home-hero__copy {
    padding-left: 24px;
  }

  .home-benefits__intro {
    position: static;
    margin-bottom: 24px;
    padding-right: 0;
  }

  .home-offer .row > div:nth-child(2),
  .home-offer .row > div:nth-child(3),
  .home-offer .row > div:nth-child(4),
  .home-offer .row > div:nth-child(5) {
    margin-top: 0;
  }
}

@media (max-width: 991px) {
  .home-modern-body #header .container {
    border-radius: 24px;
  }

  .home-hero {
    padding-top: 154px;
  }

  .home-hero__grid {
    min-height: auto;
  }

  .home-hero__copy {
    max-width: none;
    padding-left: 22px;
  }

  .home-hero__visual {
    min-height: 520px;
  }

  .home-hero__spec--side {
    right: 0;
  }

  .home-benefits__grid {
    grid-template-columns: 1fr;
  }

  .home-benefit-card--wide {
    grid-column: span 1;
  }

  .home-offer__card .member-img {
    min-height: 270px;
  }

  .home-support-cta {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .home-support-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .home-modern section {
    padding: 72px 0;
  }

  .home-modern .btn-green,
  .home-modern .btn-white {
    width: 100%;
    min-width: 0;
  }

  .home-hero__copy h1,
  .home-benefits__intro h3,
  .home-offer .section-title h2,
  .home-story__copy h3 {
    line-height: 1;
  }

  .home-hero__visual {
    min-height: 460px;
  }

  .home-hero__copy {
    padding-left: 0;
  }

  .home-hero__copy::before {
    display: none;
  }

  .home-hero__frame {
    inset: 18px 0 0;
    border-radius: 28px;
  }

  .home-hero__product {
    max-width: 72%;
    max-height: 72%;
  }

  .home-hero__panel {
    right: 18px;
    left: 18px;
    bottom: 18px;
    max-width: none;
  }

  .home-hero__spec {
    position: static;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
  }

  .home-feature-pill,
  .home-metric-card,
  .home-benefits__intro,
  .home-benefit-card,
  .home-offer__card,
  .home-story__visual,
  .home-support-cta {
    border-radius: 22px;
  }

  .home-support-cta {
    padding: 26px 22px;
    gap: 18px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-support-cta__actions {
    justify-content: center;
  }

  .home-support-cta__button {
    min-width: 0;
    width: 100%;
  }

  .home-offer__card .member-info {
    padding: 18px;
  }

  .home-offer__card .member-img {
    min-height: 230px;
    border-radius: 18px;
  }

  .home-offer__card h4 {
    font-size: 1.35rem;
  }

  .home-offer__card .member-info::after {
    width: 36px;
    height: 36px;
    right: 14px;
    bottom: 14px;
  }
}

/* Visual direction aligned with the Fundusze UE pages. */
body.home-modern-body {
  background:
    radial-gradient(circle at 13% 18%, rgba(105, 185, 69, 0.13), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    #0b1217;
  background-size: auto, 96px 96px, 96px 96px, auto;
  color: var(--home-text);
}

.home-modern-body h1,
.home-modern-body h2,
.home-modern-body h3,
.home-modern-body h4,
.home-modern-body h5,
.home-modern-body h6,
.home-hero__panel strong,
.home-metric-card__value {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.01em;
}

.home-modern section {
  padding: 124px 0;
}

.home-hero {
  padding-top: 188px;
  padding-bottom: 110px;
  background:
    radial-gradient(circle at 78% 32%, rgba(105, 185, 69, 0.16), transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #0b1217 0%, #111c23 100%);
  background-size: auto, 96px 96px, 96px 96px, auto;
}

.home-hero__mesh {
  display: none;
}

.home-hero__copy {
  max-width: 700px;
  padding-left: 0;
}

.home-hero__copy::before {
  display: none;
}

.home-hero__kicker {
  margin-bottom: 22px;
  color: var(--home-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.home-hero__copy h1 {
  max-width: 760px;
  color: #f7faf4;
  font-size: clamp(3.25rem, 5.6vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-hero__copy p {
  max-width: 610px;
  color: rgba(233, 241, 235, 0.78);
  font-size: 1.05rem;
}

.home-modern .btn-green,
.home-modern .btn-white {
  min-width: 245px;
  padding: 19px 36px;
  font-weight: 800;
}

.home-modern .btn-green {
  background: linear-gradient(135deg, #69b945 0%, #5fb735 100%);
  box-shadow: 0 22px 44px rgba(105, 185, 69, 0.34);
}

.home-modern .btn-white {
  color: #f7faf4;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-hero__frame,
.home-story__visual {
  border-radius: 42px;
  background:
    radial-gradient(circle at 15% 10%, rgba(105, 185, 69, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #121d24;
  border-color: rgba(255, 255, 255, 0.1);
}

.home-hero__spec,
.home-hero__panel,
.home-benefit-card,
.home-metric-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(105, 185, 69, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(18, 29, 36, 0.84);
  border-color: rgba(255, 255, 255, 0.09);
}

.home-hero__spec {
  font-size: 0.74rem;
  font-weight: 800;
}

.home-hero__panel strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-metric-card {
  min-height: 176px;
}

.home-metric-card__value {
  font-size: 2.25rem;
  font-weight: 800;
}

.home-benefits,
.home-story,
.home-map {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, #111c23 0%, #0f181d 100%);
  background-size: 96px 96px, 96px 96px, auto;
}

.home-benefits__intro h3,
.home-story__copy h3,
.home-offer .section-title h2,
.home-support-cta__copy h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.home-benefit-card {
  min-height: 210px;
  padding: 30px;
  border-radius: 30px;
}

.home-benefit-card p {
  font-size: 1rem;
  font-weight: 700;
}

.home-offer {
  background:
    radial-gradient(circle at 50% 0%, rgba(105, 185, 69, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f7f4 0%, #eef3ee 100%);
}

.home-offer .section-title h2 {
  color: #121a1f;
}

.home-offer__card .member-info {
  border-radius: 30px;
  background: #ffffff;
  border-color: rgba(18, 26, 31, 0.08);
  box-shadow: 0 24px 60px rgba(13, 24, 32, 0.08);
}

.home-offer__card .member-img {
  border-radius: 24px;
  background:
    radial-gradient(circle at 54% 15%, rgba(105, 185, 69, 0.16), transparent 30%),
    linear-gradient(180deg, #141f25 0%, #202a31 100%);
}

.home-offer__card h4 {
  color: #121a1f;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.home-story__copy p {
  color: rgba(233, 241, 235, 0.78);
}

.home-support-cta {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(105, 185, 69, 0.96) 0%, rgba(84, 166, 55, 0.98) 100%);
}

@media (max-width: 991px) {
  .home-hero {
    padding-top: 156px;
  }

  .home-hero__copy h1 {
    font-size: clamp(2.7rem, 10vw, 4.8rem);
  }
}

@media (max-width: 767px) {
  .home-modern section {
    padding: 76px 0;
  }

  .home-hero {
    padding-top: 136px;
  }

  .home-hero__copy h1,
  .home-benefits__intro h3,
  .home-story__copy h3,
  .home-offer .section-title h2 {
    letter-spacing: -0.035em;
  }
}

/* Hero and metric cards fit fixes after the Fundusze-style refresh. */
.home-hero__grid {
  column-gap: 44px;
}

.home-hero__copy {
  max-width: 680px;
  padding-right: 28px;
}

.home-hero__copy h1 {
  max-width: 650px;
  font-size: clamp(2.5rem, 3.4vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.home-hero__visual {
  min-height: 600px;
  overflow: hidden;
}

.home-hero__visual.aos-init,
.home-hero__visual.aos-animate {
  transform: none !important;
}

.home-modern-body [data-aos^="fade"][data-aos^="fade"].home-hero__visual.aos-animate {
  transform: translateZ(0) !important;
}

.home-hero__frame {
  inset: 36px 16px 22px 24px;
}

.home-metric-card {
  min-height: 220px;
  padding: 26px 22px 24px;
}

.home-metric-card strong {
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

.home-metric-card p {
  font-size: 0.9rem;
  line-height: 1.58;
}

@media (min-width: 1200px) {
  .home-hero__grid {
    flex-wrap: nowrap;
    align-items: center;
  }

  .home-hero .col-xl-6:first-child {
    flex: 0 0 49%;
    max-width: 49%;
    width: 49%;
  }

  .home-hero .col-xl-6:last-child {
    flex: 0 0 51%;
    max-width: 51%;
    width: 51%;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .home-hero__copy h1 {
    max-width: 560px;
    font-size: clamp(2.65rem, 3.65vw, 4.05rem);
    letter-spacing: -0.04em;
  }

  .home-modern .btn-green,
  .home-modern .btn-white {
    min-width: 210px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .home-metric-card {
    min-height: 236px;
    padding: 24px 20px;
  }

  .home-metric-card__value {
    font-size: 2rem;
  }

  .home-metric-card strong {
    font-size: 0.76rem;
  }

  .home-metric-card p {
    font-size: 0.86rem;
  }
}

@media (min-width: 1200px) and (max-width: 1299px) {
  .home-hero__copy h1 {
    max-width: 520px;
    font-size: clamp(2.45rem, 3.35vw, 3.7rem);
  }

  .home-hero__copy p {
    max-width: 500px;
    font-size: 1rem;
  }

  .home-hero__visual {
    width: calc(100% - 34px);
  }

  .home-hero .col-xl-6:first-child {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .home-hero .col-xl-6:last-child {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .home-hero__frame {
    inset-right: 28px;
  }
}

@media (max-width: 1199px) {
  .home-hero__copy {
    max-width: none;
    padding-right: 0;
  }

  .home-hero__copy h1 {
    max-width: 760px;
  }

  .home-metric-card {
    min-height: 0;
  }
}

/* === Czysty hero strony glownej: kociol HD + pasek atutow === */
.home-hero__visual--clean {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 0;
  overflow: visible;
}

.home-hero__showcase {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 82%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(105, 185, 69, 0.30), rgba(105, 185, 69, 0.05) 50%, transparent 70%);
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
}

.home-hero__visual--clean .home-hero__product {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.55));
}

.home-hero__trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hero__trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 185, 69, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(18, 29, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #eef4ef;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__trust li i {
  color: var(--home-accent-strong);
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 991px) {
  .home-hero__showcase { min-height: 360px; }
  .home-hero__visual--clean .home-hero__product { max-height: 400px; }
}

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

/* Hero na mobile: mniejszy naglowek, zeby dlugie slowa (np. "BEZPIECZENSTWO,")
   nie lamaly sie w polowie. */
@media (max-width: 767px) {
  .home-hero__copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
}

/* Kafelki metryk (24/7, 365, 1...) na mobile: rowne, ciasniejsze odstepy
   i nizsze karty — bez duzych pustych przerw. */
@media (max-width: 767px) {
  .home-hero__features {
    margin-top: 30px;
  }
  .home-hero__features.row {
    --bs-gutter-y: 12px;
    row-gap: 12px;
  }
  .home-hero__features > [class*="col"] {
    margin-top: 0;
  }
  .home-hero__features > [class*="col"] + [class*="col"] {
    margin-top: 12px;
  }
  .home-metric-card {
    min-height: 0;
    padding: 18px 18px 16px;
  }
  .home-metric-card__value {
    font-size: 2.1rem;
    margin-bottom: 8px;
  }
}

/* Kafelki "Dlaczego Drewmet" byly za duze na mobile — zmniejszamy. */
@media (max-width: 767px) {
  .home-benefits__grid {
    gap: 12px;
  }
  .home-benefit-card {
    min-height: 0 !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }
  .home-benefit-card img {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
  }
  .home-benefit-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}
