/* Inter-section vertical rhythm (stack gaps; not card internals). */
main > section + section {
  margin-top: var(--section-stack-gap);
}

/* Tablet + mobile: unlock reference-locked section heights. */
@media (max-width: 1023px) {
  .hero,
  .services-section,
  .paulo-section,
  .trust-bar-section,
  .clients-section,
  .testimonials-section,
  .cta-section,
  .site-footer {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .site-header__inner {
    padding-inline: clamp(16px, 4vw, 24px);
  }

  main > section > .container,
  .services-section > .container,
  .paulo-section > .container,
  .trust-bar-section > .container,
  .clients-section > .container,
  .testimonials-section > .container,
  .cta-section > .container,
  .site-footer > .container {
    width: 100%;
    max-width: var(--container);
    padding-inline: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
  }
}

/* Tablet (768×1024) */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 420px;
    background: #00122e;
    overflow: hidden;
  }

  .hero__media {
    position: relative;
    order: 1;
    width: 100%;
    min-width: 0;
    height: clamp(210px, 34vw, 268px);
  }

  .hero__media img {
    object-position: 78% center;
  }

  .hero__slant,
  .hero__edge {
    display: none;
  }

  .hero__container {
    order: 2;
    position: relative;
    z-index: 2;
    margin-top: -52px;
    width: 100%;
    max-width: var(--container);
    box-sizing: border-box;
    padding: 0 clamp(16px, 4vw, 24px) 28px;
    align-items: flex-start;
  }

  .hero__container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #001029 0%, #001a44 65%, #002568 100%);
    clip-path: none;
    -webkit-clip-path: none;
    z-index: -1;
  }

  .hero__content {
    max-width: 560px;
    padding: 22px 20px 18px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 4.2vw, 2.25rem);
  }

  .hero__subtitle {
    font-size: 0.8125rem;
    max-width: 100%;
  }

  .hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .hero__trust {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .services-section {
    padding: 28px 0 32px;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
  }

  .service-card {
    height: auto;
    min-height: 240px;
  }

  .service-card__body {
    padding: 14px 14px 10px;
  }

  .paulo-section {
    padding: 0;
  }

  .paulo-card {
    display: grid;
    grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
    grid-template-areas:
      "photo content"
      "photo stats";
    gap: 0 22px;
    padding: 0 0 28px;
    align-items: start;
    column-gap: 22px;
  }

  .paulo-card__photo {
    position: relative;
    grid-area: photo;
    width: 100%;
    height: 100%;
    min-height: 280px;
    clip-path: polygon(12% 0, 100% 0, 86% 100%, 0 100%);
    -webkit-clip-path: polygon(12% 0, 100% 0, 86% 100%, 0 100%);
  }

  .paulo-card__photo img {
    object-position: 50% 16%;
  }

  .paulo-card__photo-slant {
    clip-path: polygon(0 0, 2.5% 0, 0 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 2.5% 0, 0 100%, 0 100%);
  }

  .paulo-card__content {
    grid-area: content;
    margin-left: 0;
    padding: 24px 0 10px;
  }

  .paulo-card__stats {
    grid-area: stats;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 0 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    justify-items: center;
    align-items: center;
  }

  .paulo-card__stats .paulo-stat {
    justify-content: center;
    width: max-content;
    max-width: 100%;
  }

  .trust-bar-section {
    padding: 28px 0;
  }

  .trust-bar__inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .trust-bar__header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-bar__title {
    text-align: center;
  }

  .trust-bar__line {
    margin-inline: auto;
  }

  .trust-bar__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    padding-left: 0;
    gap: 16px 12px;
    width: 100%;
  }

  .trust-bar__item {
    justify-content: center;
    width: max-content;
    max-width: 100%;
  }

  .trust-bar__divider {
    display: none;
  }

  .clients-section,
  .testimonials-section {
    padding: 28px 0 32px;
  }

  .testimonials__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .testimonials__header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonials__title {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.25;
    max-width: 32rem;
    margin-inline: auto;
  }

  .testimonials__line {
    margin-inline: auto;
  }

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

  .testimonial-card {
    height: auto;
    min-height: 132px;
    padding: 14px;
  }

  .clients-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    min-height: 56px;
    padding: 16px 20px;
    gap: 16px;
  }

  .cta-section {
    padding: 24px 0 32px;
  }

  .cta-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    height: auto;
    min-height: 120px;
    padding: 20px 24px 20px 200px;
    gap: 12px 16px;
    position: relative;
  }

  .cta-banner__visual {
    position: absolute;
    left: 20px;
    top: -28px;
    grid-row: auto;
    width: 150px;
  }

  .cta-banner__wa-icon {
    grid-column: 2;
    grid-row: 1;
  }

  .cta-banner__copy {
    grid-column: 2;
    grid-row: 2;
    margin-right: 0;
  }

  .btn--cta-banner {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }

  .cta-banner__divider {
    display: none;
  }

  .site-footer {
    padding: 24px 0 20px;
    height: auto;
  }

  .site-footer__main {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-template-areas:
      "brand brand"
      "phones wa"
      "address address";
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 32px;
    row-gap: 16px;
    width: 100%;
  }

  .site-footer__brand {
    grid-area: brand;
    justify-self: center;
  }

  .site-footer__divider {
    display: none;
  }

  .site-footer__col {
    font-size: 0.8125rem;
    width: auto;
    max-width: 100%;
  }

  .site-footer__address {
    grid-area: address;
    justify-self: center;
    justify-content: center;
    text-align: center;
  }

  .site-footer__phones {
    grid-area: phones;
    justify-self: end;
    align-self: center;
  }

  .site-footer__wa {
    grid-area: wa;
    justify-self: start;
    align-self: center;
  }

  .site-footer__phones a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
  }

  .site-footer__wa-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .site-footer__bottom {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
}

/* Mobile (≤767px, 390×844 canvas) */
@media (max-width: 767px) {
  .services-section .container,
  .paulo-section .container,
  .trust-bar-section .container,
  .clients-section .container,
  .testimonials-section .container,
  .cta-section .container,
  .site-footer .container {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .paulo-card__photo {
    width: 100%;
    margin-inline: 0;
  }

  .services__grid,
  .testimonials__grid {
    width: 100%;
  }

  .service-card,
  .testimonial-card,
  .clients-card,
  .cta-banner {
    width: 100%;
    box-sizing: border-box;
  }

  .section__lead,
  .section__subtitle {
    max-width: 100%;
  }

  .site-footer__main,
  .site-footer__bottom {
    width: 100%;
  }

  .site-header__inner {
    gap: 8px;
    padding-inline: 16px;
  }

  .site-header__logo {
    width: 132px;
  }

  .btn--header-cta .btn__label {
    display: none;
  }

  .btn--header-cta {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
  }

  .nav-toggle {
    margin-left: 6px;
  }

  .mobile-nav {
    padding: 12px 16px 16px;
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #00122e;
    overflow: hidden;
  }

  .hero__media {
    position: relative;
    order: 1;
    width: 100%;
    height: clamp(196px, 52vw, 228px);
    flex-shrink: 0;
  }

  .hero__media img {
    object-position: 72% center;
  }

  .hero__slant,
  .hero__edge {
    display: none;
  }

  .hero__container {
    order: 2;
    position: relative;
    margin-top: 0;
    padding: 0 16px 22px;
    align-items: center;
    width: 100%;
  }

  .hero__container::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -16px;
    right: -16px;
    background: linear-gradient(180deg, #001029 0%, #001a44 52%, #002568 100%);
    clip-path: none;
    -webkit-clip-path: none;
    z-index: 0;
  }

  .hero__content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 8px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__badge {
    margin-bottom: 10px;
    font-size: 0.6875rem;
    align-self: center;
  }

  .hero__title {
    font-size: clamp(1.28rem, 5.6vw, 1.65rem);
    line-height: 1.12;
    width: 100%;
    max-width: 100%;
  }

  .hero__title br {
    display: none;
  }

  .hero__subtitle {
    font-size: 0.8125rem;
    line-height: 1.48;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: min(100%, 158px);
    max-width: 100%;
    justify-content: center;
    min-height: 44px;
    padding-inline: 12px;
    font-size: clamp(0.68rem, 2.9vw, 0.78rem);
  }

  .hero__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
    align-items: start;
    justify-items: center;
    width: 100%;
    max-width: 100%;
  }

  .hero__trust-divider {
    display: none;
  }

  .hero__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: clamp(0.5625rem, 2.65vw, 0.6875rem);
    line-height: 1.25;
    min-width: 0;
  }

  .hero__trust-item svg {
    width: 18px;
    height: 18px;
  }

  .services-section {
    padding: 24px 0 28px;
  }

  .section__title {
    font-size: 1.15rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .service-card {
    min-height: 0;
  }

  .service-card__thumb {
    height: clamp(112px, 34vw, 148px);
  }

  .service-card__title--single-line {
    white-space: nowrap;
  }

  .paulo-section {
    padding: 0;
  }

  .paulo-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 24px;
    gap: 0;
  }

  .paulo-card__photo {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    height: clamp(248px, 64vw, 312px);
    min-height: 248px;
    clip-path: none;
    -webkit-clip-path: none;
    border-radius: 0;
  }

  .paulo-card__photo img {
    left: 50%;
    top: 50%;
    width: 118%;
    height: 118%;
    max-width: none;
    transform: translate(-50%, -48%);
    object-fit: cover;
    object-position: 48% 18%;
  }

  .paulo-card__photo-slant {
    clip-path: polygon(0 0, 4% 0, 0 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 4% 0, 0 100%, 0 100%);
  }

  .paulo-card__content {
    padding: 0 0 14px;
  }

  .paulo-card__title {
    font-size: 1.35rem;
  }

  .paulo-card__bio {
    font-size: 0.8125rem;
    line-height: 1.52;
  }

  .paulo-card__stats {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 18px 0 0;
    justify-items: center;
  }

  .paulo-card__stats .paulo-stat {
    justify-content: center;
    text-align: center;
    width: max-content;
    max-width: 100%;
  }

  .paulo-card__stats .paulo-stat:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: max-content;
    max-width: 100%;
  }

  .trust-bar-section {
    padding: 24px 0;
  }

  .trust-bar__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .trust-bar__intro {
    width: 100%;
    max-width: 620px;
    margin: -4px auto 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .trust-bar__divider {
    display: none;
  }

  .trust-bar__header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-bar__title {
    text-align: center;
  }

  .trust-bar__line {
    margin-inline: auto;
  }

  .trust-bar__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-items: stretch;
    padding-left: 0;
    gap: 14px 12px;
    width: 100%;
  }

  .trust-bar__item {
    font-size: 0.75rem;
    gap: 6px;
    min-width: 0;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: none;
  }

  .trust-bar__item svg {
    width: 22px;
    height: 22px;
  }

  .clients-section {
    padding: 24px 0 28px;
  }

  .clients-card {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 18px 16px;
    gap: 16px;
  }

  .clients-card__divider {
    width: min(200px, 70%);
    height: 1px;
  }

  .clients-card__col img {
    max-height: 36px;
  }

  .testimonials-section {
    padding: 24px 0 28px;
  }

  .testimonials__inner {
    flex-direction: column;
    gap: 16px;
  }

  .testimonials__header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonials__title {
    text-align: center;
    font-size: clamp(1.02rem, 4.35vw, 1.12rem);
    line-height: 1.2;
    max-width: 17.5rem;
    margin-inline: auto;
    text-wrap: balance;
  }

  .testimonials__line {
    margin-inline: auto;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .testimonial-card {
    min-height: 0;
    padding: 14px;
    height: auto;
  }

  .testimonial-card__quote {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .cta-section {
    padding: 8px 0 28px;
  }

  .cta-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "visual visual"
      "wa copy"
      "cta cta";
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 16px 18px 20px;
    column-gap: 12px;
    row-gap: 12px;
    margin-top: 48px;
  }

  .cta-banner__visual {
    position: relative;
    left: auto;
    top: auto;
    grid-area: visual;
    width: min(168px, 58vw);
    margin: -56px auto 0;
    aspect-ratio: 215 / 160;
    justify-self: center;
  }

  .cta-banner__visual img {
    width: 100%;
    height: auto;
  }

  .cta-banner__wa-icon {
    display: flex;
    grid-area: wa;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
    margin: 0;
  }

  .cta-banner__wa-icon .icon-whatsapp {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .cta-banner__divider {
    display: none;
  }

  .cta-banner__copy {
    grid-area: copy;
    text-align: left;
    margin: 0;
    min-width: 0;
  }

  .cta-banner__title {
    font-size: 1.1rem;
  }

  .cta-banner__lead {
    font-size: 0.75rem;
  }

  .btn--cta-banner {
    grid-area: cta;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    min-height: 44px;
    margin-top: 0;
  }

  .site-footer {
    padding: 28px 0 24px;
    height: auto;
  }

  .site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "phones"
      "wa"
      "address";
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 0;
    row-gap: 22px;
    width: 100%;
  }

  .site-footer__brand {
    grid-area: brand;
    justify-self: center;
  }

  .site-footer__divider {
    display: none;
  }

  .site-footer__col {
    font-size: 0.8125rem;
    width: auto;
    max-width: 100%;
  }

  .site-footer__address {
    grid-area: address;
    justify-self: center;
    justify-content: center;
    text-align: center;
  }

  .site-footer__phones {
    grid-area: phones;
    justify-self: end;
    align-self: center;
  }

  .site-footer__wa {
    grid-area: wa;
    justify-self: start;
    align-self: center;
  }

  .site-footer__phones a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
  }

  .site-footer__wa-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .site-footer__bottom {
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1023px) {
  .paulo-card__photo img,
  .hero__media img,
  .service-card__thumb img {
    max-width: 100%;
  }
}

/* Keep inter-section breathing room inside the following section's background. */
main > section + section {
  margin-top: 0;
  padding-top: var(--section-stack-gap);
}

.site-footer {
  margin-top: 0;
  padding-top: calc(10px + var(--section-stack-gap));
}

/* Add vertical breathing room inside all content sections. The Paulo photo stays edge-to-edge. */
main > section:not(.hero):not(.paulo-section) {
  padding-top: var(--section-stack-gap);
  padding-bottom: var(--section-stack-gap);
}

.paulo-section {
  padding-top: 0;
  padding-bottom: 0;
}

/* The Paulo photo is edge-to-edge; only text/stat blocks may have gutters. */
.paulo-section {
  padding-top: 0;
}

.paulo-section > .container {
  padding-top: 0;
}

/* Paulo photo is edge-to-edge inside its colored section; text keeps safe gutters. */
@media (max-width: 1023px) {
  .paulo-section > .container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .paulo-card__photo {
    width: 100%;
    margin-inline: 0;
  }

  .paulo-card__content,
  .paulo-card__stats {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-inline: 16px;
    box-sizing: border-box;
  }
}

/* Footer: separate the upper contact row from the copyright row. */
.site-footer .container {
  height: auto;
  justify-content: flex-start;
  gap: 18px;
}

.site-footer__bottom {
  margin-top: 8px;
  padding-top: 10px;
}

@media (min-width: 1024px) {
  .services-section,
  .trust-bar-section,
  .clients-section,
  .testimonials-section,
  .cta-section,
  .site-footer {
    height: auto;
    min-height: 0;
    max-height: none;
    box-sizing: border-box;
  }

  .site-footer {
    min-height: 110px;
  }

  .site-footer__bottom {
    justify-content: space-between;
    text-align: initial;
  }
}

/* Service media keeps the source 4:3 composition visible at every breakpoint. */
.service-card {
  height: auto;
  min-height: 0;
}

.service-card__thumb {
  height: auto;
  background: #eef4fb;
}

.service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1024px) {
  .paulo-card {
    grid-template-columns: 572px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "photo content"
      "photo stats";
    column-gap: 10px;
    row-gap: 0;
  }

  .paulo-card__photo {
    clip-path: polygon(70px 0, 548px 0, 478px 100%, 0px 100%);
    -webkit-clip-path: polygon(70px 0, 548px 0, 478px 100%, 0px 100%);
  }

  .paulo-card__photo img {
    left: 50%;
    top: 50%;
    width: 132%;
    height: 122%;
    transform: translate(-50%, -48%);
    object-fit: cover;
    object-position: 50% 26%;
  }

  .paulo-card__photo-slant {
    clip-path: polygon(67px 0, 70px 0, 3px 100%, 0px 100%);
    -webkit-clip-path: polygon(67px 0, 70px 0, 3px 100%, 0px 100%);
  }

  .paulo-card__stats {
    grid-area: stats;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
  }

  .paulo-card__stats .paulo-stat {
    justify-content: center;
    text-align: center;
    min-width: 0;
  }

  .paulo-card__stats .paulo-stat > div {
    min-width: 0;
  }

  .paulo-card__stats .paulo-stat strong,
  .paulo-card__stats .paulo-stat span {
    white-space: normal;
  }
}

/* Mobile clients marquee: one horizontal row with a seamless loop. */
@media (max-width: 767px) {
  .clients-card {
    height: 78px;
    padding: 0;
    display: block;
    overflow: hidden;
  }

  .clients-card__track {
    width: max-content;
    height: 100%;
    animation: clients-marquee 18s linear infinite;
  }

  .clients-card__group,
  .clients-card__group[aria-hidden="true"] {
    display: flex;
    flex: 0 0 calc(100vw - 34px);
    width: calc(100vw - 34px);
    height: 100%;
    justify-content: space-evenly;
    gap: 10px;
    padding-inline: 8px;
    box-sizing: border-box;
  }

  .clients-card__col {
    flex: 0 0 auto;
    min-width: 0;
  }

  .clients-card__divider {
    display: none;
  }

  .clients-card__col img {
    max-width: 104px;
    max-height: 28px;
    width: auto;
  }

  .brands-section {
    padding-block: var(--section-stack-gap);
  }

  .brands__subtitle {
    margin-bottom: 14px;
  }

  .brands-card {
    min-height: 78px;
    height: 78px;
    padding: 0;
    display: block;
  }

  .brands-card__track {
    width: max-content;
    height: 100%;
    animation: brands-marquee 28s linear infinite;
  }

  .brands-card__group,
  .brands-card__group[aria-hidden="true"] {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  .brands-card__col {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: 42px;
  }

  .brands-card__col img {
    max-width: 96px;
    max-height: 28px;
  }

  .brands-card__col:nth-child(2) img,
  .brands-card__col:nth-child(4) img,
  .brands-card__col:nth-child(5) img {
    max-width: 34px;
    max-height: 32px;
  }
}

@keyframes clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes brands-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-card__track,
  .brands-card__track {
    animation: none;
  }
}

@media (max-width: 767px) {
  .location-section {
    padding-block: var(--section-stack-gap);
  }

  .location-banner {
    padding: 16px;
  }

  .location-banner__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .location-banner__header h2 {
    font-size: 1.05rem;
  }

  .location-banner__header > div > p:last-child {
    max-width: 280px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .location-banner__link {
    width: 100%;
  }

  .location-banner__map {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 28px 0 24px;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "phones"
      "wa"
      "address";
    column-gap: 0;
    row-gap: 22px;
  }

  .site-footer__brand {
    margin-bottom: 2px;
  }

  .site-footer__col {
    width: 100%;
  }

  .site-footer__phones,
  .site-footer__wa,
  .site-footer__address {
    justify-self: center;
  }

  .site-footer__phones {
    justify-content: center;
    gap: 12px;
    line-height: 1.8;
  }

  .site-footer__phones > div {
    white-space: nowrap;
  }

  .site-footer__phone-separator {
    margin-inline: 4px;
    color: rgba(255, 255, 255, 0.58);
  }

  .site-footer__wa {
    justify-content: center;
  }

  .site-footer__address {
    gap: 12px;
    line-height: 1.45;
  }
}