/* Модалка «Узнать подробнее» */
.project-inquire {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.project-inquire.is-open {
  display: flex;
}

.project-inquire-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.55);
  backdrop-filter: blur(6px);
}

.project-inquire-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  margin: auto;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 24px 60px rgba(14, 12, 10, 0.35), 0 8px 24px rgba(14, 12, 10, 0.2);
  -webkit-overflow-scrolling: touch;
}

.project-inquire-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.project-inquire-close:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.project-inquire-title {
  margin: 0 2rem 0.35rem 0;
  font-family: var(--font-display, var(--display));
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-inquire-sub {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-inquire-sub strong {
  color: var(--text);
  font-weight: 600;
}

.project-inquire-topics {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}

.project-inquire-topic {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-ui, var(--font));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.project-inquire-topic:hover:not(.is-active) {
  border-color: var(--accent-border);
  color: var(--text);
}

.project-inquire-topic.is-active {
  background: var(--accent-tint, rgba(75, 90, 243, 0.14));
  border-color: var(--accent, #4b5af3);
  color: var(--text);
  box-shadow:
    0 0 0 1px var(--accent-border, rgba(75, 90, 243, 0.35)),
    0 2px 10px rgba(75, 90, 243, 0.12);
}

.project-inquire-channel-label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-inquire-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.project-inquire-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.1rem;
  padding: 0.65rem 0.45rem;
  border: 2px solid transparent;
  border-radius: 14px;
  font-family: var(--font-display, var(--display));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  opacity: 0.72;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.project-inquire-channel:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
}

.project-inquire-channel.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(14, 12, 10, 0.12);
}

.project-inquire-channel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.project-inquire-channel-badge {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-inquire-channel-badge img {
  width: 0.95rem;
  height: 0.95rem;
  max-width: 0.95rem;
  max-height: 0.95rem;
  object-fit: contain;
  display: block;
}

.project-inquire-channel-name {
  color: #fff;
  line-height: 1.1;
}

.project-inquire-channel--max {
  background: linear-gradient(90deg, #9b5cff 0%, #7b3fe4 48%, #5b4fe8 100%);
  box-shadow: 0 4px 14px rgba(123, 63, 228, 0.28);
}

.project-inquire-channel--max:hover {
  box-shadow: 0 6px 18px rgba(123, 63, 228, 0.34);
}

.project-inquire-channel--telegram {
  background: #2aabee;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.26);
}

.project-inquire-channel--telegram:hover {
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.32);
}

.project-inquire-channel--whatsapp {
  background: linear-gradient(180deg, #2fd06a 0%, #25d366 100%);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.project-inquire-channel--whatsapp:hover {
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.34);
}

.project-inquire-field {
  margin: 1rem 0 0.85rem;
}

.project-inquire-field .input-text {
  width: 100%;
}

.project-inquire-submit {
  width: 100%;
}

.project-inquire-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.project-inquire-success .project-inquire-title {
  margin-right: 2rem;
}

.project-inquire-success-close {
  width: 100%;
  margin-top: 0.35rem;
}

.project-inquire-legal {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-dim);
  text-align: center;
}

.project-inquire-legal a {
  color: var(--accent-deep, var(--accent));
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 420px) {
  .project-inquire-channels {
    grid-template-columns: 1fr;
  }

  .project-inquire-channel {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
  }
}
