.os-catalog-seo {
  color: #121417;
}

.os-catalog-seo--top {
  margin: 0 auto 28px;
}

.os-catalog-seo--bottom {
  margin: 42px auto 56px;
}

.os-catalog-seo__intro {
  max-width: 980px;
  margin: 0 0 24px;
  color: #4f5f70;
  font-size: 17px;
  line-height: 1.65;
}

.os-catalog-seo__intro p,
.os-catalog-seo__text p {
  margin: 0 0 12px;
}

.os-catalog-seo__intro p:last-child,
.os-catalog-seo__text p:last-child {
  margin-bottom: 0;
}

.os-catalog-seo__quick {
  margin: 0 0 18px;
}

.os-catalog-seo__quick h2,
.os-catalog-seo__section h2 {
  margin: 0 0 18px;
  color: #121417;
  font-family: inherit;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.os-catalog-seo__quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.os-catalog-seo__quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 18px;
  border: 1px solid #e2e7ec;
  border-radius: 8px;
  background: #fff;
  color: #121417;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.os-catalog-seo__quick-card:hover {
  border-color: #b7c9dc;
  box-shadow: 0 10px 24px rgba(16, 38, 62, .08);
  transform: translateY(-1px);
}

.os-catalog-seo__quick-card span {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.os-catalog-seo__quick-card small {
  margin-top: 7px;
  color: #607083;
  font-size: 13px;
  line-height: 1.35;
}

.os-catalog-seo__bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dce3ea;
  border-radius: 999px;
  background: #fff;
  color: #22384f;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.os-catalog-seo__bottom-links a:hover {
  border-color: #9fb7cf;
  background: #f4f8fb;
}

.os-catalog-seo__bottom-title {
  margin: 8px 0 14px;
  color: #121417;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.os-catalog-seo__section {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #e2e7ec;
  border-radius: 8px;
  background: #fff;
}

.os-catalog-seo__section--local {
  background: #f7fafc;
}

.os-catalog-seo__text {
  color: #4f5f70;
  font-size: 16px;
  line-height: 1.65;
}

.os-catalog-seo__toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  pointer-events: auto;
}

.os-catalog-seo__toggle summary::-webkit-details-marker {
  display: none;
}

.os-catalog-seo__toggle summary h2 {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.os-catalog-seo__toggle summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #d9e2ea;
  border-radius: 50%;
  color: #174f8f;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.os-catalog-seo__toggle[open] summary::after {
  content: "-";
}

.os-catalog-seo__toggle .os-catalog-seo__text {
  margin-top: 18px;
}

.os-catalog-seo__faq details {
  border-top: 1px solid #e6ebf0;
}

.os-catalog-seo__faq details:first-of-type {
  border-top: 0;
}

.os-catalog-seo__faq summary {
  cursor: pointer;
  padding: 16px 0;
  color: #121417;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.os-catalog-seo__faq details div {
  padding: 0 0 16px;
  color: #4f5f70;
  font-size: 15px;
  line-height: 1.6;
}

.os-catalog-seo__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.os-catalog-seo__bottom-links::before {
  content: "Смотрите также";
  flex: 0 0 100%;
  margin: 8px 0 6px;
  color: #121417;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.os-catalog-seo__bottom-title + .os-catalog-seo__bottom-links::before {
  content: none;
  display: none;
}

@media screen and (max-width: 900px) {
  .os-catalog-seo--top {
    margin-bottom: 22px;
  }

  .os-catalog-seo--bottom {
    margin-top: 32px;
    margin-bottom: 42px;
  }

  .os-catalog-seo__quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-catalog-seo__quick h2,
  .os-catalog-seo__section h2,
  .os-catalog-seo__bottom-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 560px) {
  .os-catalog-seo--top {
    margin-bottom: 16px;
  }

  .os-catalog-seo__intro {
    font-size: 15px;
    line-height: 1.58;
    margin-bottom: 16px;
  }

  .os-catalog-seo__quick {
    margin-bottom: 12px;
  }

  .os-catalog-seo__quick-grid {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .os-catalog-seo__quick-grid::-webkit-scrollbar {
    display: none;
  }

  .os-catalog-seo__quick-card {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
  }

  .os-catalog-seo__quick h2,
  .os-catalog-seo__section h2,
  .os-catalog-seo__bottom-title {
    font-size: 22px;
  }

  .os-catalog-seo__quick-card span {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .os-catalog-seo__quick-card small {
    display: none;
  }

  .os-catalog-seo__section {
    padding: 18px;
  }

  .os-catalog-seo__toggle summary {
    cursor: pointer;
    min-height: 58px;
    pointer-events: auto;
  }

  .os-catalog-seo__toggle summary h2 {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 58px;
  }

  .os-catalog-seo__toggle summary::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid #d9e2ea;
    border-radius: 50%;
    color: #174f8f;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
  }

  .os-catalog-seo__toggle[open] summary::after {
    content: '-';
  }

  .os-catalog-seo__bottom-links {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px;
    padding: 42px 16px 4px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .os-catalog-seo__bottom-links::before {
    position: absolute;
    top: 0;
    left: 16px;
    flex: none;
    margin: 0;
    font-size: 22px;
  }

  .os-catalog-seo__bottom-links::-webkit-scrollbar {
    display: none;
  }

  .os-catalog-seo__bottom-links a {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }
}
