/* INFOBUDO 2026 — DESIGN SYSTEM */

:root {
  --ib-blue: #0878c9;
  --ib-blue-dark: #075d9d;
  --ib-navy: #103a55;
  --ib-ink: #142d43;
  --ib-muted: #65788a;
  --ib-bg: #f4f9fd;
  --ib-border: #dce8f1;
  --ib-radius: 9px;
  --ib-shadow: 0 3px 16px rgba(17,54,83,.055);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ib-bg);
  color: var(--ib-ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

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

button, .btn {
  cursor: pointer;
}

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

main {
  width: min(100% - 36px, 1440px);
  margin: 22px auto 48px;
}

main > section {
  margin-bottom: 30px;
}

/* HEADER */

header,
.site-header,
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--ib-border);
}

header a,
.site-header a {
  transition: color .2s ease;
}

header a:hover,
.site-header a:hover {
  color: var(--ib-blue);
}

/* TYPOGRAPHY */

h1, h2, h3, h4 {
  color: var(--ib-ink);
  line-height: 1.2;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(32px, 3.5vw, 54px);
  font-weight: 800;
}

h2 {
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 800;
}

h3 {
  font-size: 17px;
  font-weight: 750;
}

p {
  line-height: 1.6;
}

/* BUTTONS */

.btn,
button.primary,
.button-primary,
a.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--ib-blue);
  color: #fff;
  border: 1px solid var(--ib-blue);
  border-radius: 7px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.btn:hover,
button.primary:hover,
.button-primary:hover {
  background: var(--ib-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn.white {
  background: #fff;
  border-color: var(--ib-border);
  color: var(--ib-blue);
}

.btn.orange,
.btn.teal {
  background: var(--ib-blue);
  border-color: var(--ib-blue);
  color: #fff;
}

/* HERO */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px);
  gap: 18px;
  align-items: start;
}

.intro-center {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 55px);
  border-radius: var(--ib-radius);
  overflow: hidden;
  background: linear-gradient(110deg, #103a55 0%, #17648b 65%, #b8d8ea 100%);
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero h1,
.hero p,
.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  margin: 12px 0 15px;
}

.hero h1 em {
  color: #c9ebff;
  font-style: normal;
}

.hero .eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.hero .actions,
.digital-house .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* SIDE PANELS */

.side,
.quick {
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius);
  box-shadow: var(--ib-shadow);
  overflow: hidden;
}

.side-title {
  padding: 15px 17px;
  background: #e7f4fc;
  color: var(--ib-navy);
  font-weight: 800;
}

.side nav {
  padding: 10px;
}

.side nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.side nav a:hover {
  background: #eaf5fd;
  color: var(--ib-blue);
}

.quick a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--ib-border);
}

.quick a:last-child {
  border-bottom: 0;
}

.quick a:hover {
  background: #f0f8fe;
}

.quick a > b {
  color: var(--ib-blue);
  font-size: 23px;
}

.quick strong,
.quick small,
.benefits strong,
.benefits small {
  display: block;
}

.quick small,
.benefits small {
  color: var(--ib-muted);
  font-size: 12px;
}

/* BENEFITS */

.benefits,
.bottom-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.benefits > div,
.bottom-benefits > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: #e8f5fc;
  border-radius: 8px;
}

.benefits b,
.bottom-benefits b {
  color: var(--ib-blue);
}

/* SECTION HEADINGS */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 17px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > a {
  color: var(--ib-blue);
  font-size: 13px;
  font-weight: 700;
}

/* CARDS */

.category-grid,
.products,
.creators,
.guides {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

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

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

.category-grid > *,
.products > *,
.creators > *,
.guides > * {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius);
  box-shadow: var(--ib-shadow);
  transition: box-shadow .2s, transform .2s;
}

.category-grid > *:hover,
.products > *:hover,
.creators > *:hover,
.guides > *:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px rgba(13,62,98,.12);
}

/* IMAGE SIZES */

#products-grid img,
.products img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

#categories-grid img,
.category-grid img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
}

.creators img,
.guides img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* DIGITAL HOUSE */

.digital-house {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
  padding: clamp(24px, 4vw, 50px);
  background: linear-gradient(120deg, #e6f4fd, #fff);
  border: 1px solid var(--ib-border);
  border-radius: 12px;
}

.digital-copy h2 {
  font-size: clamp(29px, 3vw, 46px);
}

.digital-copy h2 i {
  color: var(--ib-blue);
  font-style: normal;
}

.digital-eyebrow {
  color: var(--ib-blue);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;
}

.house-visual {
  position: relative;
  min-height: 300px;
  border-radius: 10px;
  background: linear-gradient(145deg, #d3eafa, #a9d4ec);
}

/* TABS */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tabs > * {
  padding: 9px 15px;
  background: #fff;
  color: var(--ib-blue);
  border: 1px solid var(--ib-border);
  border-radius: 6px;
}

.tabs .active {
  background: var(--ib-blue);
  color: #fff;
}

/* BRANDS */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.brand-grid > * {
  padding: 18px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: 7px;
  font-weight: 800;
}

.note {
  color: var(--ib-muted);
  font-size: 12px;
}

/* FOOTER */

footer,
.site-footer {
  background: var(--ib-navy);
  color: #fff;
}

footer a,
.site-footer a {
  color: #dcecf7;
}

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

/* TABLET */

@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  }

  .quick {
    grid-column: 1 / -1;
  }

  .category-grid,
  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

/* MOBILE */

@media (max-width: 768px) {
  main {
    width: calc(100% - 24px);
    margin: 12px auto 30px;
  }

  .intro-grid,
  .digital-house {
    grid-template-columns: minmax(0, 1fr);
  }

  .side,
  .quick {
    grid-column: auto;
  }

  .hero {
    min-height: 300px;
    padding: 25px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .benefits,
  .bottom-benefits,
  .category-grid,
  .products,
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #products-grid img,
  .products img {
    height: 170px;
  }

  #categories-grid img,
  .category-grid img {
    height: 125px;
  }

  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .house-visual {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 29px;
  }

  .hero .actions .btn {
    width: 100%;
  }

  .creators,
  .guides {
    grid-template-columns: 1fr;
  }

  #products-grid img,
  .products img {
    height: 145px;
  }

  .benefits > div,
  .bottom-benefits > div {
    padding: 10px;
    font-size: 12px;
  }
}

/* INFOBUDO reference layout override — visual layer only. */
:root {
  --ib-blue: #087fca;
  --ib-blue-dark: #075d9a;
  --ib-navy: #0d3550;
  --ib-ink: #16364e;
  --ib-muted: #668091;
  --ib-bg: #eef5f8;
  --ib-border: #d8e6ee;
  --ib-radius: 8px;
  --ib-shadow: 0 5px 18px rgba(20, 63, 90, .07);
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  background: #eef5f8;
  color: var(--ib-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.main-header {
  order: 1;
  display: grid;
  grid-template-columns: auto minmax(240px, 560px) auto;
  align-items: center;
  gap: 22px;
  min-height: 62px;
  padding: 8px max(18px, calc((100% - 1240px) / 2));
  background: #fff;
  border-bottom: 1px solid #e2edf3;
}

.utility {
  order: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 34px;
  padding: 0 max(18px, calc((100% - 1240px) / 2));
  overflow-x: auto;
  flex-wrap: nowrap;
  background: #fff;
  border-bottom: 1px solid #dce9ef;
  color: #27475d;
  white-space: nowrap;
}

.utility a {
  padding: 8px 0;
  color: #24465e;
  font-size: 12px;
  font-weight: 700;
}

.utility a:hover { color: var(--ib-blue); }
.utility-right { display: none; }

.brand {
  color: #123b59;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.brand span { color: var(--ib-blue); }
.brand-house { color: var(--ib-blue); }

.search {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  border: 1px solid #dce8ef;
  border-radius: 6px;
  background: #f8fbfd;
}

.search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ib-ink);
  font-size: 13px;
}

.search button {
  width: 38px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #32566d;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #26465d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions small { font-size: 11px; font-weight: 700; }

main {
  order: 3;
  width: min(100% - 28px, 1240px);
  margin: 14px auto 40px;
}

footer { order: 4; }

.intro-grid {
  display: block;
}

.intro-grid > .side,
.intro-grid > .quick {
  display: none;
}

.hero {
  min-height: 360px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 47, 72, .9) 0%, rgba(8, 77, 104, .68) 42%, rgba(8, 77, 104, .08) 100%),
    url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') center / cover;
  box-shadow: 0 10px 24px rgba(17, 65, 94, .12);
}

.hero h1 {
  max-width: 580px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.hero p {
  max-width: 480px;
  margin: 0;
  font-size: 15px;
}

.hero .eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
}

.hero .actions { margin-top: 24px; }

.hero .btn.orange,
.hero .btn.teal {
  background: #087fca;
  border-color: #087fca;
  box-shadow: 0 5px 12px rgba(2, 81, 132, .22);
}

.hero .btn.white {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .9);
  color: var(--ib-blue-dark);
}

.benefits,
.bottom-benefits {
  gap: 10px;
  margin-top: 12px;
}

.benefits > div,
.bottom-benefits > div {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #d7e7ef;
  border-radius: 8px;
  background: #e8f4fa;
}

.benefits b,
.bottom-benefits b { color: var(--ib-blue); }

.section { margin-top: 28px; }

.section-heading { margin-bottom: 12px; }

.section-heading h2,
.digital-copy h2 {
  color: #163950;
  font-size: clamp(22px, 2.2vw, 29px);
  letter-spacing: -.025em;
}

.section-heading > a {
  color: var(--ib-blue-dark);
  font-size: 13px;
}

.category-grid,
.products,
.creators,
.guides { gap: 12px; }

.category-grid > *,
.products > *,
.creators > *,
.guides > * {
  border-color: #d7e5ed;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(26, 68, 95, .05);
}

.category-grid > *:hover,
.products > *:hover,
.creators > *:hover,
.guides > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 62, 98, .12);
}

.category-grid img { height: 138px; }
.products img { height: 190px; }

.digital-house {
  margin-top: 28px;
  border-radius: 8px;
  background: linear-gradient(120deg, #e4f2f9, #fff);
  border-color: #d6e5ed;
}

.tabs > * {
  border-radius: 6px;
  border-color: #d6e5ed;
  font-size: 12px;
}

.brand-grid > * {
  border-color: #d6e5ed;
  border-radius: 7px;
  color: #31566d;
}

footer,
.site-footer {
  background: #0d3550;
}

@media (max-width: 860px) {
  .main-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .header-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .utility { gap: 16px; }
}

@media (max-width: 560px) {
  .main-header { padding: 8px 12px; }
  .utility { padding: 0 12px; }
  main { width: calc(100% - 20px); margin-top: 10px; }
  .hero { min-height: 330px; padding: 24px 20px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 13px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits > div { min-height: 62px; padding: 9px; font-size: 12px; }
  .benefits small { font-size: 10px; }
  .header-actions { gap: 10px; }
  .header-actions a { font-size: 11px; }
}

/* Final icon guarantee: the action icons live in the markup and stay visible even when
   an older legacy header rule is loaded after the base stylesheet. */
html body .main-header .header-actions > a.header-action .header-action-icon {
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  flex: 0 0 22px;
  opacity: 1 !important;
  visibility: visible !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}
html body .main-header .header-actions > a.header-action .header-action-icon-account { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.2'/%3E%3Cpath d='M5.5 20c.7-3.4 3.1-5.4 6.5-5.4s5.8 2 6.5 5.4'/%3E%3C/svg%3E") !important; }
html body .main-header .header-actions > a.header-action .header-action-icon-favorites { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 8.7c0 5.2-8.6 10.4-8.6 10.4S3.4 13.9 3.4 8.7A4.3 4.3 0 0 1 12 6.2a4.3 4.3 0 0 1 8.6 2.5Z'/%3E%3C/svg%3E") !important; }
html body .main-header .header-actions > a.header-action .header-action-icon-catalog { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E") !important; }
html body .main-header .header-actions > a.header-action .header-action-icon-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h2l1.4 9.1a2 2 0 0 0 2 1.7h7.7a2 2 0 0 0 1.9-1.4L20.5 9H7'/%3E%3Ccircle cx='10' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E") !important; }
@media (max-width: 700px) { html body .main-header .header-actions > a.header-action .header-action-icon { width: 26px !important; height: 26px !important; min-width: 26px; flex-basis: 26px; } }

.main-header .search[data-global-search] {
  position: relative;
}

.global-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dbe7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 44, 73, .16);
}

.global-search-status {
  padding: 15px 13px;
  color: #6f8798;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.global-search-result[aria-selected="true"] {
  background: #eaf6fc;
  outline: 2px solid rgba(13, 119, 189, .2);
  outline-offset: -2px;
}

.global-search-result {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 11px;
  color: #102c49;
  text-decoration: none;
}

.global-search-result:hover,
.global-search-result:focus-visible {
  background: #edf7fd;
  outline: none;
}

.global-search-result strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-type {
  color: #0d77bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Header v13 — grouped mega menu and category-aware campaign buttons. */
html body .utility { position: relative; z-index: 1100; gap: 12px; }
html body .utility .mega-menu-panel {
  grid-template-columns: minmax(230px, 1.15fr) minmax(240px, 1fr) minmax(220px, .9fr);
  gap: 18px;
  width: min(980px, calc(100vw - 32px));
  padding: 18px;
  border-color: #cfe0ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(16,40,59,.2);
}
html body .utility .mega-menu-panel::before { content: ""; position: absolute; top: -7px; left: 30px; width: 13px; height: 13px; transform: rotate(45deg); border-top: 1px solid #cfe0ea; border-left: 1px solid #cfe0ea; background: #fff; }
html body .mega-menu-column { min-width: 0; display: grid; align-content: start; gap: 4px; }
html body .mega-menu-kicker,
html body .utility-dropdown-kicker { padding: 0 8px 7px; color: #0878c9; font-size: 10px; font-weight: 950; letter-spacing: .12em; }
html body .utility .mega-menu-panel a { min-width: 0; min-height: 0; box-sizing: border-box; border: 1px solid transparent; background: transparent; box-shadow: none; }
html body .utility .mega-menu-panel .mega-menu-categories a { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 9px; padding: 8px; }
html body .mega-menu-icon { display: grid; width: 29px; height: 29px; place-items: center; color: #0878c9; border: 1px solid #cae2ef; border-radius: 9px; background: #f2f9fd; font-size: 15px; font-weight: 900; }
html body .mega-menu-panel a strong { display: block; color: #173d5d; font-size: 13px; font-weight: 900; line-height: 1.2; }
html body .mega-menu-panel a small { display: block; margin-top: 3px; color: #7891a4; font-size: 10px; font-weight: 600; line-height: 1.25; }
html body .utility .mega-menu-panel .mega-menu-categories a:hover { border-color: #d8eaf4; background: #f5fbfe; }
html body .mega-menu-systems a,
html body .mega-menu-shortcuts a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; }
html body .mega-menu-systems a b,
html body .mega-menu-shortcuts a b { color: #0878c9; font-size: 18px; font-weight: 600; }
html body .mega-menu-systems a:hover,
html body .mega-menu-shortcuts a:hover { border-color: #d8eaf4; background: #f5fbfe; }
html body .mega-menu-highlight { border-radius: 10px !important; }
html body .mega-menu-highlight-promo { border-color: #ffd7c6 !important; background: #fff4ee !important; }
html body .mega-menu-highlight-promo strong { color: #dc4f12 !important; }
html body .mega-menu-highlight-new { border-color: #bfe7e9 !important; background: #eefafa !important; }
html body .mega-menu-highlight-new strong { color: #087f89 !important; }
html body .utility .mega-menu-panel .mega-menu-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-top: 4px; padding: 10px 8px 0; border-top: 1px solid #e3edf2; border-radius: 0; background: transparent; font-size: 13px; }
html body .utility-dropdown { position: relative; flex: 0 0 auto; }
html body .utility-dropdown > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; box-sizing: border-box; padding: 9px 14px; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font-size: 14px; font-weight: 900; list-style: none; white-space: nowrap; }
html body .utility-dropdown > summary::-webkit-details-marker { display: none; }
html body .utility-dropdown > summary .utility-button-icon { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 12px; line-height: 1; }
html body .utility-dropdown > summary .utility-button-chevron { margin-left: 1px; font-size: 13px; transition: transform .18s ease; }
html body .utility-dropdown[open] > summary .utility-button-chevron { transform: rotate(180deg); }
html body .utility-dropdown > summary:hover { filter: brightness(.95); }
html body .utility-dropdown-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300; display: none; grid-template-columns: 1fr 1fr; gap: 3px 5px; width: 320px; padding: 13px; border: 1px solid #cfe0ea; border-radius: 14px; background: #fff; box-shadow: 0 20px 42px rgba(16,40,59,.2); white-space: normal; }
html body .utility-dropdown[open] .utility-dropdown-panel { display: grid; }
html body .utility-dropdown-panel::before { content: ""; position: absolute; top: -7px; right: 28px; width: 13px; height: 13px; transform: rotate(45deg); border-top: 1px solid #cfe0ea; border-left: 1px solid #cfe0ea; background: #fff; }
html body .utility-dropdown-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; color: #173d5d; font-size: 12px; font-weight: 800; text-decoration: none; }
html body .utility-dropdown-panel a span { color: #0878c9; font-size: 15px; }
html body .utility-dropdown-panel a:hover { border-color: #d8eaf4; background: #f5fbfe; color: #0878c9; }
html body .utility-dropdown-kicker,
html body .utility-dropdown-panel .utility-dropdown-all { grid-column: 1 / -1; }
html body .utility-dropdown-panel .utility-dropdown-all { margin-top: 4px; padding-top: 10px; border-top: 1px solid #e3edf2; border-radius: 0; color: #0878c9; }
html body .mobile-menu-group { display: block; }
html body .mobile-menu-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 12px; border-radius: 8px; color: #173d5d; cursor: pointer; font-size: 14px; font-weight: 850; list-style: none; }
html body .mobile-menu-group > summary::-webkit-details-marker { display: none; }
html body .mobile-menu-group > summary::after { content: "⌄"; color: #0878c9; }
html body .mobile-menu-group[open] > summary::after { transform: rotate(180deg); }
html body .mobile-menu-group > div { display: grid; gap: 2px; padding: 3px 0 5px 12px; border-left: 2px solid #dcecf4; }
html body .mobile-menu-group > div a { min-height: 34px !important; padding: 0 10px !important; font-size: 13px !important; }
@media (max-width: 980px) {
  html body .utility .mega-menu-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  html body .mega-menu-shortcuts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0,1fr)); }
  html body .mega-menu-shortcuts .mega-menu-kicker { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  html body .utility-dropdown { display: none; }
  html body .utility .mega-menu-panel { position: fixed; top: 112px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 130px); overflow-y: auto; grid-template-columns: 1fr; }
  html body .utility .mega-menu-panel::before { left: 26px; }
}

@media (max-width: 700px) {
  html body .main-header .header-actions > a:nth-child(3)::after { content: none !important; }
  html body .main-header .header-actions > .desktop-catalog-link { display: none !important; }
  html body .main-header .header-actions > .mobile-menu { position: relative; display: block !important; }
  html body .main-header .mobile-menu > summary { display: grid; place-items: center; width: 32px; height: 34px; padding: 0; color: #102c49; cursor: pointer; font-size: 0; list-style: none; }
  html body .main-header .mobile-menu > summary::-webkit-details-marker { display: none; }
  html body .main-header .mobile-menu > summary::before { content: "☰"; font-size: 27px; line-height: 1; }
  html body .main-header .mobile-menu-panel { position: fixed; top: 108px; left: 12px; right: 12px; z-index: 1400; display: none; grid-template-columns: 1fr; gap: 3px; padding: 10px; border: 1px solid #dbe8ef; border-radius: 12px; background: rgba(255,255,255,.99); box-shadow: 0 18px 38px rgba(16,40,59,.2); }
  html body .main-header .mobile-menu[open] .mobile-menu-panel { display: grid; }
  html body .main-header .mobile-menu-panel a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 8px; color: #173d5d; font-size: 14px; font-weight: 800; text-decoration: none; }
  html body .main-header .mobile-menu-panel a:hover { background: #eef7fc; color: #0878c9; }
  html body .main-header .mobile-menu-panel .mobile-menu-all { margin-top: 4px; border-top: 1px solid #e3edf2; border-radius: 0 0 8px 8px; color: #0878c9; }
}

/* Final partner-card overrides: keep sponsored logos consistent with the shell. */
.home-reference .partner-brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-reference .partner-ad-card { position: relative; min-height: 118px; display: flex; align-items: flex-start; justify-content: center; padding: 14px; border-color: #c9dfea; box-shadow: 0 7px 18px rgba(13,62,98,.06); }
.home-reference .partner-ad-card img { width: 46px; height: 46px; margin-bottom: 6px; }
.home-reference .partner-ad-card > span { color: #173f5e; font-size: 15px; font-weight: 900; }

/* INFOBUDO Studio foundation tokens. Components may refine these values locally,
   but shared actions and search use one visual vocabulary across the portal. */
:root {
  --ib-studio-navy: #102c49;
  --ib-studio-blue: #0878d1;
  --ib-studio-ivory: #fbfaf7;
  --ib-studio-graphite: #2a3237;
  --ib-studio-sand: #e9dfd1;
  --ib-studio-line: #dbe8ef;
  --ib-studio-muted: #70889a;
  --ib-studio-radius: 14px;
  --ib-studio-shadow: 0 16px 36px rgba(16, 44, 73, .10);
}
.main-header .search[data-global-search] { position: relative; min-width: 0; }
.main-header .search[data-global-search] > input { min-width: 0; }
.main-header .search[data-global-search] > input:focus-visible {
  outline: 3px solid rgba(8, 120, 209, .22);
  outline-offset: -3px;
}

/* Header icons: one explicit icon node per action. The legacy pseudo-icons stay disabled so
   responsive rules cannot render the same action twice. */
.main-header .header-actions > a.header-action::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.main-header .header-actions > a.header-action .header-action-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: center / contain no-repeat;
}
.main-header .header-action-icon-account {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.2'/%3E%3Cpath d='M5.5 20c.7-3.4 3.1-5.4 6.5-5.4s5.8 2 6.5 5.4'/%3E%3C/svg%3E");
}
.main-header .header-action-icon-favorites {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 8.7c0 5.2-8.6 10.4-8.6 10.4S3.4 13.9 3.4 8.7A4.3 4.3 0 0 1 12 6.2a4.3 4.3 0 0 1 8.6 2.5Z'/%3E%3C/svg%3E");
}
.main-header .header-action-icon-catalog {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
}
.main-header .header-action-icon-cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h2l1.4 9.1a2 2 0 0 0 2 1.7h7.7a2 2 0 0 0 1.9-1.4L20.5 9H7'/%3E%3Ccircle cx='10' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E");
}
.main-header .mobile-menu > summary::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.main-header .mobile-menu .mobile-menu-icon {
  display: block;
  width: 28px;
  height: 21px;
  background: linear-gradient(#102c49 0 2px, transparent 2px 9px, #102c49 9px 12px, transparent 12px 19px, #102c49 19px 21px);
}
@media (max-width: 700px) {
  .main-header .header-actions > a.header-action .header-action-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .main-header .mobile-menu .mobile-menu-icon { width: 28px; height: 21px; }
}
.home-reference .partner-ad-card > small { color: #d86218; font-size: 10px; font-weight: 800; }
footer .partner-ad-strip { width: min(1480px, calc(100% - 48px)); }
footer .partner-ad-logos { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
@media (max-width: 900px) {
  .home-reference .partner-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  footer .partner-ad-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-reference .partner-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .partner-ad-strip { width: calc(100% - 20px); }
  footer .partner-ad-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sponsored partner presentation: clear, clickable and disclosed. */
.partner-ads-section .section-kicker,
.partner-ad-disclosure > strong,
.partner-ad-strip > div > span {
  color: #0878d1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.partner-ad-disclosure {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px solid #cfe1eb;
  border-radius: 10px;
  background: #f8fcff;
  color: #567087;
  font-size: 12px;
}
.partner-ad-disclosure > strong { color: #d86218; letter-spacing: .04em; }
.partner-ad-disclosure > a { margin-left: auto; color: #0878d1; font-weight: 800; text-decoration: none; white-space: nowrap; }
.partner-brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.partner-ad-card {
  position: relative;
  min-height: 118px;
  align-items: flex-start;
  justify-content: center;
  padding: 14px;
  border-color: #c9dfea;
  box-shadow: 0 7px 18px rgba(13,62,98,.06);
}
.partner-ad-card::after {
  content: "REKLAMA";
  position: absolute;
  top: 9px;
  right: 10px;
  color: #9ab1c0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.partner-ad-card img { width: 46px; height: 46px; margin-bottom: 6px; }
.partner-ad-card > span { color: #173f5e; font-size: 15px; font-weight: 900; }
.partner-ad-card > small { color: #d86218; font-size: 10px; font-weight: 800; }
.partner-ad-card:hover { border-color: #0878d1; box-shadow: 0 12px 26px rgba(13,62,98,.14); transform: translateY(-2px); }
.partner-ad-note { color: #6d879b; font-size: 11px; }
.partner-ad-strip {
  width: min(1480px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 auto 30px;
  padding: 14px;
  border: 1px solid #d7e6ed;
  border-radius: 12px;
  background: #fff;
}
.partner-ad-strip > div:first-child { display: grid; gap: 4px; }
.partner-ad-strip > div:first-child > strong { color: #173f5e; font-size: 14px; }
.partner-ad-strip > div:first-child > small { color: #7890a0; font-size: 10px; line-height: 1.35; }
.partner-ad-logos { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.partner-ad-logos a { min-height: 42px; display: grid; place-items: center; padding: 0 7px; border: 1px solid #e1ebf0; border-radius: 7px; background: #fbfdff; color: #1b4a6b; font-size: 11px; font-weight: 900; text-align: center; text-decoration: none; }
.partner-ad-logos a:hover { border-color: #0878d1; color: #0878d1; background: #f1f9ff; }
@media (max-width: 900px) {
  .partner-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-ad-strip { grid-template-columns: 1fr; }
  .partner-ad-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .partner-ad-disclosure { display: grid; gap: 6px; }
  .partner-ad-disclosure > a { margin-left: 0; }
  .partner-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-ad-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-ad-strip { width: calc(100% - 20px); }
}

/* Final visual polish: stable mobile flow, clearer controls, and footer rhythm. */
html,
body {
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 127, 202, .28);
  outline-offset: 2px;
}

.utility {
  flex-wrap: wrap;
  overflow-x: hidden;
  white-space: normal;
  row-gap: 0;
}

.header-actions a {
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f4f8fb;
}

.header-actions a:hover {
  background: #e8f4fa;
}

.btn,
button.primary,
.button-primary,
a.button-primary {
  min-height: 42px;
}

.section-heading {
  padding-bottom: 8px;
  border-bottom: 1px solid #dce9f0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(100% - 28px, 1240px);
  margin: 0 auto;
  padding: 28px 0;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-inner > div:first-child { gap: 8px; }
.footer-inner p { margin: 0; color: #b9d1df; font-size: 12px; }
.footer-inner b { color: #fff; font-size: 12px; }
.footer-inner a { font-size: 11px; }
.footer-brand { font-weight: 900; letter-spacing: -.02em; }

@media (max-width: 560px) {
  .utility {
    gap: 4px 14px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .utility a {
    padding: 2px 0;
    font-size: 10px;
  }

  .main-header {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 8px;
  }

  .search { height: 36px; }
  .hero { min-height: 300px; }
  .hero h1 { font-size: 30px; }
  .hero .actions { gap: 8px; margin-top: 18px; }
  .hero .actions .btn { min-height: 44px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 19px; }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 22px 0;
  }

  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

/* Shared INFOBUDO header: homepage matches the portal header on subpages. */
:root { --ib-orange: #f36b21; }

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  padding: 12px max(16px, calc((100% - 1240px) / 2));
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e3eaec;
  box-shadow: 0 8px 20px rgba(16, 40, 59, .07);
  backdrop-filter: blur(16px);
}

.utility {
  min-height: 28px;
  gap: 18px;
  padding-inline: max(16px, calc((100% - 1240px) / 2));
  background: #f3f6f7;
  border-bottom-color: #e3eaec;
  color: #52626e;
  font-size: 10px;
}

.utility a { color: inherit; }
.utility a:hover { color: #10283b; }

.brand { font-size: 18px; color: #10283b; }
.brand-house { color: #0878c9; }

.main-header .search {
  height: 42px;
  border-radius: 8px;
  background: #f3f6f7;
}

.main-header .search button {
  width: 48px;
  background: var(--ib-orange);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}

.header-actions { gap: 7px; }
.header-actions a {
  min-height: 40px;
  padding-inline: 12px;
  border: 1px solid #e3eaec;
  border-radius: 8px;
  background: #fff;
}
.header-actions a:last-child { background: #f3f6f7; }
.header-actions a:hover { background: #fff2eb; }

@media (max-width: 560px) {
  .main-header { padding: 8px 12px; }
  .main-header .search { height: 38px; }
  .header-actions { gap: 5px; overflow-x: auto; }
  .header-actions a { min-height: 36px; padding-inline: 8px; }
}


/* Header v12 — one shared visual shell for the homepage and every portal route. */
html body .main-header {
  order: 1;
  grid-template-columns: minmax(205px, 225px) minmax(360px, 590px) auto;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  box-sizing: border-box;
  padding: 10px max(24px, 4vw);
  background: #fff;
  border-bottom: 1px solid #e3eaec;
  box-shadow: 0 4px 14px rgba(16,40,59,.05);
}
html body .utility {
  order: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 max(24px, 4vw);
  overflow-x: auto;
  flex-wrap: nowrap;
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #e3eaec;
  white-space: nowrap;
  scrollbar-width: none;
}
html body .utility::-webkit-scrollbar { display: none; }
html body .utility a { flex: 0 0 auto; padding: 11px 0; color: #173d5d; font-size: 14px; font-weight: 800; text-decoration: none; }
html body .utility a:not(.utility-promo):not(.utility-new) { padding: 9px 17px; border: 0; border-radius: 8px; background: #fbfdff; box-shadow: 0 2px 9px rgba(16,40,59,.06); }
html body .utility a:hover { color: #0878c9; }
html body .utility .utility-promo,
html body .utility .utility-new { padding: 9px 16px; border-radius: 8px; color: #fff; }
html body .utility .utility-promo { background: #ff5a12; }
html body .utility .utility-new { background: #079ba6; }
html body .utility:has(.mega-menu[open]) { overflow: visible; }
html body .utility .mega-menu { position: relative; flex: 0 0 auto; }
html body .utility .mega-menu summary { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; box-sizing: border-box; padding: 9px 17px; border: 0; border-radius: 8px; background: #fbfdff; box-shadow: 0 2px 9px rgba(16,40,59,.06); color: #173d5d; cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; white-space: nowrap; }
html body .utility .mega-menu summary::-webkit-details-marker { display: none; }
html body .utility .mega-menu summary::after { content: "▾"; margin-left: 2px; color: #0878c9; font-size: 14px; line-height: 1; transition: transform .18s ease; }
html body .utility .mega-menu[open] summary::after { transform: rotate(180deg); }
html body .utility .mega-menu summary:hover { color: #0878c9; background: #f3f9fd; }
html body .utility .mega-menu-panel { position: absolute; top: calc(100% + 7px); left: 0; z-index: 1200; display: none; grid-template-columns: repeat(2, minmax(155px, 1fr)); gap: 5px; width: min(430px, calc(100vw - 32px)); padding: 12px; border: 1px solid #dbe8ef; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 18px 36px rgba(16,40,59,.18); }
html body .utility .mega-menu[open] .mega-menu-panel { display: grid; }
html body .utility .mega-menu-panel a { display: flex; align-items: center; min-height: 35px; padding: 8px 10px; border-radius: 7px; color: #173d5d; font-size: 13px; font-weight: 750; text-decoration: none; }
html body .utility .mega-menu-panel a:hover { background: #eef7fc; color: #0878c9; }
html body .utility .mega-menu-panel .mega-menu-all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid #e3edf2; border-radius: 0 0 7px 7px; color: #0878c9; }
html body .main-header .mobile-menu { display: none; }
html body .brand { display: inline-flex; align-items: center; gap: 11px; min-width: 205px; color: #112d4c; text-decoration: none; }
html body .brand-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 0; border-radius: 0; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%230878d1' d='M24 2 44 13v23L24 46 4 36V13z'/%3E%3Cpath fill='%23fff' d='M12 33V18l12-8 12 8v15l-12-8z'/%3E%3Cpath fill='%230878d1' d='M18 33v-9l6-4 6 4v9l-6-4z'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 48px 48px; color: transparent; font-size: 0; font-weight: 900; line-height: 1; box-shadow: none; }
html body .brand-copy { display: grid; gap: 2px; min-width: 0; }
html body .brand-copy strong { color: #102c49; font-size: 28px; font-weight: 950; letter-spacing: -.06em; line-height: .95; }
html body .brand-copy strong span { color: #0878d1; }
html body .brand-copy small { color: #58738b; font-size: 10px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
html body .main-header .search { height: 40px; border-radius: 8px; background: #f7fafc; }
html body .main-header .search button { width: 44px; background: #0d3153; color: #fff; font-size: 20px; cursor: pointer; }
html body .main-header .header-actions { gap: 15px; }
html body .main-header .header-actions > a,
html body .main-header .header-actions > .account-trigger { min-height: 38px; padding: 0 3px; border: 0; border-radius: 0; background: transparent; color: #102c49; font-size: 12px; font-weight: 800; }
html body .main-header .header-actions > a:hover,
html body .main-header .header-actions > .account-trigger:hover { background: transparent; color: #0878d1; }
html body .main-header .header-actions small { font-size: 11px; }
html body > footer,
html body .construction-portal > .site-footer { order: 4; margin-top: auto; padding: 32px max(24px, 4vw) 26px; border-top: 1px solid #1d4252; background: #0f334c; color: #c5d8df; }
html body > footer .footer-inner,
html body .construction-portal > .site-footer .footer-inner { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 28px; width: min(100%, 1480px); margin: 0 auto; padding: 0; }
html body > footer .footer-inner > div,
html body .construction-portal > .site-footer .footer-inner > div { display: flex; flex-direction: column; gap: 7px; }
html body > footer .footer-inner .footer-brand,
html body .construction-portal > .site-footer .footer-brand { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
html body > footer .footer-inner .footer-brand span,
html body .construction-portal > .site-footer .footer-brand span { color: #55b9ef; }
html body > footer .footer-inner p,
html body .construction-portal > .site-footer .footer-inner p { margin: 0; color: #9fbac7; font-size: 12px; }
html body > footer .footer-inner b,
html body > footer .footer-inner a,
html body .construction-portal > .site-footer .footer-inner b,
html body .construction-portal > .site-footer .footer-inner a { font-size: 12px; }
html body > footer .footer-inner b,
html body .construction-portal > .site-footer .footer-inner b { color: #fff; }
html body > footer .footer-inner a,
html body .construction-portal > .site-footer .footer-inner a { color: #b9ced7; text-decoration: none; }
html body > footer .footer-inner a:hover,
html body .construction-portal > .site-footer .footer-inner a:hover { color: #fff; }
@media (max-width: 700px) {
  html body .main-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 64px; padding: 8px 14px; }
  html body .main-header .search { grid-column: 1 / -1; grid-row: 2; height: 38px; }
  html body .main-header .header-actions { grid-column: 2; grid-row: 1; gap: 8px; overflow: visible; }
  html body .main-header .header-actions > a,
  html body .main-header .header-actions > .account-trigger { min-height: 32px; padding: 0 2px; }
  html body .brand { min-width: 0; gap: 7px; }
  html body .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-width: 3px; font-size: 24px; }
  html body .brand-copy strong { font-size: 21px; }
  html body .brand-copy small { font-size: 8px; }
  html body .utility { display: none !important; }
  html body .main-header .header-actions > a:first-child { display: none; }
  html body .main-header .header-actions > a:nth-child(3) { width: 28px; font-size: 0; }
  html body .main-header .header-actions > a:nth-child(3)::after { content: "☰"; font-size: 24px; }
  html body .main-header .header-actions > a small { display: none; }
  html body > footer,
  html body .construction-portal > .site-footer { padding: 28px 16px 86px; }
  html body > footer .footer-inner,
  html body .construction-portal > .site-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  html body > footer .footer-inner > div:first-child,
  html body .construction-portal > .site-footer .footer-inner > div:first-child { grid-column: 1 / -1; }
}

/* Reference-style product slider with real controls, six-up desktop layout and touch scrolling. */
html body .home-reference .product-slider { position: relative; min-width: 0; }
html body .home-reference .product-slider .products { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 70px) / 6); grid-template-columns: none !important; gap: 14px; overflow-x: auto; padding: 3px 2px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
html body .home-reference .product-slider .products::-webkit-scrollbar { display: none; }
html body .home-reference .product-slider .product-card { scroll-snap-align: start; }
html body .home-reference .slider-arrow { position: absolute; top: 50%; z-index: 3; display: grid; width: 34px; height: 34px; place-items: center; transform: translateY(-50%); border: 1px solid #d9e7ee; border-radius: 50%; background: rgba(255,255,255,.96); color: #123b59; box-shadow: 0 6px 16px rgba(18,61,88,.12); font-size: 24px; line-height: 1; cursor: pointer; }
html body .home-reference .slider-arrow:hover { border-color: #087bd0; color: #087bd0; }
html body .home-reference .slider-arrow-prev { left: -18px; }
html body .home-reference .slider-arrow-next { right: -18px; }
@media (max-width: 1050px) {
  html body .home-reference .product-slider .products { grid-auto-columns: calc((100% - 42px) / 4); }
}
@media (max-width: 700px) {
  html body .home-reference .product-slider .products { grid-auto-columns: calc((100% - 9px) / 2); gap: 9px; padding-inline: 0; }
  html body .home-reference .slider-arrow { width: 30px; height: 30px; font-size: 21px; }
  html body .home-reference .slider-arrow-prev { left: -8px; }
  html body .home-reference .slider-arrow-next { right: -8px; }
}

/* Homepage reference rebuild: airy marketplace composition, clickable cards and responsive hierarchy. */
main.home-reference {
  width: min(100% - 64px, 1480px);
  margin: 0 auto 54px;
}

.home-reference .intro-grid { display: block; }
.home-reference .intro-grid > .side,
.home-reference .intro-grid > .quick,
.home-reference .benefits { display: none; }

.home-reference .hero {
  position: relative;
  min-height: 500px;
  padding: 42px 48px 34px;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.60) 29%, rgba(255,255,255,.18) 52%, rgba(255,255,255,0) 74%),
    url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') center / cover;
  color: #102c49;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(17,65,94,.14);
}

.home-reference .hero-copy { position: relative; z-index: 2; max-width: 600px; padding-bottom: 92px; }
.home-reference .hero .eyebrow { color: #0069bd; font-size: 12px; font-weight: 850; letter-spacing: .09em; }
.home-reference .hero h1 { margin: 14px 0 10px; color: #102c49; font-size: clamp(42px, 4.4vw, 66px); line-height: .98; letter-spacing: -.045em; font-weight: 900; }
.home-reference .hero h1 em { color: #087bd0; font-style: normal; }
.home-reference .hero p { max-width: 490px; color: #193854; font-size: 17px; line-height: 1.45; }
.home-reference .hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.home-reference .hero .btn { min-height: 48px; padding: 12px 22px; border-radius: 8px; font-size: 15px; font-weight: 800; }
.home-reference .hero .btn.orange { background: #ff5a12; border-color: #ff5a12; color: #fff; box-shadow: 0 8px 18px rgba(255,90,18,.2); }
.home-reference .hero .btn.orange:hover { background: #e84d0a; border-color: #e84d0a; }
.home-reference .hero .btn.white { background: #fff; border: 1px solid #dbe6ed; color: #087bd0; }
.home-reference .hero .btn.white:hover { border-color: #087bd0; background: #f5fbff; }

.hero-project-card {
  position: absolute;
  right: 4%;
  bottom: 22px;
  z-index: 3;
  display: block;
  width: 306px;
  min-height: 108px;
  padding: 18px 142px 16px 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  color: #102c49;
  box-shadow: 0 12px 30px rgba(16,44,73,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-project-card::after { content: ""; position: absolute; top: 9px; right: 8px; bottom: 9px; width: 126px; border-radius: 10px; background: url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') 78% 58% / 260% auto no-repeat; }
.hero-project-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,44,73,.28); }
.hero-project-card strong { display: block; font-size: 15px; line-height: 1.2; }
.hero-project-card span { display: block; margin-top: 5px; font-size: 12px; color: #5e7488; }
.hero-project-card b { position: absolute; right: 135px; top: 39px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #087bd0; border-radius: 50%; color: #087bd0; font-size: 19px; background: #fff; }

.hero-proof { position: absolute; left: 48px; right: 330px; bottom: 22px; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 700px; }
.hero-proof a { display: flex; align-items: center; gap: 9px; min-width: 0; color: #123b62; }
.hero-proof a:hover { color: #087bd0; }
.hero-proof > a > b { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #0a4c86; border-radius: 50%; font-size: 17px; }
.hero-proof strong, .hero-proof small { display: block; line-height: 1.15; }
.hero-proof strong { font-size: 11px; }
.hero-proof small { margin-top: 3px; color: #5f7890; font-size: 10px; }

.home-reference .categories-section { margin-top: 26px; }
.home-reference .section { margin-top: 52px; }
.home-reference .section-heading { align-items: end; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #d6e5ed; }
.home-reference .section-heading h2 { color: #102c49; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -.03em; }
.home-reference .section-heading > a { color: #0069bd; font-size: 13px; font-weight: 800; }

.home-reference .category-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.home-reference .category-card { position: relative; min-height: 150px; overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid #d9e7ee; box-shadow: 0 5px 14px rgba(18,61,88,.06); }
.home-reference .category-card img { width: 100%; height: 103px; object-fit: cover; }
.home-reference .category-card strong { display: block; padding: 8px 10px 0; color: #102c49; font-size: 13px; line-height: 1.1; }
.home-reference .category-card small { display: block; padding: 4px 10px 10px; color: #607a91; font-size: 10px; }
.home-reference .category-arrow { position: absolute; right: 10px; bottom: 8px; color: #087bd0; font-size: 18px; font-weight: 800; }
.home-reference .category-card:hover { transform: translateY(-3px); border-color: #87bde3; box-shadow: 0 12px 22px rgba(18,61,88,.12); }

.home-reference .digital-house { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; min-height: 480px; margin-top: 44px; padding: 60px; border-radius: 14px; background: linear-gradient(112deg, #eaf7fe 0%, #f8fbfd 58%, #fff 100%); border-color: #cfe3ed; box-shadow: 0 12px 28px rgba(18,61,88,.05); }
.home-reference .digital-copy { align-self: center; max-width: 560px; }
.home-reference .digital-eyebrow { color: #087bd0; font-size: 13px; letter-spacing: .08em; font-weight: 850; }
.home-reference .digital-copy h2 { margin: 22px 0 18px; color: #102c49; font-size: clamp(38px, 4vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.home-reference .digital-copy h2 i { color: #087bd0; font-style: normal; }
.home-reference .digital-copy p { max-width: 520px; color: #193854; font-size: 17px; line-height: 1.55; }
.home-reference .digital-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-reference .digital-copy .btn { min-height: 50px; padding-inline: 25px; border-radius: 8px; font-weight: 800; }
.home-reference .digital-copy .btn.teal { background: #087bd0; border-color: #087bd0; color: #fff; }
.home-reference .digital-copy .btn.white { background: #fff; border-color: #d6e5ed; color: #087bd0; }
.home-reference .house-visual { min-height: 350px; border-radius: 12px; }

.home-reference .products { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-reference .product-card { min-width: 0; min-height: 294px; padding: 10px; border-radius: 10px; }
.home-reference .products img { height: 170px; object-fit: contain; }
.home-reference .product-card strong { display: block; min-height: 42px; color: #102c49; font-size: 13px; line-height: 1.25; }
.home-reference .product-card small { color: #658096; font-size: 10px; }
.home-reference .product-card .price { display: block; margin-top: 10px; color: #e54d10; font-size: 17px; font-weight: 900; }

.home-reference .creators { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-reference .creator-card { min-height: 250px; border-radius: 12px; overflow: hidden; }
.home-reference .creator-card img { height: 205px; object-fit: cover; }
.home-reference .creator-info { padding: 14px 16px; background: #fff; }
.home-reference .creator-info b { color: #102c49; font-size: 16px; }
.home-reference .creator-info small { display: block; margin-top: 5px; color: #59758b; font-size: 12px; line-height: 1.35; }

.home-reference .guides { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.home-reference .guide-card { min-width: 0; border-radius: 10px; overflow: hidden; }
.home-reference .guide-card img { height: 144px; object-fit: cover; }
.home-reference .guide-card strong { display: block; padding: 11px 12px 0; color: #102c49; font-size: 12px; line-height: 1.25; }
.home-reference .guide-card small { display: block; padding: 7px 12px 13px; color: #087bd0; font-size: 10px; }

.home-reference .brand-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.home-reference .brand-card { min-height: 82px; border-radius: 9px; background: #fff; }
.home-reference .brand-card img { width: 48px; height: 48px; object-fit: contain; }

@media (max-width: 1200px) {
  main.home-reference { width: min(100% - 36px, 1160px); }
  .home-reference .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-reference .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-reference .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-reference .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-reference .digital-house { padding: 42px; gap: 30px; }
}

@media (max-width: 760px) {
  main.home-reference { width: calc(100% - 24px); margin-bottom: 30px; }
  .utility { flex-wrap: nowrap; overflow-x: auto; }
  .utility a { flex: 0 0 auto; }
  .home-reference .hero { min-height: 570px; padding: 28px 22px 150px; background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 49%, rgba(255,255,255,.18) 100%), url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') center / cover; }
  .home-reference .hero-copy { padding-bottom: 0; }
  .home-reference .hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .home-reference .hero p { max-width: 400px; font-size: 15px; }
  .home-reference .hero-proof { left: 22px; right: 22px; bottom: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .hero-project-card { display: none; }
  .home-reference .categories-section { margin-top: 20px; }
  .home-reference .digital-house { grid-template-columns: 1fr; min-height: 0; margin-top: 32px; padding: 28px 22px 22px; }
  .home-reference .digital-copy h2 { font-size: 39px; }
  .home-reference .digital-copy p { font-size: 15px; }
  .home-reference .house-visual { min-height: 300px; }
  .home-reference .creators { grid-template-columns: 1fr; }
  .home-reference .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-reference .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .home-reference .category-grid,
  .home-reference .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-reference .category-card { min-height: 135px; }
  .home-reference .category-card img { height: 88px; }
  .home-reference .category-card strong { padding-inline: 7px; font-size: 11px; }
  .home-reference .category-card small { padding-inline: 7px; font-size: 9px; }
  .home-reference .products img { height: 125px; }
  .home-reference .product-card { min-height: 250px; padding: 8px; }
  .home-reference .product-card strong { font-size: 11px; }
  .home-reference .guides { grid-template-columns: 1fr; }
  .home-reference .hero .actions .btn { width: 100%; }
  .home-reference .hero-proof strong { font-size: 10px; }
  .home-reference .hero-proof small { font-size: 9px; }
}

/* Digital house visual: keep the four system links as readable overlay cards. */
.house-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #c9e0ec;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(9, 68, 99, .12), rgba(255, 255, 255, .02)),
    url('/assets/as3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') center / cover;
}

.house-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 61, 91, .06), rgba(8, 61, 91, .2));
  pointer-events: none;
}

.pin {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 155px;
  max-width: 210px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: rgba(13, 53, 80, .9);
  box-shadow: 0 8px 20px rgba(15, 56, 80, .2);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease;
}

.pin:hover {
  transform: translateY(-2px);
  background: rgba(8, 127, 202, .96);
  color: #fff;
}

.pin b {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .17);
  color: #fff;
  font-size: 11px;
}

.pin span {
  display: block;
  min-width: 0;
  font-weight: 800;
}

.pin small {
  display: block;
  margin-top: 3px;
  color: #cde8f3;
  font-size: 10px;
  font-weight: 500;
}

.pin-roof { top: 12%; right: 5%; }
.pin-wall { top: 36%; right: 8%; }
.pin-heat { top: 61%; left: 6%; }
.pin-found { right: 10%; bottom: 13%; }

.live {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(13, 53, 80, .78);
  color: #e6f6fb;
  font-size: 10px;
  font-weight: 700;
}

/* Card content polish: keep dynamic titles, metadata, prices and CTAs separated. */
.category-card,
.creator-card,
.product-card,
.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.category-card strong {
  display: block;
  min-height: 42px;
  padding: 10px 13px 12px;
  color: var(--ib-navy);
  font-size: 15px;
  line-height: 1.25;
}

.category-card:hover img,
.creator-card:hover img,
.guide-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

.category-card img,
.creator-card img,
.guide-card img {
  transition: transform .25s ease, filter .25s ease;
}

.creator-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px 14px;
}

.creator-info b {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ib-navy);
  font-size: 17px;
  line-height: 1.3;
}

.creator-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #e7f4fb;
  color: var(--ib-blue);
  font-size: 11px;
  line-height: 1;
}

.creator-info small,
.product-card > small,
.guide-card > small {
  display: block;
  color: var(--ib-muted);
  font-size: 13px;
  line-height: 1.4;
}

.product-card {
  padding-bottom: 14px;
}

.product-card img {
  background: #fbfdfe;
  border-bottom: 1px solid #edf3f6;
}

.product-card > strong,
.product-card > small,
.product-card > .price,
.product-card > .product-link {
  display: block;
  margin-left: 14px;
  margin-right: 14px;
}

.product-card > strong {
  display: -webkit-box;
  min-height: 3.9em;
  overflow: hidden;
  margin-top: 13px;
  color: var(--ib-navy);
  font-size: 16px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card > small {
  margin-top: 7px;
  letter-spacing: .01em;
}

.product-card .price {
  margin-top: auto;
  padding-top: 11px;
  color: var(--ib-blue-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.product-card .product-link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--ib-blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.product-card .price::before {
  content: "Cena orientacyjna";
  display: block;
  margin-bottom: 3px;
  color: var(--ib-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-card {
  padding-bottom: 14px;
}

.guide-card > strong,
.guide-card > small {
  margin-left: 14px;
  margin-right: 14px;
}

.guide-card > strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  margin-top: 13px;
  color: var(--ib-navy);
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-card > small {
  margin-top: auto;
  padding-top: 11px;
  color: var(--ib-blue-dark);
  font-weight: 700;
}

.guide-card > small::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

@media (max-width: 560px) {
  .creator-info,
  .product-card > strong,
  .product-card > small,
  .product-card > .price,
  .product-card > .product-link,
  .guide-card > strong,
  .guide-card > small {
    margin-left: 11px;
    margin-right: 11px;
  }

  .creator-info { padding: 10px 0 12px; }
  .product-card > strong,
  .guide-card > strong { font-size: 14px; }
}

@media (max-width: 700px) {
  .house-visual { min-height: 320px; }
  .pin { min-width: 0; max-width: 155px; padding: 7px; font-size: 11px; }
  .pin small { font-size: 9px; }
  .pin-roof { top: 8%; right: 4%; }
  .pin-wall { top: 31%; right: 4%; }
  .pin-heat { top: 55%; left: 4%; }
  .pin-found { right: 4%; bottom: 12%; }
}

/* Portal polish: clickable feature tiles, branded manufacturer cards, and clearer section rhythm. */
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  color: #28516a;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.brand-card img {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.brand-card:hover {
  border-color: #9bcfe7;
  box-shadow: 0 8px 20px rgba(13, 62, 98, .12);
  color: var(--ib-blue-dark);
  transform: translateY(-2px);
}

.benefits > a,
.bottom-benefits > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e7ef;
  border-radius: 8px;
  background: #e8f4fa;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.benefits > a:hover,
.bottom-benefits > a:hover {
  border-color: #a7d4e8;
  box-shadow: 0 7px 18px rgba(13, 62, 98, .1);
  color: var(--ib-ink);
  transform: translateY(-2px);
}

.benefits > a > b,
.bottom-benefits > a > b {
  color: var(--ib-blue);
  font-size: 21px;
}

.benefits > a strong,
.benefits > a small,
.bottom-benefits > a strong,
.bottom-benefits > a small {
  display: block;
}

.benefits > a strong,
.bottom-benefits > a strong {
  color: var(--ib-navy);
  font-size: 14px;
}

.benefits > a small,
.bottom-benefits > a small {
  margin-top: 3px;
  color: var(--ib-muted);
  font-size: 12px;
}

.categories-section {
  margin-top: 34px;
}

.digital-house,
.section {
  margin-top: 52px;
}

.manufacturers {
  margin-top: 58px;
}

.bottom-benefits {
  margin-top: 42px;
  margin-bottom: 24px;
}

.bottom-benefits > a {
  min-height: 76px;
}

.main-header {
  min-height: 70px;
  box-shadow: 0 3px 14px rgba(13, 53, 80, .05);
}

.main-header .brand {
  font-size: 17px;
}

.main-header .search {
  height: 40px;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px rgba(13, 53, 80, .03);
}

.header-actions a {
  min-height: 40px;
  padding-inline: 12px;
  border: 1px solid #e3edf2;
}

.hero,
.house-visual,
.category-card img,
.creator-card img,
.guide-card img {
  image-rendering: auto;
  backface-visibility: hidden;
}

.hero {
  box-shadow: 0 14px 32px rgba(17, 65, 94, .16);
}

.category-card img,
.creator-card img,
.guide-card img {
  filter: saturate(.98) contrast(1.02);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-weight: 850;
}

@media (max-width: 700px) {
  .benefits > a,
  .bottom-benefits > a {
    min-width: 0;
    min-height: 86px;
    padding: 12px 10px;
    gap: 8px;
    align-items: flex-start;
  }

  .benefits > a > span,
  .bottom-benefits > a > span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .benefits > a > b,
  .bottom-benefits > a > b {
    flex: 0 0 18px;
    font-size: 18px;
    line-height: 1.25;
  }

  .benefits > a strong,
  .bottom-benefits > a > span > b {
    display: block;
    font-size: 14px;
    line-height: 1.3;
  }

  .benefits > a small,
  .bottom-benefits > a small {
    font-size: 11px;
    line-height: 1.35;
  }

  .brand-card {
    min-height: 70px;
    gap: 9px;
    padding: 12px 10px;
    font-size: 13px;
  }

  .brand-card img {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .digital-house,
  .section { margin-top: 34px; }
  .categories-section { margin-top: 24px; }
}

@media (max-width: 420px) {
  .benefits > a,
  .bottom-benefits > a {
    min-height: 82px;
    padding: 10px 8px;
  }

  .benefits > a strong,
  .bottom-benefits > a > span > b { font-size: 13px; }
  .benefits > a small,
  .bottom-benefits > a small { font-size: 10px; }
}

/* Keep the proof row readable over the hero image. */
.home-reference .hero-proof {
  background: #fff;
  padding: 12px;
}

/* Header alignment must win over legacy homepage rules above. */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  padding: 12px max(16px, calc((100% - 1240px) / 2));
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e3eaec;
  box-shadow: 0 8px 20px rgba(16,40,59,.07);
  backdrop-filter: blur(16px);
}
.utility {
  min-height: 28px;
  gap: 18px;
  padding-inline: max(16px, calc((100% - 1240px) / 2));
  background: #f3f6f7;
  border-bottom-color: #e3eaec;
  color: #52626e;
  font-size: 10px;
}
.brand { font-size: 18px; color: #10283b; }
.main-header .search { height: 42px; border-radius: 8px; background: #f3f6f7; }
.main-header .search button { width: 48px; background: #f36b21; color: #fff; font-size: 21px; cursor: pointer; }
.header-actions { gap: 7px; }
.header-actions a { min-height: 40px; padding-inline: 12px; border: 1px solid #e3eaec; border-radius: 8px; background: #fff; }
.header-actions a:last-child { background: #f3f6f7; }
.header-actions a:hover { background: #fff2eb; }
.utility-promo, .utility-new { padding: 7px 12px !important; border-radius: 7px; color: #fff !important; font-weight: 800; }
.utility-promo { background: #ff5a12; }
.utility-new { background: #079ba6; }
html body > footer .footer-brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: #fff; text-decoration: none; }
html body > footer .footer-brand > span:last-child { color: #fff; font-size: 21px; font-weight: 900; letter-spacing: -.045em; }
html body > footer .footer-brand > span:last-child > span { color: #55b9ef; }
html body > footer .footer-brand-mark { display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%2355b9ef' d='M24 2 44 13v23L24 46 4 36V13z'/%3E%3Cpath fill='%230f334c' d='M12 33V18l12-8 12 8v15l-12-8z'/%3E%3Cpath fill='%2355b9ef' d='M18 33v-9l6-4 6 4v9l-6-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
html body > footer .footer-brand-column small { color: #89a9b9; font-size: 11px; line-height: 1.45; }
html body > footer .footer-socials { display: flex; gap: 7px; margin-top: 8px; }
html body > footer .footer-socials a { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #557888; border-radius: 50%; color: #fff !important; font-size: 12px !important; font-weight: 800; }
html body > footer .footer-socials a:hover { border-color: #55b9ef; background: #16475f; }
html body > footer .footer-bottom { display: flex; justify-content: space-between; gap: 18px; max-width: 1480px; margin: 26px auto 0; padding-top: 14px; border-top: 1px solid rgba(180,215,226,.2); color: #89a9b9; font-size: 10px; }
@media (max-width: 700px) { html body > footer .footer-bottom { flex-direction: column; gap: 5px; margin-top: 20px; } }
@media (max-width: 560px) {
  .main-header { padding: 8px 12px; }
  .main-header .search { height: 38px; }
  .header-actions { gap: 5px; overflow-x: auto; }
  .header-actions a { min-height: 36px; padding-inline: 8px; }
}

/* Final visual pass: the desktop slider matches the approved reference composition. */
.home-reference .hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.65) 28%, rgba(255,255,255,.16) 58%, rgba(255,255,255,0) 78%),
    url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') center / cover no-repeat;
}
.home-reference .hero-copy,
.home-reference .hero-project-card,
.home-reference .hero-proof { opacity: 1; }
.home-reference .hero-project-card::after {
  background: url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') 78% 58% / 260% auto no-repeat;
}
.hero-proof { gap: 18px; max-width: 760px; }
.hero-proof > a > b { flex-basis: 40px; width: 40px; height: 40px; border-width: 2px; font-size: 21px; }
.hero-proof strong { font-size: 13px; }
.hero-proof small { font-size: 11px; }
.main-header .header-actions { gap: 15px; }
.main-header .header-actions > a { min-height: 42px; padding-inline: 3px; border: 0; border-radius: 0; background: transparent; color: #102c49; font-size: 18px; font-weight: 850; }
.main-header .header-actions > a:hover { background: transparent; color: #0878d1; }
.main-header .header-actions > a small { margin-left: 5px; color: inherit; font-size: 13px; font-weight: 800; }
.main-header .header-actions > a svg { width: 19px; height: 19px; stroke-width: 2.2; vertical-align: -3px; }
@media (max-width: 700px) {
  .home-reference .hero {
    background:
      linear-gradient(90deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,.36) 43%, rgba(255,255,255,.06) 78%, rgba(255,255,255,0) 100%),
      url('/assets/3cb1b2e6-1d7b-4ff0-a0c2-c37e4a87534c.png') 64% center / cover;
  }
  .home-reference .hero-copy,
  .home-reference .hero-project-card,
  .home-reference .hero-proof { opacity: 1; }
  .hero-proof { gap: 14px 12px; }
  .hero-proof > a > b { flex-basis: 36px; width: 36px; height: 36px; font-size: 20px; }
  .home-reference .hero-proof strong { font-size: 12px; }
  .home-reference .hero-proof small { font-size: 10px; }
  html body .main-header .header-actions { gap: 13px; overflow: visible; }
  html body .main-header .header-actions > a:nth-child(2),
  html body .main-header .header-actions > a:last-child { width: 31px; min-height: 38px; padding: 0; font-size: 0; }
  html body .main-header .header-actions > a:nth-child(2)::before { content: "♡"; font-size: 28px; line-height: 1; }
  html body .main-header .header-actions > a:last-child::before { content: "🛒"; font-size: 24px; line-height: 1; filter: grayscale(1); }
  html body .main-header .header-actions > a small { display: none; }
  html body .main-header .mobile-menu > summary { width: 36px; height: 38px; }
  html body .main-header .mobile-menu > summary::before { font-size: 30px; }
}

/* One custom line-icon set for account, favourites, catalogue and basket. */
.main-header .header-actions > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0;
  color: transparent;
}
.main-header .header-actions > a::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: center / contain no-repeat;
}
.main-header .header-actions > a:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.2'/%3E%3Cpath d='M5.5 20c.7-3.4 3.1-5.4 6.5-5.4s5.8 2 6.5 5.4'/%3E%3C/svg%3E");
}
.main-header .header-actions > a:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 8.7c0 5.2-8.6 10.4-8.6 10.4S3.4 13.9 3.4 8.7A4.3 4.3 0 0 1 12 6.2a4.3 4.3 0 0 1 8.6 2.5Z'/%3E%3C/svg%3E");
}
.main-header .header-actions > a:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
}
.main-header .header-actions > a:last-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h2l1.4 9.1a2 2 0 0 0 2 1.7h7.7a2 2 0 0 0 1.9-1.4L20.5 9H7'/%3E%3Ccircle cx='10' cy='20' r='1.2'/%3E%3Ccircle cx='17' cy='20' r='1.2'/%3E%3C/svg%3E");
}
.main-header .header-actions > a small {
  font-size: 14px;
  font-weight: 850;
  color: #102c49;
}
@media (max-width: 700px) {
  .main-header .header-actions > a:nth-child(2)::before,
  .main-header .header-actions > a:last-child::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    content: "";
    filter: none;
  }
  .main-header .mobile-menu > summary::before {
    content: "";
    width: 28px;
    height: 21px;
    background: linear-gradient(#102c49 0 2px, transparent 2px 9px, #102c49 9px 12px, transparent 12px 19px, #102c49 19px 21px);
  }
}

/* Final partner-card overrides: keep sponsored logos consistent with the shell. */
.home-reference .partner-brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-reference .partner-ad-card { position: relative; min-height: 118px; display: flex; align-items: flex-start; justify-content: center; padding: 14px; border-color: #c9dfea; box-shadow: 0 7px 18px rgba(13,62,98,.06); }
.home-reference .partner-ad-card img { width: 46px; height: 46px; margin-bottom: 6px; }
.home-reference .partner-ad-card > span { color: #173f5e; font-size: 15px; font-weight: 900; }
.home-reference .partner-ad-card > small { color: #d86218; font-size: 10px; font-weight: 800; }
footer .partner-ad-strip { width: min(1480px, calc(100% - 48px)); }
footer .partner-ad-logos { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
@media (max-width: 900px) {
  .home-reference .partner-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  footer .partner-ad-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-reference .partner-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .partner-ad-strip { width: calc(100% - 20px); }
  footer .partner-ad-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* System families: real brand marks grouped by a complete building solution. */
.home-system-families { width: min(1480px, calc(100% - 48px)); margin: 28px auto 48px; }
.home-system-families .section-heading { margin-bottom: 4px; }
.home-system-lead { margin: 0 0 18px; color: #607c91; font-size: 15px; }
.home-system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-system-card { overflow: hidden; border: 1px solid #d7e6ee; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(14, 58, 89, .06); }
.home-system-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; min-height: 112px; padding: 18px 18px 12px; color: #153c5d; text-decoration: none; }
.home-system-main:hover { background: #f5fbff; }
.home-system-number { color: #0a7cca; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.home-system-main h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.12; }
.home-system-main p { margin: 0; color: #70889a; font-size: 13px; line-height: 1.45; }
.home-system-main > b { color: #0878d1; font-size: 22px; line-height: 1; }
.home-system-brands { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 9px 14px; border-top: 1px solid #edf3f6; background: #fbfdff; }
.home-system-brands a { display: grid; place-items: center; width: 88px; height: 38px; padding: 5px 9px; border: 1px solid #e3edf2; border-radius: 7px; background: #fff; }
.home-system-brands a:hover { border-color: #1689d5; }
.home-system-brands img { display: block; max-width: 100%; max-height: 27px; object-fit: contain; }
.partner-ad-card::after { content: none; }
.partner-ad-card > img { object-fit: contain; }
.partner-ad-logos a { gap: 5px; }
.partner-ad-logos a img { display: block; width: auto; max-width: 84px; height: 23px; object-fit: contain; }
@media (max-width: 900px) {
  .home-system-families { width: calc(100% - 32px); }
  .home-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-system-families { width: calc(100% - 20px); margin-bottom: 32px; }
  .home-system-grid { grid-template-columns: 1fr; }
  .home-system-main { min-height: 96px; padding: 15px; }
}

/* Header v13 final cascade: keep the new menu above legacy shell overrides. */
html body .utility .mega-menu-panel { grid-template-columns: minmax(230px, 1.15fr) minmax(240px, 1fr) minmax(220px, .9fr); gap: 18px; width: min(980px, calc(100vw - 32px)); padding: 18px; border-radius: 16px; }
html body .utility .mega-menu-panel a { min-height: 0; padding: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; font-size: 13px; }
html body .utility .mega-menu-panel .mega-menu-categories a { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 9px; }
html body .utility .mega-menu-panel .mega-menu-systems a,
html body .utility .mega-menu-panel .mega-menu-shortcuts a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
html body .utility .mega-menu-panel .mega-menu-all { display: flex; min-height: 40px; padding: 10px 8px 0; border-top: 1px solid #e3edf2; border-radius: 0; background: transparent; }
html body .utility-dropdown-panel a { display: flex; min-height: 35px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; font-size: 12px; }
html body .utility-dropdown-panel .utility-dropdown-all { min-height: 35px; padding-top: 10px; border-top: 1px solid #e3edf2; border-radius: 0; }
@media (max-width: 980px) {
  html body .utility .mega-menu-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  html body .utility .mega-menu-panel { grid-template-columns: 1fr; width: auto; }
}

/* Shared fixed shell v14 — header first visually on every route. */
html body { padding-top: 110px; }
html body:has(.construction-portal) { padding-top: 0; }
html body .construction-portal { padding-top: 110px; }
html body .main-header { position: fixed; inset: 0 0 auto; z-index: 1500; width: 100%; }
html body .utility { position: fixed; top: 66px; right: 0; left: 0; z-index: 1490; width: 100%; }
html body .mega-menu-panel,
html body .utility-dropdown-panel { z-index: 1600; }
html body .home-system-families { margin-top: 0; }
@media (max-width: 700px) {
  html body { padding-top: 110px; }
  html body .construction-portal { padding-top: 110px; }
  html body .utility { display: none !important; }
}

/* Portal-only header parity. The public homepage does not render .construction-portal. */
html body:has(.construction-portal) .main-header .header-actions > .account-trigger {
  min-height: 38px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #102c49;
  font-size: 0;
  font-weight: 800;
}

html body:has(.construction-portal) .main-header .header-actions > .account-trigger > * {
  display: none !important;
}

html body:has(.construction-portal) .main-header .header-actions > .account-trigger::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M4.5 20c.8-3.3 3.3-5 7.5-5s6.7 1.7 7.5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body:has(.construction-portal) .main-header .header-actions > .account-trigger::after {
  content: "Konto";
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 700px) {
  html body:has(.construction-portal) .main-header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  html body:has(.construction-portal) .main-header .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  html body:has(.construction-portal) .main-header .header-actions > .account-trigger,
  html body:has(.construction-portal) .main-header .desktop-catalog-link {
    display: none !important;
  }
}

/* INFOBUDO — MEGA MENU FIX */

.utility {
  position: relative;
  z-index: 1000;
  overflow: visible !important;
}

.utility .mega-menu {
  position: static;
}

.utility .mega-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.utility .mega-menu > summary::-webkit-details-marker {
  display: none;
}

.utility .mega-menu-panel {
  display: none;
  position: absolute;
  z-index: 1100;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1450px, calc(100vw - 32px));
  padding: 28px;
  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 45px rgba(16,44,73,.16);

  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.utility .mega-menu[open] > .mega-menu-panel {
  display: grid !important;
}

.utility .mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.utility .mega-menu-kicker {
  display: block;
  margin-bottom: 12px;
  color: #0878d1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.utility .mega-menu-column > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 9px;
  color: #102c49;
  text-decoration: none;
}

.utility .mega-menu-column > a:hover {
  background: #edf6ff;
}

.utility .mega-menu-column > a strong {
  display: block;
  font-size: 14px;
}

.utility .mega-menu-column > a small {
  display: block;
  margin-top: 4px;
  color: #668096;
  font-size: 12px;
}

.utility .mega-menu-column > a b {
  margin-left: auto;
}

.utility .mega-menu-all {
  grid-column: 1 / -1;
  display: block;
  padding: 16px;
  background: #edf6ff;
  border-radius: 9px;
  color: #0878d1;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .utility .mega-menu-panel {
    position: absolute;
    top: 100%;
    width: calc(100vw - 24px);
    max-height: 75vh;
    overflow-y: auto;
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
}


/* INFOBUDO — MEGAMENU DLA WYKONAWCÓW */

.utility .contractor-menu {
  position: static;
}

.utility .contractor-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}

.utility .contractor-trigger::-webkit-details-marker {
  display: none;
}

.utility .contractor-mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(850px, calc(100vw - 32px));
  padding: 26px;
  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 45px rgba(16,44,73,.18);
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 25px;
}

.utility .contractor-menu[open] > .contractor-mega-panel {
  display: grid !important;
}

.utility .contractor-mega-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.utility .contractor-mega-column a {
  display: block;
  padding: 13px;
  color: #102c49;
  text-decoration: none;
  border-radius: 9px;
}

.utility .contractor-mega-column a:hover {
  background: #edf6ff;
}

.utility .contractor-mega-column strong {
  display: block;
  font-size: 14px;
}

.utility .contractor-mega-column small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #668096;
}

@media (max-width: 900px) {
  .utility .contractor-mega-panel {
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    max-height: 75vh;
    overflow-y: auto;
  }
}
/* INFOBUDO mega menu viewport fix */
html body .utility .mega-menu-panel {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  width: min(980px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 24px) !important;
  z-index: 2200 !important;
  box-sizing: border-box;
}
html body .utility:has(.mega-menu[open]) { overflow: visible !important; }
@media (max-width: 980px) and (min-width: 701px) {
  html body .utility .mega-menu-panel {
    width: min(760px, calc(100vw - 32px)) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  html body .utility .mega-menu-panel {
    position: fixed !important;
    top: 112px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    grid-template-columns: 1fr !important;
    max-height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
    z-index: 2200 !important;
  }
}

/* Final mobile partner-card fix: logo, name and ad label stay in their own grid areas. */
html body .partner-ad-card {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: minmax(24px, auto) minmax(18px, auto);
  align-items: center !important;
  justify-content: initial !important;
  column-gap: 12px;
  row-gap: 2px;
  min-width: 0;
  min-height: 96px;
  overflow: hidden;
  padding: 12px !important;
  text-align: left;
}
html body .partner-ad-card > img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 46px !important;
  height: 46px !important;
  max-width: 46px;
  margin: 0 !important;
  object-fit: contain;
}
html body .partner-ad-card > span,
html body .partner-ad-card > small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body .partner-ad-card > span {
  grid-row: 1;
  line-height: 1.15;
}
html body .partner-ad-card > small {
  grid-row: 2;
  line-height: 1.15;
}
@media (max-width: 560px) {
  html body .partner-ad-card {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 88px;
    column-gap: 9px;
    padding: 10px !important;
  }
  html body .partner-ad-card > img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px;
  }
  html body .partner-ad-card > span { font-size: 14px; }
  html body .partner-ad-card > small { font-size: 10px; }
}

/* Medium desktop: keep the complete utility navigation visible without clipping. */
@media (max-width: 1280px) and (min-width: 701px) {
  html body .utility {
    gap: 6px;
    padding-inline: 12px;
  }

  html body .utility a:not(.utility-promo):not(.utility-new) {
    padding: 8px 10px;
    font-size: 13px;
  }

  html body .utility .mega-menu summary {
    padding-inline: 10px;
    font-size: 13px;
  }

  html body .utility .utility-promo,
  html body .utility .utility-new {
    padding-inline: 11px;
  }
}
