.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(123, 176, 166, 0.24);
}

.btn--primary:hover {
  background: #7a46c0;
  color: #ffffff;
}

.btn--secondary {
  background: var(--color-surface-strong);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.35rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 14px;
  color: var(--color-text-soft);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible {
  color: var(--color-text);
}

.lang-switch__link.is-active {
  background: var(--color-accent);
  color: #ffffff;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  backdrop-filter: blur(8px);
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn--hero-primary {
  min-width: 280px;
  min-height: 60px;
  padding: 1rem 1.65rem;
  border: 1px solid #ffffff;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 16px 34px rgba(122, 70, 192, 0.30),
    0 10px 28px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn--hero-primary:hover {
  background: #7a46c0;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow:
    0 22px 42px rgba(122, 70, 192, 0.38),
    0 14px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px) scale(1.02);
}

.move-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.move-to-top:hover {
  background: #ffffff;
  border-color: var(--color-accent-2);
  box-shadow: 0 14px 28px rgba(25, 18, 10, 0.14);
}

.move-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.move-to-top:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .move-to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .move-to-top {
    transition: none;
  }
}
