/**
 * Reklama page styles
 */
/**
 * Framed blocks
 */

.framed-block {
  --border-width: 0.3125rem;
  --arrow-height: 0.75rem;

  background-color: var(--page-bg-color);
  border: var(--border-width) solid var(--accent-color);
  border-radius: 1.2em;
  padding: 1em;
  position: relative;
}

.framed-block1::before,
.framed-block1::after {
  --fill-color: var(--page-bg-color);
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 var(--arrow-height) var(--arrow-height) var(--arrow-height);
  border-color: transparent transparent var(--fill-color) transparent;

  position: absolute;
  bottom: calc(100% - 0.125rem);
  left: 20%;
}

.framed-block::after {
  content: "";
  width: var(--arrow-height);
  height: var(--arrow-height);
  background-color: var(--page-bg-color);
  position: absolute;
  border: var(--border-width) solid transparent;
  border-left-color: var(--accent-color);
  border-top-color: var(--accent-color);

  top: 0;
  bottom: auto;
  left: 20%;
  right: auto;
  transform: translateY(-50%) translateX(-50%) rotate(45deg);
}

.framed-block--right::after {
  transform: translateY(50%) translateX(50%) rotate(135deg);
  top: 20%;
  bottom: auto;
  left: auto;
  right: 0;
}

@media (max-width: 50em) {
  .framed-block {
    --border-width: 0.09375rem;
    --arrow-height: 0.625rem;
  }

  .framed-block--top-mobile::after {
    top: 0;
    bottom: auto;
    left: 80%;
    right: auto;
    transform: translateY(-50%) translateX(-50%) rotate(45deg);
  }
}

.hero__section {
  background-color: var(--brand-color);
  min-height: 48.75rem;
  background-image: url("/assets/tv-pr-hero.webp");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;

  position: relative;
}

.hero__content {
  position: absolute;
  top: 15rem;
  left: 9.375rem;
}

.hero__header {
  font-size: 3.125rem;
  line-height: 1.1;
  color: var(--invert-text-color);
}

.hero__header em {
  font-style: normal;
  background-color: var(--page-bg-color);
  color: var(--brand-color);
  border-radius: 1.25rem;
  display: inline-block;
  padding: 0 0.25em 0.15em;
  margin-top: 0.15em;
}

.hero__buttons {
  display: flex;
  gap: 0.75rem;
  font-size: 1.125rem;
  margin-top: 3.125rem;
}

.hero__about-btn {
  font-weight: 600;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  padding-inline: 1em;
  border-width: 0.09375rem;
  color: var(--button-bg-color);

  position: relative;
}

.hero__donate-btn {
  padding-inline: 2.5em;
}

.hero__video-btn {
  background-color: var(--page-bg-color);
  color: var(--page-text-color);

  font-family: inherit;
  font-size: 1.625rem;
  line-height: 1;
  font-weight: 700;

  border: none;
  border-radius: 1.5rem;
  padding: 0.5em 1em;
  width: 20rem;
  text-align: left;

  cursor: pointer;

  position: absolute;
  bottom: 20.625rem;
  right: 11.875rem;

  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.hero__video-btn::before {
  content: "";
  background-image: url(/assets/play-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;

  width: 1.5rem;
  height: 1.875rem;
  flex: none;
}

@media (max-width: 50em) {
  .hero__section {
    padding-top: 1.25rem;
    padding-bottom: 4rem;
    min-height: auto;
    height: 37.5rem;
    background-size: 50rem;
    background-position: right bottom;
  }

  .hero__content {
    position: static;
    margin: 0;
  }

  .hero__header {
    font-size: 1.875rem;
  }

  .hero__buttons {
    margin-top: 2rem;
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .hero__donate-btn {
    padding-inline: 1em;
  }

  .hero__video-btn {
    font-size: 1rem;
    bottom: 10.9375rem;
    right: 50%;
    transform: translateX(50%);
    width: 13.75rem;
  }

  .hero__video-btn::before {
    width: 1.0625rem;
    height: 1.4375rem;
  }
}

.why__section {
  text-align: center;
  font-size: 1.5rem;
}

.why__pictures {
  position: relative;
  height: 34.375rem;
  margin-top: 6.25rem;
  font-size: 1.875rem;
}

.why__image {
  border-radius: 1.875rem;
  border: 0.3125rem solid var(--invert-text-color);
  position: absolute;
  object-fit: cover;
}

.why__image--1 {
  width: 44.375rem;
  height: 31.875rem;
  top: 0;
  left: 0;
  z-index: 1;
}

.why__image--2 {
  width: 31.25rem;
  height: 20.625rem;
  top: 5.625rem;
  right: 0;
}

.why__image--3 {
  width: 13.75rem;
  height: 17.5rem;
  bottom: 0;
  right: 19.375rem;
  z-index: 2;
}

.why__image-text {
  position: absolute;
  top: -1.875rem;
  right: 5.625rem;
  background-color: var(--accent-color);
  color: var(--invert-text-color);
  z-index: 3;
  max-width: 33.75rem;
  padding: 1.875rem 2.5rem;
  border-radius: 1.875rem;
  text-align: left;
}

.why__image-text::after {
  --arrow-height: 0.75rem;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 var(--arrow-height) var(--arrow-height) var(--arrow-height);
  border-color: transparent transparent var(--accent-color) transparent;
  transform: rotate(180deg);

  position: absolute;
  top: 100%;
  left: 10%;
}

.why__image-text em {
  font-style: normal;
  background-color: var(--page-bg-color);
  color: var(--page-text-color);
  border-radius: 1.25rem;
  display: inline-block;
  padding: 0 0.25em 0.15em;
}

@media (max-width: 50em) {
  .why__section {
    text-align: center;
    font-size: 1rem;
  }

  .why__pictures {
    position: relative;
    height: 18.125rem;
    margin-top: 2.75rem;
    font-size: 0.875rem;
  }

  .why__image-text {
    right: 0;
    max-width: 15.625rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
  }

  .why__image {
    border-radius: 1rem;
    border-width: 0.09375rem;
  }

  .why__image--1 {
    width: 14.375rem;
    height: 9.375rem;
  }

  .why__image--2 {
    width: 15.625rem;
    height: 10rem;
  }

  .why__image--3 {
    width: 7.5rem;
    height: 10rem;
    right: 0;
    left: 1.5rem;
  }
}

.how {
  background-color: var(--fill-color);
  color: var(--page-text-color);

  padding: 4.375rem;
  text-align: center;
  position: relative;
  clip-path: none;
}

.how__subheader {
  font-size: 2rem;
  font-weight: 700;
}

.how__text {
  font-size: 1.375rem;
  max-width: 50rem;
  margin-inline: auto;
  line-height: 1.2;
}

.how__box {
  margin-top: 3.125rem;
  background-color: var(--page-bg-color);
  padding: 1.875rem 3.125rem;
  border-radius: 1.875rem;
  position: relative;
  font-size: 1.875rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.2;

  width: 60%;
  margin-left: auto;
}

.how__box::after {
  --arrow-height: 0.75rem;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 var(--arrow-height) var(--arrow-height) var(--arrow-height);
  border-color: transparent transparent var(--page-bg-color) transparent;

  position: absolute;
  bottom: 100%;
  left: 20%;
}

.how__box-header {
  font-size: 3.75rem;
  font-weight: 800;
  color: #ff5225;
}

.how__portrait {
  position: absolute;
  bottom: 0;
  left: -8.75rem;
  width: 32.5rem;
  height: 32.5rem;
  background-image: url(/assets/rek-portrait.webp);
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.how__announcement {
  width: 4.875rem;
  height: 4.625rem;
  margin-bottom: 1rem;
}

.how__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3.75rem;

  font-size: 1.5rem;
}

.how__list-item {
  padding-top: 13.75rem;
  background-position: top;
  background-repeat: no-repeat;
  background-size: auto 12.5rem;
  line-height: 1.2;
}

.how__list-title {
  font-size: 6.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.how__list-title small {
  font-size: 4.375rem;
  font-weight: 900;
}

.how__list-item--1 {
  background-image: url(/assets/rek-ill-1.svg);
}
.how__list-item--2 {
  background-image: url(/assets/rek-ill-2.svg);
  background-size: auto 10rem;
  background-position-y: 1.25rem;
}
.how__list-item--3 {
  background-image: url(/assets/rek-ill-3.svg);
  background-size: auto 9.375rem;
  background-position-y: 1.25rem;
}

.how__add-block {
  font-size: 1.25rem;
  line-height: 1.1;
  padding: 0.8em 1em;
  width: max-content;
  margin-top: 1em;
}

.how__health {
  font-size: 1.125rem;
}

.how__health .section__header {
  line-height: 1.1;
}

.how__health .section__header span {
  color: var(--button-bg-color);
}

.how__health-box {
  display: flex;
  gap: 4.375rem;
  position: relative;
  padding-bottom: 3.75rem;
}

.how__health-image {
  flex: 1;
  width: 32.5rem;
  height: 22.5rem;
  object-fit: cover;
  border-radius: 1.875rem;
}

.how__health-framed {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 29.375rem;

  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
}

.how__illness {
  text-align: center;

  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
}

.how__illness-text {
  max-width: 65rem;
  margin-inline: auto;
}

.how__illness-image {
  width: 54.6875rem;
  height: 38.4375rem;
  object-fit: contain;
}

@media (max-width: 50em) {
  .how {
    padding: 1.5rem 1.25rem;
  }

  .how__announcement {
    width: 2.125rem;
    height: 2rem;
    margin-bottom: 0.5rem;
  }

  .how__subheader {
    font-size: 1rem;
  }

  .how__text {
    font-size: 1rem;
  }

  .how__box {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-top: 1.5rem;
  }

  .how__box-header {
    font-size: 1.25rem;
  }

  .how__portrait {
    left: -1rem;
    width: 11.25rem;
    height: 11.25rem;
  }

  .how__list {
    grid-template-columns: 1fr;
    gap: 2rem;

    font-size: 1.125rem;
    text-align: center;
  }

  .how__list-item {
    padding-top: 11.875rem;
  }

  .how__list-title {
    font-size: 3.5rem;
  }

  .how__list-title small {
    font-size: 3rem;
    margin-left: 0.3em;
  }

  .how__add-block {
    font-size: 0.875rem;
    margin-inline: auto;
  }

  .how__health {
    font-size: 1rem;
    margin-bottom: 4rem;
  }

  .how__health-box {
    flex-direction: column;
    gap: 1rem;
    margin-top: -1em;
  }

  .how__health-image {
    width: 55%;
    align-self: end;
  }

  .how__health-framed {
    width: 75%;
    left: 0;
    bottom: -2rem;
    font-size: 0.875rem;
  }

  .how__health-framed::before,
  .how__health-framed::after {
    translate: 0 0;
  }

  .how__illness {
    font-size: 1rem;
  }

  .how__illness-image {
    width: 100%;
    height: auto;
  }
}

.wtd__header {
  text-align: center;
}

.wtd__section {
  font-size: 1.5rem;
}

.wtd__box {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

@media (max-width: 50em) {
  .wtd__section {
    font-size: 1rem;
  }

  .wtd__box {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .wtd__box:last-child {
    flex-direction: column-reverse;
  }

  .wtd__box img {
    width: 100% !important;
    height: auto !important;
  }
}

.htd__section {
  background-color: var(--fill-color);
  border-top-left-radius: 2.5rem;
  border-top-right-radius: 2.5rem;
  padding-block: 5rem;
  text-align: center;

  font-size: 1.5rem;
  line-height: 1.2;

  margin-bottom: 0;
}

.htd__quote {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-block: 0;
}

.htd__quote em {
  font-style: normal;
  background-color: var(--accent-color);
  color: var(--invert-text-color);
  border-radius: 0.9375rem;
  display: inline-block;
  padding: 0 0.25em 0.15em;
}

.htd__photos {
  display: flex;
  position: relative;
  margin-block: 3.125rem;
}

.htd__photo--2 {
  position: absolute;
  right: 0;
  top: 1.875rem;
}

.htd__photo--3 {
  position: absolute;
  right: 0;
  bottom: 1.875rem;
}

@media (max-width: 50em) {
  .htd__section {
    border-radius: 0;
    padding-block: 1.5rem;
    text-align: center;

    font-size: 1rem;
  }

  .htd__photos {
    margin-top: 0;
  }

  .htd__photo--1 {
    width: 100% !important;
    height: auto !important;
  }

  .htd__photo--2,
  .htd__photo--3 {
    width: 45% !important;
    height: auto !important;
  }

  .htd__photo--2 {
    right: auto;
    top: auto;
    left: 0.625rem;
    bottom: -1.875rem;
  }

  .htd__photo--3 {
    left: auto;
    top: auto;
    right: 0.625rem;
    bottom: -1.875rem;
  }

  .htd__quote {
    font-size: 1.75rem;
  }
}

.donate__section {
  background-color: var(--brand2-color);
  background-image: url(/assets/rek-photo-10.webp);
  background-size: cover;
  background-position: center;

  color: var(--invert-text-color);
  padding-block: 6.25rem;
}

.donate__content {
  background-color: rgba(var(--brand2-color-rgb), 0.6);
  border-radius: 2.5rem;
  padding: 3.75rem 5rem;

  font-size: 1.375rem;
}

.donate__header {
  color: inherit;
  line-height: 1;
}

.donate__content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.donate__text {
  flex: 1;
}

@media (max-width: 50em) {
  .donate__section {
    padding: 0;
  }

  .donate__content {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1.25rem;
    margin: 0 !important;

    border-radius: 0;
  }

  .donate__text {
    font-size: 1rem;
    text-align: center;
  }
}

.news__header {
  text-align: center;
  margin-bottom: 3.125rem;
}

@media (max-width: 50em) {
  .news .slider__btns {
    display: none;
  }

  .news__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  a.news__container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .news__container h3 {
    font-size: 1.125rem;
  }

  .news__text {
    font-size: 1rem;
  }

  .news__image {
    flex: none;
    max-width: 25rem;
    margin-bottom: 0;
  }

  .news__item:nth-child(n + 4) {
    display: none;
  }

  /**
   * data-page="2" => show 3 + 5 items
   * data-page="3" => show 3 + 10 items
   * data-page="4" => show 3 + 15 items
   * and so on
   */
  .news__list[data-page="2"] .news__item:nth-child(-n + 8),
  .news__list[data-page="3"] .news__item:nth-child(-n + 13),
  .news__list[data-page="4"] .news__item:nth-child(-n + 18),
  .news__list[data-page="5"] .news__item:nth-child(-n + 23),
  .news__list[data-page="6"] .news__item:nth-child(-n + 28),
  .news__list[data-page="7"] .news__item:nth-child(-n + 33) {
    display: block;
  }

  .news__btns {
    display: flex;
    justify-content: center;
    color: var(--brand-color);
  }

  .news__show-more-btn {
    margin-block: 1.5rem;
  }

  .news__show-more-btn[hidden] {
    display: none;
  }
}

@media (max-width: 37.5em) {
  a.news__container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news__image {
    max-width: 25rem;
  }
}

.create__section {
  padding-bottom: 7.5rem;
  margin-bottom: -2.5rem;
}

.create__text-wrapper {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  font-size: 1.5rem;
}

.create__btn-wrapper {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 0.25rem dashed var(--accent-color);
}

.create__btn {
  background-color: var(--accent-color);
  color: var(--invert-text-color);
  white-space: nowrap;
  font-size: 1rem;
}

.create__slider {
  --gap-fraction: calc(20 / 1160);

  margin-top: 3.75rem;
}

.create__item {
  background-color: var(--page-bg-color);
  color: var(--page-text-color);
  padding: 1.875rem;
  border-radius: 1.875rem;
  font-size: 1.125rem;
  line-height: 1.2;
}

.create__person {
  display: flex;
  gap: 0.66em;
  align-items: center;
  font-weight: 700;
  margin-bottom: 1em;
}

.create__person img {
  border-radius: 50%;
}

@media (max-width: 50em) {
  .create__section {
    padding-block: 1.5rem;
    border-radius: 0;
    margin-bottom: 0;
  }

  .create__text-wrapper {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .create__btn-wrapper {
    width: 100%;
    padding-block: 1.5rem;
  }

  .create__slider {
    --items-count: 1;
    --gap-fraction: calc(20 / 400);

    margin-top: 1.5rem;
  }

  .create__item {
    padding: 1.5rem 2.5rem;
    font-size: 0.875rem;
    border-radius: 1rem;
  }

  .create__person {
    font-size: 1.125rem;
  }
}
