.ff-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px 18px 56px;
  color: #1b2433;
}

.ff-hero {
  background: linear-gradient(135deg, #f6f4ff 0%, #eef8ff 100%);
  border: 1px solid #ddd8f3;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(27, 36, 51, 0.08);
}

.ff-kicker {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a42b5;
}

.ff-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.ff-intro {
  max-width: 860px;
  margin-top: 16px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.ff-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ff-chip-list span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #1b2433;
  color: #fff;
  font-weight: 700;
}

.ff-section-links,
.ff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.ff-link-card,
.ff-card,
.ff-content {
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(27, 36, 51, 0.06);
}

.ff-link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ff-link-card:hover {
  transform: translateY(-2px);
  border-color: #5a42b5;
  box-shadow: 0 18px 38px rgba(27, 36, 51, 0.1);
}

.ff-link-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5a42b5 0%, #7a63cf 100%);
  color: #fff;
  font-size: 1.25rem;
}

.ff-link-card h2,
.ff-card h2,
.ff-content h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.ff-card p,
.ff-content p {
  line-height: 1.7;
}

.ff-card label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.ff-card select {
  width: 100%;
  border: 1px solid #bfd0df;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f7fbff;
}

.ff-inputs {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 10px 12px;
  align-items: center;
  margin-top: 12px;
}

.ff-card button {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #5a42b5;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ff-result {
  margin-top: 16px;
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid #d7e3eb;
  background: #f6f4ff;
  padding: 16px;
}

.ff-result strong {
  display: block;
  margin-bottom: 8px;
  color: #5a42b5;
}

.ff-result table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.ff-result th,
.ff-result td {
  border: 1px solid #dbe4ed;
  padding: 9px 10px;
  text-align: center;
}

.ff-result th {
  background: #f0ecff;
}

.ff-result svg {
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5eaf0;
}

.ff-content {
  margin-top: 24px;
}

.ff-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ff-archive-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f1ff;
  border: 1px solid #d9d1f6;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #5a42b5;
  font-weight: 600;
}

.ff-archive-grid a i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: #5a42b5;
}

@media (max-width: 920px) {
  .ff-section-links,
  .ff-grid,
  .ff-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ff-page {
    padding: 20px 14px 44px;
  }

  .ff-hero,
  .ff-link-card,
  .ff-card,
  .ff-content {
    padding: 18px;
    border-radius: 18px;
  }

  .ff-inputs {
    grid-template-columns: 1fr;
  }
}
