/*
Theme Name: falconx Robotics
Theme URI: https://falconx-robotics.com
Author: falconx Robotics
Author URI: https://falconx-robotics.com
Description: Motyw firmowy dla falconx Robotics — projektu rozwijającego system zdalnego sterowania maszynami roboczymi i wspomagania operatora. Duże hero, sekcje techniczne, moduły systemu i mocny blok kontaktu.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: falconx-robotics
*/

/* Tokeny marki falconx Robotics — granat #000f26 + bursztynowy akcent. */
:root {
  --aldo-ink: #000814;
  --aldo-coal: #000f26;
  --aldo-steel: #405067;
  --aldo-muted: #6b7a8d;
  --aldo-line: #dce2e9;
  --aldo-soft: #f4f6f8;
  --aldo-white: #fff;
  --aldo-red: #f2b705;
  --aldo-red-dark: #b88a00;
  --aldo-gold: #f2b705;
  --aldo-shadow: 0 18px 50px rgba(0, 15, 38, .13);
  --aldo-radius: 8px;
  --aldo-heading: #000f26;
  --aldo-text: #4e5b6d;
  --aldo-wrap: min(1180px, calc(100vw - 40px));
  --aldo-wrap-wide: min(1300px, calc(100vw - 40px));
  --hero-image: url("assets/images/hero-teleoperacja.webp");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--aldo-heading);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--aldo-white);
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

a:hover {
  color: var(--aldo-red-dark);
}

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

.wrap {
  width: var(--aldo-wrap);
  margin-inline: auto;
}

.topbar {
  background: var(--aldo-ink);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar strong,
.topbar a {
  color: var(--aldo-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(0, 15, 38, .08);
  box-shadow: 0 8px 30px rgba(0, 15, 38, .06);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--aldo-ink);
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--aldo-red), var(--aldo-red-dark));
  border-radius: var(--aldo-radius);
  box-shadow: 0 10px 26px rgba(242, 183, 5, .28);
}

.brand .custom-logo {
  width: auto;
  max-width: 150px;
  max-height: 58px;
}

.brand__name {
  display: block;
  color: var(--aldo-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.brand__tag {
  display: block;
  color: var(--aldo-muted);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--aldo-coal);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--aldo-coal);
}

.main-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.main-nav .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 30;
  min-width: 230px;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  background: var(--aldo-white);
  border: 1px solid var(--aldo-line);
  border-radius: var(--aldo-radius);
  box-shadow: 0 18px 40px rgba(0, 15, 38, .14);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.main-nav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 13px;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-nav .sub-menu a {
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  color: var(--aldo-coal);
  text-transform: none;
  white-space: nowrap;
}

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

.main-nav .sub-menu .sub-menu {
  left: calc(100% + 8px);
  top: -8px;
}

.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav a:hover {
  color: var(--aldo-red-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--aldo-ink);
  background: var(--aldo-soft);
  border: 1px solid var(--aldo-line);
  border-radius: var(--aldo-radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: var(--aldo-ink);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--aldo-red);
  border: 1px solid var(--aldo-red);
  border-radius: var(--aldo-radius);
  box-shadow: 0 12px 28px rgba(242, 183, 5, .28);
}

.btn:hover {
  color: var(--aldo-ink);
  background: var(--aldo-red-dark);
  border-color: var(--aldo-red-dark);
}

.btn--light {
  color: var(--aldo-white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: none;
}

.btn--light:hover {
  background: var(--aldo-white);
  color: var(--aldo-ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  color: var(--aldo-white);
  overflow: hidden;
  background: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero::before {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 120px;
  background: linear-gradient(0deg, rgba(0, 15, 38, .35), transparent);
  pointer-events: none;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  transition: opacity .8s ease;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 8, 20, .86) 0%, rgba(0, 8, 20, .68) 38%, rgba(0, 8, 20, .2) 72%);
  pointer-events: none;
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding: 70px 0;
}

.hero__nav {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero__arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--aldo-white);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--aldo-radius);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero__arrow::before {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.hero__arrow--prev::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.hero__arrow--next::before {
  transform: rotate(45deg) translate(-1px, 1px);
}

.hero__arrow:hover {
  color: var(--aldo-ink);
  background: var(--aldo-red);
  border-color: var(--aldo-red);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--aldo-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(34px, 4.9vw, 62px);
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-strip {
  position: relative;
  z-index: 2;
  width: var(--aldo-wrap);
  margin: -54px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--aldo-shadow);
}

.hero-strip__item {
  min-height: 108px;
  padding: 24px 28px;
  background: var(--aldo-white);
  border-right: 1px solid var(--aldo-line);
}

.hero-strip__item:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  color: var(--aldo-red-dark);
  font-size: 26px;
  line-height: 1;
}

.hero-strip span {
  display: block;
  margin-top: 8px;
  color: var(--aldo-steel);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section--soft {
  background: var(--aldo-soft);
}

.section--dark {
  color: var(--aldo-white);
  background: var(--aldo-coal);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}

.section__head h2,
.page-title h1,
.entry-content h1,
.entry-content h2 {
  margin: 0;
  color: var(--aldo-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}

.section--dark .section__head h2 {
  color: var(--aldo-white);
}

.section__head p {
  max-width: 470px;
  margin: 0;
  color: var(--aldo-muted);
}

.section--dark .section__head p {
  color: rgba(255, 255, 255, .72);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: block;
  min-height: 100%;
  color: inherit;
  background: var(--aldo-white);
  border: 1px solid var(--aldo-line);
  border-radius: var(--aldo-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 15, 38, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(184, 138, 0, .35);
  box-shadow: 0 18px 38px rgba(0, 15, 38, .12);
}

.product-card__visual {
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef3f5, #c8d3da);
}

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

.window-drawing {
  width: 118px;
  height: 132px;
  padding: 8px;
  background: #fff;
  border: 8px solid #f9fbfb;
  box-shadow:
    inset 0 0 0 3px #405067,
    0 16px 30px rgba(10, 27, 51, .18);
}

.window-drawing span {
  display: block;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 48%, #405067 49%, #405067 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, #405067 49%, #405067 51%, transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(151, 195, 218, .54));
  border: 3px solid #405067;
}

.window-drawing--door {
  width: 90px;
  height: 142px;
  background: #1a2c46;
  border-color: #0d1f38;
}

.window-drawing--door span {
  background:
    radial-gradient(circle at 80% 50%, #f2b705 0 3px, transparent 4px),
    linear-gradient(135deg, #4a5c73, #0a1b33);
}

.window-drawing--wide {
  width: 150px;
  height: 104px;
}

.window-drawing--shade span {
  background:
    repeating-linear-gradient(0deg, rgba(0, 15, 38, .16) 0 6px, transparent 6px 13px),
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(158, 197, 216, .55));
}

.product-card__body {
  padding: 24px;
}

.product-card h3 {
  margin: 0 0 10px;
  color: var(--aldo-ink);
  font-size: 20px;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
  color: var(--aldo-muted);
  font-size: 15px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  text-transform: uppercase;
}

.feature-copy p {
  color: var(--aldo-muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--aldo-coal);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 15px;
  height: 15px;
  background: var(--aldo-red);
  border-radius: 50%;
}

.feature-panel {
  padding: 34px;
  color: var(--aldo-white);
  background:
    linear-gradient(rgba(0, 15, 38, .88), rgba(0, 15, 38, .88)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  border-radius: var(--aldo-radius);
  box-shadow: var(--aldo-shadow);
}

.feature-panel__stat {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.feature-panel__stat:last-child {
  border-bottom: 0;
}

.feature-panel strong {
  display: block;
  color: var(--aldo-gold);
  font-size: 42px;
  line-height: 1;
}

.feature-panel span {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  text-transform: uppercase;
}

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

.process-step {
  padding: 30px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--aldo-radius);
}

.process-step strong {
  display: block;
  margin-bottom: 22px;
  color: var(--aldo-gold);
  font-size: 28px;
  line-height: 1;
}

.process-step h3 {
  margin: 0 0 10px;
  color: var(--aldo-white);
  font-size: 20px;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.realization {
  min-height: 260px;
  display: flex;
  align-items: end;
  padding: 24px;
  color: var(--aldo-white);
  background:
    linear-gradient(0deg, rgba(0, 15, 38, .82), rgba(0, 15, 38, .16)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  border-radius: var(--aldo-radius);
  overflow: hidden;
}

.realization:nth-child(2) {
  background-position: right center;
}

.realization:nth-child(3) {
  background-position: left center;
}

.realization h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.cta {
  padding: 62px;
  color: var(--aldo-white);
  background:
    linear-gradient(110deg, rgba(242, 183, 5, .9), rgba(0, 15, 38, .92)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  border-radius: var(--aldo-radius);
  box-shadow: var(--aldo-shadow);
}

.cta h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  text-transform: uppercase;
}

.cta p {
  max-width: 690px;
  margin: 18px 0 30px;
  color: rgba(255, 255, 255, .82);
}

.content-area {
  width: var(--aldo-wrap);
  min-height: 48vh;
  margin: 0 auto;
  padding: 72px 0;
}

.page-title {
  padding: 72px 0;
  color: var(--aldo-white);
  background: var(--aldo-coal);
}

.page-title h1 {
  color: var(--aldo-white);
}

.entry-content {
  max-width: 820px;
}

.entry-content--wide {
  max-width: none;
}

.entry-content a {
  color: var(--aldo-red-dark);
  font-weight: 700;
}

.entry-content table,
.entry-content iframe {
  max-width: 100%;
}

.post-list {
  display: grid;
  gap: 28px;
  max-width: 850px;
}

.post-list article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--aldo-line);
}

.post-list h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.site-footer {
  color: rgba(255, 255, 255, .76);
  background: var(--aldo-ink);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 36px;
  padding: 58px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--aldo-white);
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer__bottom {
  padding: 20px 0;
  color: rgba(255, 255, 255, .56);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
}

@media (max-width: 960px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 14px 20px 22px;
    background: var(--aldo-white);
    border-bottom: 1px solid var(--aldo-line);
    box-shadow: 0 22px 32px rgba(0, 15, 38, .12);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav a {
    min-height: 44px;
  }

  .main-nav .menu-item-has-children > a::after {
    margin-left: auto;
  }

  .main-nav .sub-menu,
  .main-nav .sub-menu .sub-menu {
    position: static;
    min-width: 0;
    display: grid;
    visibility: visible;
    opacity: 1;
    transform: none;
    margin: 0 0 6px 14px;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--aldo-line);
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }

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

  .main-nav .sub-menu a {
    min-height: 38px;
    padding: 0;
    white-space: normal;
  }

  .main-nav .sub-menu a:hover {
    background: transparent;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-strip,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-band,
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .realization-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --aldo-wrap: min(100vw - 26px, 1180px);
  }

  .topbar__inner,
  .section__head {
    display: grid;
    align-items: start;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__tag {
    font-size: 10px;
  }

  .hero {
    min-height: 620px;
    background-size: cover;
    background-position: center;
  }

  .hero::before {
    display: none;
  }

  .hero__slide::before {
    background: linear-gradient(180deg, rgba(0, 8, 20, .9) 0%, rgba(0, 8, 20, .68) 58%, rgba(0, 8, 20, .2) 100%);
  }

  .hero h1 {
    font-size: clamp(31px, 10vw, 44px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-strip__item {
    border-right: 0;
    border-bottom: 1px solid var(--aldo-line);
  }

  .section {
    padding: 66px 0;
  }

  .cta {
    padding: 34px 24px;
  }
}

/* ==========================================================================
   Block patterns – predefiniowane sekcje ("Add Section")
   ========================================================================== */

/* CTA – naglowek bialy takze wewnatrz .entry-content (page.php) */
.cta h2 {
  color: var(--aldo-white);
}

/* CTA – przyciski jako natywne bloki przyciskow w karcie .cta */
.cta .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.cta .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: var(--aldo-ink);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--aldo-red);
  border: 1px solid var(--aldo-red);
  border-radius: var(--aldo-radius);
  box-shadow: 0 12px 28px rgba(242, 183, 5, .28);
}

.cta .wp-block-button__link:hover {
  color: var(--aldo-ink);
  background: var(--aldo-red-dark);
  border-color: var(--aldo-red-dark);
}

.cta .aldo-btn-light .wp-block-button__link {
  color: var(--aldo-white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: none;
}

.cta .aldo-btn-light .wp-block-button__link:hover {
  background: var(--aldo-white);
  color: var(--aldo-ink);
}

/* Przycisk drugorzędny na ciemnym tle (hero podstrony) — przezroczysty
   z białym obramowaniem, zgodnie z systemem przycisków marki. */
.aldo-hero-sub .aldo-btn-light .wp-block-button__link {
  color: var(--aldo-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: none;
}

.aldo-hero-sub .aldo-btn-light .wp-block-button__link:hover,
.aldo-hero-sub .aldo-btn-light .wp-block-button__link:focus-visible {
  background: var(--aldo-white);
  color: var(--aldo-coal);
  border-color: var(--aldo-white);
}

/* Kontakt z mapa */
.aldo-contact .wp-block-columns {
  gap: 40px;
}

.aldo-contact__info h2 {
  margin: 6px 0 18px;
}

.aldo-contact__info p {
  margin: 0 0 10px;
  color: var(--aldo-steel);
}

.aldo-contact__info a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--aldo-line);
}

.aldo-contact__info a:hover {
  border-bottom-color: var(--aldo-red-dark);
}

.aldo-map {
  position: relative;
  padding-top: 64%;
  border-radius: var(--aldo-radius);
  overflow: hidden;
  box-shadow: var(--aldo-shadow);
}

.aldo-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA – linia kontaktu (e-mail / telefon) */
.cta__contact {
  margin: -6px 0 26px;
  font-weight: 700;
}

.cta .cta__contact a {
  color: var(--aldo-white);
}

/* Naglowek podstrony (hero na tle zdjecia – core/cover) */
.aldo-hero-sub {
  border-radius: var(--aldo-radius);
  overflow: hidden;
}

.aldo-hero-sub .wp-block-cover__inner-container {
  max-width: var(--aldo-wrap-wide);
  width: 100%;
}

.aldo-hero-sub h1,
.aldo-hero-sub h2 {
  margin: 0 0 14px;
  color: var(--aldo-white);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  text-transform: uppercase;
}

.aldo-hero-sub p {
  max-width: 620px;
  color: rgba(255, 255, 255, .86);
}

.aldo-hero-sub .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  color: var(--aldo-ink);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--aldo-red);
  border: 1px solid var(--aldo-red);
  border-radius: var(--aldo-radius);
}

.aldo-hero-sub .wp-block-button__link:hover {
  background: var(--aldo-red-dark);
  border-color: var(--aldo-red-dark);
  color: var(--aldo-ink);
}

/* Proces / kroki – nowoczesny timeline (tytuł + kolaż zdjęć | numerowane kroki) */
.service-section {
  gap: 56px;
  align-items: flex-start;
}

.service-images h2 {
  margin: 0 0 26px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
}

/* Zdjęcia: 3 równe kolumny (pionowe portrety – jak w oryginale /serwis/) */
.service-images__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-images__inner .wp-block-image {
  margin: 0;
}

.service-images__inner img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--aldo-radius);
}

/* Oś kroków */
.service-steps {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Motyw klasyczny owija każdą grupę flow w .wp-block-group__inner-container.
   display:contents „przezroczyści" wrapper, więc flex/grid działają na realnych
   dzieciach (kroki, badge, treść). Działa też, gdy wrappera brak. */
.service-steps > .wp-block-group__inner-container,
.service-step > .wp-block-group__inner-container {
  display: contents;
}

.service-step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 22px;
  padding-bottom: 28px;
  margin: 0;
}

.service-step:last-child {
  padding-bottom: 0;
}

/* Łącznik rysowany per-krok: zawsze biegnie od tego badge do następnego */
.service-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 58px;
  bottom: -2px;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg, var(--aldo-gold) 0%, rgba(0, 15, 38, .12) 100%);
  border-radius: 2px;
}

.service-step .step-number {
  grid-column: 1;
  width: 58px;
  height: 58px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #ffd45e 0%, var(--aldo-gold) 70%);
  color: var(--aldo-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(242, 183, 5, .45), 0 0 0 6px rgba(255, 255, 255, .7);
}

.service-step .step-content {
  grid-column: 2;
  align-self: start;
  margin: 0;
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(0, 15, 38, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-step:hover .step-content {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 15, 38, .10);
  border-color: rgba(242, 183, 5, .65);
}

.service-step .step-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.service-step .step-content p {
  margin: 0;
  color: var(--aldo-steel);
}

@media (max-width: 700px) {
  .service-section {
    gap: 36px;
  }

  .service-images__inner img {
    height: 220px;
  }

  .service-step {
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
  }

  .service-step .step-number {
    width: 48px;
    height: 48px;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(242, 183, 5, .4), 0 0 0 5px rgba(255, 255, 255, .7);
  }

  .service-step:not(:last-child)::before {
    left: 24px;
    top: 48px;
  }
}

/* Galeria */
.aldo-gallery-section h2 {
  margin: 4px 0 24px;
}

/* --------------------------------------------------------------------------
   Moduły treści: Funkcja z listą korzyści (A) + Dwie karty produktu (B)
   -------------------------------------------------------------------------- */

/* Wspólny wstęp sekcji */
.sec-intro {
  max-width: 720px;
}

.sec-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.1;
}

.sec-intro .lead {
  margin: 0;
  color: var(--aldo-text);
  font-size: 17px;
  line-height: 1.62;
}

/* A: Funkcja + checklista (core/columns) */
.feature-row {
  gap: 56px;
  align-items: center;
}

.feature-row.media-right .feature-media {
  order: 2;
}

.feature-media .wp-block-image {
  margin: 0;
}

/* Ramka tylko dla realnych zdjęć (pusty placeholder bez src jej nie dostaje). */
.feature-media .wp-block-image:has(img[src]) {
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 15, 38, .10);
}

/* Zdjęcia produktowe (różne proporcje, często na białym tle) – pokazujemy
   cały obraz w równej ramce 4:3, bez przycinania i bez rozciągania. */
.feature-media .wp-block-image img[src] {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  padding: 22px;
}

/* Wariant „na całość": zdjęcia fotograficzne wypełniają obszar (cover), bez białej ramki. */
.feature-media.is-cover .wp-block-image:has(img[src]) {
  background: none;
  border: none;
}

.feature-media.is-cover .wp-block-image img[src] {
  aspect-ratio: auto;
  padding: 0;
}

.feature-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.12;
}

.feature-copy .lead {
  margin: 0;
  color: var(--aldo-text);
  font-size: 17px;
  line-height: 1.62;
  max-width: 52ch;
}

.feat-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.feat-list li {
  position: relative;
  padding-left: 40px;
  color: var(--aldo-steel);
  font-size: 15.5px;
  line-height: 1.5;
}

.feat-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #ffd45e 0%, var(--aldo-gold) 70%);
  color: var(--aldo-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(242, 183, 5, .4);
}

.feature-copy .wp-block-buttons {
  margin-top: 30px;
}

/* B: Dwie karty produktu (core/columns) */
.duo-grid {
  gap: 26px;
  margin-top: 44px;
  align-items: stretch;
}

.duo-grid .duo-col {
  display: flex;
}

.duo-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 8px 26px rgba(0, 15, 38, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.duo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 15, 38, .10);
  border-color: rgba(242, 183, 5, .6);
}

.duo-card .duo-ico {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 30% 25%, #ffd45e, var(--aldo-gold) 72%);
  color: var(--aldo-ink);
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(242, 183, 5, .4);
}

.duo-card .duo-ico svg {
  width: 26px;
  height: 26px;
}

.duo-card .tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a37a05;
}

.duo-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.duo-card p {
  margin: 0;
  color: var(--aldo-text);
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 781px) {
  .feature-row.media-right .feature-media {
    order: 0;
  }

  .feature-media .wp-block-image img {
    padding: 16px;
  }

  .duo-grid {
    margin-top: 30px;
  }
}

/* --------------------------------------------------------------------------
   Moduły treści: Siatka ikon (D) + Somfy · TaHoma
   (grupy flow owija .wp-block-group__inner-container → display:contents,
    żeby grid/flex działały na realnych dzieciach)
   -------------------------------------------------------------------------- */

/* D: siatka ikon / integracje */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.icon-grid > .wp-block-group__inner-container {
  display: contents;
}

.icon-card {
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 15, 38, .08);
}

.icon-card .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(242, 183, 5, .16);
  color: #8a6404;
  margin-bottom: 16px;
}

.icon-card .ico svg { width: 24px; height: 24px; }
.icon-card h4 { margin: 0 0 6px; font-size: 16.5px; }
.icon-card p { margin: 0; color: var(--aldo-text); font-size: 14px; line-height: 1.55; }

/* Somfy: siatka urządzeń */
.device-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.device-grid > .wp-block-group__inner-container { display: contents; }

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 14px;
  padding: 20px 12px;
  transition: transform .2s ease, border-color .2s ease;
}

.device > .wp-block-group__inner-container { display: contents; }
.device:hover { transform: translateY(-3px); border-color: rgba(242, 183, 5, .6); }

.device .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(242, 183, 5, .14);
  color: #8a6404;
}

.device .ico svg { width: 24px; height: 24px; }
.device .device-label { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--aldo-steel); }

/* Somfy: korzyści */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 26px;
}

.benefit-row > .wp-block-group__inner-container { display: contents; }

.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
}

.benefit > .wp-block-group__inner-container { display: contents; }

.benefit .ico {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--aldo-ink);
  color: var(--aldo-gold);
}

.benefit .ico svg { width: 22px; height: 22px; }
.benefit h4 { grid-column: 2; grid-row: 1; margin: 0 0 3px; font-size: 16px; }
.benefit p { grid-column: 2; grid-row: 2; margin: 0; font-size: 13.5px; color: var(--aldo-text); line-height: 1.5; }

/* Somfy: stopka sekcji (CTA + nota) */
.somfy-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.somfy-foot > .wp-block-group__inner-container { display: contents; }
.somfy-foot .wp-block-buttons { margin: 0; }
.somfy-note { margin: 0; font-size: 13.5px; color: var(--aldo-text); }

@media (max-width: 900px) {
  .icon-grid,
  .benefit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Przyciski core w modułach treści – złota marka (jak w .cta) */
.feature-copy .wp-block-button__link,
.somfy-foot .wp-block-button__link,
.section.cta-final .wp-block-button:not(.is-light) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--aldo-ink);
  font-weight: 800;
  line-height: 1.1;
  background: var(--aldo-red);
  border: 1px solid var(--aldo-red);
  border-radius: var(--aldo-radius);
  box-shadow: 0 12px 28px rgba(242, 183, 5, .28);
}

.feature-copy .wp-block-button__link:hover,
.somfy-foot .wp-block-button__link:hover,
.section.cta-final .wp-block-button:not(.is-light) .wp-block-button__link:hover {
  color: var(--aldo-ink);
  background: var(--aldo-red-dark);
  border-color: var(--aldo-red-dark);
}

/* CTA końcowe – ciemny pas */
.section.cta-final {
  color: #fff;
  background: radial-gradient(120% 140% at 15% 0%, #0d1f38 0%, var(--aldo-coal) 50%, #000814 100%);
  padding: 78px 0;
}

.cta-end-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.cta-end-inner > .wp-block-group__inner-container {
  display: contents;
}

.cta-end-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  max-width: 20ch;
  color: #fff;
}

.cta-end-copy .cta-lead {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}

.cta-end-copy .cta-phone-wrap {
  margin: 8px 0 0;
}

.cta-end-copy .cta-phone {
  font-size: 26px;
  font-weight: 800;
  color: var(--aldo-red);
  text-decoration: none;
}

.cta-end-acts {
  margin: 0;
}

.section.cta-final .wp-block-button.is-light .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--aldo-radius);
}

.section.cta-final .wp-block-button.is-light .wp-block-button__link:hover {
  background: #fff;
  color: var(--aldo-ink);
}

@media (max-width: 781px) {
  .cta-end-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Lista plików do pobrania
   -------------------------------------------------------------------------- */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.download-list > .wp-block-group__inner-container { display: contents; }

.download-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 18px;
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 12px;
  padding: 15px 20px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.download-item > .wp-block-group__inner-container { display: contents; }

.download-item:hover {
  border-color: rgba(242, 183, 5, .6);
  box-shadow: 0 10px 26px rgba(0, 15, 38, .07);
}

.download-item .file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(242, 183, 5, .16);
  color: #8a6404;
}

.download-item .file-icon svg { width: 24px; height: 24px; }
.download-item .file-meta { min-width: 0; }

.download-item .file-title {
  margin: 0;
  font-weight: 700;
  color: var(--aldo-heading);
  font-size: 15.5px;
  line-height: 1.3;
}

.download-item .file-size {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--aldo-text);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.download-actions { margin: 0; }

.download-item .download-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  color: var(--aldo-ink);
  font-weight: 700;
  font-size: 14px;
  background: var(--aldo-red);
  border: 1px solid var(--aldo-red);
  border-radius: 8px;
}

.download-item .download-btn .wp-block-button__link:hover {
  background: var(--aldo-red-dark);
  border-color: var(--aldo-red-dark);
}

@media (max-width: 600px) {
  .download-item {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }

  .download-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* --------------------------------------------------------------------------
   Linia premium: chipy systemów, parametry, badge, tagi kolorów, tabela
   -------------------------------------------------------------------------- */

/* chipy nazw systemów (wprowadzenie) */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.brand-chips .bc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--aldo-soft);
  border: 1px solid var(--aldo-line);
  border-radius: 12px;
  font-weight: 700;
  color: var(--aldo-heading);
}

.brand-chips .bc .n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--aldo-ink);
  color: var(--aldo-gold);
  font-size: 13px;
  font-weight: 800;
}

/* badge na zdjęciu systemu */
.feature-media { position: relative; }

.feature-media .badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--aldo-ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

.feature-media .badge .b-k {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aldo-gold);
  font-weight: 800;
}

.feature-media .badge .b-v { font-size: 18px; font-weight: 800; }

/* parametry techniczne (spec chips) */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.spec {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--aldo-soft);
  border: 1px solid var(--aldo-line);
  border-radius: 12px;
  min-width: 104px;
}

.section--soft .spec { background: #fff; }
.spec .v { font-size: 19px; font-weight: 800; color: var(--aldo-heading); line-height: 1.1; }
.spec .k { font-size: 11.5px; color: var(--aldo-text); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* tagi kolorów */
.color-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.color-note .tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--aldo-heading);
  background: rgba(242, 183, 5, .16);
  border: 1px solid rgba(242, 183, 5, .5);
  border-radius: 999px;
  padding: 7px 14px;
}

/* tabela porównawcza (core/table.compare) */
.wp-block-table.compare {
  margin: 40px 0 0;
  overflow-x: auto;
}

.wp-block-table.compare table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--aldo-line);
  border-radius: 16px;
  overflow: hidden;
}

.wp-block-table.compare th,
.wp-block-table.compare td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--aldo-line);
  font-size: 15px;
}

.wp-block-table.compare thead th {
  background: var(--aldo-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.wp-block-table.compare tbody td:first-child {
  font-weight: 700;
  color: var(--aldo-heading);
  background: var(--aldo-soft);
  width: 34%;
}

.wp-block-table.compare tbody td { color: var(--aldo-text); font-weight: 600; }
.wp-block-table.compare tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   Moduły pełnej szerokości – pasy sekcji
   -------------------------------------------------------------------------- */

/* Wewnątrz zwykłej strony (page.php): wyśrodkuj kolumnę tekstu i pozwól
   blokom align=full wyjść na pełną szerokość okna. */
.entry-content {
  margin-inline: auto;
}

.entry-content > .alignfull {
  width: auto;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Pas sekcji nie dubluje wewnętrznego marginesu – odstępy daje .wrap */
.section > .wrap {
  padding-inline: 0;
}

/* Szablon „Pełna szerokość (sekcje)" – treść renderowana bez wąskiej kolumny */
.sections-page > .section,
.sections-page > .wp-block-cover {
  width: 100%;
}

/* Szersza kolumna wewnętrzna (jak kontener oryginału ~1300px) */
.sections-page .wrap {
  width: var(--aldo-wrap-wide);
}

/* Bezpieczna czcionka dla przypadkowych bloków spoza pasów w tym szablonie */
.sections-page > :not(.section):not(.wp-block-cover):not(.alignfull) {
  width: var(--aldo-wrap);
  margin-inline: auto;
}

/* ==========================================================================
   Typografia ujednolicona ze starą stroną (Mulish, lekkie nagłówki bez wersalików)
   ========================================================================== */

/* Duże nagłówki – lekka waga jak na starej stronie; mniejsze – półgrube.
   Kolor dziedziczony (ciemne sekcje zachowują biel z kontenera). */
h1, h2 {
  font-weight: 400 !important;
}

h3, h4, h5, h6 {
  font-weight: 600 !important;
}

h1, h2, h3, h4, h5, h6,
.eyebrow,
.btn,
.wp-block-button__link,
.page-title h1,
.section__head h2 {
  text-transform: none !important;
  letter-spacing: normal;
}

.eyebrow {
  font-weight: 600 !important;
}

/* Wyciszony kolor tekstu (jak #4e5b6d) w jasnych modułach treści */
.entry-content p,
.aldo-steps p,
.service-step .step-content p,
.product-item p,
.aldo-gallery-section > p,
.aldo-contact__info p {
  color: var(--aldo-text);
}

/* ==========================================================================
   Moduł „Produkty (spotlight)" – kafelki jak na stronie głównej starej witryny
   ========================================================================== */

.spotlight-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.spotlight-grid > * {
  margin: 0;
}

.product-item {
  text-align: left;
}

.product-item .product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--aldo-radius);
}

.product-item .product-image .wp-block-image,
.product-item .product-image figure {
  margin: 0;
}

.product-item .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

/* żółta linia u dołu zdjęcia + żółty overlay – rozwijane przy najechaniu */
.product-item .product-image::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 8px;
  width: 120px;
  background: var(--aldo-gold);
  transition: width .4s ease;
}

.product-item .product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(242, 183, 5, .5);
  opacity: 0;
  transition: opacity .3s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

.product-item:hover .product-image::after {
  width: 100%;
}

.product-item:hover .product-image::before {
  opacity: 1;
}

.product-item h3 {
  margin: 16px 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.product-item h3 a {
  color: inherit;
  text-decoration: none;
}

.product-item h3 a:hover {
  text-decoration: underline;
}

.product-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .spotlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .spotlight-grid,
  .spotlight-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .spotlight-grid,
  .spotlight-grid--3 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Nagłówek / topbar wg makiety (globalnie, Montserrat)
   ========================================================================== */
.topbar,
.site-header {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Szersza „ramka" jak w makiecie (~1460px) */
.topbar .wrap,
.site-header .wrap {
  width: min(1460px, calc(100% - 28px));
}

/* Topbar: kontakt po lewej, języki po prawej */
.topbar {
  font-size: .78rem;
}

.topbar__hours {
  opacity: .85;
}

.topbar__lang {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__lang strong {
  color: var(--aldo-white);
}

.topbar__lang a {
  color: rgba(255, 255, 255, .7);
}

.topbar__lang a:hover {
  color: var(--aldo-white);
}

/* Nawigacja: bez wersalików, wyśrodkowana między logo a przyciskami */
.main-nav {
  margin-inline: auto;
  font-size: .84rem;
  text-transform: none;
}

/* Przyciski akcji w nagłówku (pigułki jak w makiecie) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions .btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 800;
  text-transform: none;
  box-shadow: none;
}

.header-actions .btn-primary {
  color: var(--aldo-ink);
  background: var(--aldo-red);
  border: 1px solid var(--aldo-red);
  box-shadow: 0 8px 22px rgba(242, 183, 5, .22);
}

.header-actions .btn-primary:hover {
  color: var(--aldo-ink);
  background: var(--aldo-red-dark);
  border-color: var(--aldo-red-dark);
}

.header-actions .btn-outline {
  color: var(--aldo-ink);
  background: transparent;
  border: 1px solid var(--aldo-line);
}

.header-actions .btn-outline:hover {
  color: var(--aldo-ink);
  background: transparent;
  border-color: var(--aldo-red);
}

@media (max-width: 1023px) {
  .header-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 580px) {
  .topbar {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }
}

/* ==========================================================================
   Blog / lista wpisów (strona wpisów, archiwa) – karty jak na starej /porady/
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--aldo-white);
  border: 1px solid var(--aldo-line);
  border-radius: var(--aldo-radius);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.post-card:hover {
  border-color: var(--aldo-red);
  box-shadow: var(--aldo-shadow);
  transform: translateY(-3px);
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
}

.post-card__img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .post-card__img {
  transform: scale(1.04);
}

.post-card__img--ph {
  height: 230px;
  background: linear-gradient(135deg, #e7eaee, #d5dae1);
}

.post-card__date {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--aldo-white);
  border-radius: 999px;
  color: var(--aldo-steel);
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 15, 38, .12);
}

.post-card__date svg {
  color: var(--aldo-red-dark);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-card__meta {
  margin-bottom: 10px;
  color: var(--aldo-red-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.post-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.post-card__title a {
  color: var(--aldo-heading);
}

.post-card__title a:hover {
  color: var(--aldo-red-dark);
}

.post-card__excerpt {
  margin: 0 0 18px;
  color: var(--aldo-text);
  font-size: 15px;
  line-height: 1.55;
}

.post-card__link {
  margin-top: auto;
  color: var(--aldo-red-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Pierwszy wpis – szeroka, pozioma karta */
.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.post-card--featured .post-card__img,
.post-card--featured .post-card__img--ph {
  height: 100%;
  min-height: 340px;
}

.post-card--featured .post-card__body {
  justify-content: center;
  padding: 40px;
}

.post-card--featured .post-card__title {
  font-size: 30px;
  line-height: 1.2;
}

.post-card--featured .post-card__excerpt {
  font-size: 16px;
}

/* Paginacja */
.navigation.pagination {
  margin-top: 44px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  color: var(--aldo-heading);
  background: var(--aldo-white);
  border: 1px solid var(--aldo-line);
  border-radius: var(--aldo-radius);
  font-weight: 700;
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--aldo-red-dark);
}

.navigation.pagination .page-numbers.current {
  color: var(--aldo-ink);
  background: var(--aldo-red);
  border-color: var(--aldo-red);
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card--featured {
    grid-template-columns: 1fr;
  }

  .post-card--featured .post-card__img,
  .post-card--featured .post-card__img--ph {
    min-height: 240px;
  }

  .post-card--featured .post-card__body {
    padding: 28px;
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pojedynczy wpis (single) – hero ze zdjęciem, breadcrumbs, nawigacja
   ========================================================================== */
.breadcrumbs {
  background: var(--aldo-soft);
  border-bottom: 1px solid var(--aldo-line);
  font-size: 13px;
}

.breadcrumbs .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.breadcrumbs a {
  color: var(--aldo-muted);
}

.breadcrumbs a:hover {
  color: var(--aldo-red-dark);
}

.breadcrumbs__current {
  color: var(--aldo-heading);
}

.breadcrumbs__sep {
  color: var(--aldo-muted);
  opacity: .5;
}

.single-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: 60px 0;
  color: #fff;
  background: var(--aldo-coal) center / cover no-repeat;
}

.single-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 15, 38, .92) 0%, rgba(0, 15, 38, .5) 55%, rgba(0, 15, 38, .25) 100%);
}

.single-hero__inner {
  position: relative;
  z-index: 1;
}

.single-hero__cat {
  display: inline-block;
  margin-bottom: 16px;
  color: #f2b705;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.single-hero__title {
  margin: 0;
  max-width: 900px;
  color: #fff;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.08;
}

.single-hero__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
}

.single-hero__date svg {
  color: #f2b705;
}

/* Treść wpisu */
.single-post__content {
  font-size: 17px;
  line-height: 1.7;
}

.single-post__content h2 {
  margin: 34px 0 14px;
  font-size: 26px;
}

.single-post__content h3 {
  margin: 28px 0 12px;
  font-size: 21px;
}

.single-post__content p {
  margin: 0 0 18px;
}

.single-post__content ul,
.single-post__content ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.single-post__content ul {
  list-style: none;
}

.single-post__content ul li {
  position: relative;
  margin-bottom: 8px;
}

.single-post__content ul li::before {
  content: "•";
  position: absolute;
  left: -1.1em;
  color: var(--aldo-red);
  font-weight: 700;
}

.single-post__content figure,
.single-post__content .wp-block-image {
  margin: 28px 0;
}

.single-post__content img {
  border-radius: var(--aldo-radius);
}

.single-post__content blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--aldo-red);
  font-size: 20px;
  font-weight: 500;
  color: var(--aldo-heading);
}

/* Nawigacja prev/next */
.single-post__nav {
  max-width: 820px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--aldo-line);
}

.single-post__nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.single-post__nav .nav-previous,
.single-post__nav .nav-next {
  max-width: 48%;
}

.single-post__nav .nav-next {
  margin-left: auto;
  text-align: right;
}

.single-post__nav a {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--aldo-heading);
}

.single-post__nav a:hover {
  color: var(--aldo-red-dark);
}

.single-post__nav .nav-dir {
  color: var(--aldo-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.single-post__nav .nav-title {
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .single-hero {
    min-height: 320px;
    padding: 40px 0;
  }

  .single-post__nav .nav-links {
    flex-direction: column;
    gap: 18px;
  }

  .single-post__nav .nav-next {
    text-align: left;
  }
}

/* ==========================================================================
   Stopka wg makiety (globalnie, Montserrat) – nadpisuje starą stopkę
   ========================================================================== */
.site-footer {
  padding: 70px 0 28px;
  color: #fff;
  background: #000f26;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.site-footer .wrap {
  width: min(1460px, calc(100% - 28px));
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 55px;
}

/* Logo marki ma własne ciemne tło, więc nie oprawiamy go w białą płytkę —
   wystarczy zaokrąglenie i delikatna ramka odcinająca je od tła stopki. */
.footer-logo .custom-logo {
  width: 120px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
}

.footer-brand__name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.footer-brand p {
  margin: 18px 0 0;
  max-width: 300px;
  color: rgba(255, 255, 255, .55);
  font-size: .9rem;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 8px 0 18px;
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-col .footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
}

.footer-col a:hover {
  color: #fff;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .45);
  font-size: .76rem;
}

.site-footer .footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-bottom a:hover {
  color: #fff;
}

.site-footer .footer-legal-links .sep {
  opacity: .5;
}

@media (max-width: 820px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 580px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom {
    display: block;
  }

  .site-footer .footer-bottom span {
    display: block;
    margin-bottom: 6px;
  }
}

/* ==========================================================================
   Formularz kontaktowy – globalny (shortcode [aldo_contact_form] + homepage)
   ========================================================================== */
.contact-form {
  padding: 38px;
  color: var(--aldo-ink);
  background: #fff;
  border-radius: 22px;
}

.aldo-contact-embed {
  max-width: 720px;
}

.contact-form h3 {
  margin: 0 0 22px;
  font-size: 1.4rem;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form .field {
  display: grid;
  gap: 7px;
}

.contact-form .field.full {
  grid-column: 1 / -1;
}

.contact-form .field label {
  color: var(--aldo-heading);
  font-size: .78rem;
  font-weight: 800;
}

.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--aldo-ink);
  background: #fff;
  border: 1px solid var(--aldo-line);
  border-radius: 12px;
  outline: none;
  font: inherit;
}

.contact-form .field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  border-color: #f2b705;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, .18);
}

.contact-form .field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .form-note {
  margin: 14px 0 20px;
  color: #7a8698;
  font-size: .72rem;
  line-height: 1.5;
}

.contact-form .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 800;
  text-transform: none;
  background: #f2b705;
  color: #000f26;
  border: 1px solid #f2b705;
  box-shadow: 0 8px 22px rgba(242, 183, 5, .22);
}

.contact-form .btn-primary:hover {
  background: #d9a404;
  border-color: #d9a404;
  color: #000f26;
}

.contact-notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .9rem;
}

.contact-notice--ok {
  color: #1c7a44;
  background: #eafaf0;
  border: 1px solid #b7e6c8;
}

.contact-notice--err {
  color: #b3261e;
  background: #fdecec;
  border: 1px solid #f3c3c0;
}

.aldo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 580px) {
  .contact-form {
    padding: 24px;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Strona Kontakt: dane firmy + formularz, katalog działów (zakładki), mapa
   -------------------------------------------------------------------------- */

/* Dane firmy + formularz (2 kolumny) */
.contact-lead { gap: 48px; align-items: flex-start; }

.info-panel h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; }
.info-panel .company { margin: 0 0 24px; color: var(--aldo-text); font-size: 15.5px; line-height: 1.6; }
.info-rows { display: flex; flex-direction: column; gap: 12px; }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: var(--aldo-soft); border: 1px solid var(--aldo-line); border-radius: 12px; padding: 14px 16px; }
.info-row .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: rgba(242, 183, 5, .16); color: #8a6404; }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row .k { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--aldo-text); font-weight: 700; }
.info-row .v { margin: 0; font-size: 16px; font-weight: 700; color: var(--aldo-heading); overflow-wrap: anywhere; }
.info-row a { color: inherit; text-decoration: none; }
.info-panel .legal { margin: 18px 0 0; font-size: 13px; color: var(--aldo-text); line-height: 1.6; }

/* Zgoda RODO */
.contact-form .contact-accept { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 12.5px; color: var(--aldo-text); line-height: 1.5; }
.contact-form .contact-accept input { margin-top: 3px; flex: none; }

/* Katalog działów – zakładki (lista + panel) */
.dept-tabs { display: grid; grid-template-columns: 300px 1fr; margin-top: 40px; border: 1px solid var(--aldo-line); border-radius: 18px; overflow: hidden; background: #fff; min-height: 420px; }
.dept-list { background: var(--aldo-soft); border-right: 1px solid var(--aldo-line); padding: 10px; display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow: auto; }
.dept-tab { text-align: left; padding: 11px 14px; border: none; background: transparent; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--aldo-steel); cursor: pointer; transition: background .15s ease, color .15s ease; }
.dept-tab:hover { background: rgba(242, 183, 5, .14); color: var(--aldo-heading); }
.dept-tab.is-active { background: var(--aldo-ink); color: #fff; }
.dept-panel { display: flex; flex-direction: column; }
.dept-pane { display: none; padding: 30px 34px; }
.dept-pane.is-active { display: flex; flex-direction: column; flex: 1; }
.dept-pane h3 { margin: 0 0 6px; font-size: 20px; color: var(--aldo-heading); }
.dept-pane .person { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--aldo-line); }
.dept-pane .person:first-of-type { border-top: none; margin-top: 10px; padding-top: 0; }
.dept-pane .p-name { font-weight: 700; color: var(--aldo-heading); font-size: 15px; margin-bottom: 6px; }
.dept-pane .line { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--aldo-text); margin: 5px 0; }
.dept-pane .line a { color: var(--aldo-text); text-decoration: none; }
.dept-pane .line a:hover { color: #8a6404; }
.dept-pane .line svg { width: 16px; height: 16px; color: #8a6404; flex: none; }
.dept-cta { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--aldo-ink); background: var(--aldo-red); border: 1px solid var(--aldo-red); border-radius: 10px; cursor: pointer; transition: background .2s ease; }
.dept-cta:hover { background: var(--aldo-red-dark); }

/* Mapa dojazdu */
.map-grid { display: grid; grid-template-columns: 1fr 1.4fr; border: 1px solid var(--aldo-line); border-radius: 18px; overflow: hidden; background: #fff; }
.map-side { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }
.map-side h2 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 30px); }
.map-side p { margin: 0 0 18px; color: var(--aldo-text); font-size: 15.5px; line-height: 1.6; }
.map-embed { min-height: 360px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

@media (max-width: 900px) {
  .dept-tabs { grid-template-columns: 1fr; }
  .dept-list { flex-direction: row; gap: 6px; max-height: none; border-right: none; border-bottom: 1px solid var(--aldo-line); }
  .dept-tab { white-space: nowrap; flex: 0 0 auto; }
}

@media (max-width: 820px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-embed { min-height: 300px; }
}

/* --------------------------------------------------------------------------
   Strona Aluminium: „dlaczego aluminium" + katalog kart systemów
   -------------------------------------------------------------------------- */

/* Dlaczego aluminium – kafelki cech */
.alu-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.alu-benefits > .wp-block-group__inner-container { display: contents; }
.alu-b { background: var(--aldo-soft); border: 1px solid var(--aldo-line); border-radius: 14px; padding: 20px 18px; }
.alu-b .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(242, 183, 5, .16); color: #8a6404; margin-bottom: 12px; }
.alu-b .ico svg { width: 22px; height: 22px; }
.alu-b h4 { margin: 0 0 4px; font-size: 15.5px; color: var(--aldo-heading); }
.alu-b p { margin: 0; font-size: 13.5px; color: var(--aldo-text); line-height: 1.5; }

/* Logotypy marek */
.brand-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.brand-row .bc { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border: 1px solid var(--aldo-line); border-radius: 12px; font-weight: 800; color: var(--aldo-heading); }
.brand-row .bc small { font-weight: 600; color: var(--aldo-text); }

/* Katalog kart systemów */
.sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.sys-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--aldo-line); border-radius: 16px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.sys-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 15, 38, .12); border-color: rgba(242, 183, 5, .6); }
.sys-media { position: relative; aspect-ratio: 16 / 10; background: var(--aldo-soft); overflow: hidden; }
.sys-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sys-card:hover .sys-media img { transform: scale(1.04); }
.sys-tag { position: absolute; left: 12px; bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(0, 15, 38, .8); padding: 5px 11px; border-radius: 999px; }
.sys-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px; }
.sys-body h3 { margin: 0 0 8px; font-size: 19px; color: var(--aldo-heading); }
.sys-body p { margin: 0 0 16px; color: var(--aldo-text); font-size: 14.5px; line-height: 1.55; flex: 1; }
.sys-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sys-specs .s { font-size: 12px; font-weight: 600; color: var(--aldo-heading); background: var(--aldo-soft); border: 1px solid var(--aldo-line); border-radius: 999px; padding: 5px 11px; }
.section--soft .sys-specs .s { background: #fff; }

@media (max-width: 900px) {
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alu-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sys-grid { grid-template-columns: 1fr; }
  .alu-benefits { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Strona „Poznaj ALDO": o firmie, statystyki, dlaczego, jak pracujemy,
   bezpieczny dom, proces, realizacje, gdzie kupisz
   -------------------------------------------------------------------------- */

/* O firmie: tekst + zdjęcie */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.about-copy > p { margin: 0 0 14px; color: var(--aldo-text); font-size: 16.5px; line-height: 1.65; }
.about-media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 24px 50px rgba(0, 15, 38, .14); }

/* Statystyki */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.stat { background: var(--aldo-soft); border: 1px solid var(--aldo-line); border-radius: 14px; padding: 22px 20px; }
.stat .v { font-size: 32px; font-weight: 800; color: var(--aldo-heading); line-height: 1; }
.stat .k { margin-top: 8px; font-size: 13.5px; color: var(--aldo-text); line-height: 1.35; }

/* Dlaczego – siatka */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.why-grid > * { background: #fff; border: 1px solid var(--aldo-line); border-radius: 16px; padding: 24px 22px; }
.why-grid .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(242, 183, 5, .16); color: #8a6404; margin-bottom: 14px; }
.why-grid .ico svg { width: 24px; height: 24px; }
.why-grid h4 { margin: 0 0 6px; font-size: 16.5px; color: var(--aldo-heading); }
.why-grid p { margin: 0; color: var(--aldo-text); font-size: 14px; line-height: 1.55; }

/* Jak pracujemy – karty ze zdjęciem */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.work-card { background: #fff; border: 1px solid var(--aldo-line); border-radius: 16px; overflow: hidden; }
.work-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--aldo-soft); }
.work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-body { padding: 24px 26px; }
.work-body h3 { margin: 0 0 8px; font-size: 20px; color: var(--aldo-heading); }
.work-body p { margin: 0; color: var(--aldo-text); font-size: 14.5px; line-height: 1.6; }

/* Bezpieczny dom */
.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.safe-badge { display: inline-flex; align-items: center; gap: 14px; background: var(--aldo-ink); color: #fff; border-radius: 16px; padding: 20px 24px; }
.safe-badge .rc { font-size: 30px; font-weight: 800; color: var(--aldo-gold); }
.safe-badge .t { font-size: 14.5px; line-height: 1.4; }
.safe-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.safe-cat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--aldo-line); border-radius: 12px; padding: 14px 16px; font-weight: 700; color: var(--aldo-heading); }
.safe-cat .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(242, 183, 5, .16); color: #8a6404; flex: none; }
.safe-cat .ico svg { width: 20px; height: 20px; }

/* Proces – 4 kroki */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.step { background: #fff; border: 1px solid var(--aldo-line); border-radius: 16px; padding: 26px 22px; }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(120% 120% at 30% 25%, #ffd45e, var(--aldo-gold) 70%); color: var(--aldo-ink); font-weight: 800; font-size: 18px; margin-bottom: 14px; box-shadow: 0 8px 16px rgba(242, 183, 5, .4); }
.step h4 { margin: 0 0 6px; font-size: 16px; color: var(--aldo-heading); }
.step p { margin: 0; color: var(--aldo-text); font-size: 13.5px; line-height: 1.5; }

/* Realizacje – kafle na zdjęciach */
.real-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.real-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; padding: 22px; color: #fff; background-color: #6b7a8d; background-size: cover; background-position: center; }
.real-card h4 { margin: 0; font-size: 19px; }
.real-grid + .wp-block-buttons { margin-top: 28px; }

/* Gdzie kupisz */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.loc { background: #fff; border: 1px solid var(--aldo-line); border-radius: 14px; padding: 22px 24px; }
.loc h4 { margin: 0 0 8px; font-size: 17px; color: var(--aldo-heading); }
.loc p { margin: 3px 0; color: var(--aldo-text); font-size: 14.5px; }
.loc a { color: var(--aldo-text); text-decoration: none; }
.loc a:hover { color: #8a6404; }

@media (max-width: 900px) {
  .why-grid, .work-grid, .steps, .real-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .about-grid, .safe { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .why-grid, .work-grid, .steps, .real-grid, .stats, .safe-cats, .locs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Strona Realizacje: galeria kategorii + lightbox
   -------------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.gallery-grid .gitem { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; cursor: pointer; background: var(--aldo-soft); }
.gallery-grid .gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-grid .gitem:hover img { transform: scale(1.06); }

.rlb { position: fixed; inset: 0; background: rgba(0, 8, 20, .93); z-index: 9999; display: none; align-items: center; justify-content: center; }
.rlb.open { display: flex; }
.rlb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.rlb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.rlb button:hover { background: rgba(255, 255, 255, .22); }
.rlb .rlb-close { top: 20px; right: 20px; }
.rlb .rlb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.rlb .rlb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rlb .rlb-prev { left: 8px; } .rlb .rlb-next { right: 8px; } }

/* --------------------------------------------------------------------------
   Strona Okna: katalog 2-kolumnowy + standardy okuć (kolorowe infoboksy)
   -------------------------------------------------------------------------- */
.sys-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ok-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.ok-grid > .wp-block-group__inner-container { display: contents; }
.ok-card { background: #fff; border: 1px solid var(--aldo-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.ok-head { padding: 30px 28px 26px; }
.ok-head .lvl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ok-head h3 { margin: 8px 0 0; font-size: 26px; line-height: 1.05; }
.ok-card--basic .ok-head { background: #405067; color: #fff; }
.ok-card--basic .ok-head h3 { color: #fff; }
.ok-card--basic .ok-head .lvl { color: rgba(255, 255, 255, .72); }
.ok-card--home .ok-head { background: var(--aldo-gold); color: var(--aldo-ink); }
.ok-card--home .ok-head h3 { color: var(--aldo-ink); }
.ok-card--home .ok-head .lvl { color: rgba(0, 15, 38, .6); }
.ok-card--top .ok-head { background: var(--aldo-ink); color: #fff; }
.ok-card--top .ok-head h3 { color: #fff; }
.ok-card--top .ok-head .lvl { color: var(--aldo-gold); }
.ok-body { padding: 26px 28px; }
.ok-body .feat-list li { font-size: 14.5px; }

@media (max-width: 900px) { .ok-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sys-grid--2 { grid-template-columns: 1fr; } }

/* ---- HÖRMANN: bramy, drzwi, napędy ---- */
.intro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-copy p { margin: 0 0 14px; color: var(--aldo-text); font-size: 16.5px; line-height: 1.65; }
.intro-brand { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 18px;
  background: var(--aldo-soft); border: 1px solid var(--aldo-line); border-radius: 12px; font-weight: 800; color: var(--aldo-heading); }
.intro-brand small { font-weight: 600; color: var(--aldo-muted); }
.intro-media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover;
  border-radius: 16px; display: block; box-shadow: 0 24px 50px rgba(0, 15, 38,.14); }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.type-grid > .wp-block-group__inner-container { display: contents; }
.type-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  background: var(--aldo-soft); border: 1px solid var(--aldo-line); }
.type-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.type-card:hover img { transform: scale(1.06); }
.type-card .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 14px;
  color: #fff; font-weight: 800; font-size: 15px;
  background: linear-gradient(0deg, rgba(0, 8, 20,.85), rgba(0, 8, 20,0)); }

.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.prod-card { background: #fff; border: 1px solid var(--aldo-line); border-radius: 18px; padding: 32px; }
.prod-card .ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
  background: radial-gradient(120% 120% at 30% 25%, #ffd45e, var(--aldo-gold) 72%); color: var(--aldo-ink);
  margin-bottom: 18px; box-shadow: 0 8px 18px rgba(242, 183, 5,.4); }
.prod-card .ico svg { width: 26px; height: 26px; }
.prod-card h3 { margin: 0 0 6px; font-size: 22px; color: var(--aldo-heading); }
.prod-card .sub { margin: 0 0 20px; color: var(--aldo-text); font-size: 14.5px; }

@media (max-width: 900px) { .type-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px) { .intro-row, .prod-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Żaluzje fasadowe / rolety zewnętrzne: układ produkt + zdjęcie ---- */
.prod-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.prod-feature > .wp-block-group__inner-container { display: contents; }
.prod-feature--rev .prod-media { order: 2; }
.prod-media img { width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 26px 54px rgba(0, 15, 38,.18); background: var(--aldo-soft); }
.prod-copy p { margin: 0 0 14px; color: var(--aldo-text); font-size: 16.5px; line-height: 1.66; }
.prod-copy p:first-of-type { font-size: 18px; color: var(--aldo-heading); }
.prod-copy .feat-list { margin-top: 22px; }

@media (max-width: 820px) {
  .prod-feature { grid-template-columns: 1fr; gap: 32px; }
  .prod-feature--rev .prod-media { order: 0; }
}

/* ---- Elementy wykończeniowe: katalog klamek / pochwytów ---- */
.hw-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 14px; margin-top: 36px; }
.hw-grid.cols4 { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 720px; }
.hw-card { background: #fff; border: 1px solid var(--aldo-line); border-radius: 14px;
  padding: 18px 10px 14px; text-align: center; transition: box-shadow .2s, transform .2s; }
.hw-card:hover { box-shadow: 0 12px 26px rgba(0, 15, 38,.12); transform: translateY(-2px); }
.hw-card .im { height: 104px; display: grid; place-items: center; margin-bottom: 10px; }
.hw-card img { max-height: 104px; width: auto; object-fit: contain; }
.hw-card .nm { font-size: 13.5px; font-weight: 700; color: var(--aldo-heading); }
.hw-note { margin: 18px 0 0; color: var(--aldo-muted); font-size: 13px; font-style: italic; }

@media (max-width: 1000px) { .hw-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 560px) {
  .hw-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hw-grid.cols4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- Strona /produkty/: katalog kafelków (reużycie .spotlight-grid/.product-item) ---- */
.prod-catalog a.product-image { display: block; aspect-ratio: 3 / 2; }
.prod-catalog a.product-image img { height: 100%; }
.prod-catalog .product-item p { color: var(--aldo-text); }

/* ---- Drzwi zewnętrzne PCV/ALU: galeria wzorów + zdjęcie systemu ---- */
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.door-card { background: var(--aldo-soft); border: 1px solid var(--aldo-line); border-radius: 16px;
  padding: 24px; display: grid; place-items: center; overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s; }
.door-card:hover { box-shadow: 0 18px 40px rgba(0, 15, 38,.12); transform: translateY(-3px); border-color: rgba(242, 183, 5,.6); }
.door-card img { width: auto; max-width: 100%; max-height: 440px; object-fit: contain; display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 15, 38,.14)); }
.door-media { display: grid; place-items: center; }
.door-media img { width: auto; max-width: 100%; max-height: 520px; object-fit: contain; display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 15, 38,.18)); }

@media (max-width: 560px) { .door-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* =========================================================================
   Warianty komponentów budowane jako bloki `core/html`
   -------------------------------------------------------------------------
   Podstrony składane wg wytycznych (§2.4) używają tych samych klas co wzorce,
   ale bez otoczki bloków Gutenberga (`wp-block-columns`, `figure.wp-block-image`).
   Reguły wyżej celują w tę otoczkę, więc bez poniższych sekcje renderowały się
   jednokolumnowo, a zdjęcia i ikony w naturalnym rozmiarze.
   ========================================================================= */

/* --- Sekcja „funkcja”: dwie kolumny bez wp-block-columns ---------------- */
.feature-row:not(.wp-block-columns) {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-row:not(.wp-block-columns).media-right .feature-media {
  order: 2;
}

/* Zdjęcie wstawione bezpośrednio w `.feature-media` (bez figure). */
.feature-media > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 15, 38, .10);
}

/* Miejsce na zdjęcie, którego jeszcze nie ma. */
.feature-media__ph {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--aldo-soft);
  border: 1px solid var(--aldo-line);
  border-radius: 14px;
}

/* --- Karty „Jak pracujemy” z ikoną zamiast zdjęcia ---------------------- */
.work-card > .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 26px 26px 16px;
  border-radius: 12px;
  background: rgba(242, 183, 5, .16);
  color: #8a6404;
}

.work-card > .ico svg {
  width: 24px;
  height: 24px;
}

.work-card > h4 {
  margin: 0 26px 8px;
  color: var(--aldo-heading);
  font-size: 16.5px;
}

.work-card > p {
  margin: 0 26px 26px;
  color: var(--aldo-text);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- Proces / kroki: numer i treść w osobnych elementach ---------------- */
.steps-title {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.12;
}

.step .step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #ffd45e, var(--aldo-gold) 70%);
  color: var(--aldo-ink);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 16px rgba(242, 183, 5, .4);
}

.step .step-content h3 {
  margin: 0 0 6px;
  color: var(--aldo-heading);
  font-size: 16px;
}

.step .step-content p {
  margin: 0;
  color: var(--aldo-text);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Sześć etapów układa się czytelniej w trzech kolumnach niż w czterech. */
.steps.steps--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .steps,
  .steps.steps--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  .feature-row:not(.wp-block-columns) {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row:not(.wp-block-columns).media-right .feature-media {
    order: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .steps.steps--6 {
    grid-template-columns: 1fr;
  }
}
