/* Спойлеры «Подробнее о ресурсе» и «Правила ресурса» */
.resource__details-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}
.resource__details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.resource__details-spoiler {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--color-experts-ink);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.resource__details-spoiler:hover {
  background: var(--color-experts-tint);
  color: var(--color-experts-ink);
}
.resource__details-spoiler:hover path {
  fill: none;
}
.resource__details-spoiler svg {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
  transition: transform var(--dur-slow) var(--ease);
}
.resource__details-spoiler svg path {
  fill: none;
}
.resource__details-spoiler.active svg {
  transform: rotate(0deg);
}
.resource__details-content {
  margin-top: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  text-align: left;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-text-2);
  background: var(--color-surface-2);
  border-radius: 0;
  transition: max-height var(--dur-slow) var(--ease), padding var(--dur-slow) var(--ease);
}
.resource__details-content.normal__state {
  max-height: none;
  padding: 16px 18px;
}
.resource__details-spoiler.active ~ .resource__details-content {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 1110px) {
  .resource__details-spoiler {
    height: 44px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .resource__details-wrapper {
    flex-direction: column;
    gap: 8px;
  }
}
