/* Global typography rules. Keep every page on the same scale as the home page. */
:root {
  --fs-body-lg: var(--fs-body);
  --fs-h4: var(--fs-card-title);
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-label,
.nav-links,
.mobile-nav,
.quote-button,
.menu-button {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.hero-copy h1,
.about-hero h1,
.contact-hero h1,
.news-page-hero h1,
#products-page .products-hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: 0;
}

.product-head h2,
.material-head h2,
.why-copy h2,
.faq-head h2,
.get-started h2,
.about-copy-block h2,
.about-section-head h2,
.about-contact-grid h2,
.contact-page-head h2,
.contact-form-copy h2,
.news-page-head h2,
.news-contact-copy h2,
#products-page .products-section-head h2,
#products-page .products-guide-grid h2 {
  font-size: var(--fs-section-title);
  line-height: 0.98;
  letter-spacing: 0;
}

.product-card h3,
.material-card h3,
.news-list-card h3,
#products-page .product-shop-card h3,
#products-page .products-hero-card strong,
#products-page .products-guide-list span {
  font-size: var(--fs-card-title);
  line-height: 1.08;
  letter-spacing: 0;
}

#products-page .product-shop-card h3,
.news-list-card h3,
.material-card h3,
.product-card h3,
#products-page .products-use-grid span,
#products-page .products-application-grid strong,
#products-page .products-guide-list span {
  font-size: clamp(18px, 1.08vw, 24px);
  line-height: 1.18;
  letter-spacing: 0;
}

.faq-card strong,
.product-detail-faq-grid summary {
  font-size: clamp(18px, 1.18vw, 22px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: 0;
}

p,
li,
address,
.hero-copy p,
.product-head p,
.material-head p,
.why-copy p,
.faq-head p,
.about-hero p,
.about-profile-content p,
.contact-hero p,
.contact-page-head p,
.news-page-hero p,
.news-page-head p,
.news-contact-copy p,
#products-page .products-hero p,
#products-page .products-section-head p,
#products-page .products-guide-grid > div > p,
#products-page .product-shop-card p,
#products-page .products-guide-list p {
  font-size: var(--fs-body);
  letter-spacing: 0;
}

@media (max-width: 640px) {
  #products-page .product-shop-card h3,
  .news-list-card h3,
  .material-card h3,
  .product-card h3,
  #products-page .products-use-grid span,
  #products-page .products-application-grid strong,
  #products-page .products-guide-list span {
    font-size: clamp(17px, 3.2vw, 22px);
    line-height: 1.2;
  }

  .faq-card strong,
  .product-detail-faq-grid summary {
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.36;
  }
}

small,
time,
.section-label,
.product-card p,
.material-card p,
.news-list-card p,
.store-category-rail span,
.material-category-card em,
#products-page .products-hero-card span,
#products-page .products-hero-card p {
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .hero-copy h1,
  .about-hero h1,
  .contact-hero h1,
  .news-page-hero h1,
  #products-page .products-hero h1 {
    font-size: var(--fs-hero);
    line-height: 1.08;
  }

  .product-head h2,
  .material-head h2,
  .why-copy h2,
  .faq-head h2,
  .get-started h2,
  .about-copy-block h2,
  .about-section-head h2,
  .about-contact-grid h2,
  .contact-page-head h2,
  .contact-form-copy h2,
  .news-page-head h2,
  .news-contact-copy h2,
  #products-page .products-section-head h2,
  #products-page .products-guide-grid h2 {
    font-size: var(--fs-section-title);
    line-height: 1.08;
  }
}

.language-switch {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.menu-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
  justify-content: center;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-header.is-scrolled .menu-button,
.contact-page .site-header:not(.is-scrolled) .menu-button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.menu-button-icon {
  width: 24px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu-button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header.is-scrolled .menu-button-icon,
.contact-page .site-header:not(.is-scrolled) .menu-button-icon {
  filter: none;
}

.language-switch {
  position: relative;
  display: inline-flex;
}

.language-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.language-toggle img {
  width: 23px;
  height: 23px;
  display: block;
  filter: brightness(0) invert(1);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 112px;
  padding: 6px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(35 38 38 / 0.14);
}

.language-menu[hidden] {
  display: none;
}

.language-menu span,
.language-menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu span {
  background: var(--ink);
  color: #fff;
}

.language-menu a:hover {
  background: #f2f5f3;
  color: var(--green);
}

.site-header.is-scrolled .language-toggle img,
.contact-page .site-header:not(.is-scrolled) .language-toggle img {
  filter: none;
}

.why-office-image {
  align-self: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 64px rgb(35 38 38 / 0.08);
}

.why-office-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    padding: 0 28px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      max-height 380ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 380ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 280ms ease,
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 380ms;
  }

  .mobile-nav.open {
    max-height: calc(100dvh - 88px);
    padding: 0 28px 18px;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: rgb(255 255 255 / 0.985);
    backdrop-filter: blur(16px);
    transition-delay: 0s;
  }

  .menu-button {
    position: relative;
  }

  .menu-button-icon {
    width: 24px;
    height: 20px;
    position: relative;
    display: block;
    filter: none;
  }

  .menu-button-icon i {
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
      top 340ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 200ms ease;
  }

  .menu-button-icon i:nth-child(1) {
    top: 0;
  }

  .menu-button-icon i:nth-child(2) {
    top: 8.5px;
  }

  .menu-button-icon i:nth-child(3) {
    top: 17px;
  }

  .menu-button[aria-expanded="true"] .menu-button-icon i:nth-child(1) {
    top: 8.5px;
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-button-icon i:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] .menu-button-icon i:nth-child(3) {
    top: 8.5px;
    transform: rotate(-45deg);
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq-card {
    min-height: 92px;
    grid-template-columns: 54px 1px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px;
  }

  .faq-card span {
    width: 54px;
    height: 54px;
    font-size: 26px;
  }

  .faq-card::before {
    height: 54px;
  }

  .mobile-nav-group {
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-nav-row > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-nav .mobile-nav-row > a {
    border-bottom: 0;
  }

  .mobile-nav-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
  }

  .mobile-nav-toggle::before,
  .mobile-nav-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transform: translate(-50%, -50%);
  }

  .mobile-nav-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(1);
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
  }

  .mobile-nav-toggle[aria-expanded="true"]::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
  }

  .mobile-nav-sub {
    display: grid;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      max-height 380ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 380ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 280ms ease,
      transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav-sub[hidden] {
    display: grid;
  }

  .mobile-nav-group.is-open .mobile-nav-sub {
    max-height: 180px;
    padding: 0 0 8px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav .mobile-nav-sub .mobile-sub-link {
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav .mobile-nav-sub .mobile-sub-link:last-child {
    border-bottom: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .menu-button-icon i,
    .mobile-nav-sub,
    .mobile-nav-toggle::after {
      transition: none;
    }
  }

}
