.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-main {
  min-height: calc(100vh - 8rem);
  padding-block: 2.5rem;
  padding-top: 5.75rem;
}

.site-main--home {
  min-height: 0;
  padding: 0;
}

.site-main--inner {
  min-height: 0;
  padding: 0;
}

.page-section {
  padding-block: 2rem;
}

.page-section__title {
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.page-section__text {
  max-width: min(100%, 42rem);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.75;
  color: #555;
  text-wrap: pretty;
}

/* Responsive line groups — desktop block lines, mobile natural flow */
.text-lines {
  text-wrap: pretty;
}

.text-lines__line {
  display: block;
}

/* Shared header dropdown */
.site-header .mega-menu {
  display: none;
}

.site-header .mobile-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: #111;
  text-align: left;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-header .mobile-menu__trigger:hover,
.site-header .mobile-menu__trigger:focus-visible {
  color: #e83837;
  padding-left: 0.5rem;
}

.site-header .mobile-menu__trigger-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.site-header .mobile-menu__trigger[aria-expanded="true"] .mobile-menu__trigger-icon {
  transform: rotate(180deg);
}

.site-header .mobile-menu__submenu {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.35rem 0 0.75rem 0.875rem;
  border-bottom: 1px solid #f0f0f0;
}

.site-header .mobile-menu__submenu[hidden] {
  display: none !important;
}

.site-header .mobile-menu__submenu a {
  display: block;
  padding: 0.625rem 0;
  border-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: #555;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-header .mobile-menu__submenu a:hover,
.site-header .mobile-menu__submenu a:focus-visible {
  color: #e83837;
  padding-left: 0.35rem;
}

@media (min-width: 1289px) {
  .site-header {
    --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dropdown-duration: 320ms;
    --nav-grid-width: clamp(560px, 36vw, 660px);
    --nav-grid-open-width: clamp(900px, 60vw, 1120px);
    --nav-center-max-width: calc(100vw - 5rem - 23.25rem - 2rem);
    --current-nav-grid-width: min(var(--nav-grid-width), var(--nav-center-max-width));
  }

  .site-header.is-dropdown-open {
    --current-nav-grid-width: min(var(--nav-grid-open-width), var(--nav-center-max-width));
  }

  .site-header .site-nav {
    justify-self: center;
    max-width: 100%;
    min-width: 0;
  }

  .site-header .site-nav__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: var(--current-nav-grid-width);
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
    justify-content: center;
    transition: width var(--dropdown-duration) var(--dropdown-ease);
  }

  .site-header .mega-menu__inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: min(var(--nav-grid-open-width), calc(100vw - 5rem));
    max-width: calc(100vw - 5rem);
    margin-inline: auto;
    padding: 0;
    justify-content: center;
  }

  .site-header .site-nav__list li {
    min-width: 0;
  }

  .site-header .site-nav__list a {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .site-header .mega-menu {
    position: absolute;
    top: calc(5.75rem + 1px);
    left: 1.25rem;
    right: 1.25rem;
    z-index: -1;
    display: block;
    width: auto;
    padding: 1.5rem 1.25rem 1.75rem;
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(20, 29, 45, 0.68), rgba(13, 20, 34, 0.62)),
      rgba(14, 20, 32, 0.64);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    visibility: hidden;
    transition:
      opacity var(--dropdown-duration) var(--dropdown-ease),
      transform var(--dropdown-duration) var(--dropdown-ease),
      visibility 0s linear 0.24s;
  }

  .site-header.is-dropdown-open .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .site-header .mega-menu__column {
    min-width: 0;
    padding: 0.25rem clamp(0.75rem, 1.5vw, 1.25rem);
    text-align: center;
  }

  .site-header .mega-menu__column + .mega-menu__column {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header .mega-menu__title {
    display: none;
  }

  .site-header .mega-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
  }

  .site-header .mega-menu__links a {
    display: inline-flex;
    width: fit-content;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
    color: #fff;
    word-break: keep-all;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
  }

  .site-header .mega-menu__links a:hover,
  .site-header .mega-menu__links a:focus-visible {
    color: #e83837;
  }
}


@media (prefers-reduced-motion: reduce) {
  .site-header .site-nav,
  .site-header .site-nav__list,
  .site-header .mega-menu,
  .site-header .mega-menu__inner,
  .site-header .mega-menu__links a,
  .site-header .mobile-menu__trigger,
  .site-header .mobile-menu__trigger-icon,
  .site-header .mobile-menu__submenu a {
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .text-lines__line {
    display: inline;
  }

  .text-lines__line:not(:last-child)::after {
    content: " ";
  }
}

/* Shared section heading / subtitle typography */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-subtitle {
  max-width: min(100%, 42rem);
  margin-inline: auto;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  text-wrap: pretty;
}

/* Reusable inner page hero */
.subpage-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 32.3vw, 38.75rem);
  overflow: hidden;
  background-color: #020202;
}

.subpage-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subpage-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.subpage-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1400px;
  padding-top: 5.75rem;
  text-align: center;
}

.subpage-hero__title {
  font-size: clamp(2.25rem, 5vw, 4.125rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.subpage-hero__inner:has(.subpage-hero__desc) .subpage-hero__title {
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  letter-spacing: 0;
}

.subpage-hero__desc {
  max-width: min(56rem, 100%);
  font-size: clamp(1rem, 1.8vw, 1.375rem);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

/* Reusable inner page menu */
.subpage-menu {
  position: relative;
  z-index: 2;
  background-color: #e83837;
}

.subpage-menu__inner {
  max-width: 1400px;
  padding-inline: 1.25rem;
}

.subpage-menu__toggle {
  display: none;
}

.subpage-menu__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 5rem;
}

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

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

.subpage-menu--product .subpage-menu__inner--product {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.subpage-menu--product .subpage-menu__list--product {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 100%;
  min-height: 5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: 0;
}

.subpage-menu--product .subpage-menu__list--product::-webkit-scrollbar {
  display: none;
}

.subpage-menu--product .subpage-menu__list--product .subpage-menu__link {
  white-space: nowrap;
  text-align: center;
}

@media (min-width: 768px) {
  .subpage-menu--product.product-subnav--compact .subpage-menu__inner--product {
    max-width: 1400px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .subpage-menu--product.product-subnav--compact .subpage-menu__list--product .subpage-menu__item {
    flex: 1 1 0;
    min-width: 0;
  }

  .subpage-menu--product.product-subnav--expanded .subpage-menu__inner--product {
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .subpage-menu--product.product-subnav--expanded .subpage-menu__list--product .subpage-menu__item {
    flex: 1 0 clamp(170px, 14vw, 240px);
    min-width: clamp(170px, 14vw, 240px);
  }
}

.subpage-menu__item {
  min-width: 0;
}

.subpage-menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 5rem;
  padding: 1rem 1.875rem;
  border-inline: 1px solid rgba(221, 221, 221, 0.55);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subpage-menu__item:first-child .subpage-menu__link {
  border-left: 0;
}

.subpage-menu__item:last-child .subpage-menu__link {
  border-right: 0;
}

.subpage-menu__link:hover,
.subpage-menu__link:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.subpage-menu__link.is-active,
.subpage-menu__link[aria-current="page"] {
  background-color: #fff;
  color: #333;
}

@media (max-width: 767px) {
  .subpage-hero {
    min-height: 22rem;
  }

  .subpage-hero__inner {
    padding-top: 5.5rem;
  }

  .subpage-hero__title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .subpage-hero__inner:has(.subpage-hero__desc) .subpage-hero__title {
    font-size: clamp(1.5rem, 7vw, 1.875rem);
  }

  .subpage-hero__desc {
    font-size: clamp(0.9375rem, 3.6vw, 1.125rem);
  }

  .subpage-menu {
    padding-block: 0.75rem;
  }

  .subpage-menu__inner {
    position: relative;
  }

  .subpage-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0 1.25rem;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
  }

  .subpage-menu__toggle-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .subpage-menu.is-open .subpage-menu__toggle-icon {
    transform: rotate(180deg);
  }

  .subpage-menu__list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .subpage-menu.is-open .subpage-menu__list {
    max-height: 18rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .subpage-menu--product .subpage-menu__inner--product {
    padding-inline: 1.25rem;
  }

  .subpage-menu--product .subpage-menu__list--product {
    width: auto;
    min-width: 0;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: hidden;
  }

  .subpage-menu--product .subpage-menu__list--product .subpage-menu__item {
    flex: 0 0 auto;
    min-width: 0;
  }

  .subpage-menu--product .subpage-menu__list--product .subpage-menu__link {
    white-space: normal;
  }

  .subpage-menu.is-open .subpage-menu__list--product {
    max-height: min(70vh, 36rem);
    overflow-y: auto;
  }

  .subpage-menu__link {
    justify-content: flex-start;
    min-height: 3.25rem;
    padding: 0.875rem 1.25rem;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
  }

  .subpage-menu__item:last-child .subpage-menu__link {
    border-bottom: 0;
  }

  .subpage-menu__link:hover,
  .subpage-menu__link:focus-visible {
    background-color: #f8f8f8;
    color: #e83837;
  }

  .subpage-menu__link.is-active,
  .subpage-menu__link[aria-current="page"] {
    background-color: #e83837;
    color: #fff;
  }
}

/* Site footer */
.site-footer {
  position: relative;
  z-index: 2;
  background-color: #111;
}

.site-footer__wrap {
  padding: 1.25rem;
}

.site-footer__panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  width: min(100%, calc(100% - 0px));
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3.125rem) clamp(1.25rem, 5vw, 5rem);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.21);
  -webkit-backdrop-filter: blur(80px);
  backdrop-filter: blur(80px);
}

.page-inner .site-footer {
  background-color: #fff;
}

.page-inner .site-footer__panel {
  background-color: #111;
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.site-footer__logo {
  width: clamp(5.5rem, 12vw, 7.5625rem);
  height: auto;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  min-width: 0;
}

.site-footer__family-wrap {
  position: relative;
}

.site-footer__family {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 8.125rem;
  height: 1.875rem;
  padding: 0 0.75rem 0 1.5625rem;
  border-radius: 5px;
  background-color: #e83837;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
  transition: filter 0.25s ease;
}

.site-footer__family:hover {
  filter: brightness(1.06);
}

.site-footer__family:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-footer__family-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.site-footer__family[aria-expanded="true"] .site-footer__family-icon {
  transform: rotate(180deg);
}

.site-footer__family-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 5;
  flex-direction: column;
  min-width: 8.125rem;
  padding: 0.5rem 0;
  border-radius: 5px;
  background-color: rgba(17, 17, 17, 0.92);
}

.site-footer__family-panel[hidden] {
  display: none !important;
}

.site-footer__family-panel:not([hidden]) {
  display: flex;
}

.site-footer__family-panel a {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #fff;
  transition: background-color 0.2s ease;
}

.site-footer__family-panel a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.site-footer__details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.site-footer__line-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.625rem;
}

.site-footer__line {
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.site-footer__copyright {
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  opacity: 0.5;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .site-footer__panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 1.75rem 1.25rem;
  }

  .site-footer__info {
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
  }

  .site-footer__details {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .site-footer__line-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

