/* Keep navigation available while the page content scrolls. */
.page-header,
.product-chrome.page-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #f3f5f6;
}
.page-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * var(--page-gutter));
  background: #f3f5f6;
  pointer-events: none;
}
html { scroll-padding-top: 124px; }
@media (min-width: 1100px), (min-width: 800px) and (min-height: 500px) {
  html { overflow-y: scroll; scrollbar-gutter: stable; }
  html::-webkit-scrollbar { width: 12px; }
  html::-webkit-scrollbar-track { background: #edf0f2; }
  html::-webkit-scrollbar-thumb { background: #8c9aa3; border: 2px solid #edf0f2; border-radius: 8px; }
  html::-webkit-scrollbar-thumb:hover { background: #647580; }
}
.back-link,
.back-link:hover,
.creation-note a[href="services.html"],
.creation-note a[href="services.html"]:hover { text-decoration: none; }
:is(.other, .other-products, .dev-next-grid) > a { min-width: 0; }
:is(.other, .other-products, .dev-next-grid) > a:is(:hover, :focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 9px 24px -17px rgb(16 37 54 / 42%);
  text-decoration: none;
}
:is(.other, .other-products, .dev-next-grid) > a:is(:hover, :focus-visible) > span:first-child {
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  :is(.other, .other-products, .dev-next-grid) > a {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  :is(.other, .other-products, .dev-next-grid) > a:is(:hover, :focus-visible) {
    transform: translateY(-3px) scale(1.015);
  }
}
@media (min-width: 1100px) {
  .diagnosis-page .other,
  .strengthen-page .other-products,
  .development-page .dev-next-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099px) { html { scroll-padding-top: 108px; } }

.footer-map {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 12px clamp(16px, 3vw, 44px);
}
.footer-map ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-map a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
}
.footer-map a:hover { text-decoration: underline; }

#page-footer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
}
#page-footer .footer-map { display: grid; }
#page-footer .footer-map a,
#page-footer .footer-utilities a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
#page-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
#page-footer .footer-service { gap: 12px; }
.footer-utilities { display: grid; justify-items: start; }
#page-footer .footer-service [data-policy] { display: inline-flex; align-items: center; min-height: 44px; }
#page-footer .copyright { margin: 0; }

.site-footer .footer-map { max-width: 880px; }
.site-footer .footer-map a { min-height: 34px; font-size: clamp(14px, 1.15vw, 18px); }
.site-footer .footer-bottom { align-items: baseline; justify-content: flex-start; gap: 6px 28px; opacity: 1; }
.site-footer .footer-bottom [data-policy] { display: inline-flex; align-items: center; min-height: 34px; text-align: left; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-links a {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgb(16 37 54 / 24%);
  border-radius: 50%;
}
.social-links a:is(:hover, :focus-visible) { border-color: var(--blue); }
.social-links img { display: block; width: 22px; height: 22px; }
.footer-identity .social-links, .site-footer .social-links { margin-top: 12px; }
[data-feedback-form] button[type="submit"]:disabled {
  border-color: #c6d0d6;
  background: #e6eaed;
  color: #54646e;
  cursor: default;
}

@media (max-width: 1099px) {
  #page-footer {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
  #page-footer .footer-identity { grid-column: 1 / -1; }
}
@media (max-height: 570px) and (min-width: 620px) {
  .site-footer { bottom: max(18px, env(safe-area-inset-bottom, 0px)); padding-top: 12px; }
  .site-footer .footer-map { max-width: none; }
  .site-footer .footer-map ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
  .site-footer .footer-map a { min-height: 32px; font-size: 12px; }
  .site-footer .footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-inline-end: 60px;
  }
  .site-footer .footer-bottom [data-policy] { min-height: 28px; }
}

@media (max-width: 799px), (max-width: 1099px) and (max-height: 499px) {
  .site-footer .footer-map,
  #page-footer .footer-map {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 0 clamp(14px, 4vw, 28px);
  }
  .site-footer .footer-map a,
  #page-footer .footer-map a {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 5px 0;
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.3;
  }
  .site-footer .footer-map li:first-child > a,
  #page-footer .footer-map li:first-child > a {
    color: var(--blue);
  }
  .site-footer {
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    padding-top: 12px;
  }
  .site-footer .footer-map a { min-height: clamp(32px, 5.3svh, 40px); }
  .site-footer .social-links, #page-footer .social-links { justify-content: space-between; }
  .site-footer .social-links { padding-inline-end: 54px; }
  .site-footer .footer-bottom {
    display: grid;
    justify-items: start;
    align-items: center;
    gap: 3px 20px;
    margin-top: 8px;
    padding: 5px 56px 0 0;
    border-top: 1px solid rgb(16 37 54 / 15%);
    color: #54646e;
    font-size: 12px;
    line-height: 1.35;
  }
  .site-footer .footer-bottom [data-policy] {
    min-height: 34px;
    color: var(--ink);
    text-decoration: none;
  }
  .site-footer .footer-tagline { display: none; }

  #page-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 28px 24px;
  }
  #page-footer .footer-identity p {
    margin-top: 10px;
    color: #54646e;
    font-size: 13px;
    line-height: 1.4;
  }
  #page-footer .footer-service {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid rgb(16 37 54 / 15%);
  }
  #page-footer .footer-utilities {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }
  #page-footer .footer-utilities a {
    min-height: 40px;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.35;
  }
  #page-footer .footer-utilities a:first-child { color: var(--blue); }
  #page-footer .footer-service [data-policy] {
    justify-self: start;
    min-height: 36px;
    padding: 0;
    font-size: 13px;
    line-height: 1.35;
  }
  #page-footer .copyright { color: #54646e; font-size: 12px; }
}

@media (min-width: 620px) and (max-width: 1099px) and (max-height: 499px) {
  .site-footer {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    padding-top: 8px;
  }
  .site-footer .footer-map ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(28px, auto));
    grid-auto-flow: column;
    gap: 0 12px;
  }
  .site-footer .footer-map a { min-height: 28px; padding-block: 3px; font-size: 13px; }
  .site-footer .footer-bottom {
    grid-template-columns: max-content minmax(0, 1fr);
    margin-top: 4px;
    padding-top: 2px;
  }
  .site-footer .footer-bottom [data-policy] { min-height: 26px; }
}

.cookie-notice {
  position: fixed;
  z-index: 50;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  max-width: 430px;
  padding: 18px 20px;
  border: 1px solid rgb(16 37 54 / 16%);
  border-radius: 16px;
  background: #f3f5f6;
  color: #102536;
  box-shadow: 0 10px 28px rgb(16 37 54 / 14%);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-notice p { margin: 0 0 12px; }
.cookie-notice a { color: inherit; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgb(16 37 54 / 24%);
  border-radius: 999px;
  color: #102536;
  background: transparent;
  cursor: pointer;
}
.cookie-actions [data-cookie-choice="accepted"] {
  border-color: #007afc;
  color: #fff;
  background: #007afc;
}
.cookie-actions button:hover { border-color: #007afc; }
.contact-form .consent label { display: inline; font: inherit; }
