.hv-footer {
  font-size: var(--font-size-sm);
}

.hv-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: var(--space-8);
  padding-top: var(--space-8);
  padding-bottom: var(--space-4);
}

.hv-footer__brand {
  max-width: 420px;
}

.hv-footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.hv-footer__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-secondary), #4d7260);
  box-shadow: var(--shadow-soft);
}

.hv-footer__text-group {
  display: flex;
  flex-direction: column;
}

.hv-footer__site-name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.hv-footer__tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hv-footer__description {
  color: var(--color-text-muted);
}

.hv-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.hv-footer__heading {
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--color-secondary);
  font-family: var(--font-sans);
}

.hv-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hv-footer__link {
  color: var(--color-text-muted);
}

.hv-footer__link:hover {
  color: var(--color-primary-hover);
}

.hv-footer__text {
  color: var(--color-text-muted);
}

.hv-footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.hv-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  background: var(--color-surface);
}

.hv-footer__social-link:hover {
  border-color: var(--color-secondary);
  background-color: var(--color-secondary);
  color: var(--color-on-secondary);
  transform: translateY(-1px);
}

.hv-footer__bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.hv-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.hv-footer__copyright,
.hv-footer__age-note {
  color: var(--color-text-muted);
}

.hv-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  pointer-events: none;
}

.hv-cookie__inner {
  width: min(100%, 960px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--gray-200);
  pointer-events: auto;
}

.hv-cookie__title {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
  color: var(--color-heading);
}

.hv-cookie__description {
  font-size: var(--font-size-sm);
}

.hv-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.hv-cookie__btn {
  min-width: 130px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.hv-cookie__btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-soft);
}

.hv-cookie__btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-on-primary);
}

.hv-cookie__btn--secondary:hover {
  background-color: var(--color-surface-soft);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.hv-cookie[hidden] {
  display: none;
}

.hv-cookie--enter {
  animation: hv-cookie-slide-in 280ms var(--transition-base) forwards;
}

.hv-cookie--exit {
  animation: hv-cookie-slide-out 220ms var(--transition-fast) forwards;
}

@keyframes hv-cookie-slide-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hv-cookie-slide-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@media (max-width: 960px) {
  .hv-footer__inner {
    grid-template-columns: 1fr;
  }

  .hv-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hv-footer__grid {
    grid-template-columns: 1fr;
  }

  .hv-cookie__inner {
    align-items: flex-start;
  }

  .hv-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.hv-cookie__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
