:root {
  --black: #063b6f;
  --ink: #0c2638;
  --muted: #62626b;
  --line: #e5e5eb;
  --soft: #f5f5f7;
  --white: #ffffff;
  --magenta: #1f8d45;
  --magenta-dark: #064f8f;
  --shadow: 0 24px 70px rgba(9, 9, 15, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.topbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--black);
  border-bottom: 3px solid var(--magenta);
}

.service-area {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
}

.tollfree {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  box-shadow: 0 12px 28px rgba(31, 141, 69, 0.18);
  font-weight: 900;
  text-decoration: none;
}

.tollfree strong {
  font-size: 1.16rem;
}

.phone-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.phone-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(230, 230, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand img {
  width: auto;
  height: 58px;
  border: 1px solid rgba(22, 22, 26, 0.12);
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 10px 24px rgba(7, 7, 7, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.nav-parent {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active,
.nav-dropdown:hover .nav-parent {
  color: var(--black);
  background: var(--soft);
}

.nav-dropdown { position: relative; }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 310px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu { display: grid; }

.submenu a {
  justify-content: flex-start;
  white-space: normal;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.86), rgba(0,0,0,0.54) 44%, rgba(0,0,0,0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 88px);
  padding: 68px 0 106px;
  color: var(--white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slider-controls {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 6vw, 88px);
  bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slider-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
}

.slider-dot.is-active { background: var(--magenta); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--magenta);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { font-size: clamp(2.45rem, 5.6vw, 5.4rem); max-width: 940px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.24rem; }

.hero-copy,
.page-hero p {
  max-width: 700px;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  box-shadow: 0 14px 30px rgba(31, 141, 69, 0.18);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.08);
}

.single-service-copy .button.ghost,
.contact-card .button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.section {
  padding: clamp(72px, 8vw, 118px) clamp(20px, 6vw, 88px);
}

.intro-grid,
.service-detail,
.contact-layout,
.page-hero,
.single-service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.lead-block p,
.section-heading p,
.service-card p,
.detail-copy p,
.process-grid p,
.review-card p,
.contact-card,
.gallery-copy p,
.single-service-copy p {
  color: var(--muted);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.cards-section { background: var(--soft); }

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.review-card,
.contact-card,
.contact-form,
.gallery-item,
.process-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card {
  overflow: hidden;
  padding-bottom: 28px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.service-card .card-icon,
.service-card h3,
.service-card p,
.service-card .card-link {
  margin-left: 24px;
  margin-right: 24px;
}

.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--black);
  font-size: .82rem;
  font-weight: 900;
}

.card-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--magenta-dark);
  font-weight: 900;
  text-decoration: none;
}

.split-band,
.process-band,
.reviews-band {
  padding: clamp(72px, 8vw, 118px) clamp(20px, 6vw, 88px);
  color: var(--white);
  background: var(--black);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article {
  padding: 28px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.process-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--magenta);
  font-weight: 900;
}

.process-grid p,
.reviews-band .section-heading p { color: rgba(255,255,255,0.72); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item { overflow: hidden; }

.before-after {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black);
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after .after {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.before-after input {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: calc(100% - 36px);
  accent-color: var(--magenta);
}

.ba-label {
  position: absolute;
  z-index: 4;
  top: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0,0,0,0.72);
  font-weight: 900;
}

.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; background: var(--magenta-dark); }

.gallery-copy { padding: 24px; }

.review-window { overflow: hidden; }

.review-track {
  display: flex;
  transition: transform 500ms ease;
}

.review-card {
  min-width: calc(25% - 14px);
  margin-right: 18px;
  padding: 26px;
  color: var(--ink);
}

.stars {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f6a800;
  font-weight: 900;
  letter-spacing: 0;
}

.star-fill {
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
}

.rating-score {
  color: #565660;
  font-size: .92rem;
  font-weight: 800;
}

.review-card strong { display: block; margin-top: 18px; }

.review-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.review-controls button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.review-controls button:hover {
  background: var(--magenta);
}

.page-hero {
  padding: clamp(76px, 9vw, 132px) clamp(20px, 6vw, 88px);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(0,0,0,0.9), rgba(22,22,26,0.78)),
    url("images/hero-servizi-leal.png") center/cover;
}

.page-hero.compact { grid-template-columns: 1fr; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4.65rem); }

.service-detail { border-bottom: 1px solid var(--line); }

.service-detail.reverse .detail-copy { order: 2; }

.service-detail img,
.single-service-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tag-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: .9rem;
  font-weight: 900;
}

.single-service-hero { background: var(--soft); }

.single-service-copy .button { margin-top: 22px; }

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: clamp(72px, 8vw, 118px) clamp(20px, 6vw, 88px);
  background: var(--soft);
}

.contact-card,
.contact-form { padding: 32px; }

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(20px, 6vw, 88px);
  color: rgba(255,255,255,0.72);
  background: var(--black);
}

.site-footer strong,
.site-footer a { color: var(--white); font-weight: 900; }

.site-footer p { margin: 6px 0 0; }
.site-footer div:last-child { display: grid; gap: 6px; text-align: right; }

@media (max-width: 1040px) {
  .service-cards,
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card { min-width: calc(50% - 12px); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav-dropdown { display: grid; }
  .submenu {
    position: static;
    display: grid;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
    background: var(--soft);
  }
  .intro-grid,
  .service-detail,
  .contact-layout,
  .page-hero,
  .single-service-hero,
  .cta-band,
  .gallery-grid { grid-template-columns: 1fr; }
  .service-detail.reverse .detail-copy { order: 0; }

  .submenu a {
    min-height: auto;
    padding: 9px 10px;
  }

  .review-window {
    margin-right: -20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tollfree {
    justify-content: center;
    width: 100%;
  }

  .brand img { height: 46px; }
  .hero { min-height: 720px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.88), rgba(0,0,0,0.34)); }
  .hero-content { width: calc(100% - 40px); margin: 0 auto; padding-top: 54px; }
  .service-cards,
  .process-grid { grid-template-columns: 1fr; }
  .review-card { min-width: 100%; }
  .review-controls button {
    width: 48px;
    height: 48px;
  }
  .site-footer { flex-direction: column; }
  .site-footer div:last-child { text-align: left; }
}

/* Green toll-free contact update */
.topbar {
  background: #f5f7f2;
  color: var(--ink);
  border-bottom: 1px solid #cfe7cf;
}
.service-area {
  color: #168b17;
}
.tollfree {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 74px;
  padding: 8px 20px 8px 8px;
  border: 4px solid #28a820;
  border-radius: 16px;
  color: #28a820;
  background: #fff;
  box-shadow: 0 12px 30px rgba(40, 168, 32, 0.16);
  text-decoration: none;
}
.tollfree .phone-icon {
  grid-row: 1 / 3;
  width: 54px;
  height: 66px;
  border-radius: 30px 10px 10px 30px;
  background: #28a820;
  color: #fff;
}
.tollfree .phone-icon svg {
  width: 32px;
  height: 32px;
}
.tollfree span:not(.phone-icon) {
  grid-column: 2;
  color: #28a820;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.tollfree strong {
  grid-column: 2;
  color: #28a820;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 0.95;
  letter-spacing: 0;
}
.hero-tollfree,
.contact-tollfree {
  width: min(100%, 430px);
  margin-top: 14px;
}
.contact-priority {
  align-items: stretch;
}
.highlight-contact {
  border: 2px solid rgba(40, 168, 32, 0.28);
  background: linear-gradient(180deg, #ffffff, #f7fff5);
  box-shadow: 0 18px 45px rgba(40, 168, 32, 0.12);
}
.highlight-contact h2,
.contact-form h2 {
  margin-top: 4px;
}
.contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.faq-grid .legal-card {
  height: 100%;
}
@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
  }
  .tollfree {
    width: 100%;
    min-height: 66px;
    padding: 7px 12px 7px 7px;
    border-width: 3px;
    column-gap: 10px;
  }
  .tollfree .phone-icon {
    width: 45px;
    height: 56px;
  }
  .tollfree .phone-icon svg {
    width: 26px;
    height: 26px;
  }
  .tollfree strong {
    font-size: clamp(1.62rem, 9vw, 2.55rem);
  }
  .tollfree span:not(.phone-icon) {
    font-size: 0.68rem;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact header toll-free badge */
.topbar {
  padding: 8px clamp(16px, 5vw, 72px);
  gap: 14px;
}
.topbar .tollfree {
  width: auto;
  max-width: 360px;
  min-height: 58px;
  border-width: 3px;
  border-radius: 14px;
  padding: 6px 14px 6px 6px;
  column-gap: 10px;
}
.topbar .tollfree .phone-icon {
  width: 46px;
  height: 52px;
  border-radius: 26px 9px 9px 26px;
}
.topbar .tollfree .phone-icon svg {
  width: 27px;
  height: 27px;
}
.topbar .tollfree span:not(.phone-icon) {
  font-size: 0.66rem;
  letter-spacing: 0;
}
.topbar .tollfree strong {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  white-space: nowrap;
}
.hero-tollfree,
.contact-tollfree {
  max-width: 430px;
}
@media (max-width: 760px) {
  .topbar .tollfree {
    max-width: none;
  }
  .topbar .tollfree strong {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }
}

/* SEO articles archive grid */
.seo-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-flow: row;
}

.seo-article-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(9, 9, 15, 0.08);
}

.seo-article-card h3 {
  margin: 18px 0 10px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.article-tax-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.article-tax-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(31, 141, 69, 0.22);
  border-radius: 8px;
  background: rgba(31, 141, 69, 0.07);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.article-tax-list a:hover {
  border-color: var(--magenta);
  background: var(--magenta);
  color: var(--white);
}

.article-tax-list-small {
  margin: 0 0 16px;
}

.seo-article-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.seo-article-card .card-link {
  margin-top: auto;
}

.article-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.article-pagination .page-count {
  flex-basis: 100%;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.article-pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.article-pagination .page-numbers.current,
.article-pagination .page-numbers:hover {
  border-color: var(--magenta);
  background: var(--magenta);
  color: var(--white);
}

.article-pagination .prev,
.article-pagination .next {
  min-width: 118px;
}

.single-tax-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.article-tax-group {
  display: grid;
  gap: 8px;
}

.article-tax-group > strong {
  color: var(--white);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.page-hero .article-tax-list a {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.page-hero .article-tax-list a:hover {
  border-color: var(--magenta);
  background: var(--magenta);
}

@media (max-width: 980px) {
  .seo-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .seo-article-grid {
    grid-template-columns: 1fr;
  }
}

/* Leal Coop blue green refresh */
:root {
  --blue: #064f8f;
  --blue-dark: #063b6f;
  --green: #1f8d45;
  --green-dark: #116b34;
}
.topbar {
  background: #f7faf8;
  border-bottom: 1px solid rgba(31, 141, 69, 0.22);
}
.service-area {
  color: var(--blue-dark);
}
.tollfree,
.phone-badge {
  border-color: var(--green);
  color: var(--blue-dark);
  box-shadow: 0 12px 30px rgba(6, 79, 143, 0.12);
}
.tollfree .phone-icon,
.phone-badge .phone-icon {
  background: var(--green);
}
.tollfree span:not(.phone-icon),
.tollfree strong,
.phone-badge span:not(.phone-icon),
.phone-badge strong {
  color: var(--blue-dark);
}
.brand img {
  height: 72px;
  max-width: 330px;
  object-fit: contain;
  border-color: rgba(6, 79, 143, 0.14);
  background: #fff;
  box-shadow: none;
}
.site-nav a:hover,
.site-nav a.active,
.nav-dropdown:hover .nav-parent {
  color: var(--blue-dark);
  background: rgba(31, 141, 69, 0.08);
}
.button.primary,
.card-icon,
.article-pagination .page-numbers.current,
.article-pagination .page-numbers:hover {
  background: linear-gradient(135deg, var(--green), var(--blue));
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(6,59,111,0.88), rgba(6,79,143,0.50) 46%, rgba(31,141,69,0.08));
}
@media (max-width: 640px) {
  .brand img { height: 54px; max-width: 250px; }
}

/* Article card taxonomies */
.seo-article-card .article-tax-group-card {
  gap: 6px;
  margin: 0 0 12px;
}
.seo-article-card .article-tax-group-card > strong {
  color: var(--blue-dark, #063b6f);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.seo-article-card .article-tax-list-small {
  margin-bottom: 0;
}
.seo-article-card .article-tax-list a {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

/* Related articles carousel on service pages */
.related-articles {
  background: var(--soft);
}

.related-window {
  overflow: hidden;
  margin-right: calc(clamp(18px, 5vw, 72px) * -1);
  padding: 4px clamp(18px, 5vw, 72px) 12px 0;
}

.related-track {
  display: flex;
  gap: 18px;
  transition: transform 320ms ease;
  will-change: transform;
}

.related-card {
  display: flex;
  min-width: min(360px, 82vw);
  min-height: 250px;
  flex: 0 0 min(360px, 82vw);
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(9, 9, 15, 0.08);
}

.related-card h3 {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.related-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.related-card .card-link {
  margin-top: auto;
}

.related-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.related-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.related-controls button:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
