.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 6px;
  background: #0d1b2a;
  color: #fff;
  font-family: var(--font-heading, 'DM Sans', sans-serif);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--teal, #049fd9);
  outline-offset: 3px;
}

:where(main, section, header, h2, h3)[id] {
  scroll-margin-top: 96px;
}

.form-field-error {
  display: none;
  margin-top: 6px;
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.4;
}

.form-field-error.show {
  display: block;
}

.form-submit-error {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #fda29b;
  border-radius: 6px;
  background: #fef3f2;
  color: #912018;
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-submit-error[hidden] {
  display: none;
}

.form-input.error,
.lead-input.error {
  border-color: #d92d20 !important;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: #e1e5eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'DM Sans', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy, #0d1b2a);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav .nav-logo-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--teal, #049fd9);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.nav .nav-logo-text {
  display: inline-block;
  color: var(--navy, #0d1b2a);
  line-height: 1;
}

.nav .nav-logo-text > span {
  color: var(--teal, #049fd9);
}

.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav .nav-links a {
  font-family: var(--font-heading, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav .nav-links a:hover,
.nav .nav-links a.active {
  color: var(--navy, #0d1b2a);
  background: #f8f9fb;
}

.nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

  .skip-link,
  .nav,
  .nav .btn,
  .nav .nav-links a,
  .nav .nav-hamburger span,
  .fade-in {
    transition: none !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

.nav .nav-links a.btn-primary {
  background: var(--teal-action, #0077a3);
  color: #fff;
}

.nav .nav-links a.btn-primary:hover {
  background: var(--teal-action-hover, #006b93);
  color: #fff;
  transform: translateY(-1px);
}

.nav .btn-secondary {
  background: #fff;
  color: var(--navy, #0d1b2a);
  border: 1.5px solid #e1e5eb;
}

.nav .btn-secondary:hover {
  border-color: var(--teal, #049fd9);
  color: var(--teal, #049fd9);
}

.nav .nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy, #0d1b2a);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav .nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav .nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav .nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 24px 16px;
    border-bottom: 1px solid #e1e5eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav .nav-links.open {
    display: flex;
  }

  .nav .nav-hamburger {
    display: flex;
  }

  .nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f1f3f5;
  }

  .nav .nav-links li:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  .nav .nav-links a {
    display: block;
    padding: 13px 0;
    width: 100%;
  }

  .nav .nav-links a.btn {
    display: inline-flex;
    width: auto;
    padding: 10px 24px;
  }
}

.footer {
  background:
    linear-gradient(180deg, #0f1c2b 0%, #0c1724 100%);
  color: rgba(255, 255, 255, 0.66);
  padding: 44px 0 28px;
}

.footer > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(520px, 1fr);
  align-items: flex-start;
  gap: 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 18px;
}

.footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-right: 20px;
}

.footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'DM Sans', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer .footer-logo-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.footer .footer-logo-text {
  display: inline-block;
  line-height: 1;
  color: #fff;
}

.footer .footer-logo-text > span {
  color: var(--teal, #049fd9);
}

.footer .footer-tagline {
  margin: 0;
  max-width: 32ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.footer .footer-company {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.footer .footer-company-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer .footer-company p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.footer .footer-company-meta {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

.footer .footer-nav {
  min-width: 0;
}

.footer .footer-columns {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(240px, 1fr);
  gap: 32px;
  min-width: 0;
}

.footer .footer-nav-title {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer .footer-links {
  display: flex;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer .footer-nav .footer-links {
  gap: 10px 24px;
}

.footer .footer-links-column {
  display: grid;
  gap: 10px;
}

.footer .footer-links-column li {
  min-width: 0;
}

.footer .footer-nav .footer-links li {
  flex: none;
}

.footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.5;
}

.footer .footer-cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer .footer-cookie-settings:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer .footer-cookie-settings:focus-visible {
  outline: 2px solid var(--teal, #049fd9);
  outline-offset: 3px;
}

.form-privacy-notice {
  margin: 0;
  padding-top: 12px;
  color: var(--text-light, #64748b);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-privacy-notice strong {
  color: inherit;
  font-weight: 600;
}

.form-privacy-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy-notice a:hover {
  color: var(--teal-dark, #0380b0);
}

.footer .footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
}

.footer .footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
}

.footer .footer-legal-links {
  gap: 10px 22px;
}

.footer .footer-bottom .footer-links {
  align-items: center;
}

.footer .footer-partner {
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer .footer-partner-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer .footer-partner strong {
  color: #fff;
  font-weight: 600;
}

.footer .footer-partner-status {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 640px) {
  .footer {
    padding-top: 32px;
  }

  .footer .footer-inner,
  .footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .footer-brand,
  .footer .footer-columns,
  .footer .footer-nav {
    width: 100%;
  }

  .footer .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer .footer-links a:hover {
    transform: none;
  }

  .footer .footer-cookie-settings:hover {
    transform: none;
  }
}
