.page-contact {
  --contact-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --contact-tel-size: clamp(1.8rem, 5vw, 2.9rem);
  color: var(--c-ink);
  background: var(--c-bg);
}

.page-contact img {
  max-width: 100%;
  height: auto;
}

/* ---------- hero ---------- */
.contact-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding-top: 64px;
  color: var(--c-white);
  background: var(--c-primary-deep);
  overflow: hidden;
}

.contact-hero__bg,
.contact-hero__veil {
  position: absolute;
  inset: 0;
}

.contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-hero__veil {
  background: linear-gradient(180deg, rgba(20, 58, 107, 0.64) 0%, rgba(20, 58, 107, 0.82) 45%, rgba(30, 90, 168, 0.95) 100%);
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 56px;
}

.contact-hero .breadcrumb {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.contact-hero .breadcrumb a {
  color: var(--c-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color var(--dur) ease;
}

.contact-hero .breadcrumb a:hover {
  border-color: var(--c-accent);
}

.contact-hero__frame {
  max-width: 720px;
  padding: 24px 22px 26px 28px;
  border-left: 4px solid var(--c-accent);
  background: rgba(15, 45, 85, 0.4);
  box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.08);
}

.contact-hero__frame .section-kicker {
  color: var(--c-cyan);
}

.contact-hero__frame h1 {
  margin: 8px 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.contact-hero__frame p {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(248, 250, 252, 0.9);
}

.contact-hero__flag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-red) 0 20%, var(--c-yellow) 0 40%, var(--c-green) 0 60%, var(--c-cyan) 0 80%, var(--c-purple) 0 100%);
  z-index: 3;
}

/* ---------- channels ---------- */
.contact-channels {
  padding: 64px 0 28px;
}

.contact-channels__head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-channels__head h2,
.contact-service__content h2,
.contact-faqs__head h2 {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.contact-channels__lead {
  margin: 0;
  color: var(--c-muted);
  max-width: 52ch;
}

.contact-channels__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--contact-ease), box-shadow var(--dur) var(--contact-ease);
}

.contact-channel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(30, 41, 59, 0.08);
}

.contact-channel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--c-accent);
}

.contact-channel__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-primary);
  flex: none;
}

.contact-channel__icon svg {
  width: 26px;
  height: 26px;
}

.contact-channel__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-channel__icon,
.contact-channel__text {
  position: relative;
  z-index: 1;
}

.contact-channel__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contact-channel__link,
.contact-channel__value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  word-break: break-all;
  font-size: 1.15rem;
  line-height: 1.35;
}

.contact-channel__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 4px;
}

.contact-channel__note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.contact-channel--email {
  background: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary) 70%, rgba(6, 182, 212, 0.72));
  border: none;
  color: var(--c-white);
  min-height: 260px;
  justify-content: center;
}

.contact-channel--email::before {
  background: var(--c-accent);
}

.contact-channel--email::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, transparent 0 48%, rgba(6, 182, 212, 0.4) 50% 100%);
  transform: rotate(45deg);
}

.contact-channel--email .contact-channel__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--c-white);
}

.contact-channel--email .contact-channel__label {
  color: rgba(255, 255, 255, 0.72);
}

.contact-channel--email .contact-channel__link {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--c-white);
}

.contact-channel--email .contact-channel__note {
  color: rgba(248, 250, 252, 0.78);
}

.contact-channel--phone .contact-channel__link--tel {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Roboto Mono", monospace;
  font-size: var(--contact-tel-size);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--c-primary);
}

.contact-channel--phone::before {
  background: var(--c-accent);
}

.contact-channel--address::before {
  background: var(--c-purple);
}

.contact-channel--address .contact-channel__icon {
  color: var(--c-purple);
}

/* ---------- service ---------- */
.contact-service {
  position: relative;
  margin-top: 64px;
  padding: 56px 0;
  background: var(--c-primary-deep);
  color: var(--c-white);
  overflow: hidden;
}

.contact-service__peaks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  z-index: 0;
  pointer-events: none;
}

.contact-service__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.contact-service__content .section-kicker {
  color: var(--c-cyan);
}

.contact-service__content h2 {
  margin: 4px 0 12px;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
}

.contact-service__lead {
  margin: 0 0 20px;
  max-width: 56ch;
  color: rgba(248, 250, 252, 0.82);
}

.contact-service__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-service__list li {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  gap: 4px 16px;
  padding: 16px;
  border-left: 3px solid var(--c-accent);
  background: rgba(255, 255, 255, 0.07);
}

.contact-service__channel-name {
  grid-column: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
}

.contact-service__channel-value {
  grid-column: 2;
  font-weight: 700;
  word-break: break-all;
}

.contact-service__channel-use {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.72);
}

.contact-service__reply {
  margin: 12px 0 0;
  padding: 14px 16px;
  max-width: 60ch;
  border: 1px dashed rgba(245, 158, 11, 0.55);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.92rem;
}

.contact-service__visual {
  position: relative;
}

.contact-service__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 rgba(245, 158, 11, 0.35);
}

.contact-service__frame::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 44px;
  height: 44px;
  background: repeating-linear-gradient(135deg, var(--c-accent) 0 8px, transparent 0 16px);
}

.contact-service__frame img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: cover;
}

/* ---------- faqs ---------- */
.contact-faqs {
  padding: 64px 0 72px;
}

.contact-faqs__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.contact-faqs__head p {
  color: var(--c-muted);
  margin: 10px 0 0;
}

.contact-faqs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-faq {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  text-decoration: none;
  transition: transform var(--dur) var(--contact-ease), border-color var(--dur) var(--contact-ease), box-shadow var(--dur) var(--contact-ease);
}

.contact-faq:hover {
  transform: translateY(-3px);
  border-color: var(--c-cyan);
  box-shadow: 0 12px 26px rgba(30, 41, 59, 0.08);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.04), transparent);
}

.contact-faq__num {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  color: var(--c-accent);
  font-size: 0.8rem;
  padding-top: 2px;
}

.contact-faq__body {
  display: grid;
  gap: 6px;
}

.contact-faq__q {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
}

.contact-faq__a {
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-faq__go {
  font-size: 1.3rem;
  color: var(--c-primary);
  transition: transform var(--dur) var(--contact-ease);
}

.contact-faq:hover .contact-faq__go {
  transform: translateX(4px);
}

.contact-faqs__more {
  margin-top: 28px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.contact-faqs__more p {
  margin: 0;
  color: var(--c-muted);
}

.contact-faqs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- trust ---------- */
.contact-trust {
  padding: 0 0 72px;
}

.contact-trust__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-left: 4px solid var(--c-accent);
  background: var(--c-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.contact-trust__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-white);
  font-weight: 800;
  flex: none;
}

.contact-trust p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-muted);
}

.contact-trust p strong {
  color: var(--c-primary);
}

/* ---------- focus ---------- */
.contact-faq:focus-visible,
.contact-channel__link:focus-visible,
.contact-hero .breadcrumb a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .contact-hero {
    min-height: 540px;
    padding-top: 96px;
  }

  .contact-hero__content {
    padding-bottom: 80px;
  }

  .contact-channels {
    padding: 96px 0 40px;
  }

  .contact-channels__head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 24px;
    margin-bottom: 48px;
  }

  .contact-channels__lead {
    justify-self: end;
    text-align: right;
  }

  .contact-channels__grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "email phone"
      "email address";
    gap: 24px;
  }

  .contact-channel--email {
    grid-area: email;
  }

  .contact-channel--phone {
    grid-area: phone;
  }

  .contact-channel--address {
    grid-area: address;
  }

  .contact-service__grid {
    grid-template-columns: 1fr 0.88fr;
    gap: 72px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .contact-service__content h2 {
    margin-top: 8px;
  }

  .contact-faqs {
    padding: 96px 0 104px;
  }

  .contact-faqs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .contact-faqs__more {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-faqs__more p {
    max-width: 44ch;
  }
}
