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

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

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

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

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

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

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

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

.boolean-figure-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}

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

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

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

.boolean-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, #3456a1 0%, #5c7fd0 100%);
  color: #fff;
  font-size: 1.25rem;
}

.boolean-link-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.boolean-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.boolean-figure figcaption {
  margin-top: 12px;
  color: #536074;
}

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

.boolean-card h2,
.boolean-content h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

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

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

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

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

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

.boolean-card button:hover {
  background: #284685;
}

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

.boolean-result strong {
  display: block;
  margin-bottom: 8px;
  color: #264e93;
}

.boolean-table-wrap table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
}

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

.boolean-table-wrap th {
  background: #eef4fb;
}

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

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

.boolean-archive-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eef4ff;
  border: 1px solid #cfdaf4;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #3456a1;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.boolean-archive-grid a i {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  color: #3456a1;
}

.boolean-archive-grid a:hover {
  transform: translateY(-3px);
  background: #3456a1;
  border-color: #3456a1;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(52, 86, 161, 0.22);
}

.boolean-archive-grid a:hover i {
  color: #3456a1;
}

.boolean-content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

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

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

  .boolean-hero,
  .boolean-figure-copy,
  .boolean-figure,
  .boolean-card,
  .boolean-content {
    padding: 18px;
    border-radius: 18px;
  }

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