/* Shared responsive, accessibility and conversion improvements. */
:root {
  --focus-ring: 0 0 0 4px rgba(255, 213, 28, .42);
}

html {
  scroll-padding-top: 112px;
}

body {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffd51c;
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #073337;
  background: #ffd51c;
  border-radius: 6px;
  font-weight: 900;
  transform: translateY(-160%);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce8e7;
  border-radius: 8px;
  color: #073337;
  background: #fff;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -7px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.contact-label {
  opacity: .78;
  font-weight: 700;
}

.form-privacy {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1.5;
}

.contact-form .form-privacy {
  color: #5d7074;
}

.response-promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #073337;
  background: #e9fff4;
  font-size: 13px;
  font-weight: 800;
}

img[loading="lazy"] {
  content-visibility: auto;
}

form select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c8d8d7;
  border-radius: 8px;
  padding: 12px 13px;
  color: inherit;
  background: #fff;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 960px) {
  .site-header .nav {
    position: relative;
    display: flex;
    min-height: 68px;
    flex-wrap: wrap;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-header .links {
    display: none;
    order: 4;
    width: 100%;
    padding: 10px 0 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .site-header .links.open {
    display: flex;
  }

  .site-header .links a:not(.button),
  .site-header .links .lang-toggle {
    display: flex !important;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: 7px;
  }

  .site-header .links a:not(.button):hover {
    background: #f1f8f7;
  }

  .site-header .links .button {
    display: inline-flex;
    width: 100%;
  }

  .site-header .links .lang-toggle[hidden] {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 74px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    position: sticky;
  }

  .contact-bar {
    display: none;
  }

  .site-header .nav {
    min-height: 72px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand > span:last-child {
    display: block;
  }

  .site-header .brand > span:last-child > span {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    display: block !important;
    min-height: auto !important;
  }

  .hero-content {
    padding: 64px 0 72px !important;
  }

  .hero h1,
  h1 {
    max-width: 12ch;
    font-size: clamp(38px, 11.2vw, 46px) !important;
    line-height: 1.06;
  }

  .hero .lead {
    font-size: 17px;
    line-height: 1.6;
  }

  .hero-showcase,
  .slider-controls,
  .slider-dots {
    display: none !important;
  }

  .hero-strip {
    position: static !important;
    width: 100% !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
  }

  .floating-inquiry {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: calc(100% - 24px);
    min-height: 50px !important;
    justify-content: center;
    transform: none !important;
  }

  .floating-inquiry:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%) !important;
  }

  .floating-inquiry.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .floating-inquiry:hover {
    transform: translateY(-2px) !important;
  }

  .inquiry-modal {
    padding: 10px !important;
  }

  .inquiry-panel {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 20px 16px !important;
  }

  .inquiry-panel-head {
    align-items: flex-start !important;
  }

  .certificate-gallery {
    grid-template-columns: 1fr 1fr !important;
  }
}
