.forms-page .site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
}

.forms-wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 26px auto 86px;
}

.forms-hero {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
}

.forms-hero.is-visible,
.forms-list-view.is-visible {
  animation: reveal 680ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.forms-hero h1 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forms-hero p {
  margin: 16px auto 0;
  color: #8ea9c3;
  font-size: clamp(1rem, 1.55vw, 1.4rem);
  line-height: 1.5;
  max-width: 58ch;
}

.forms-list-view {
  margin-top: 54px;
  opacity: 0;
  transform: translateY(16px);
}

.forms-list-title {
  margin: 0 0 14px;
  font-family: "Exo 2", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #8cb2d3;
  text-transform: uppercase;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.form-card {
  border: 1px solid rgba(88, 176, 245, 0.22);
  border-radius: 16px;
  background: rgba(7, 16, 27, 0.82);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
}

.form-sent-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(98, 198, 140, 0.44);
  background: rgba(34, 124, 72, 0.24);
  color: #9ce9c1;
  font-family: "Exo 2", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.form-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(88, 176, 245, 0.28);
  background: rgba(18, 43, 69, 0.45);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.form-icon i {
  font-size: 1.1rem;
  color: #8bd8ff;
}

.form-card h3 {
  margin: 16px 0 0;
  font-family: "Exo 2", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.form-card p {
  margin: 10px 0 0;
  color: #8ca8c0;
  line-height: 1.45;
  font-size: 0.95rem;
}

.form-card-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.form-state {
  color: #8fddb9;
  font-family: "Exo 2", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-open {
  border: 1px solid rgba(88, 176, 245, 0.36);
  background: rgba(21, 75, 118, 0.35);
  color: #d6ecff;
  border-radius: 999px;
  padding: 9px 12px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.form-open:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  border-color: rgba(110, 138, 165, 0.35);
  background: rgba(39, 53, 69, 0.34);
}

.forms-detail-view {
  margin-top: 24px;
  display: none;
}

.forms-detail-view.is-open {
  display: block;
}

.forms-back {
  border: 0;
  background: transparent;
  color: #a8c2db;
  font-family: "Exo 2", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0;
  cursor: pointer;
}

.forms-detail-head {
  margin-top: 16px;
}

.forms-detail-head h2 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.forms-detail-head p {
  margin: 10px 0 0;
  color: #8ca8c1;
}

.form-shell {
  margin-top: 18px;
  border: 1px solid rgba(88, 176, 245, 0.25);
  border-radius: 14px;
  background: rgba(8, 17, 28, 0.84);
  padding: 16px;
}

.form-shell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.form-shell-head h3 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: 1.1rem;
}

.form-status {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(98, 198, 140, 0.42);
  background: rgba(34, 124, 72, 0.24);
  color: #9ce9c1;
  font-family: "Exo 2", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.form-helper {
  margin: 10px 0 0;
  color: #89a5bf;
  font-size: 0.92rem;
}

.dynamic-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #c2def5;
  font-family: "Exo 2", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(92, 175, 241, 0.26);
  background: rgba(9, 20, 33, 0.88);
  color: #e5f1ff;
  font-family: "Space Grotesk", sans-serif;
  padding: 10px;
}

.field textarea {
  min-height: 114px;
  resize: vertical;
}

.form-submit {
  justify-self: end;
  margin-top: 4px;
  border: 1px solid rgba(88, 176, 245, 0.38);
  background: linear-gradient(140deg, rgba(39, 143, 214, 0.95), rgba(21, 87, 146, 0.95));
  color: #f0f8ff;
  border-radius: 9px;
  padding: 10px 14px;
  font-family: "Exo 2", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.form-submit:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  border-color: rgba(110, 138, 165, 0.35);
  background: rgba(39, 53, 69, 0.34);
}

.form-feedback {
  margin: 0;
  color: #8eb1cf;
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .forms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .forms-wrap {
    width: min(1160px, calc(100% - 24px));
    margin-top: 18px;
  }

  .forms-page .site-header {
    position: static;
  }

  .forms-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    min-height: 0;
  }

  .form-shell {
    padding: 12px;
  }
}
