main {
  flex-direction: column;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
}

.contact-hero {
  width: 100%;
  background: var(--theme-bg-page);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: var(--theme-radius-xl);
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--theme-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.contact-content {
  width: 100%;
  background-color: var(--theme-bg-surface-1);
  padding: 5rem 2rem;
  border-radius: var(--theme-radius-xl);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-accent);
  border-radius: var(--theme-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--theme-accent) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-shadow-lg);
  border-color: var(--theme-border-accent-strong);
}

.contact-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--theme-text);
  margin: 0;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-primary);
  margin: 0.25rem 0 0 0;
  word-break: break-word;
}

.contact-label {
  font-size: 0.95rem;
  color: var(--theme-text-muted);
  margin: 0;
}

.contact-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.5rem;
  background-color: var(--theme-primary);
  color: var(--theme-text-inverse);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--theme-radius-lg);
  border: 2px solid var(--theme-primary);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
}

.contact-btn:active {
  transform: translateY(0);
}

.contact-btn:focus-visible {
  outline: 3px solid rgba(201, 67, 67, 0.4);
  outline-offset: 3px;
}

.location-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-accent);
  border-radius: var(--theme-radius-lg);
  padding: 2.5rem 2rem;
}

.location-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 1.25rem;
}

.address-block {
  display: flex;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.address-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
}

.address-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.4rem;
}

.address-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--theme-text-muted);
  margin: 0;
}

.director-info {
  padding: 1rem;
  background: rgba(224, 169, 85, 0.1);
  border-left: 3px solid var(--theme-accent);
  border-radius: var(--theme-radius-sm);
}

.director-info p {
  font-size: 1.05rem;
  color: var(--theme-text);
  margin: 0;
}

.location-map-wrapper {
  width: 100%;
  border-radius: var(--theme-radius-md);
  overflow: hidden;
  box-shadow: var(--theme-shadow-md);
  border: 1px solid var(--theme-border-accent);
}

.location-map {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.contact-grid,
.location-section {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 480ms ease forwards;
}

.location-section {
  animation-delay: 80ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-grid,
  .location-section,
  .contact-card,
  .contact-btn {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-hero {
    padding: 5rem 2rem;
  }

  .contact-content {
    padding: 5rem 2rem;
  }
}

@media (min-width: 900px) {
  .location-section {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
  }

  .location-map {
    height: 100%;
    min-height: 380px;
  }
}
