/* BF Vysota — technical-spec compliance layer */

/* TЗ 2.4: help request is a modal, not an inline page form */
#need-help {
  display: none !important;
}

/* ---------- Need-help modal ---------- */
.need-help-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.need-help-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 12, 22, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.need-help-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: clamp(24px, 3.5vw, 42px);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.55);
  background: #fff;
  color: var(--vysota-ink-deep, #102132);
  box-shadow: 0 32px 100px rgba(0,0,0,.32);
}

.need-help-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.need-help-modal-kicker {
  margin-bottom: 8px;
  color: var(--vysota-warm, #c85c36);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.need-help-modal h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}

.need-help-modal-head p {
  margin: 0;
  max-width: 560px;
  color: #66737d;
  line-height: 1.6;
}

.need-help-modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(16,33,50,.13);
  border-radius: 50%;
  background: #f6f8f8;
  color: #102132;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.need-help-modal-warning {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(200,92,54,.16);
  border-radius: 14px;
  background: #fbf4ef;
  color: #7a4936;
  font-size: 13px;
  line-height: 1.55;
}

.need-help-modal .builder-form-widget .btn-primary {
  width: 100%;
  justify-content: center;
  min-height: 50px;
}

.field-help {
  margin-top: 6px;
  color: #75808a;
  font-size: 12px;
  line-height: 1.45;
}

/* ---------- Required feedback form ---------- */
.compliance-feedback {
  padding: clamp(72px, 8vw, 112px) 0;
  background: #f1f5f4;
}

.compliance-feedback-compact {
  padding-top: 72px;
}

.compliance-feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.compliance-feedback-copy {
  position: sticky;
  top: 110px;
}

.compliance-feedback-copy .builder-heading {
  margin-top: 10px;
  margin-bottom: 18px;
}

.compliance-feedback-copy .builder-text {
  max-width: 580px;
}

.compliance-feedback-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.compliance-feedback-contacts a {
  color: #102132;
  font-weight: 700;
  text-decoration: none;
}

.compliance-feedback-form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(19,36,58,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10,24,38,.07);
}

.compliance-feedback-form .btn-primary {
  min-height: 50px;
  padding-inline: 28px !important;
}

/* ---------- "О нас" landing ---------- */
.about-index-hero .builder-text {
  max-width: 760px;
  margin-top: 14px;
}

.about-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-index-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(19,36,58,.10);
  border-radius: 20px;
  background: #fff;
  color: #102132;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(10,24,38,.055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-index-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200,92,54,.22);
  box-shadow: 0 24px 56px rgba(10,24,38,.10);
}

.about-index-number {
  margin-bottom: 46px;
  color: var(--vysota-warm, #c85c36);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.about-index-card h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.3vw, 36px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
}

.about-index-card p {
  margin: 0;
  color: #68747e;
  line-height: 1.65;
}

.about-index-link {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Make the "О нас" parent item visibly clickable */
.nav-item-dropdown > .dropdown-toggle {
  text-decoration: none;
}

/* ---------- Official list empty states ---------- */
.tz-official-list {
  padding: 72px 0;
  background: #fff;
}

.tz-official-list-card {
  padding: 30px;
  border: 1px dashed rgba(19,36,58,.18);
  border-radius: 18px;
  background: #f7f9f8;
}

.tz-official-list-card h2 {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.02;
}

.tz-official-list-card p {
  max-width: 760px;
  margin: 0;
  color: #66737d;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .compliance-feedback-grid,
  .about-index-grid {
    grid-template-columns: 1fr;
  }

  .compliance-feedback-copy {
    position: static;
  }

  .about-index-card {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .need-help-modal-root {
    align-items: end;
    padding: 0;
  }

  .need-help-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 24px 18px 28px;
  }

  .need-help-modal-head {
    gap: 12px;
  }

  .need-help-modal h2 {
    font-size: 36px;
  }

  .compliance-feedback {
    padding: 56px 0;
  }

  .compliance-feedback-grid {
    gap: 28px;
  }

  .compliance-feedback-form {
    padding: 20px 16px;
  }

  .about-index-card {
    min-height: 0;
    padding: 24px;
  }

  .about-index-number {
    margin-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-index-card {
    transition: none;
  }
}
