.sdm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 20, 20, 0.55);
}
.sdm-modal--open {
  display: flex;
}
.sdm-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 898px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: 4px -6px 18px 0 rgba(0, 0, 0, 0.25);
  padding: 31px 35px 50px 45px;
}
.sdm-modal__close {
  position: absolute;
  top: 24px;
  right: 25px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}
.sdm-modal__close img {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(45deg);
}
.sdm-modal__title {
  margin: 0 0 19px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 32px;
  line-height: 52px;
  text-transform: uppercase;
  color: var(--text);
}
.sdm-modal__text, .sdm-modal__aside {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 30px;
  color: #000;
}
.sdm-modal__row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 29px;
}
.sdm-modal__aside {
  flex: 1 1 auto;
  max-width: 422px;
}
.sdm-modal__subtitle {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}
.sdm-modal__paragraph {
  margin: 0;
}
.sdm-modal__list {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: disc;
}
.sdm-modal__item {
  margin: 0;
  padding: 0;
}
.sdm-modal__media {
  flex: 0 0 368px;
  max-width: 368px;
  aspect-ratio: 368/242;
  background: #d9d9d9;
  overflow: hidden;
}
.sdm-modal__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sdm-modal__photo {
  width: 100%;
  aspect-ratio: 800/440;
  background: #d9d9d9;
  overflow: hidden;
  margin: 20px 0;
}
.sdm-modal__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sdm-modal__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #d9d9d9;
  overflow: hidden;
  margin: 0 0 16px;
}
.sdm-modal__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 767px) {
  .sdm-modal__dialog {
    display: grid;
    grid-template-areas: "title" "media" "text" "aside";
    grid-auto-rows: max-content;
    gap: 20px;
    padding: 40px 20px 24px;
  }
  .sdm-modal__title {
    grid-area: title;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }
  .sdm-modal__text {
    grid-area: text;
  }
  .sdm-modal__photo, .sdm-modal__avatar {
    grid-area: media;
  }
  .sdm-modal__row {
    display: contents;
  }
  .sdm-modal__media {
    grid-area: media;
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }
  .sdm-modal__aside {
    grid-area: aside;
    max-width: none;
  }
}

body[data-modal-open] {
  overflow: hidden;
}

.rd-capsules {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-bottom: 10px;
}
.rd-capsules__title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 38px;
  line-height: 52px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 38px;
}
@media (max-width: 767px) {
  .rd-capsules__title {
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}
@media (max-width: 1024px) {
  .rd-capsules {
    gap: 48px;
  }
}
@media (max-width: 767px) {
  .rd-capsules {
    gap: 40px;
  }
}

.rd-capsule {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.rd-capsule--reverse {
  flex-direction: row-reverse;
}
@media (max-width: 1024px) {
  .rd-capsule {
    flex-direction: column;
    gap: 16px;
  }
  .rd-capsule--reverse {
    flex-direction: column;
  }
}
.rd-capsule__media {
  flex: 0 0 65%;
  max-width: 65%;
  overflow: hidden;
}
.rd-capsule__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .rd-capsule__media {
    order: 1;
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }
}
.rd-capsule__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 4px;
}
@media (max-width: 1024px) {
  .rd-capsule__content {
    display: contents;
    max-width: 100%;
    padding-top: 0;
  }
}
.rd-capsule__title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 31px;
  line-height: 48px;
  text-transform: uppercase;
  color: var(--text);
}
@media (max-width: 1024px) {
  .rd-capsule__title {
    order: 0;
    width: 100%;
    font-size: 26px;
    line-height: 1.3;
  }
}
@media (max-width: 767px) {
  .rd-capsule__title {
    font-size: 20px;
    line-height: 20px;
  }
}
.rd-capsule__text {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--text);
}
@media (max-width: 1024px) {
  .rd-capsule__text {
    order: 2;
    width: 100%;
  }
}
@media (max-width: 767px) {
  .rd-capsule__text {
    font-size: 14px;
  }
}
.rd-capsule__text-full {
  display: none;
}
.rd-capsule__more {
  color: var(--text2);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.rd-author {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .rd-author {
    order: 3;
    width: 100%;
  }
}
.rd-author__photo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 90px;
  overflow: hidden;
  background: #d9d9d9;
}
.rd-author__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.rd-author__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-family);
  font-size: 14px;
  letter-spacing: 0.98px;
  line-height: 1.55;
}
.rd-author__label {
  text-transform: uppercase;
  color: var(--text2);
  font-weight: 600;
}
.rd-author__name {
  color: var(--text);
  font-weight: 600;
}

.rd-capsule__cta {
  margin-top: 8px;
  width: max-content;
  padding: 18px;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  width: 100%;
  background: var(--new-2);
  max-width: 400px;
}
@media (max-width: 767px) {
  .rd-capsule__cta {
    order: 4;
    max-width: 100%;
  }
}

.rd-capsule__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.rd-capsule__title-link {
  color: inherit;
  text-decoration: none;
}
.rd-capsule__title-link:hover {
  text-decoration: underline;
}
