.page-contact {
  --pc-envelope-line: rgba(212, 175, 55, 0.05);
  --pc-gold-line-soft: rgba(212, 175, 55, 0.28);

  position: relative;
  padding-top: clamp(24px, 4vw, 44px);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 86px,
      var(--pc-envelope-line) 86px,
      var(--pc-envelope-line) 87px
    ),
    linear-gradient(180deg, var(--cs-bg-raised) 0%, var(--cs-bg) 38%, #101A1E 100%);
  overflow-x: clip;
}

.page-contact .cs-breadcrumb {
  margin-bottom: 4px;
}

/* ---------- Hero ---------- */
.page-contact-hero {
  padding: clamp(26px, 5.5vw, 60px) 0 10px;
}

.page-contact-hero__inner {
  display: grid;
  gap: 30px;
  align-items: center;
}

.page-contact-hero__copy .cs-eyebrow {
  margin-bottom: 10px;
}

.page-contact-hero__copy h1 {
  display: inline-block;
  position: relative;
  margin: 0 0 22px;
  font-family: var(--cs-font-serif);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.05em;
  color: var(--cs-ivory);
}

.page-contact-hero__copy h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 54%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cs-gold), transparent);
}

.page-contact-hero__lead {
  max-width: 46em;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--cs-mist);
}

/* ---------- Envelope decoration ---------- */
.page-contact-envelope {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 8 / 5;
  margin: 0 auto;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(123, 17, 19, 0.5), rgba(14, 27, 31, 0.72) 70%), var(--cs-bg-raised);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  isolation: isolate;
}

.page-contact-envelope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  background: linear-gradient(165deg, rgba(230, 57, 70, 0.62), rgba(123, 17, 19, 0.38));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 0;
}

.page-contact-envelope::after {
  content: "";
  position: absolute;
  top: 56%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.95) 0 30%, rgba(230, 57, 70, 0.9) 31% 58%, transparent 59%);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.page-contact-envelope__mark {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--cs-font-serif);
  font-size: clamp(17px, 3vw, 22px);
  letter-spacing: 0.24em;
  color: rgba(248, 244, 227, 0.62);
  white-space: nowrap;
}

.page-contact-envelope__flight {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 6%;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(244, 196, 48, 0.95), rgba(230, 57, 70, 0.85));
  box-shadow: 0 0 10px rgba(244, 196, 48, 0.5);
}

/* ---------- Board & cards ---------- */
.page-contact-board {
  position: relative;
  padding-top: clamp(22px, 4vw, 48px);
}

.page-contact-card {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(24px, 5vw, 48px);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--pc-gold-line-soft);
  border-radius: var(--cs-radius);
  background: linear-gradient(150deg, rgba(23, 38, 43, 0.94), rgba(10, 19, 22, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 340ms var(--cs-ease), box-shadow 340ms var(--cs-ease), border-color 340ms var(--cs-ease);
}

.page-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.32);
  border-color: rgba(212, 175, 55, 0.5);
}

.page-contact-card::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 3px;
  height: calc(100% - 52px);
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cs-gold), rgba(212, 175, 55, 0.08));
}

.page-contact-card--partner {
  border-color: rgba(230, 57, 70, 0.38);
  background: linear-gradient(150deg, rgba(123, 17, 19, 0.92), rgba(42, 36, 24, 0.96));
}

.page-contact-card--partner::before {
  background: linear-gradient(180deg, var(--cs-red), rgba(230, 57, 70, 0.08));
}

.page-contact-card--address {
  background: linear-gradient(150deg, rgba(42, 36, 24, 0.94), rgba(14, 27, 31, 0.97));
}

.page-contact-card--hours {
  border-color: rgba(42, 157, 143, 0.32);
  background: linear-gradient(150deg, rgba(15, 32, 34, 0.96), rgba(10, 19, 22, 0.98));
}

.page-contact-card--hours::before {
  background: linear-gradient(180deg, var(--cs-jade), rgba(42, 157, 143, 0.08));
}

/* ---------- Card head ---------- */
.page-contact-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.page-contact-card__num {
  flex-shrink: 0;
  font-family: var(--cs-font-serif);
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.5);
  letter-spacing: 0.02em;
}

.page-contact-card__heading {
  min-width: 0;
  padding-top: 2px;
}

.page-contact-card__heading .cs-section-kicker {
  margin: 0 0 4px;
  font-family: var(--cs-font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cs-mist);
  text-transform: uppercase;
}

.page-contact-card__heading .cs-section-title {
  margin: 0;
  font-family: var(--cs-font-serif);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--cs-ivory);
}

/* ---------- Card .page-contact text ---------- */
.page-contact-card__body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--cs-mist);
}

.page-contact-card__lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(248, 244, 227, 0.86);
}

.page-contact-tip {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--cs-mist);
}

.page-contact-tip a {
  color: var(--cs-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 196, 48, 0.4);
  transition: border-color var(--cs-transition);
}

.page-contact-tip a:hover {
  border-color: var(--cs-gold);
}

/* ---------- Contact list ---------- */
.page-contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 12px;
}

.page-contact-list__label {
  font-family: var(--cs-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-mist);
}

/* ---------- Email link ---------- */
.page-contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cs-font-num);
  font-size: clamp(15px, 3.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cs-gold);
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: border-color var(--cs-transition), color var(--cs-transition), transform var(--cs-transition);
}

.page-contact-mail:hover,
.page-contact-mail:focus-visible {
  border-color: var(--cs-gold);
  color: var(--cs-ivory);
}

.page-contact-mail__hint {
  flex-shrink: 0;
  font-family: var(--cs-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--cs-mist);
  background: rgba(154, 168, 160, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--cs-transition), transform var(--cs-transition);
}

.page-contact-mail:hover .page-contact-mail__hint,
.page-contact-mail:focus-visible .page-contact-mail__hint {
  opacity: 1;
  transform: scale(1);
}

.page-contact-mail--large {
  margin: 22px 0 6px;
  font-size: clamp(17px, 3.8vw, 30px);
}

/* ---------- Phone link ---------- */
.page-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cs-font-num);
  font-size: clamp(21px, 4.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cs-ivory);
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.08);
  transition: border-color var(--cs-transition), background var(--cs-transition), transform var(--cs-transition);
}

.page-contact-phone:hover,
.page-contact-phone:focus-visible {
  border-color: var(--cs-gold);
  background: rgba(230, 57, 70, 0.18);
  transform: translateY(-2px);
}

.page-contact-phone__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 196, 48, 0.45);
  background: rgba(244, 196, 48, 0.12);
  font-family: var(--cs-font-serif);
  font-size: 13px;
  color: var(--cs-gold);
}

.page-contact-phone__icon::after {
  content: "拨";
}

.page-contact-phone__num {
  white-space: nowrap;
}

.page-contact-phone__hint {
  flex-shrink: 0;
  font-family: var(--cs-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--cs-mist);
  background: rgba(154, 168, 160, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--cs-transition), transform var(--cs-transition);
}

.page-contact-phone:hover .page-contact-phone__hint,
.page-contact-phone:focus-visible .page-contact-phone__hint {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Figures ---------- */
.page-contact-figure {
  margin: 26px 0 0;
}

.page-contact-figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.page-contact-figure .cs-media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cs-mist);
  text-align: center;
}

/* ---------- Address ---------- */
.page-contact-address {
  display: inline-block;
  margin-bottom: 6px;
  padding: 18px 22px;
  font-family: var(--cs-font-serif);
  font-style: normal;
  font-size: clamp(19px, 3.6vw, 30px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--cs-ivory);
  border: 1px dashed rgba(212, 175, 55, 0.55);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
}

/* ---------- Working hours table ---------- */
.page-contact-table {
  width: 100%;
  margin-top: 4px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border: 1px solid rgba(42, 157, 143, 0.24);
  border-radius: 14px;
  overflow: hidden;
}

.page-contact-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-family: var(--cs-font-serif);
  font-size: 13px;
  color: var(--cs-mist);
}

.page-contact-table th,
.page-contact-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(42, 157, 143, 0.14);
}

.page-contact-table thead th {
  font-family: var(--cs-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-mist);
  background: rgba(42, 157, 143, 0.09);
}

.page-contact-table tbody tr:last-child th,
.page-contact-table tbody tr:last-child td {
  border-bottom: none;
}

.page-contact-table tbody th {
  font-family: var(--cs-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-ivory);
  white-space: nowrap;
}

.page-contact-table td {
  font-family: var(--cs-font-sans);
  font-size: 14px;
  color: var(--cs-mist);
}

.page-contact-table__row-highlight {
  background: rgba(42, 157, 143, 0.13);
}

.page-contact-table__row-highlight th {
  color: var(--cs-ivory);
}

.page-contact-table__row-highlight td:first-of-type {
  color: var(--cs-jade);
  font-weight: 700;
}

/* ---------- Close band ---------- */
.page-contact-close {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: clamp(44px, 7vw, 76px) 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 196, 48, 0.16), transparent 34%),
    linear-gradient(140deg, var(--cs-bg-wine) 0%, var(--cs-bg) 100%);
  text-align: center;
}

.page-contact-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(244, 196, 48, 0.045) 16px 17px);
  pointer-events: none;
}

.page-contact-close__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.page-contact-close__seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px double rgba(244, 196, 48, 0.8);
  border-radius: 50%;
  font-family: var(--cs-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--cs-gold);
  transform: rotate(-8deg);
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.12);
}

.page-contact-close__text {
  margin: 0;
  font-family: var(--cs-font-serif);
  font-size: clamp(19px, 3.4vw, 27px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: rgba(248, 244, 227, 0.94);
}

/* ---------- Animations ---------- */
@keyframes pcSealPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(244, 196, 48, 0.25);
  }
  50% {
    box-shadow: 0 0 26px rgba(244, 196, 48, 0.6);
  }
}

@keyframes pcFlight {
  0% {
    transform: translate(-12px, -12px) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translate(210px, 130px) rotate(150deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-contact-envelope::after {
    animation: pcSealPulse 3s ease-in-out infinite;
  }

  .page-contact-envelope__flight {
    animation: pcFlight 5s var(--cs-ease) infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact-card,
  .page-contact-mail,
  .page-contact-phone,
  .page-contact-envelope__flight,
  .page-contact-envelope::after {
    transition: none;
    animation: none;
  }
}

/* ---------- Media: 640px ---------- */
@media (min-width: 640px) {
  .page-contact-list__item {
    flex-direction: row;
    align-items: baseline;
    gap: 18px;
  }

  .page-contact-list__label {
    min-width: 92px;
    flex-shrink: 0;
  }

  .page-contact-figure {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-contact-table th,
  .page-contact-table td {
    padding: 14px;
  }
}

/* ---------- Media: 860px ---------- */
@media (min-width: 860px) {
  .page-contact-hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(40px, 6vw, 80px);
  }

  .page-contact-envelope {
    width: min(320px, 100%);
    margin: 0;
    justify-self: end;
  }

  .page-contact-card {
    padding: clamp(34px, 5vw, 56px);
  }

  .page-contact-card__body--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
  }

  .page-contact-card__body--split .page-contact-figure {
    max-width: none;
    margin: 0;
  }

  .page-contact-card--partner .page-contact-card__body {
    max-width: 820px;
  }
}

/* ---------- Media: 1120px ---------- */
@media (min-width: 1120px) {
  .page-contact-hero {
    padding-bottom: 24px;
  }
}
