* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #172033;
  line-height: 1.7;
}

header {
  background: linear-gradient(135deg, #2457d6, #0f8f8c);
  color: white;
  padding: 72px 20px;
  text-align: center;
}

header h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: 48px;
  line-height: 1.08;
}

header p {
  max-width: 720px;
  margin: auto;
  color: #eef7ff;
  font-size: 20px;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

.card {
  background: white;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 26px;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

h2 {
  margin-top: 0;
  font-size: 30px;
  line-height: 1.2;
}

ul li,
ol li {
  margin-bottom: 10px;
  font-size: 18px;
}

.download-box {
  background: #e6f7f4;
  border-color: #b6e5df;
}

.button {
  display: inline-block;
  background: #2457d6;
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: bold;
  margin: 16px 10px 0 0;
}

.button:hover {
  background: #1d46ad;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.category-summary p {
  margin-top: 0;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-entry {
  margin: 26px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.category-link {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #172033;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.category-link span {
  color: #0f8f8c;
  font-size: 13px;
  white-space: nowrap;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.template-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  margin-bottom: 0;
  border-top: 6px solid #34c6bd;
  background: linear-gradient(180deg, #ffffff 0%, #f9fdff 100%);
}

.template-card:nth-child(4n + 2) {
  border-top-color: #ff8fab;
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
}

.template-card:nth-child(4n + 3) {
  border-top-color: #f6c453;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.template-card:nth-child(4n) {
  border-top-color: #9b8cff;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%);
}

.template-card p {
  margin-bottom: 18px;
}

.template-card .button {
  margin-top: auto;
  width: fit-content;
}

.tag {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #0f8f8c;
  background: #e6f7f4;
  font-size: 13px;
  font-weight: 800;
}

.faq-section h3 {
  margin: 18px 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.faq-section p {
  margin: 0 0 14px;
  color: #5f6b7a;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: white;
  border-bottom: 1px solid #dbe3ee;
}

.language-switcher a {
  color: #2457d6;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 14px 20px;
  background: white;
  border-bottom: 1px solid #dbe3ee;
}

.site-nav a {
  color: #2457d6;
  font-weight: 700;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #667085;
}

@media (max-width: 700px) {
  header h1 {
    font-size: 38px;
  }

  .card {
    padding: 24px;
  }

  .category-summary {
    display: block;
  }
}
