:root {
  --brand: #cd332b;
  --brand-deep: #a61f1a;
  --ink: #111214;
  --ink-2: #1b1d20;
  --accent-dark: #323339;
  --text: #333333;
  --muted: #666666;
  --line: #e7e7e7;
  --paper: #ffffff;
  --paper-soft: #f5f5f3;
  --header-height: 82px;
  --container: 1280px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", Arial, Helvetica, sans-serif;
  --ease-premium: cubic-bezier(0.2, 0.7, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}

.icon-mask {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  /* Background images remain visible when the static page is opened directly. */
  background-color: transparent;
  background-image: var(--icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(77%) saturate(2522%)
    hue-rotate(349deg) brightness(94%) contrast(88%);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(18px);
  transition:
    transform 0.45s var(--ease-premium),
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  width: min(calc(100% - 72px), 1400px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 46px);
}

.brand {
  width: clamp(176px, 14vw, 224px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  gap: clamp(10px, 1.25vw, 24px);
  flex: 1 1 auto;
}

.nav-item {
  position: relative;
  padding: 2px 0 0;
  display: flex;
  align-items: center;
  color: #303136;
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-item::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-premium);
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  color: var(--brand);
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  flex: 0 0 auto;
  text-decoration: none;
}

.header-contact .icon-mask {
  width: 27px;
  height: 27px;
}

.header-contact span:last-child {
  display: grid;
  line-height: 1.25;
  
}

.header-contact strong {
  font-size: 17px;
  letter-spacing: 0.02em;
  
}

.header-contact small {
  margin-top: 3px;
  color: #777;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  color: var(--ink);
}

.menu-toggle span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-premium);
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: calc(var(--header-height) + 50px) 28px 42px;
  color: #fff;
  background: var(--brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
}

.site-header.is-menu-open {
  height: 100svh;
  background: var(--brand);
}

.site-header.is-menu-open .site-header__inner {
  height: var(--header-height);
}

.site-header.is-menu-open .brand {
  position: relative;
  z-index: 2;
}

.site-header.is-menu-open .brand img {
  filter: brightness(0) invert(1);
}

.site-header.is-menu-open .menu-toggle {
  color: #fff;
}

.mobile-menu__eyebrow {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

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

.mobile-menu__nav button,
.mobile-menu__nav a {
  min-height: 64px;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
}

.mobile-menu > p {
  position: absolute;
  right: 28px;
  bottom: 36px;
  left: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #121316;
}

.site-footer__top {
  min-height: 170px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.footer-brand img {
  width: 190px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-cta {
  display: grid;
  gap: 3px;
}

.footer-cta span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.footer-cta strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
}

.footer-contact {
  justify-self: end;
  display: grid;
  line-height: 1.4;
}

.footer-contact small {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-contact strong {
  color: #fff;
  font-size: 20px;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.site-footer__bottom {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-nav button,
.footer-nav a {
  padding: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav button:hover,
.footer-nav button:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.quick-contact {
  position: fixed;
  z-index: 800;
  right: 22px;
  top: 50%;
  width: 70px;
  overflow: hidden;
  color: #333;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
}

.quick-contact button,
.quick-contact a {
  position: relative;
  width: 100%;
  min-height: 64px;
  padding: 9px 5px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.quick-contact button::before,
.quick-contact a::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  content: "";
  background: var(--brand);
  opacity: 0;
  transform: scaleY(0.35);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.quick-contact .quick-contact__item + .quick-contact__item {
  border-top: 1px solid var(--line);
}

.quick-contact button:hover,
.quick-contact button:focus-visible,
.quick-contact a:hover,
.quick-contact a:focus-visible {
  color: var(--brand);
  background: rgba(205, 51, 43, 0.055);
}

.quick-contact button:hover::before,
.quick-contact button:focus-visible::before,
.quick-contact a:hover::before,
.quick-contact a:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.quick-contact .icon-mask {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%);
  opacity: 0.8;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease;
}

.quick-contact button:hover .icon-mask,
.quick-contact button:focus-visible .icon-mask,
.quick-contact a:hover .icon-mask,
.quick-contact a:focus-visible .icon-mask {
  filter: brightness(0) saturate(100%) invert(24%) sepia(77%) saturate(2522%)
    hue-rotate(349deg) brightness(94%) contrast(88%);
  opacity: 1;
}

.quick-contact small {
  font-size: 11px;
  line-height: 1.3;
}

@media (min-width: 1241px) and (max-width: 1420px) {
  .quick-contact {
    right: 6px;
    width: 60px;
  }

  .quick-contact small {
    font-size: 10px;
  }
}

@media (max-width: 1240px) {
  .desktop-nav {
    gap: 12px;
  }

  .nav-item {
    font-size: 12px;
  }

  .header-contact small {
    display: none;
  }

  .quick-contact {
    display: none;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .site-header__inner {
    width: calc(100% - 32px);
  }

  .brand {
    width: 176px;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
    display: grid;
  }

  .site-footer__top {
    padding-block: 48px;
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    justify-self: start;
  }

  .footer-cta {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer__bottom {
    padding-block: 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .quick-contact {
    display: none;
  }
}

@media (max-width: 575px) {
  .container {
    width: calc(100% - 40px);
  }

  .brand {
    width: 154px;
  }

  .mobile-menu__nav {
    grid-template-columns: 1fr;
  }

  .mobile-menu__nav button,
  .mobile-menu__nav a {
    min-height: 51px;
    font-size: 18px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-cta {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
