.page-contact {
  --contact-glow: rgba(57, 255, 20, 0.25);
  --contact-gold-line: rgba(212, 175, 55, 0.45);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #071C38 0%, #0A1F44 42%, #12315A 78%, #0A1F44 100%);
  color: var(--bb-text);
  font-family: var(--bb-font-body);
  padding-bottom: 64px;
}

.page-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(30, 58, 109, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 109, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.page-contact section {
  position: relative;
  z-index: 1;
}

.contact-hero {
  padding: 34px 0 40px;
  border-bottom: 1px solid rgba(30, 58, 109, 0.8);
}

.contact-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 38%;
  background: linear-gradient(90deg, var(--bb-gold), transparent);
}

.contact-hero-inner {
  position: relative;
}

.contact-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.contact-h1 {
  font-family: var(--bb-font-display);
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.08;
  margin: 12px 0 14px;
  letter-spacing: 0.4px;
  color: var(--bb-text);
  padding-left: 14px;
  border-left: 4px solid var(--bb-gold);
}

.contact-lead {
  color: var(--bb-mut);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  max-width: 620px;
}

.contact-hero-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(13, 42, 77, 0.85);
  border: 1px solid var(--bb-grid);
  border-radius: 32px;
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
  max-width: 100%;
}

.contact-main {
  padding: 44px 0 10px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  position: relative;
}

.contact-info-col {
  min-width: 0;
}

.contact-info-panel {
  background: linear-gradient(145deg, rgba(13, 42, 77, 0.9), rgba(18, 49, 90, 0.8));
  border: 1px solid var(--bb-grid);
  border-radius: 14px;
  padding: 26px 20px;
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bb-gold), var(--bb-neon), transparent);
}

.contact-items {
  margin-top: 22px;
  display: grid;
  gap: 22px;
}

.contact-item {
  border-bottom: 1px dashed rgba(30, 58, 109, 0.9);
  padding-bottom: 18px;
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bb-mut);
  margin-bottom: 8px;
}

.contact-mail {
  display: inline-block;
  color: var(--bb-neon);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(57, 255, 20, 0.5);
  padding-bottom: 3px;
  word-break: break-all;
}

.contact-mail:hover,
.contact-mail:focus {
  background: var(--contact-glow);
  border-bottom-style: solid;
}

.contact-phone {
  display: inline-block;
  font-family: var(--bb-font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--bb-text);
  text-decoration: none;
  border-bottom: 1px solid var(--bb-gold);
  padding-bottom: 3px;
}

.contact-phone:hover,
.contact-phone:focus {
  color: var(--bb-gold);
}

.contact-address {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--bb-text);
}

.contact-service-time {
  display: inline-block;
  font-family: var(--bb-font-display);
  font-size: 22px;
  letter-spacing: 0.8px;
  color: var(--bb-gold);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.contact-item-note {
  margin: 8px 0 0;
  color: var(--bb-mut);
  font-size: 13px;
  line-height: 1.7;
}

.contact-figure {
  margin: 24px 0 0;
  border: 1px solid var(--bb-grid);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bb-card);
}

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

.contact-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--bb-mut);
  border-top: 1px solid var(--bb-grid);
  letter-spacing: 0.3px;
}

.contact-map-col {
  min-width: 0;
}

.contact-map-panel {
  background: rgba(7, 28, 56, 0.7);
  border: 1px solid var(--bb-grid);
  border-radius: 14px;
  padding: 24px 18px;
  position: relative;
  overflow: hidden;
}

.contact-map-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.contact-map-panel::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.1), transparent 70%);
  pointer-events: none;
}

.contact-map-title {
  font-family: var(--bb-font-display);
  font-size: 22px;
  margin: 8px 0 6px;
  letter-spacing: 0.5px;
}

.contact-map-desc {
  color: var(--bb-mut);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.contact-map-frame {
  border: 1px solid var(--bb-grid);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bb-navy-deep);
}

.contact-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.contact-map-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--bb-grid);
  object-fit: cover;
}

.contact-map-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(13, 42, 77, 0.7);
  border-left: 2px solid var(--bb-gold);
  border-radius: 0 8px 8px 0;
  color: var(--bb-text);
  font-size: 14px;
}

.contact-service {
  padding: 48px 0 12px;
}

.contact-service-head,
.contact-quicknav-head {
  max-width: 680px;
}

.contact-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

.contact-service-card {
  background: linear-gradient(145deg, rgba(13, 42, 77, 0.85), rgba(7, 28, 56, 0.6));
  border: 1px solid var(--bb-grid);
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-service-card:hover {
  transform: translateY(-2px);
  border-color: var(--bb-gold);
}

.contact-service-metric {
  display: inline-block;
  font-family: var(--bb-font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--bb-gold);
  margin-bottom: 12px;
}

.contact-service-card:nth-child(2) .contact-service-metric {
  font-size: 26px;
  color: var(--bb-neon);
}

.contact-service-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.contact-service-card p {
  color: var(--bb-mut);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.contact-support-list {
  margin-top: 36px;
  background: rgba(7, 28, 56, 0.65);
  border-left: 3px solid var(--bb-gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 20px;
}

.contact-support-list h3 {
  font-size: 18px;
  margin: 0 0 14px;
}

.contact-support-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-support-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(30, 58, 109, 0.7);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bb-text);
}

.contact-support-list li:last-child {
  border-bottom: none;
}

.contact-support-list strong {
  color: var(--bb-gold);
  font-weight: 600;
  margin-right: 4px;
}

.contact-quicknav {
  padding: 48px 0 0;
}

.contact-quicknav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.contact-quicknav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--bb-text);
  background: linear-gradient(145deg, rgba(13, 42, 77, 0.88), rgba(18, 49, 90, 0.75));
  border: 1px solid var(--bb-grid);
  border-radius: 14px;
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-quicknav-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--bb-gold), var(--bb-neon));
}

.contact-quicknav-card:hover,
.contact-quicknav-card:focus {
  transform: translateY(-3px);
  border-color: var(--bb-gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.contact-quicknav-card h3 {
  font-size: 20px;
  margin: 10px 0 6px;
  line-height: 1.3;
}

.contact-quicknav-card p {
  color: var(--bb-mut);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
  flex-grow: 1;
}

.contact-quicknav-card .bb-btn {
  display: inline-block;
}

@media (min-width: 768px) {
  .contact-hero {
    padding: 44px 0 52px;
  }

  .contact-hero-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .contact-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-quicknav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (min-width: 992px) {
  .contact-main-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
  }

  .contact-main-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    bottom: -8px;
    width: 3px;
    background: linear-gradient(to bottom, var(--bb-gold), var(--bb-neon), transparent);
    transform: rotate(4deg);
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
  }

  .contact-info-panel {
    padding: 32px 28px;
  }

  .contact-map-panel {
    padding: 28px 24px;
  }
}
