.page-contact {
  --contact-grid: rgba(11, 29, 58, 0.06);
  --contact-rule: rgba(11, 29, 58, 0.14);
  --contact-white-soft: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(var(--contact-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--contact-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: var(--c-surface);
  color: var(--c-text);
  overflow-x: hidden;
}

.page-contact .content-wrap {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.page-contact__breadcrumb {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 24px 20px 0;
}

.page-contact .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.page-contact .breadcrumb__link {
  color: var(--c-text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-contact .breadcrumb__link:hover {
  color: var(--c-accent);
}

.page-contact .breadcrumb__current {
  color: var(--c-text);
  font-weight: 600;
}

.page-contact__hero {
  position: relative;
  background: var(--c-primary);
  box-shadow: 0 0 0 100vmax var(--c-primary);
  clip-path: inset(0 -100vmax 0 -100vmax);
  color: var(--c-white);
  overflow: hidden;
  padding: 48px 0 60px;
  margin-top: 24px;
}

.page-contact__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(164, 77, 255, 0.34), transparent 34%),
    linear-gradient(120deg, transparent 58%, rgba(255, 106, 0, 0.16));
  pointer-events: none;
}

.page-contact__hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  height: 160px;
  border-right: 4px solid var(--c-accent);
  border-bottom: 4px solid var(--c-accent);
  opacity: 0.45;
  pointer-events: none;
}

.page-contact__hero .content-wrap {
  position: relative;
  z-index: 1;
}

.page-contact .hero__eyebrow {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--c-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-contact .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-headline);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  color: var(--c-white);
}

.page-contact .hero__title-main {
  display: block;
}

.page-contact .hero__title-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c-accent);
}

.page-contact .hero__lead {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.page-contact .hero__keywords {
  max-width: 820px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--c-accent-2);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.page-contact .hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.page-contact .hero__stat {
  display: flex;
  flex-direction: column;
  min-width: 108px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.page-contact .hero__stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1.2;
  color: var(--c-accent);
}

.page-contact .hero__stat-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-contact__channels,
.page-contact__location,
.page-contact__next {
  padding: 56px 0;
}

.page-contact .section-title {
  position: relative;
  margin-bottom: 36px;
}

.page-contact .section-title__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-contact .section-title h2 {
  margin: 8px 0 0;
  font-family: var(--font-headline);
  font-size: 28px;
  line-height: 1.2;
  color: var(--c-primary);
}

.page-contact .section-title__intro {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-2);
}

.page-contact__channels .section-title::after,
.page-contact__location .section-title::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  width: 84px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--c-accent) 0 6px, transparent 6px 12px);
}

.channels-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

.channels-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channels-aside__img {
  border: 6px solid var(--c-white);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(11, 29, 58, 0.16);
  overflow: hidden;
}

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

.channels-aside__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-2);
}

.channels-aside__link {
  align-self: flex-start;
}

.channels-coords {
  display: grid;
  gap: 16px;
}

.channel-card {
  position: relative;
  padding: 24px 20px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(11, 29, 58, 0.04);
}

.channel-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--c-accent);
  border-right: 2px solid var(--c-accent);
  opacity: 0.7;
}

.channel-card::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 14px;
  height: 14px;
  border-left: 2px solid var(--c-accent-2);
  border-bottom: 2px solid var(--c-accent-2);
  opacity: 0.5;
}

.channel-card__coords {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.channel-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 18px;
  color: var(--c-primary);
}

.channel-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-2);
}

.page-contact .contact-value {
  margin: 14px 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-primary);
  overflow-wrap: anywhere;
}

.page-contact .contact-value--mono {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.channel-card__hint {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  font-size: 12px;
  color: var(--c-text-2);
}

.location-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.map-legend {
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(11, 29, 58, 0.08);
}

.map-legend__title {
  margin: 0 0 16px;
  font-family: var(--font-headline);
  font-size: 18px;
  color: var(--c-primary);
}

.map-legend__list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
}

.map-legend__symbol {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-primary);
}

.map-legend__symbol--office {
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.map-legend__symbol--data {
  background: var(--c-accent-2);
}

.map-legend__symbol--road {
  width: 18px;
  height: 0;
  border-top: 3px dotted var(--c-primary);
  border-radius: 0;
  background: transparent;
}

.map-legend__note {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-2);
}

.map-frame {
  position: relative;
  margin: 0;
  padding: 8px;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(11, 29, 58, 0.2);
}

.map-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

.map-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), transparent 42%);
  pointer-events: none;
}

.map-frame__pulse {
  position: absolute;
  top: 40%;
  left: 36%;
  width: 22px;
  height: 22px;
  background: var(--c-accent);
  border: 3px solid var(--c-white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.5);
  animation: page-contact-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes page-contact-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 106, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

.map-frame__scale {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 6px 10px;
  background: var(--contact-white-soft);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-text-2);
}

.page-contact__hours {
  position: relative;
  padding: 56px 0;
  background: linear-gradient(125deg, var(--c-primary) 0%, rgba(164, 77, 255, 0.92) 100%);
  box-shadow: 0 0 0 100vmax rgba(164, 77, 255, 0.92);
  clip-path: inset(0 -100vmax 0 -100vmax);
}

.page-contact__hours .section-title h2 {
  color: var(--c-white);
}

.page-contact__hours .section-title__intro {
  color: rgba(255, 255, 255, 0.72);
}

.page-contact__hours .section-title__index {
  color: var(--c-accent);
}

.hours-panel {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.hours-block {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.hours-block__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.hours-block__value {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-headline);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
  color: var(--c-white);
}

.hours-block__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.hours-panel__extra {
  max-width: 920px;
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--c-accent);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.next-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.next-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 12px 24px rgba(11, 29, 58, 0.1);
}

.next-card__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-accent);
}

.next-card__title {
  font-family: var(--font-headline);
  font-size: 16px;
  color: var(--c-primary);
}

.next-card__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.page-contact .btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--c-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--c-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-contact .btn--ghost:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.page-contact .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-contact .btn--primary:hover {
  background: #e05e00;
  border-color: #e05e00;
}

@media (min-width: 920px) {
  .page-contact__hero {
    padding: 72px 0 88px;
    margin-top: 32px;
  }

  .page-contact .hero__title {
    font-size: clamp(40px, 5vw, 58px);
  }

  .page-contact__channels,
  .page-contact__location,
  .page-contact__next {
    padding: 72px 0;
  }

  .channels-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
    gap: 48px;
  }

  .channels-coords {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .location-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 44px;
  }

  .page-contact__hours {
    padding: 72px 0;
  }

  .hours-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .next-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}
