/* contacts.html — компонент сторінки контактів (bz-*) */

.bz-contacts-page {
  background: #030303;
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.bz-contacts-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          radial-gradient(circle at 10% 20%, rgba(224, 0, 31, 0.18), transparent 32%),
          radial-gradient(circle at 90% 80%, rgba(224, 0, 31, 0.12), transparent 28%);
  pointer-events: none;
}

.bz-contacts-page .container {
  position: relative;
  z-index: 2;
}

.bz-contacts-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.bz-contacts-head h1,
.bz-contacts-form-text h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.bz-contacts-head p,
.bz-contacts-form-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.bz-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.bz-contact-card {
  min-height: 360px;
  padding: 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.bz-contact-card:hover,
.bz-contact-card--accent {
  background: linear-gradient(145deg, rgba(224, 0, 31, 0.22), rgba(255,255,255,0.015));
  border-color: rgba(224, 0, 31, 0.7);
}

.bz-contact-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.bz-contact-card__city {
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
}

.bz-contact-card__tag {
  color: #e0001f;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bz-contact-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.5;
}

.bz-contact-icon {
  color: #e0001f;
  font-size: 22px;
  line-height: 1.2;
}

.bz-contact-item a,
.bz-contact-email a {
  color: #fff;
  text-decoration: none;
}

.bz-contact-item a:hover,
.bz-contact-email a:hover {
  color: #e0001f;
}

.bz-contact-route {
  margin-top: auto;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  border: 1px solid #e0001f;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.bz-contact-route:hover {
  background: #e0001f;
  color: #fff;
}

.bz-contact-email {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 34px 36px;
  margin-top: 24px;
  border: 1px solid rgba(224, 0, 31, 0.7);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
}

.bz-contacts-maps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 80px;
}

.bz-map-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
}

.bz-map-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
}

.bz-map-frame {
  height: 320px;
  overflow: hidden;
  background: #111;
}

.bz-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.95);
}

.bz-contacts-form-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 80px;
  align-items: start;
  margin-top: 100px;
  padding: 60px;
  border: 1px solid rgba(224, 0, 31, 0.7);
  background: linear-gradient(135deg, rgba(224, 0, 31, 0.16), rgba(255,255,255,0.02));
}

.bz-contacts-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bz-contacts-form input,
.bz-contacts-form textarea {
  width: 100%;
  min-height: 58px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: none;
  font-size: 16px;
}

.bz-contacts-form textarea {
  min-height: 140px;
  resize: vertical;
}

.bz-contacts-form input:focus,
.bz-contacts-form textarea:focus {
  border-color: #e0001f;
}

.bz-form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.bz-form-check .wpcf7-form-control-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.bz-form-check:has(input[type="checkbox"]:checked) .form-item__checkbox-icon {
  border-color: var(--white);
}

.bz-form-check:has(input[type="checkbox"]:checked) .form-item__checkbox-icon-main,
.bz-form-check:has(input[type="checkbox"]:checked) .form-item__checkbox-icon::before {
  opacity: 1;
}

.bz-contacts-form button {
  width: fit-content;
  min-height: 58px;
  padding: 18px 34px;
  background: #e0001f;
  border: 1px solid #e0001f;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bz-contacts-form button:hover {
  background: transparent;
  border-color: #e0001f;
}

@media (max-width: 1199px) {
  .bz-contacts-head,
  .bz-contacts-form-block {grid-template-columns: 1fr;
    gap: 36px;}
  .bz-contacts-grid,
  .bz-contacts-maps {grid-template-columns: 1fr;}
  .bz-contact-card {min-height: auto;}
}

@media (max-width: 767px) {
  .bz-contacts-page {padding: 80px 0;}
  .bz-contacts-head {margin-bottom: 42px;}
  .bz-contact-card {padding: 26px 20px;}
  .bz-contact-card__city {font-size: 24px;}
  .bz-contact-item {font-size: 16px;}
  .bz-contact-email {padding: 24px 20px;
    font-size: 22px;
    word-break: break-word;}
  .bz-contacts-maps {margin-top: 56px;}
  .bz-map-card {padding: 18px;}
  .bz-map-frame {height: 260px;}
  .bz-contacts-form-block {margin-top: 64px;
    padding: 28px 20px;}
  .bz-form-row {grid-template-columns: 1fr;}
  .bz-contacts-form button {width: 100%;}
}