/* Справочный блок страницы /xml80020 */

.xml-guide {
  padding: 4rem 0 2rem;
  background: #f4f7f9;
  border-top: 1px solid rgba(23, 138, 228, 0.12);
}

.xml-guide__inner {
  max-width: 72rem;
}

.xml-guide__title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: #094879;
}

.xml-guide__lead,
.xml-guide__text {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #4a5c68;
}

.xml-guide__subtitle {
  margin: 3rem 0 1.2rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #094879;
}

.xml-guide__text:last-child {
  margin-bottom: 0;
}

.xml-card {
  margin: 0 0 1.5rem;
  padding: 1.8rem 1.6rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xml-card__title {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #094879;
}

.xml-dl {
  margin: 0;
}

.xml-dl div {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e2e8f0;
}

.xml-dl div:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.xml-dl dt {
  font-size: 1.45rem;
  font-weight: 700;
  color: #094879;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.xml-dl dd {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #4a5c68;
}

.xml-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xml-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 1.45rem;
  line-height: 1.5;
}

.xml-table th,
.xml-table td {
  padding: 1.1rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5c68;
}

.xml-table thead th {
  background: #eef7ff;
  font-weight: 800;
  color: #094879;
}

.xml-table tbody th {
  font-weight: 800;
  color: #094879;
  white-space: nowrap;
}

.xml-table tbody tr:last-child th,
.xml-table tbody tr:last-child td {
  border-bottom: none;
}

.xml-filename {
  margin: 0 0 1.5rem;
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a2540;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xml-cards {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
  .xml-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .xml-cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.xml-stat {
  padding: 1.6rem 1.4rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xml-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 1rem;
  color: #178ae4;
  background: #eef7ff;
  border-radius: 12px;
}

.xml-stat__icon svg {
  width: 2.2rem;
  height: 2.2rem;
}

.xml-stat__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #094879;
}

.xml-stat__text {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
  color: #4a5c68;
}

.xml-stat--warn .xml-stat__icon {
  color: #ea580c;
  background: #fff7ed;
}

.xml-schema {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.xml-schema__root,
.xml-schema__item {
  padding: 1.2rem 1.4rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xml-schema__root {
  border-left: 4px solid #178ae4;
}

.xml-schema__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .xml-schema__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.xml-schema__code {
  display: block;
  margin-bottom: 0.4rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: #178ae4;
}

.xml-schema__text {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #4a5c68;
}

.xml-faq-wrap {
  padding: 4rem 0 6rem;
  background: #fff;
  border-top: 1px solid rgba(23, 138, 228, 0.12);
}

.xml-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.xml-faq__item {
  background: #fff;
  border: 1px solid rgba(23, 138, 228, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.xml-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 4.4rem;
  margin: 0;
  padding: 1.2rem 1.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: #094879;
  cursor: pointer;
  list-style: none;
}

.xml-faq__question::-webkit-details-marker {
  display: none;
}

.xml-faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #094879;
  border-bottom: 2px solid #094879;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.xml-faq__item[open] .xml-faq__question::after {
  transform: rotate(225deg);
}

.xml-faq__answer {
  margin: 0;
  padding: 0 1.6rem 1.4rem;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #4a5c68;
}

.xml-reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.xml-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
