:root {
  --button-padding-block: 16px;
  --button-padding-inline: 32px;
  --button-font-size: 16px;
  --button-border-radius: 12px;

  --hero-body-padding: 65px 10px 119px 48px;
  --hero-title-font-size: 40px;
  --hero-description-font-size: 20px;

  --preview-image-height: 520px;

  --qrcode-gap: 20px;
  --qrcode-padding: 20px 22px;
  --qrcode-border-radius: 20px;

  --qrcode-width: 102px;
  --qrcode-height: 102px;
  --qrcode-description-font-size: 16px;
}

a[class] {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.h2 {
  font-weight: 700;
  font-size: 40px;
}

.h3 {
  font-weight: 700;
  font-size: 32px;
}

.relative {
  position: relative;
  display: flex;
  overflow: hidden;
}

.button {
  display: inline-flex;
  justify-content: center;
  padding-block: var(--button-padding-block);
  padding-inline: var(--button-padding-inline);
  font-size: var(--button-font-size);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background-color: #000;
  border-radius: var(--button-border-radius);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  background-color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button:active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1232px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.hero .h1 {
  font-size: var(--hero-title-font-size);
  font-weight: 700;
  color: #fff;
  text-transform: none;
}

.hero__main {
  position: relative;
  display: grid;
  grid-template-columns: 51% auto;
  grid-template-areas: "body resources-preview";
  margin-top: 40px;
  margin-bottom: 48px;
  border-radius: 20px;
  background-image: linear-gradient(to right, #de3333 0%, #90278e 100%);
}

.hero__body {
  grid-area: body;
  padding: var(--hero-body-padding);
}

.hero__button {
  margin-top: 37px;
  font-weight: 600;
}

.hero__preview {
  grid-area: resources-preview;
  position: absolute;
  bottom: 0;
  right: 59px;
  z-index: 1;
  max-width: 100%;
  max-height: 520px;
}

.hero__preview .preview-image {
  width: 100%;
  height: auto;
  max-height: var(--preview-image-height);
  object-fit: contain;
}

.hero__description {
  font-size: var(--hero-description-font-size);
  font-weight: 500;
  color: #fff;
}

.qrcode__wrapper {
  display: flex;
  align-items: center;
  gap: var(--qrcode-gap);
  padding: var(--qrcode-padding);
  border-radius: var(--qrcode-border-radius);
  max-width: 593px;
  background: linear-gradient(to bottom, #a1796c 0%, #5c1c59 100%);
  box-sizing: border-box;
  position: absolute;
  right: -30px;
  left: -40px;
  bottom: 33px;
}

.qrcode {
  width: var(--qrcode-width);
  height: var(--qrcode-height);
  background-image: url("/assets/site/pz_img/place-sale/qrcode.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  max-width: 100%;
}

.qrcode__description {
  color: #fff;
  font-weight: 600;
  flex: 1;
  font-size: var(--qrcode-description-font-size);
}

.advantages-inner {
  margin-bottom: 24px;
}

.hero__advantages {
  border-radius: 16px;
  padding: 24px;
  background: #f2f4f8;

  .hero__advantages-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .hero__advantages-item:not(:last-child) {
    margin-bottom: 16px;
  }

  .advantage-item {
    display: flex;
    align-items: center;
    gap: 16px;

    p {
      font-size: 20px;
      font-weight: 500;
    }
  }
}

.partner-form__inner {
  display: grid;
  grid-template-columns: 56% auto;
  grid-template-areas: "body partner-form__preview";
  border-radius: 20px;
  background: linear-gradient(112deg, #ff1b93 0%, #ff1b53 44%, #ffac00 100%);
  margin-bottom: 64px;
  padding-inline: 48px;
}

.partner-form__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  margin-right: 89px;
  padding-block: 60px;

  & > div {
    flex-grow: 1;
  }

  p {
    font-size: 20px;
    color: #fff;
  }

  .partner-form__description {
    font-size: 24px;
    color: #fff;
  }
}

.partner-form__title {
  font-weight: 700;
  font-size: 64px;
  color: #fff;
  text-transform: none;
  margin: 0 0 12px;
}

.partner-form__preview {
  position: relative;
  grid-area: partner-form__preview;
  padding-top: 38px;

  .partner-form__button {
    position: absolute;
    width: 476px;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding-block: 24px;
  }

  .preview__image {
    display: flex;
    justify-content: center;
    height: 100%;
  }
}

.resources__inner {
  margin-bottom: 80px;

  .card__cell-button {
    margin-top: 8px;
    transition: box-shadow 0.3s ease, background 0.2s ease;
  }
  .card__cell-button:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    background-color: #90278E;
  }
  .card__cell-button:active {
    background: #993897;
  }
}

.resources__title {
  margin-bottom: 40px;
}

.card__grid {
  display: grid;
  gap: 16px 24px;
}

.card__grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.card__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 97px 95px 40px 24px;
  background: #f2f4f8;
  border-radius: 16px;
  row-gap: 12px;
  overflow: hidden;
}

.card__cell.mobile {
  display: none;
}

.card__cell.tile {
  padding: 48px 48px 40px;
}

.card__cell-wide {
  grid-column: 1 / -1;
}

.card__cell-wide.tile .card__cell-description {
  width: 87%;
}

.card__cell-body {
  margin-left: 77px;
  z-index: 1;
}

.card__cell-body-invitation {
  margin-left: 33px;
}

.card__cell-image {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 240px;
  background-position: left;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateY(-50%);
  border-radius: 10px;
  pointer-events: none;
  z-index: 0;
}

.card__cell-image-auditorium {
  background-image: url("/assets/site/pz_img/place-sale/1.svg");
}

.card__cell-image-meanings {
  background-image: url("/assets/site/pz_img/place-sale/2.svg");
}

.card__cell-image-technologies {
  background-image: url("/assets/site/pz_img/place-sale/3.svg");
}

.card__cell-image-forfree {
  background-image: url("/assets/site/pz_img/place-sale/4.svg");
}

.card__cell-image-partnership {
  background-image: url("/assets/site/pz_img/place-sale/partnership.png");
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-position: right;
}

.card__cell-title {
  margin-bottom: 8px;
  z-index: 1;
}

.card__cell-title-invitation {
  margin-bottom: 24px;
}

.card__cell-description {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  z-index: 1;
}

.card__cell-button {
  width: 253px;
  background-color: #90278e;
  z-index: 1;
}

.invitation__inner {
  margin-bottom: 48px;
}

.invitation__inner .h2 {
  margin-bottom: 40px;
}

.free-access__inner {
  margin-bottom: 80px;
}

.free-access__content {
  position: relative;
  display: flex;
  gap: 50px;
  flex-direction: column;
  border-radius: 16px;
  background: linear-gradient(135deg, #3a2790 0%, #ff4931 100%);
  color: #fff;
  padding: 48px 48px 64px;
  overflow: hidden;
}

.free-access__title {
  color: #fff;
}

.free-access__benefits p {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.free-access__benefits strong {
  font-weight: 700;
  color: #fff;
}

.free-access__button {
  width: 162px;
  padding: 16px 32px;
  background-color: #fff;
  color: #2f2f2f;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.free-access__button:hover {
  background-color: #e0f0ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.free-access__image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/site/pz_img/place-sale/benefit.png") no-repeat center
  right;
  background-size: contain;
}
