/* Scoped layout and typography for /vidy-sertifikatov/ */
.cert-types-page {
  max-width: 1140px;
}

.cert-types-page .cert-types-hero {
  max-width: 900px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.8;
  color: #1f2933;
  text-align: left;
}

.cert-types-page .cert-types-hero h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 0.6em;
  color: #051829;
}

.cert-types-page p {
  margin: 0 0 1.1em;
}

.cert-types-page h2,
.cert-types-page h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #051829;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.cert-types-page h2 {
  font-size: 1.6rem;
}

.cert-types-page h3 {
  font-size: 1.3rem;
}

.cert-types-section {
  margin-bottom: 32px;
}

.cert-types-page ul,
.cert-types-page ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.cert-types-page li {
  margin: 0.18em 0;
}

/* Highlight section tags like "Виды сертификатов" */
.cert-types-page h2:first-of-type {
  margin-top: 1.8em;
}

/* Keep forms and CTA blocks full width */
.cert-types-page form {
  max-width: 540px;
}

/* Cards grid */
.cert-types-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 768px) {
  .cert-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .cert-types-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cert-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f5c518;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.cert-card-icon svg {
  width: 22px;
  height: 22px;
  fill: #051829;
}

.cert-card-title {
  font-size: 1rem;
  margin: 0;
}

.cert-card-text {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
}

.cert-card-price {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #051829;
}

.cert-types-footnote {
  max-width: 900px;
  margin: 12px auto 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Per-section legacy links */
.cert-types-links {
  margin-top: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}

.cert-types-links-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.cert-types-links-toggle::after {
  content: "▼";
  font-size: 0.7rem;
}

.cert-types-links-list {
  margin-top: 6px;
  padding-left: 1.1em;
  font-size: 0.85rem;
  color: #4b5563;
  display: none;
}

.cert-types-links-list li {
  margin: 2px 0;
}

.cert-types-links-list a {
  color: #1d4ed8;
}

.cert-types-links-list a:hover {
  color: #1e40af;
}

.cert-types-link-price {
  color: #6b7280;
}

.cert-types-links.cert-types-links-open .cert-types-links-list {
  display: block;
}

.cert-types-links.cert-types-links-open .cert-types-links-toggle::after {
  content: "▲";
}

.cert-types-legacy {
  position: absolute;
  left: -99999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


