.contact-hero {
  position: relative;
  display: grid;
  min-height: clamp(24rem, 48vw, 31rem);
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  background: var(--color-primary-dark);
  color: #fff;
}

.contact-hero__image,
.contact-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center 38%;
}

.contact-hero__overlay {
  z-index: -2;
  background: linear-gradient(90deg, rgba(31, 6, 51, 0.94) 0%, rgba(79, 23, 127, 0.78) 38%, rgba(79, 23, 127, 0.18) 73%, rgba(31, 6, 51, 0.08) 100%);
}

.contact-hero__content {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4.5rem, 8vw, 6rem);
  text-align: left;
}

.contact-hero h1 {
  max-width: 35rem;
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: clamp(3rem, 6vw, 4.7rem);
  text-shadow: 0 3px 20px rgba(24, 5, 41, 0.28);
}

.contact-hero__content > p:not(.contact-eyebrow) {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.contact-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--color-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-hero .contact-eyebrow {
  color: #fff;
  opacity: 0.9;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.contact-hero .contact-actions {
  justify-content: flex-start;
  margin-top: 1.4rem;
}

.contact-hero .btn {
  min-width: 10.5rem;
}

.contact-hero .btn--secondary {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.contact-hero .btn--secondary:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.contact-hero__wave {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(3.3rem, 6vw, 5rem);
  background: #fff;
  clip-path: polygon(0 58%, 8% 51%, 18% 43%, 29% 40%, 40% 45%, 52% 55%, 64% 62%, 76% 60%, 88% 50%, 100% 39%, 100% 100%, 0 100%);
  pointer-events: none;
}

main.contact-page {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding: 1.8rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-section {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.contact-section__heading {
  max-width: 42rem;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.contact-section__heading h2,
.contact-welcome h2,
.contact-direct h2,
.contact-practical h2,
.contact-faq h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
}

.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.contact-topic-card {
  display: flex;
  min-width: 0;
  min-height: 13.5rem;
  padding: 1.15rem 1rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(47, 36, 59, 0.07);
  flex-direction: column;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-topic-card:hover,
.contact-topic-card:focus-within {
  border-color: rgba(111, 37, 174, 0.34);
  box-shadow: 0 12px 28px rgba(79, 23, 127, 0.12);
  transform: translateY(-2px);
}

.contact-topic-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 auto 0.55rem;
  color: var(--color-primary-dark);
}

.contact-topic-card__icon svg,
.contact-direct-card__icon svg,
.contact-practical__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-topic-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.contact-topic-card p {
  margin: 0 auto 0.65rem;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-topic-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-height: 2rem;
  margin: auto auto 0;
  border-radius: 50%;
  color: var(--color-secondary);
  font-size: 1.65rem;
  line-height: 1;
  text-decoration: none;
}

.contact-topic-card__link-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.contact-welcome {
  display: grid;
  grid-template-columns: minmax(12rem, 0.92fr) minmax(14rem, 1.08fr);
  min-width: 0;
  padding: 0.8rem;
  border-right: 1px solid var(--color-border);
}

.contact-welcome__visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.contact-welcome__visual img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  object-position: center;
}

.contact-welcome__content {
  align-self: center;
  padding: 1.25rem;
}

.contact-welcome__content > p,
.contact-direct > p {
  margin: 0.55rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-points {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  position: relative;
  margin: 0;
  padding-left: 1.45rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.contact-points li::before {
  position: absolute;
  top: 0.14rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  content: "✓";
  font-size: 0.62rem;
  font-weight: 900;
}

.contact-direct {
  min-width: 0;
  padding: 1.75rem 1.55rem 1.25rem;
}

.contact-direct__options {
  display: grid;
  margin-top: 0.8rem;
}

.contact-direct-card {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-direct-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0.82rem;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: #fff;
}

.contact-direct-card div {
  min-width: 0;
}

.contact-direct-card h3,
.contact-direct-card p {
  margin: 0;
}

.contact-direct-card h3 {
  font-size: 0.82rem;
}

.contact-direct-card a {
  color: var(--color-secondary-dark);
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-direct__visit {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--color-background);
  color: var(--color-text) !important;
  font-weight: 650;
}

.contact-practical h2 {
  margin-bottom: 0.7rem;
  text-align: center;
}

.contact-practical {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-practical__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0.85rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(47, 36, 59, 0.06);
}

.contact-practical__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  min-width: 0;
  padding: 0.45rem 0.8rem;
  border-right: 1px solid var(--color-border);
}

.contact-practical__item:last-child {
  border-right: 0;
}

.contact-practical__icon {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  color: var(--color-primary-dark);
}

.contact-practical__item > div {
  min-width: 0;
}

.contact-practical__list h3 {
  margin-bottom: 0.2rem;
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-practical__list p {
  display: grid;
  gap: 0.08rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-practical__list a {
  width: fit-content;
  margin-top: 0.18rem;
  font-weight: 700;
}

.contact-faq {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(90deg, #f8f4fb, #fff);
  box-shadow: 0 5px 16px rgba(47, 36, 59, 0.05);
}

.contact-faq__quote {
  color: var(--color-secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.7;
  text-align: center;
}

.contact-faq h2 {
  margin-bottom: 0.2rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
}

.contact-faq__item h3,
.contact-faq__item p,
.contact-faq__closing {
  margin: 0;
}

.contact-faq__item h3 {
  color: var(--color-text);
  font-size: 0.88rem;
}

.contact-faq__item p,
.contact-faq__closing {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.contact-faq__closing {
  margin-top: 0.2rem;
}

.contact-page + #footer-placeholder {
  position: relative;
  margin-top: 1.6rem;
  background: #fff;
}

.contact-page + #footer-placeholder::before {
  display: block;
  width: 100%;
  height: clamp(3.2rem, 5vw, 4.5rem);
  margin-bottom: -1px;
  background: linear-gradient(135deg, var(--color-primary-dark), #34104f);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 76C250 24 465 35 690 76C930 118 1160 47 1440 70V120H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 76C250 24 465 35 690 76C930 118 1160 47 1440 70V120H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.contact-page + #footer-placeholder .site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .contact-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-topic-card {
    min-height: 12rem;
  }

  .contact-main {
    grid-template-columns: 1fr;
  }

  .contact-welcome {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

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

  .contact-practical__item:nth-child(2) {
    border-right: 0;
  }

  .contact-practical__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 560px) {
  .contact-hero {
    min-height: 31rem;
    align-items: end;
  }

  .contact-hero__image {
    object-position: 58% center;
  }

  .contact-hero__overlay {
    background: linear-gradient(0deg, rgba(28, 6, 47, 0.96) 8%, rgba(79, 23, 127, 0.72) 60%, rgba(63, 15, 104, 0.25) 100%);
  }

  .contact-hero__content {
    padding: 3rem 0.5rem 4.8rem;
  }

  .contact-hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.8rem);
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }

  main.contact-page {
    width: min(100% - 1rem, 76rem);
    gap: 1.25rem;
    padding-top: 1.3rem;
  }

  .contact-section__heading {
    margin-bottom: 0.85rem;
  }

  .contact-topic-grid,
  .contact-practical__list {
    grid-template-columns: 1fr;
  }

  .contact-topic-card {
    min-height: 0;
    padding: 0.95rem;
  }

  .contact-welcome {
    grid-template-columns: 1fr;
    padding: 0.65rem;
  }

  .contact-welcome__visual img {
    min-height: 14rem;
    max-height: 17rem;
  }

  .contact-welcome__content,
  .contact-direct {
    padding: 1rem;
  }

  .contact-practical__item,
  .contact-practical__item:nth-child(2),
  .contact-practical__item:nth-child(-n + 2) {
    padding: 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .contact-practical__item:last-child {
    border-bottom: 0;
  }

  .contact-faq {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .contact-faq__quote {
    font-size: 3.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-topic-card {
    transition: none;
  }

  .contact-topic-card:hover,
  .contact-topic-card:focus-within {
    transform: none;
  }
}
