/*
 * Responsive layout contract
 *
 * PC:     1400px and up     - the Figma desktop composition
 * Laptop: 1101px–1399px    - the same hierarchy in a fluid canvas
 * Tablet: 768px–1100px     - two-column content with a compact header
 * Phone:  767px and below   - the existing mobile composition
 *
 * This file is enqueued after every page stylesheet. It only changes the
 * laptop and tablet ranges; the PC and phone reference layouts stay intact.
 */

@media (min-width: 1400px) {
  :root {
    --her-container: min(1312px, calc(100% - 200px));
  }

  .her-barber-page {
    min-width: 0;
  }

  .her-barber-page .her-container,
  .her-barber-page .her-barber-hero .her-header {
    width: var(--her-container);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  /* These desktop compositions use the 1115px Figma frame rather than the
   * wider shared shell. Keep the steps and form aligned to that frame. */
  .her-barber-page .her-barber-partners__grid,
  .her-barber-page .her-barber-why__grid,
  .her-barber-page .her-barber-contact__grid,
  .her-barber-page .her-faq__grid {
    width: 1115px;
    max-width: none;
  }

  /* Figma desktop frame: give the partner programme the tall breathing room
   * shown around the centred content. Laptop, tablet and phone keep their
   * own compact spacing rules. */
  .her-barber-page .her-barber-program__content {
    padding-top: 190px;
    padding-bottom: 200px;
  }
}


@media (min-width: 801px) and (max-width: 1100px) {
  .her-barber-page .her-barber-program__content {
    padding-top: 190px;
    padding-bottom: 200px;
  }
}


/* Keep the contact partner block identical to the homepage at every
 * intermediate width. The contact template used to retain an older
 * absolutely positioned variant, which compressed the heading, copy and
 * postcode form into one row on phones. */
@media (min-width: 1400px) {
  .her-contact-page .her-partners {
    height: 1032px;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
  }

  .her-contact-page .her-partners__content {
    position: absolute;
    inset: 0 auto auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .her-contact-page .her-partners__map {
    position: absolute;
    inset: 318px 0 auto;
    width: 100%;
    height: 714px;
    margin: 0;
  }
}

@media (min-width: 1101px) and (max-width: 1399px) {
  .her-contact-page .her-partners {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 98px 0 0;
    display: block;
    overflow: hidden;
  }

  .her-contact-page .her-partners__content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--her-container);
    margin: 0 auto;
    text-align: center;
  }

  .her-contact-page .her-partners__content h2 {
    max-width: 760px;
    margin: 17px 0 0;
  }

  .her-contact-page .her-partners__content p {
    max-width: 520px;
    margin: 18px auto 26px;
  }

  .her-contact-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 520px;
    margin-top: 64px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .her-contact-page .her-partners {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 82px 0 0;
    display: block;
    overflow: hidden;
  }

  .her-contact-page .her-partners__content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--her-container);
    margin: 0 auto;
    text-align: center;
  }

  .her-contact-page .her-partners__content h2 {
    max-width: 760px;
    margin: 17px 0 0;
    text-align: center;
  }

  .her-contact-page .her-partners__content p {
    max-width: 520px;
    margin: 18px auto 26px;
    text-align: center;
  }

  .her-contact-page .her-partner-search {
    margin: 0;
  }

  .her-contact-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 470px;
    margin-top: 52px;
  }
}



@media (max-width: 767px) {
  .her-contact-page .her-partners {
    display: block;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .her-contact-page .her-partners__content {
    position: relative;
    inset: auto;
    display: block;
    width: var(--her-container);
    margin: 0 auto;
    padding: 0 0 55px;
    text-align: center;
  }

  .her-contact-page .her-partners__content h2 {
    max-width: 310px;
    margin-top: 22px;
    font-size: 40px;
    line-height: 1.1;
  }

  .her-contact-page .her-partners__content p {
    max-width: 390px;
    margin: 20px 0 45px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    font-variation-settings: "opsz" 24;
    line-height: 1.6;
  }

  .her-contact-page .her-partner-search {
    width: 100%;
    height: 64px;
    margin: 0;
  }

  .her-contact-page .her-partner-search input {
    width: 63%;
    padding: 0 25px;
    font-size: 16px;
  }

  .her-contact-page .her-partner-search button {
    width: 37%;
    padding: 0 10px;
    font-size: 16px;
  }

  .her-contact-page .her-search-label-desktop,
  .her-contact-page .her-partner-search button span[aria-hidden] {
    display: none;
  }

  .her-contact-page .her-search-label-mobile {
    display: inline;
  }

  .her-contact-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 520px;
    margin: 0;
    opacity: 1;
  }
}

@media (min-width: 1101px) and (max-width: 1399px) {
  :root {
    --her-container: min(1180px, calc(100% - 120px));
  }

  .her-barber-page .her-barber-program__content {
    padding-top: 190px;
    padding-bottom: 200px;
  }

  /* Shared shell */
  .her-header {
    width: var(--her-container);
    max-width: none;
  }

  .her-container {
    width: var(--her-container);
    max-width: none;
  }

  /* Do not let the Barberzy prototype force a 1512px document. */
  .her-barber-page {
    min-width: 0;
  }

  .her-barber-page .her-container,
  .her-barber-page .her-header,
  .her-barber-page .her-barber-hero .her-header,
  .her-barber-page .her-barber-partners__grid,
  .her-barber-page .her-barber-why__grid,
  .her-barber-page .her-barber-contact__grid,
  .her-barber-page .her-faq__grid {
    width: var(--her-container);
    max-width: none;
  }

  .her-barber-page .her-barber-hero .her-header {
    margin-left: auto;
    margin-right: auto;
  }

  .her-barber-hero__copy {
    width: 46%;
    max-width: 560px;
  }

  .her-barber-hero__media {
    width: 48%;
    max-width: 621px;
  }

  .her-barber-page .her-barber-partners__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
  }

  .her-barber-page .her-barber-why__grid,
  .her-barber-page .her-barber-contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .her-barber-page .her-barber-benefits {
    width: var(--her-container);
    gap: 40px;
  }

  /* Flow the large homepage system cards inside the available canvas. */
  .her-systems {
    height: auto !important;
    min-height: 0;
    padding: 105px 0 125px;
  }

  .her-systems > .her-section-heading {
    position: relative;
    top: auto;
    left: auto;
    width: var(--her-container);
    margin: 0 auto;
    transform: none;
  }

  .her-systems__grid {
    position: relative;
    top: auto;
    display: grid;
    width: var(--her-container);
    height: auto;
    margin: 92px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 90px 42px;
  }

  .her-system-card,
  .her-system-card:nth-child(1),
  .her-system-card:nth-child(2),
  .her-system-card:nth-child(3),
  .her-system-card:nth-child(4),
  .her-system-card:nth-child(5) {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: 560px;
    min-height: 0;
    overflow: visible;
  }

  .her-system-card__image,
  .her-system-card--right .her-system-card__image {
    top: 0;
    right: 0;
    left: auto;
    width: 54%;
    height: 350px;
  }

  .her-system-card--right .her-system-card__image {
    right: auto;
    left: 46%;
  }

  .her-system-card__content,
  .her-system-card--right .her-system-card__content {
    top: 125px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 48%;
  }

  .her-system-card--right .her-system-card__content {
    right: 0;
    left: auto;
    width: 42%;
  }

  .her-system-card__watermark,
  .her-system-card--right .her-system-card__watermark {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 0;
    font-size: clamp(92px, 11vw, 150px);
  }

  .her-system-card__image--premium .her-system-card__watermark--premium {
    top: auto !important;
    bottom: 6px !important;
    left: -5px !important;
  }

  /* Keep content grids centered when the viewport is between the reference
   * desktop and the tablet frame. */
  .her-steps__list,
  .her-blog__grid,
  .her-partners__content,
  .her-footer__top,
  .her-footer__bottom {
    max-width: var(--her-container);
  }

  .her-shop-page .her-story__media img,
  .her-shop-page .her-footer__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    left: 0;
    top: 0;
    object-fit: cover;
  }

  .her-shop-page .her-story__media,
  .her-shop-page .her-footer__media {
    overflow: hidden;
  }

  .her-blog-hero__media {
    top: 158px;
    right: 0;
    width: 48%;
    height: 340px;
  }

  .her-blog-hero__content h2 {
    max-width: 46%;
    font-size: clamp(38px, 4vw, 48px);
  }

  .her-blog-hero__content p {
    max-width: 42%;
    font-size: 16px;
  }

  .her-blog-post-copy {
    width: 46%;
  }

  .her-blog-post-copy h1 {
    font-size: clamp(52px, 5vw, 68px);
  }

  .her-blog-post-media {
    top: 158px;
    right: 0;
    width: 48%;
    height: 640px;
  }

  .her-blog-post-lead,
  .her-blog-post-content p {
    max-width: 100%;
    font-size: 16px;
  }

  .hpp-comparison,
  .hsp-comparison__scroll {
    overflow-x: auto;
  }

  .hpp-comparison table,
  .hsp-comparison table {
    min-width: 760px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  :root {
    --her-container: min(928px, calc(100% - 96px));
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .her-container,
  .her-header {
    width: var(--her-container);
    max-width: none;
  }

  /* Tablet header: the same logo and menu behavior everywhere. */
  .her-header,
  .her-barber-hero .her-header {
    height: 120px;
    padding: 34px 0 0;
    align-items: center;
  }

  .her-logo,
  .her-barber-hero .her-logo {
    position: static;
    left: auto;
    top: auto;
    width: 103px;
    height: auto;
    margin: 0;
    transform: none;
  }

  .her-logo img,
  .her-barber-hero .her-logo img {
    width: 103px;
    height: auto;
    max-width: none;
  }

  .her-navigation,
  .her-header__actions,
  .her-barber-hero .her-navigation,
  .her-barber-hero .her-header__actions {
    display: none;
  }

  .her-menu-toggle,
  .her-barber-hero .her-menu-toggle {
    display: flex;
    width: 28px;
    height: 30px;
    padding: 5px 2px;
    margin-left: auto;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 22;
  }

  .her-menu-toggle span,
  .her-barber-hero .her-menu-toggle span {
    display: block;
    width: 21px;
    height: 1px;
    background: #181714;
    transition: transform .2s, opacity .2s;
  }

  .her-header.is-menu-open .her-navigation,
  .her-barber-hero .her-header.is-menu-open .her-navigation {
    display: flex;
    position: absolute;
    z-index: 21;
    top: 120px;
    left: 0;
    width: 100%;
    padding: 28px 48px 38px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--her-cream);
    box-shadow: 0 20px 30px #0002;
  }

  .her-navigation a,
  .her-navigation a:first-child,
  .her-navigation a:nth-child(2),
  .her-navigation a:nth-child(3),
  .her-navigation a:nth-child(4),
  .her-navigation a:nth-child(5),
  .her-barber-hero .her-navigation a {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 16px 0;
    justify-content: space-between;
    border-bottom: 1px solid #68534544;
    font: 500 20px/1.2 "Cormorant", serif;
    letter-spacing: 3px;
  }

  .her-navigation a img {
    width: 12px;
    height: 7px;
  }

  /* Homepage sections: use a true tablet grid instead of the 1512px card
   * composition or the single-column phone rules that currently catch 800px. */
  .her-hero {
    height: auto;
    min-height: 1030px;
  }

  .her-hero__media {
    top: 120px;
    bottom: auto;
    height: 720px;
  }

  .her-hero__content {
    position: relative;
    top: auto;
    left: auto;
    width: min(46%, 440px);
    margin: 250px 0 0 auto;
    padding: 0;
  }

  .her-hero__content h1 {
    font-size: clamp(52px, 6.1vw, 68px);
    line-height: .96;
  }

  .her-hero__content p {
    max-width: 330px;
    font-size: 16px;
  }

  .her-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .her-trust {
    position: relative;
    bottom: auto;
    left: auto;
    width: var(--her-container);
    margin: 135px auto 0;
    transform: none;
  }

  .her-explainer__points {
    display: grid;
    width: var(--her-container);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 32px;
    margin: 70px auto 0;
  }

  .her-explainer__point {
    width: auto;
    min-width: 0;
  }

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

  .her-path-card {
    min-height: 390px;
    padding-inline: 42px;
  }

  .her-blog-card__image {
    height: 230px;
  }

  .her-systems {
    height: auto !important;
    min-height: 0;
    padding: 90px 0 110px;
  }

  .her-systems > .her-section-heading {
    position: relative;
    top: auto;
    left: auto;
    width: var(--her-container);
    margin: 0 auto;
    transform: none;
  }

  .her-systems__grid {
    position: relative;
    top: auto;
    display: grid;
    width: var(--her-container);
    height: auto;
    margin: 70px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px 28px;
  }

  .her-system-card,
  .her-system-card:nth-child(n) {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: auto;
    height: 535px;
    min-height: 0;
    margin: 0;
    overflow: visible;
  }

  .her-system-card__image,
  .her-system-card--right .her-system-card__image {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: auto;
    width: 58%;
    height: 290px;
  }

  .her-system-card--right .her-system-card__image {
    right: auto;
    left: 42%;
  }

  .her-system-card__content,
  .her-system-card--right .her-system-card__content {
    position: absolute;
    top: 108px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 58%;
    margin: 0;
  }

  .her-system-card--right .her-system-card__content {
    right: 0;
    left: auto;
    width: 42%;
  }

  .her-system-card__content h3 {
    margin-bottom: 28px;
    font-size: clamp(44px, 5.8vw, 64px);
  }

  .her-system-card__content p {
    font-size: 15px;
    line-height: 1.55;
  }

  .her-system-card__watermark,
  .her-system-card--right .her-system-card__watermark {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 0;
    font-size: clamp(84px, 12vw, 128px);
  }

  .her-system-card__image--premium .her-system-card__watermark--premium {
    top: auto !important;
    bottom: 4px !important;
    left: -5px !important;
  }

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

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

  /* Barberzy tablet: reserve a separate column for the hero image so its
   * copy never sits underneath the photo. */
  .her-barber-page {
    min-width: 0;
  }

  .her-barber-page .her-container,
  .her-barber-page .her-barber-hero .her-header,
  .her-barber-page .her-barber-hero__content,
  .her-barber-page .her-barber-partners__heading,
  .her-barber-page .her-barber-why__grid,
  .her-barber-page .her-barber-program__content,
  .her-barber-page .her-barber-contact__grid,
  .her-barber-page .her-faq__grid {
    width: var(--her-container);
    max-width: none;
  }

  .her-barber-hero {
    min-height: 770px;
  }

  .her-barber-hero__content {
    min-height: 650px;
    padding-top: 102px;
  }

  .her-barber-hero__copy {
    width: 40%;
    max-width: 360px;
  }

  .her-barber-hero h1 {
    font-size: clamp(52px, 6vw, 64px);
  }

  .her-barber-hero h2 {
    font-size: clamp(37px, 4.5vw, 46px);
  }

  .her-barber-hero p {
    max-width: 340px;
    font-size: 16px;
  }

  .her-barber-hero__media {
    top: 158px;
    right: 0;
    left: auto;
    width: 56%;
    max-width: 621px;
    height: 340px;
  }

  .her-barber-page .her-barber-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .her-barber-page .her-barber-why__grid,
  .her-barber-page .her-barber-contact__grid {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 40px;
  }

  .her-barber-page .her-barber-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  /* Keep comparison blocks inside the viewport. Wide tables scroll inside
   * their own wrapper, never on the page itself. */
  .hpp-comparison,
  .hsp-comparison__scroll {
    overflow-x: auto;
    max-width: 100%;
  }

  .hpp-table-scroll {
    max-width: 100%;
    overflow-x: auto;
  }

  .hpp-comparison table,
  .hsp-comparison table {
    min-width: 760px;
  }

  .her-shop-page .her-story__media,
  .her-shop-page .her-footer__media {
    overflow: hidden;
  }

  .her-shop-page .her-story__media img,
  .her-shop-page .her-footer__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    left: 0;
    top: 0;
    object-fit: cover;
  }

  /* System overview uses its tablet variant between the phone and desktop
   * compositions. The mobile comparison cards stay below 768px only. */
  .her-system-page {
    --her-container: min(928px, calc(100% - 96px));
  }

  /* Product pages use the same intermediate container as the Systemy view. */
  .her-shop-page {
    --her-container: min(928px, calc(100% - 96px));
  }

  .her-system-page .her-header {
    height: 120px;
  }

  .hsp-hero {
    min-height: 930px;
    padding-bottom: 100px;
  }

  .hsp-hero__grid {
    display: grid;
    width: var(--her-container);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin: 105px auto 0;
  }

  .hsp-hero__copy {
    transform: none;
  }

  .hsp-hero__copy h1 {
    font-size: clamp(52px, 6vw, 64px);
    line-height: .96;
  }

  .hsp-hero__copy h2 {
    font-size: clamp(35px, 4.2vw, 45px);
  }

  .hsp-hero__image {
    width: 100%;
    height: 340px;
  }

  .hsp-hero__actions {
    position: static;
    margin-top: 32px;
  }

  .hsp-hero .her-trust {
    position: relative;
    top: auto;
    bottom: auto;
    width: var(--her-container);
    margin: 80px auto 0;
  }

  .hsp-steps__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: var(--her-container);
  }

  .hsp-steps__grid article {
    min-height: 390px;
    padding: 48px 32px 36px;
  }

  .hsp-steps__grid article:last-child {
    grid-column: 1 / -1;
  }

  .hsp-products {
    padding-top: 105px;
  }

  .hsp-products .hsp-tabs {
    width: var(--her-container);
    margin-inline: auto;
  }

  .hsp-product-panel__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
    padding: 0;
  }

  .hsp-product-panel__copy h3 {
    font-size: clamp(40px, 5vw, 58px);
  }

  .hsp-product-panel__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
    padding: 0;
  }

  .hsp-comparison {
    padding-inline: 0;
  }

  .hsp-comparison__scroll {
    display: block;
    margin-inline: 0;
  }

  .hsp-comparison__mobile {
    display: none;
  }

  .hsp-video__placeholder {
    width: var(--her-container);
    height: 430px;
  }

  .hsp-care__grid,
  .hsp-accessories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 36px;
    padding-inline: 0;
  }

  .hsp-banner {
    width: var(--her-container);
    min-height: 420px;
  }

  .hsp-guidance__items {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 70px;
    max-width: var(--her-container);
  }

  /* Other standalone screens use the same tablet container and keep their
   * two-column desktop information architecture where it still fits. */
  .her-account-heading,
  .her-account-content,
  .her-cart-heading,
  .her-cart-content,
  .her-checkout-heading,
  .her-checkout-content,
  .her-blog-page .her-container,
  .her-blog-post-page .her-container,
  .her-contact-page .her-container {
    width: var(--her-container);
    max-width: none;
  }

  .her-account-heading h1,
  .her-cart-heading h1,
  .her-checkout-heading h1 {
    font-size: clamp(52px, 6vw, 68px);
  }

  .her-cart-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }

  .her-cart-items__header,
  .her-cart-item {
    grid-template-columns: minmax(0, 1fr) 78px 72px 82px;
    gap: 10px;
  }

  .her-cart-item__product {
    gap: 12px;
  }

  .her-cart-item__image {
    flex-basis: 88px;
    height: 88px;
  }

  .her-checkout-content .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 32px;
  }

  .her-blog-hero {
    min-height: 0;
  }

  .her-blog-hero__content {
    min-height: 0;
    padding-top: 125px;
    padding-bottom: 140px;
  }

  .her-blog-hero__content h1 {
    font-size: clamp(54px, 6vw, 68px);
  }

  .her-blog-hero__content h2 {
    max-width: 52%;
    font-size: clamp(38px, 4.5vw, 48px);
  }

  .her-blog-hero__content p {
    max-width: 42%;
    font-size: 16px;
  }

  .her-blog-hero__media {
    top: 150px;
    right: 0;
    left: auto;
    width: 48%;
    height: 340px;
  }

  .her-blog-list {
    padding-bottom: 120px;
  }

  .her-blog-grid,
  .her-blog-post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .her-blog-grid {
    margin-top: 80px;
  }

  .her-blog-article__image {
    height: 245px;
  }

  .her-blog-post-shell {
    min-height: 960px;
    padding-top: 125px;
  }

  .her-blog-post-copy {
    width: 46%;
  }

  .her-blog-post-tagline {
    display: none;
  }

  .her-blog-post-copy h1 {
    font-size: clamp(52px, 6vw, 68px);
  }

  .her-blog-post-lead,
  .her-blog-post-content p {
    max-width: 100%;
    font-size: 16px;
  }

  .her-blog-post-media {
    position: absolute;
    top: 150px;
    right: 0;
    width: 48%;
    height: 590px;
  }

  .her-blog-post-schedule__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 34px;
  }

  .hcp-hero {
    width: var(--her-container);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
  }

  .hcp-form {
    width: 100%;
    padding-inline: 42px;
  }

  .her-contact-page .her-partners__map {
    left: 0;
    width: 100%;
  }

  .her-contact-page .her-partners__content {
    width: 100%;
  }

  .her-contact-page .her-partners__map > img {
    width: 100%;
  }

}

/* At the narrow end of tablet, stack dense commerce and contact columns. */
@media (min-width: 768px) and (max-width: 900px) {
  .her-cart-layout,
  .her-checkout-content .wc-block-components-sidebar-layout.wc-block-checkout,
  .hcp-hero,
  .her-account-content .woocommerce:has(.woocommerce-MyAccount-navigation) {
    display: block;
  }

  .her-cart-summary,
  .her-checkout-content .wc-block-components-order-summary,
  .her-account-content .woocommerce-MyAccount-navigation,
  .hcp-form {
    margin-top: 48px;
  }

  .her-account-content .woocommerce-MyAccount-navigation {
    width: 100%;
  }

  .hcp-hero {
    min-height: 0;
    padding-top: 110px;
  }

  .hcp-form {
    height: auto;
    min-height: 850px;
  }

  .her-contact-page .her-partners {
    height: 820px;
  }

  .her-contact-page .her-partners__map {
    top: 270px;
    height: 550px;
  }
}

/* Phone is intentionally left to the established mobile rules. */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* -------------------------------------------------------------------------
 * Homepage fluid layouts
 *
 * The 1400px+ rules intentionally preserve the Figma desktop canvas. Below
 * that canvas every homepage section must participate in normal document flow;
 * otherwise the desktop absolute coordinates leak into laptop and tablet
 * widths. These rules are the final layer for the homepage only.
 * ------------------------------------------------------------------------- */

@media (min-width: 1101px) and (max-width: 1399px) {
  .her-site-main {
    overflow-x: hidden;
  }

  .her-site-main > section {
    box-sizing: border-box;
  }

  /* Hero */
  .her-site-main .her-hero {
    height: auto;
    min-height: 940px;
    padding: 0 0 92px;
    overflow: hidden;
  }

  .her-site-main .her-hero__media {
    inset: 176px 0 auto;
    height: clamp(650px, 54vw, 700px);
  }

  .her-site-main .her-hero__content {
    width: min(48%, 540px);
    margin: 246px 0 0 auto;
    padding: 0;
  }

  .her-site-main .her-hero__content h1 {
    font-size: clamp(58px, 5.7vw, 74px);
  }

  .her-site-main .her-hero__content p {
    max-width: 360px;
  }

  .her-site-main .her-trust {
    position: relative;
    inset: auto;
    width: min(var(--her-container), 1110px);
    margin: 100px auto 0;
    transform: none;
  }

  /* Explainer */
  .her-site-main .her-explainer {
    height: auto;
    min-height: 0;
    padding: 86px 0 112px;
    position: relative;
  }

  .her-site-main .her-explainer__statement,
  .her-site-main .her-explainer__points,
  .her-site-main .her-explainer__result,
  .her-site-main .her-explainer__image {
    position: static;
    width: var(--her-container);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .her-site-main .her-explainer__statement {
    text-align: center;
  }

  .her-site-main .her-explainer__points {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
    margin-top: 64px;
  }

  .her-site-main .her-explainer__point,
  .her-site-main .her-explainer__point:nth-child(4),
  .her-site-main .her-explainer__point:nth-child(5) {
    grid-column: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .her-site-main .her-explainer__point p {
    max-width: none;
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
  }

  .her-site-main .her-explainer__result {
    text-align: center;
    margin-top: 96px;
  }

  .her-site-main .her-explainer__image {
    height: auto;
    aspect-ratio: 1011 / 674;
    margin-top: 44px;
    border-radius: 20px;
    overflow: hidden;
  }

  /* Paths */
  .her-site-main .her-paths {
    min-height: 0;
    height: auto;
    padding: 100px 0 112px;
    overflow: hidden;
  }

  .her-site-main .her-paths .her-section-heading {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 0 auto;
    transform: none;
    text-align: center;
  }

  .her-site-main .her-paths__grid {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 64px auto 0;
    transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .her-site-main .her-path-card {
    min-height: 392px;
    height: auto;
    padding: 44px 42px 38px;
    justify-content: flex-start;
  }

  .her-site-main .her-path-card__lower {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
  }

  /* Steps */
  .her-site-main .her-steps {
    height: auto;
    min-height: 0;
    padding: 108px 0 116px;
    position: relative;
  }

  .her-site-main .her-steps > .her-section-heading {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 0 auto;
    transform: none;
    text-align: center;
  }

  .her-site-main .her-steps__list {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 64px auto 0;
  }

  .her-site-main .her-step {
    height: auto;
    min-height: 156px;
    grid-template-columns: 64px minmax(220px, .9fr) minmax(0, 1fr);
    gap: 20px;
    margin: 0 0 30px;
    padding: 0 0 30px;
  }

  .her-site-main .her-step:last-child {
    margin-bottom: 0;
  }

  /* Systems */
  .her-site-main .her-systems {
    height: auto !important;
    min-height: 0;
    padding: 104px 0 118px;
    position: relative;
  }

  .her-site-main .her-systems > .her-section-heading {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 0 auto;
    transform: none;
    text-align: center;
  }

  .her-site-main .her-systems__grid {
    position: relative;
    inset: auto;
    display: grid;
    width: var(--her-container);
    height: auto;
    margin: 72px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 68px 38px;
  }

  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    width: auto;
    height: auto;
    min-height: 470px;
    margin: 0;
    overflow: visible;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    inset: auto;
    width: 100%;
    height: 280px;
    align-self: start;
  }

  .her-site-main .her-system-card--right .her-system-card__image {
    grid-column: 1;
  }

  .her-site-main .her-system-card__content,
  .her-site-main .her-system-card--right .her-system-card__content {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    inset: auto;
    align-self: end;
    width: auto;
    margin: 0;
    padding: 0 0 4px;
  }

  .her-site-main .her-system-card--right .her-system-card__content {
    grid-column: 2;
  }

  .her-site-main .her-system-card__content h3 {
    margin: 12px 0 24px;
    font-size: clamp(44px, 5.8vw, 70px);
    line-height: .9;
  }

  .her-site-main .her-system-card__content p {
    min-height: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    right: auto;
    bottom: 0;
    left: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(80px, 11vw, 142px);
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    left: -4px !important;
    bottom: 0 !important;
  }

  /* Benefits, story, partners, blog, FAQ and footer */
  .her-site-main .her-benefits {
    height: auto;
    min-height: 0;
    padding: 96px 0 92px;
  }

  .her-site-main .her-story {
    height: auto;
    min-height: 700px;
    padding: 100px 0;
  }

  .her-site-main .her-story__content {
    width: min(var(--her-container), 820px);
    margin: 0 auto;
  }

  .her-site-main .her-partners,
  .her-blog-page .her-partners {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 98px 0 0;
    display: block;
    overflow: hidden;
  }

  .her-site-main .her-partners__content,
  .her-blog-page .her-partners__content {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }

  .her-site-main .her-partners__content h2,
  .her-blog-page .her-partners__content h2 {
    max-width: 760px;
    margin: 17px 0 0;
  }

  .her-site-main .her-partners__content p,
  .her-blog-page .her-partners__content p {
    max-width: 520px;
    margin: 18px auto 26px;
  }

  .her-site-main .her-partners__map,
  .her-blog-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 520px;
    margin-top: 64px;
    opacity: 1;
  }

  .her-site-main .her-blog {
    height: auto;
    margin: 0;
    padding: 106px 0 116px;
    position: relative;
  }

  .her-site-main .her-blog > .her-section-heading {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 0 auto;
    transform: none;
  }

  .her-site-main .her-blog__grid {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 62px auto 0;
    transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
  }

  .her-site-main .her-blog-card__image {
    height: clamp(240px, 27vw, 340px);
    margin-bottom: 32px;
  }

  .her-site-main .her-blog__more {
    position: relative;
    inset: auto;
    display: block;
    width: max-content;
    margin: 64px auto 0;
    transform: none;
  }

  .her-site-main .her-faq {
    height: auto;
    margin: 0;
    padding: 108px 0 128px;
  }

  .her-site-main .her-faq__grid {
    width: var(--her-container);
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 48px;
  }

  .her-site-main .her-footer {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 100px 0 42px;
  }

  .her-site-main .her-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .her-site-main .her-footer__newsletter {
    padding-left: 0;
  }

  .her-site-main .her-footer__newsletter > p {
    white-space: normal;
  }

  .her-site-main .her-footer__bottom {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 48px;
    margin-top: 72px;
  }

  .her-site-main .her-footer__brand {
    padding-left: 0;
  }

  .her-site-main .her-footer__brand > img {
    position: static;
    margin-bottom: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .her-site-main .her-hero {
    min-height: 900px;
    padding-bottom: 82px;
  }

  .her-site-main .her-hero__media {
    inset: 120px 0 auto;
    height: clamp(660px, 68vw, 720px);
  }

  .her-site-main .her-hero__content {
    width: min(48%, 430px);
    margin: 214px 0 0 auto;
  }

  .her-site-main .her-hero__content h1 {
    font-size: clamp(52px, 6vw, 68px);
  }

  .her-site-main .her-trust {
    width: var(--her-container);
    margin-top: 94px;
    top: auto;
    bottom: auto;
  }

  .her-site-main .her-explainer {
    padding: 78px 0 100px;
  }

  .her-site-main .her-explainer__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .her-site-main .her-explainer__point,
  .her-site-main .her-explainer__point:nth-child(4),
  .her-site-main .her-explainer__point:nth-child(5) {
    grid-column: auto;
  }

  .her-site-main .her-explainer__image {
    width: min(var(--her-container), 720px);
  }

  .her-site-main .her-paths {
    padding: 86px 0 96px;
  }

  .her-site-main .her-paths__grid {
    margin-top: 56px;
    gap: 24px;
  }

  .her-site-main .her-path-card {
    min-height: 370px;
    padding: 38px 32px 34px;
  }

  .her-site-main .her-path-card__lower {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .her-site-main .her-steps {
    padding: 92px 0 100px;
  }

  .her-site-main .her-steps__list {
    margin-top: 54px;
  }

  .her-site-main .her-step {
    grid-template-columns: 52px minmax(180px, .9fr) minmax(0, 1fr);
    gap: 16px;
    min-height: 144px;
  }

  .her-site-main .her-systems {
    padding: 88px 0 100px;
  }

  .her-site-main .her-systems__grid {
    margin-top: 60px;
    gap: 58px 28px;
  }

  .her-site-main .her-system-card {
    min-height: 432px;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    height: 246px;
  }

  .her-site-main .her-system-card__content h3 {
    font-size: clamp(40px, 5.8vw, 60px);
  }

  .her-site-main .her-system-card__content p {
    font-size: 14px;
  }

  .her-site-main .her-benefits {
    padding: 78px 0 78px;
  }

  .her-site-main .her-story {
    min-height: 620px;
    padding: 84px 0;
  }

  .her-site-main .her-partners,
  .her-blog-page .her-partners {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 82px 0 0;
    display: block;
    overflow: hidden;
  }

  .her-site-main .her-partners__content,
  .her-blog-page .her-partners__content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--her-container);
    margin: 0 auto;
    text-align: center;
  }

  .her-site-main .her-partners__content h2,
  .her-blog-page .her-partners__content h2 {
    max-width: 760px;
    margin: 17px 0 0;
    text-align: center;
  }

  .her-site-main .her-partners__content p,
  .her-blog-page .her-partners__content p {
    max-width: 520px;
    margin: 18px auto 26px;
    text-align: center;
  }

  .her-site-main .her-partner-search {
    margin: 0;
  }

  .her-site-main .her-partners__map,
  .her-blog-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 470px;
    margin-top: 52px;
    opacity: 1;
  }

  .her-site-main .her-system-card__content h3 {
    font-size: clamp(42px, 4.8vw, 54px);
  }

  .her-site-main .her-blog {
    padding: 88px 0 100px;
  }

  .her-site-main .her-blog__grid {
    margin-top: 52px;
    gap: 28px;
  }

  .her-site-main .her-blog-card__image {
    height: 220px;
  }

  .her-site-main .her-faq {
    padding: 88px 0 104px;
  }

  .her-site-main .her-faq__grid {
    gap: 32px;
  }

  .her-site-main .her-footer {
    padding-top: 84px;
  }

  .her-site-main .her-footer__top,
  .her-site-main .her-footer__bottom {
    gap: 32px;
  }
}

/* At 768–800px the trust strip keeps the phone-style stacked layout. Keep it
 * inside the hero instead of allowing the inherited top offset to overlap the
 * explainer section below. */
@media (min-width: 768px) and (max-width: 800px) {
  .her-site-main .her-hero {
    min-height: 1240px;
  }

  .her-site-main .her-trust {
    top: auto;
    bottom: auto;
  }
}

/* The original header remains in the document at the top of the page. A
 * cloned header is promoted only after scrolling, so the sticky layer can
 * slide in without moving any content or leaving a blank gap at the top. */
.her-header-shell {
  position: relative;
  z-index: 100;
}

.her-header-shell > .her-header:not(.her-sticky-header) {
  transition: opacity .24s ease;
}

.her-header-shell.is-sticky-active > .her-header:not(.her-sticky-header) {
  opacity: 0;
  pointer-events: none;
}

.her-header-shell > .her-sticky-header {
  position: fixed;
  height: 96px;
  padding-top: 0;
  align-items: center;
  z-index: 100;
  top: 0;
  left: 50%;
  margin-right: 0;
  margin-left: 0;
  transform: translate3d(-50%, -112%, 0);
  isolation: isolate;
  will-change: transform;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

.her-header-shell > .her-sticky-header .her-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.her-header-shell > .her-sticky-header .her-header__actions {
  top: 50%;
  transform: translateY(-50%);
}

.her-header-shell > .her-sticky-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -100vw;
  bottom: 0;
  left: -100vw;
  content: "";
  background: rgba(226, 221, 210, .94);
  border-bottom: 1px solid rgba(104, 83, 69, .12);
  box-shadow: 0 12px 30px rgba(42, 32, 26, .08);
  opacity: 0;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
  transition: opacity .3s ease;
}

.her-header-shell > .her-sticky-header.is-sticky-snap,
.her-header-shell > .her-sticky-header.is-sticky-snap::before {
  transition: none !important;
}

.her-header-shell > .her-sticky-header.is-sticky-scrolled {
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

.her-header-shell > .her-sticky-header.is-sticky-scrolled::before {
  opacity: 1;
}

@media (max-width: 1100px) {
  .her-header-shell > .her-sticky-header .her-logo {
    position: static;
    left: auto;
    top: auto;
    width: 103px;
    height: auto;
    margin: 0;
    transform: none;
  }

  .her-header-shell > .her-sticky-header .her-logo img {
    width: 103px;
    height: auto;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .her-header-shell > .her-header {
    height: 120px;
    padding: 0 40px;
    align-items: center;
  }

  .her-mobile-menu__inner {
    padding: var(--her-mobile-menu-top, 36px) 40px 84px;
  }

  .her-mobile-menu__header {
    height: 48.234px;
  }

  .her-mobile-menu__header img {
    width: 103px;
    height: auto;
  }

  .her-mobile-menu__close {
    margin-right: 0;
  }

  .her-mobile-menu__close span {
    left: 17.5px;
  }

  .her-mobile-menu__close:hover span:first-child,
  .her-mobile-menu__close:hover span:last-child {
    left: 16px;
  }

  .her-header-shell > .her-sticky-header {
    height: 96px;
    padding: 0 40px;
    align-items: center;
  }

  .her-site-main .her-hero__media {
    top: 120px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .her-mobile-menu__inner {
    padding: var(--her-mobile-menu-top, 53px) max(40px, calc((100% - var(--her-container)) / 2)) 84px;
  }

  .her-mobile-menu__header {
    height: 48.234px;
  }

  .her-mobile-menu__header img {
    width: 103px;
    height: auto;
  }

  .her-mobile-menu__close {
    margin-right: 0;
  }

  .her-mobile-menu__close span {
    left: 17.5px;
  }

  .her-mobile-menu__close:hover span:first-child,
  .her-mobile-menu__close:hover span:last-child {
    left: 16px;
  }
}

@media (min-width: 768px) and (max-width: 800px) {
  .her-header-shell > .her-sticky-header {
    height: 96px;
    padding: 0;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .her-header-shell > .her-sticky-header {
    transition: none;
  }

  .her-header-shell > .her-sticky-header::before {
    transition: none;
  }
}

@media (min-width: 768px) and (max-width: 920px) {
  .her-site-main .her-paths__grid,
  .her-site-main .her-blog__grid {
    grid-template-columns: 1fr;
  }

  .her-site-main .her-path-card {
    min-height: 320px;
  }

  .her-site-main .her-path-card__lower {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    min-height: 420px;
  }

  .her-site-main .her-systems__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    height: 290px;
  }

  .her-site-main .her-system-card__content h3 {
    font-size: clamp(48px, 7vw, 64px);
  }
}

@media (max-width: 767px) {
  .her-site-main {
    overflow-x: hidden;
  }

  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    position: relative;
    inset: auto;
    width: 145px;
    height: 145px;
    flex: 0 0 145px;
  }

  .her-site-main .her-system-card__content,
  .her-site-main .her-system-card--right .her-system-card__content {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 52px;
    padding: 0;
  }

  .her-site-main .her-system-card__content h3 {
    max-width: 100%;
    margin: 13px 0 30px;
    font-size: clamp(42px, 12vw, 58px);
    line-height: .94;
  }

  .her-site-main .her-system-card__content p {
    max-width: 100%;
  }

  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    top: 68px;
    right: auto;
    bottom: auto;
    left: 94px;
    max-width: calc(100% - 94px);
    overflow: hidden;
    font-size: clamp(76px, 25vw, 112px);
    line-height: .8;
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    top: 68px !important;
    bottom: auto !important;
    left: 94px !important;
    max-width: calc(100% - 94px);
  }

  .her-site-main .her-system-card__actions {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    left: 82px;
    max-width: calc(100% - 82px);
    font-size: clamp(66px, 24vw, 98px);
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    left: 82px !important;
    max-width: calc(100% - 82px);
  }
}

/* Tablet needs the same flow resets as the laptop layer. */
@media (min-width: 768px) and (max-width: 1100px) {
  .her-site-main .her-steps__list {
    position: relative;
    inset: auto;
    width: var(--her-container);
    margin: 54px auto 0;
  }

  .her-site-main .her-step {
    height: auto;
    min-height: 144px;
    margin: 0 0 30px;
    padding: 0 0 30px;
    grid-template-columns: 52px minmax(180px, .9fr) minmax(0, 1fr);
    gap: 16px;
  }

  .her-site-main .her-step:last-child {
    margin-bottom: 0;
  }

  .her-site-main .her-systems__grid {
    position: relative;
    inset: auto;
    display: grid;
    width: var(--her-container);
    height: auto;
    margin: 60px auto 0;
  }

  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    width: auto;
    height: auto;
    min-height: 432px;
    margin: 0;
    overflow: visible;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    inset: auto;
    width: 100%;
    height: 246px;
  }

  .her-site-main .her-system-card--right .her-system-card__image {
    grid-column: 1;
  }

  .her-site-main .her-system-card__content,
  .her-site-main .her-system-card--right .her-system-card__content {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    inset: auto;
    align-self: end;
    width: auto;
    margin: 0;
    padding: 0 0 4px;
  }

  .her-site-main .her-system-card--right .her-system-card__content {
    grid-column: 2;
  }

  .her-site-main .her-system-card__content h3 {
    overflow-wrap: anywhere;
    margin: 12px 0 24px;
    font-size: clamp(40px, 5.8vw, 60px);
  }

  .her-site-main .her-system-card__content p {
    min-height: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    right: auto;
    bottom: 0;
    left: 0;
    max-width: 100%;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 920px) {
  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    min-height: 420px;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    height: 290px;
  }

  .her-site-main .her-system-card__content h3 {
    font-size: clamp(48px, 7vw, 64px);
  }
}

/* Stop intrinsic text widths from widening the two-column FAQ or cards. */
.her-site-main .her-faq__grid,
.her-site-main .her-faq__grid > *,
.her-site-main .her-accordion,
.her-site-main .her-accordion__item,
.her-site-main .her-accordion__item button,
.her-site-main .her-system-card,
.her-site-main .her-system-card__content {
  min-width: 0;
}

.her-site-main .her-system-card__content h3 {
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
 * Shared intermediate layout for standalone pages
 *
 * The page styles intentionally keep the Figma desktop composition above
 * 1400px and their established phone composition below 768px. These rules
 * only close the gap between those references: columns are allowed to shrink,
 * overlays stay inside their own section and no child can widen the page.
 * ---------------------------------------------------------------------- */
@media (min-width: 1101px) and (max-width: 1399px) {
  .her-contact-page .her-partners__map {
    left: 0;
    width: 100%;
  }

  .her-contact-page .her-partners__map > img {
    width: 100%;
  }

  .her-system-page .hsp-product-panel__top,
  .her-system-page .hsp-product-panel__thumbs,
  .her-system-page .hsp-product-panel__benefits {
    min-width: 0;
  }

  .her-system-page .hsp-product-panel__thumbs .hsp-gallery-arrow--previous {
    left: 8px;
  }

  .her-system-page .hsp-product-panel__thumbs .hsp-gallery-arrow--next {
    right: 8px;
  }

  .her-faq__grid,
  .her-faq__grid > *,
  .her-faq .her-accordion,
  .her-faq .her-accordion__item,
  .her-faq .her-accordion__item button {
    min-width: 0;
  }

  .her-faq .her-accordion__item button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .her-faq .her-accordion__item button b {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
  }

  /* Five color swatches need to share the fluid purchase column on the
   * laptop frame. The desktop 93px swatch size is wider than that column at
   * 1101–1399px. */
  .her-product-page .hpp-option--color .hpp-option__choices {
    gap: 12px;
  }

  .her-product-page .hpp-option--color label {
    flex: 1;
    min-width: 0;
  }

  .her-product-page .hpp-option--color label span {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  /* The contact map uses the same centered, stacked partner block as the
   * homepage at tablet widths. The phone rules below 768px remain untouched. */
  .her-contact-page .her-partners {
    height: auto;
    min-height: 0;
    display: block;
    overflow: hidden;
    padding: 0;
  }

  .her-contact-page .her-partners__content {
    position: relative;
    top: auto;
    left: auto;
    width: var(--her-container);
    margin: 0 auto;
    padding: 0 0 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .her-contact-page .her-partners__content h2 {
    max-width: min(700px, 100%);
    margin-top: 17px;
    font-size: clamp(44px, 5.6vw, 62px);
    line-height: .95;
  }

  .her-contact-page .her-partners__content p {
    margin: 18px 0 25px;
  }

  .her-contact-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(540px, 64vw, 714px);
    margin-top: 0;
  }

  .her-contact-page .her-partners__map > img {
    width: 100%;
    height: 100%;
  }

  /* Keep the open-accordion symbol from becoming a flex item with a
   * min-content width. This removes the 12px column spill at tablet widths. */
  .her-faq__grid,
  .her-faq__grid > *,
  .her-faq .her-accordion,
  .her-faq .her-accordion__item,
  .her-faq .her-accordion__item button {
    min-width: 0;
  }

  .her-faq .her-accordion__item button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .her-faq .her-accordion__item button b {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
  }

  /* Keep the system gallery arrows inside the thumbnail rail. The desktop
   * composition places them outside; that spacing is too wide for a tablet. */
  .her-system-page .hsp-product-panel__top,
  .her-system-page .hsp-product-panel__copy,
  .her-system-page .hsp-product-panel__media,
  .her-system-page .hsp-product-panel__main-image,
  .her-system-page .hsp-product-panel__thumbs,
  .her-system-page .hsp-product-panel__benefits {
    min-width: 0;
  }

  .her-system-page .hsp-product-panel__thumbs {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 5.7vw, 63px);
    overflow: hidden;
  }

  .her-system-page .hsp-product-panel__thumbs .hsp-gallery-arrow--previous {
    left: 8px;
  }

  .her-system-page .hsp-product-panel__thumbs .hsp-gallery-arrow--next {
    right: 8px;
  }

  /* Commerce columns keep their own content inside the shared container at
   * the narrow end of the intermediate range. */
  .her-cart-content,
  .her-checkout-content,
  .her-account-content,
  .her-catalog,
  .her-catalog-card,
  .hpp-product,
  .hpp-gallery,
  .hpp-intro,
  .hpp-purchase {
    min-width: 0;
  }

  .her-cart-items,
  .her-cart-summary,
  .her-checkout-content .wc-block-components-checkout,
  .her-account-content .woocommerce,
  .her-catalog-card__copy,
  .her-catalog-card__details,
  .hpp-cart,
  .hpp-option,
  .hpp-information,
  .her-blog-article,
  .her-blog-post-copy,
  .her-blog-post-content,
  .her-product-page .her-blog,
  .her-product-page .her-blog__grid,
  .her-product-page .her-blog-card,
  .her-product-page .her-blog-card__image {
    min-width: 0;
  }

  .her-product-page .her-blog-card__image {
    width: 100%;
  }

  .her-product-page .her-blog-card__image img {
    width: 100%;
    max-width: 100%;
  }
}

/* Final contact partner parity with the homepage. These rules are last so
 * the legacy contact-page breakpoints cannot reintroduce the old layout. */
@media (min-width: 768px) and (max-width: 1100px) {
  .her-contact-page .her-partners {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 82px 0 0;
    display: block;
    overflow: hidden;
  }

  .her-contact-page .her-partners__content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--her-container);
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }

  .her-contact-page .her-partners__content h2 {
    max-width: 760px;
    margin: 17px 0 0;
    font-size: 62px;
    line-height: .95;
  }

  .her-contact-page .her-partners__content h2 em {
    display: block;
  }

  .her-contact-page .her-partners__content p {
    max-width: 520px;
    margin: 18px auto 26px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    font-variation-settings: "opsz" 24;
    line-height: 1.6;
  }

  .her-contact-page .her-partner-search {
    height: 58px;
    margin: 0;
  }

  .her-contact-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 470px;
    margin-top: 52px;
  }
}

@media (min-width: 768px) and (max-width: 800px) {
  .her-contact-page .her-partners__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 55px;
  }

  .her-contact-page .her-partners__content h2 {
    max-width: 310px;
    margin-top: 17px;
    font-size: 40px;
    line-height: 1.1;
  }

  .her-contact-page .her-partners__content h2 em {
    display: block;
  }

  .her-contact-page .her-partners__content p {
    max-width: 520px;
    margin: 18px auto 26px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    font-variation-settings: "opsz" 24;
    line-height: 1.6;
  }

  .her-contact-page .her-partner-search {
    width: 100%;
    height: 64px;
    margin: 0;
  }

  .her-contact-page .her-partner-search input {
    width: 63%;
    padding: 0 25px;
    font-size: 16px;
  }

  .her-contact-page .her-partner-search button {
    width: 37%;
    padding: 0 10px;
    font-size: 16px;
  }

  .her-contact-page .her-partners__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 470px;
    margin-top: 52px;
  }
}
/* Keep the floating mobile header on the same left-aligned grid as the
 * regular mobile header on every page-specific cascade. */
@media (max-width: 1100px) {
  body .her-header-shell > .her-sticky-header {
    justify-content: flex-start;
  }

  body .her-header-shell > .her-sticky-header .her-logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 103px !important;
    height: auto !important;
  }

  body .her-header-shell > .her-sticky-header .her-logo img {
    width: 103px !important;
    height: auto !important;
    max-width: none !important;
  }

  body .her-header-shell > .her-sticky-header .her-menu-toggle {
    margin-left: auto;
  }
}

@media (max-width: 1100px) {
  body .her-header-shell > .her-header:not(.her-sticky-header) .her-header__actions,
  body .her-header-shell > .her-sticky-header .her-header__actions {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
    margin-left: auto;
    position: static;
    top: auto;
    transform: none;
  }

  body .her-header-shell > .her-header:not(.her-sticky-header) .her-header__actions a,
  body .her-header-shell > .her-sticky-header .her-header__actions a {
    flex: 0 0 20px;
  }

  body .her-header-shell > .her-header:not(.her-sticky-header) .her-menu-toggle,
  body .her-header-shell > .her-sticky-header .her-menu-toggle {
    order: 3;
    flex: 0 0 28px;
    margin-left: 18px;
  }

  body .her-header-shell > .her-header:not(.her-sticky-header) .her-header__actions,
  body .her-header-shell > .her-sticky-header .her-header__actions {
    order: 2;
  }
}

/* The catalog footer is the canonical footer for the whole site.  Keep the
 * image in its native proportions while letting the media layer fill the
 * footer at every viewport size.  The page-specific styles above used fixed
 * pixel canvases, which stretched the image and made each subpage different. */
body.wp-theme-her-shop .her-footer {
  margin: 0;
  height: 756px;
  min-height: 756px;
  padding-top: 110px;
}

body.wp-theme-her-shop .her-footer__media {
  overflow: hidden;
  background: var(--her-footer-bg) #5E4B3E center / cover no-repeat;
  opacity: .5;
  mix-blend-mode: multiply;
}

body.wp-theme-her-shop .her-footer__media img {
  display: none;
}

body.wp-theme-her-shop .her-footer__overlay {
  background: transparent;
  opacity: 0;
}

body.wp-theme-her-shop .her-footer__top,
body.wp-theme-her-shop .her-footer__bottom {
  width: var(--her-container);
  grid-template-columns: 1fr 1fr;
  gap: 71px;
}

body.wp-theme-her-shop .her-footer__newsletter {
  padding-left: 0;
}

body.wp-theme-her-shop .her-footer__bottom {
  margin-top: 35px;
}

body.wp-theme-her-shop .her-footer__brand {
  padding-left: 101px;
}

body.wp-theme-her-shop .her-footer__brand h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 34px;
}

body.wp-theme-her-shop .her-footer__brand > p {
  max-width: 300px;
  margin-bottom: 30px;
  font-size: 22px;
  line-height: 28px;
}

body.wp-theme-her-shop .her-footer__brand address {
  font-size: 16px;
  line-height: 24px;
}

body.wp-theme-her-shop .her-footer__links {
  width: 594px;
  gap: 39px 40px;
}

body.wp-theme-her-shop .her-footer__links h3 {
  margin-bottom: 24px;
  font-size: 20px;
  line-height: 24px;
}

body.wp-theme-her-shop .her-footer__links a {
  font-size: 14px;
  line-height: 21px;
}

body.wp-theme-her-shop .her-footer__copyright {
  width: var(--her-container);
  margin-top: 49px;
  font-size: 12px;
  line-height: 17px;
}

@media (max-width: 1100px) {
  body.wp-theme-her-shop .her-footer__top,
  body.wp-theme-her-shop .her-footer__bottom {
    width: var(--her-container);
    gap: 40px;
  }

  body.wp-theme-her-shop .her-footer__links {
    width: 100%;
  }
}

/* The catalog keeps its 1120px desktop FAQ canvas. Match that canvas on its
 * footer while all other pages use the shared .her-container width. */
@media (min-width: 801px) and (max-width: 1100px) {
  body.wp-theme-her-shop .her-shop-page .her-footer__top,
  body.wp-theme-her-shop .her-shop-page .her-footer__bottom,
  body.wp-theme-her-shop .her-shop-page .her-footer__copyright {
    width: var(--her-catalog-width);
  }
}

@media (min-width: 1101px) {
  body.wp-theme-her-shop .her-shop-page .her-footer__top,
  body.wp-theme-her-shop .her-shop-page .her-footer__bottom,
  body.wp-theme-her-shop .her-shop-page .her-footer__copyright {
    width: min(1120px, calc(100% - 160px));
  }
}

@media (max-width: 800px) {
  body.wp-theme-her-shop .her-footer {
    height: auto;
    min-height: 1655px;
    padding-top: 70px;
  }

  body.wp-theme-her-shop .her-footer__top,
  body.wp-theme-her-shop .her-footer__bottom {
    width: var(--her-container);
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  body.wp-theme-her-shop .her-footer__bottom {
    margin-top: 85px;
    gap: 55px;
  }

  body.wp-theme-her-shop .her-footer__brand {
    padding-left: 0;
  }

  body.wp-theme-her-shop .her-footer__brand h3 {
    margin-bottom: 20px;
  }

  body.wp-theme-her-shop .her-footer__links {
    display: block;
    width: 100%;
  }

  body.wp-theme-her-shop .her-footer__links h3 {
    margin-bottom: 18px;
  }

  body.wp-theme-her-shop .her-footer__copyright {
    width: var(--her-container);
    margin-top: 40px;
  }
}

/* -------------------------------------------------------------------------
 * Global document scrolling and intermediate-width footer
 *
 * home-responsive.css hides the native scrollbar to keep the desktop Figma
 * canvas clean. The page still needs a visible, branded scrollbar for normal
 * document navigation. Keep the body lock used by the open mobile menu
 * untouched while allowing the main document to grow naturally.
 * ------------------------------------------------------------------------- */
html {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--her-olive) var(--her-cream);
}

html::-webkit-scrollbar {
  display: block;
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--her-cream);
}

html::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 3px solid var(--her-cream);
  border-radius: 999px;
  background: var(--her-olive);
}

html::-webkit-scrollbar-thumb:hover {
  background: #4b503c;
}

body:not(.her-menu-is-open) {
  overflow-x: hidden;
}

body:not(.her-menu-is-open) .site-main {
  overflow: visible;
}

/* At laptop and tablet widths the footer links wrap onto additional lines.
 * The desktop Figma canvas uses a fixed 756px footer, but retaining that
 * fixed height here clips the copyright/credits row. Let the content set the
 * height while preserving the designed minimum and horizontal rhythm. */
@media (min-width: 768px) and (max-width: 1105px) {
  body.wp-theme-her-shop .her-footer {
    height: auto;
    min-height: 756px;
    overflow: visible;
    padding-bottom: 52px;
  }
}

/* The mobile footer grows from its content. A desktop-sized minimum height
 * leaves a large empty band below the credits on narrow screens. */
@media (max-width: 767px) {
  body.wp-theme-her-shop .her-footer {
    min-height: 0;
    padding-bottom: 40px;
  }
}

/* Switch to the compact/mobile navigation before the desktop menu becomes
 * cramped. The 1101–1235px range keeps the same logo, account/cart actions
 * and hamburger arrangement as the tablet header. */
@media (min-width: 1101px) and (max-width: 1235px) {
  :root {
    --her-container: min(1100px, calc(100% - 96px));
  }

  .her-header,
  .her-barber-hero .her-header {
    width: var(--her-container);
    max-width: none;
    height: 120px;
    padding: 34px 0 0;
    align-items: center;
  }

  .her-logo,
  .her-barber-hero .her-logo {
    position: static;
    left: auto;
    top: auto;
    width: 103px;
    height: auto;
    margin: 0;
    transform: none;
  }

  .her-logo img,
  .her-barber-hero .her-logo img {
    width: 103px;
    height: auto;
    max-width: none;
  }

  .her-navigation,
  .her-barber-hero .her-navigation {
    display: none !important;
  }

  .her-menu-toggle,
  .her-barber-hero .her-menu-toggle {
    display: flex !important;
    width: 28px;
    height: 30px;
    padding: 5px 2px;
    margin-left: 18px;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 22;
    order: 3;
  }

  .her-menu-toggle span,
  .her-barber-hero .her-menu-toggle span {
    display: block;
    width: 21px;
    height: 1px;
    background: #181714;
    transition: transform .2s, opacity .2s;
  }

  .her-header__actions,
  .her-barber-hero .her-header__actions {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
    margin-left: auto !important;
    position: static;
    top: auto;
    transform: none;
    order: 2;
  }

  .her-header__actions a,
  .her-barber-hero .her-header__actions a {
    flex: 0 0 20px;
  }

  .her-header.is-menu-open .her-navigation,
  .her-barber-hero .her-header.is-menu-open .her-navigation {
    display: flex !important;
    position: absolute;
    z-index: 21;
    top: 120px;
    left: 0;
    width: 100%;
    padding: 28px 48px 38px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--her-cream);
    box-shadow: 0 20px 30px #0002;
  }

  .her-navigation a,
  .her-navigation a:first-child,
  .her-navigation a:nth-child(2),
  .her-navigation a:nth-child(3),
  .her-navigation a:nth-child(4),
  .her-navigation a:nth-child(5),
  .her-barber-hero .her-navigation a {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 16px 0;
    justify-content: space-between;
    border-bottom: 1px solid #68534544;
    font: 500 20px/1.2 "Cormorant", serif;
    letter-spacing: 3px;
  }

  .her-navigation a img {
    width: 12px;
    height: 7px;
  }

  .her-system-mega-menu {
    display: none !important;
  }

  body .her-header-shell > .her-sticky-header {
    width: var(--her-container);
    height: 96px;
    padding: 0;
    align-items: center;
  }

  body .her-header-shell > .her-sticky-header .her-logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 103px !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  body .her-header-shell > .her-sticky-header .her-logo img {
    width: 103px;
    height: auto;
    max-width: none;
  }
}

/* Scale the desktop watermark lockups as soon as the viewport drops below
 * the large desktop frame. At 1525px and wider the Figma size remains 185px;
 * below that point it reduces smoothly before the laptop rules take over. */
@media (min-width: 1400px) and (max-width: 1524px) {
  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    font-size: clamp(150px, calc(28vw - 242px), 185px) !important;
  }
}

/* Keep the desktop system-card composition through the laptop range. The
 * earlier intermediate rules placed two cards beside each other and swapped
 * the image/copy sides, which broke the left/right rhythm of the Figma frame.
 * At 1024px the cards change to a vertical image-then-copy composition. */
@media (min-width: 1025px) and (max-width: 1399px) {
  .her-site-main .her-systems__grid {
    display: flex !important;
    flex-direction: column;
    width: var(--her-container);
    height: auto;
    margin: 72px auto 0;
    gap: 75px;
  }

  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100%;
    height: clamp(500px, 43vw, 600px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    position: absolute !important;
    top: 0 !important;
    bottom: auto !important;
    width: min(524px, 42%) !important;
    height: auto !important;
    aspect-ratio: 1;
    max-width: none;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .her-site-main .her-system-card--left .her-system-card__image {
    left: 7.32% !important;
    right: auto !important;
  }

  .her-site-main .her-system-card--right .her-system-card__image {
    left: auto !important;
    right: 7.32% !important;
  }

  .her-site-main .her-system-card__content,
  .her-site-main .her-system-card--right .her-system-card__content {
    position: absolute !important;
    top: 160px !important;
    bottom: auto !important;
    width: min(400px, 34%) !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: auto;
  }

  .her-site-main .her-system-card--left .her-system-card__content {
    left: auto !important;
    right: 7.32% !important;
  }

  .her-site-main .her-system-card--right .her-system-card__content {
    top: 30px !important;
    left: 14.94% !important;
    right: auto !important;
  }

  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    bottom: 30px !important;
    top: auto !important;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(86px, 11vw, 150px) !important;
  }

  .her-site-main .her-system-card--left > .her-system-card__watermark {
    left: 0 !important;
    right: auto !important;
  }

  .her-site-main .her-system-card--right > .her-system-card__watermark {
    left: 73.17% !important;
    right: auto !important;
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    left: -5px !important;
    right: auto !important;
    bottom: 6px !important;
    top: auto !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .her-site-main .her-systems__grid {
    display: flex !important;
    flex-direction: column;
    gap: 64px;
  }

  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    gap: 32px;
  }

  .her-site-main .her-system-card__image,
  .her-site-main .her-system-card--right .her-system-card__image {
    position: relative !important;
    inset: auto !important;
    width: min(100%, 524px) !important;
    height: auto !important;
    aspect-ratio: 1;
    align-self: flex-start;
    order: 1;
  }

  .her-site-main .her-system-card__content,
  .her-site-main .her-system-card--right .her-system-card__content {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2;
  }

  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    top: auto !important;
    bottom: calc(100% - min(100%, 524px) - 15px) !important;
    left: calc(min(100%, 524px) - 20px) !important;
    right: auto !important;
    font-size: clamp(40px, calc(26vw - 160px), 106px) !important;
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    top: auto !important;
    left: calc(100% - 20px) !important;
    right: auto !important;
    bottom: -15px !important;
  }
}

/* Keep mobile watermarks visible as the card becomes narrow. The old
 * max-width/overflow combination clipped the longer names (Hybrydowy,
 * Premium Virgin and Częściowy) against the card edge. */
@media (max-width: 767px) {
  .her-site-main .her-system-card,
  .her-site-main .her-system-card:nth-child(n) {
    overflow: visible !important;
  }

  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    z-index: 3 !important;
    top: auto !important;
    right: auto !important;
    bottom: calc(100% - 160px) !important;
    left: 125px !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    font-size: clamp(42px, 15vw, 112px) !important;
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    top: auto !important;
    right: auto !important;
    bottom: -15px !important;
    left: calc(100% - 20px) !important;
    max-width: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 540px) {
  .her-site-main .her-system-card__watermark,
  .her-site-main .her-system-card--right .her-system-card__watermark {
    font-size: clamp(34px, 11vw, 70px) !important;
  }

  .her-site-main .her-system-card__image--premium .her-system-card__watermark--premium {
    right: auto !important;
    left: calc(100% - 20px) !important;
  }
}

