/* Hero details, index.html:203–230. */
.k-hero__cta:hover {
  color: #252525;
  background: var(--warm-50);
}

.k-hero__cta-mark,
a.k-hero__marketplace:hover {
  color: var(--white);
}

.k-hero__facts {
  margin-block-end: 0;
  padding: 0;
  list-style: none;
}

.k-hero__photo {
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(115, 26, 31, .25));
}

.k-hero__hit-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.k-hero__hit-link::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.k-hero__hit-photo {
  display: grid;
  place-items: center;
}

.k-hero__hit-photo img {
  object-fit: contain;
}

.k-hero__hit-copy {
  overflow-wrap: anywhere;
}

.k-hero__hit-mark {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  color: #252525;
  cursor: pointer;
}

.k-hero__hit-mark:disabled {
  cursor: wait;
}

.k-hero__hit-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}

.k-hero__hit-prices del {
  color: var(--white-a80);
}

@media (width < 768px) {
  .k-hero__art--photos-only,
  .k-hero__content:not(:has(> *)) {
    display: none;
  }
}

/* Home sections, index.html:237, :251, :273, :315 and :2355–2370. */
.k-home-section {
  padding-block: clamp(48px, 8.3cqw, 120px);
  --k-home-lead-width: 440px;
}

.k-home-section--hits {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2cqw, 32px);
  padding-block: clamp(24px, 6.7cqw, 96px);
}

@media (width < 768px) {
  .k-home-section--hits .k-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.k-home-section--gifts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.k-home-gifts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (width >= 768px) {
  .k-home-gifts__grid:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k-home-gifts__grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.k-home-gifts__card {
  --k-home-gift-ink: var(--typo-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 360px;
  /* The image is positioned absolutely: the text may cross its transparent top, as in the demo (index.html:258). */
  padding: 28px;
  overflow: hidden;
  overflow-wrap: anywhere;
  border-radius: 32px;
  background: var(--k-tint-raspberry);
  color: var(--k-home-gift-ink);
}

.k-home-gifts__card:hover {
  color: var(--k-home-gift-ink);
}

.k-home-gifts__card--dark {
  --k-home-gift-ink: var(--white);
  background: #2A1F1D;
}

.k-home-gifts__card--accent {
  --k-home-gift-ink: var(--white);
  background: var(--k-gradient-hero);
}

.k-home-gifts__amount {
  font: 400 32px/40px "Yeseva One", serif;
}

.k-home-gifts__card--light .k-home-gifts__amount {
  color: var(--raspberry-600);
}

.k-home-gifts__text {
  max-width: 320px;
  font-size: 14px;
  line-height: 20px;
}

.k-home-gifts__card--light .k-home-gifts__text {
  color: var(--typo-secondary);
}

.k-home-gifts__image,
.k-home-gifts__question {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(200px, 100% - 40px);
  height: auto;
  aspect-ratio: 1;
}

.k-home-gifts__image {
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(115, 26, 31, .25));
}

.k-home-gifts__question {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--k-gradient-accent);
  color: var(--white);
  font: 400 96px/1 "Yeseva One", serif;
}

@media (768px <= width < 1200px) {
  /* Tablet gift tier dimensions, index.html:2349–2355. */
  .k-home-section--gifts {
    gap: 2.222cqw;
  }

  .k-home-gifts__grid {
    gap: 1.667cqw;
  }

  .k-home-gifts__card {
    gap: .833cqw;
    min-height: max(260px, 30.556cqw);
    padding: 1.944cqw;
    border-radius: 2.222cqw;
  }

  .k-home-gifts__amount {
    font-size: max(20px, 2.222cqw);
    line-height: 1.25;
  }

  .k-home-gifts__title {
    font-size: max(15px, 1.389cqw);
    line-height: 1.35;
  }

  .k-home-gifts__text {
    max-width: 22.222cqw;
    font-size: 13px;
    line-height: 18px;
  }

  .k-home-gifts__image,
  .k-home-gifts__question {
    right: 1.389cqw;
    bottom: 1.389cqw;
    width: 13.889cqw;
  }

  .k-home-gifts__question {
    font-size: 6.667cqw;
  }
}

@media (width >= 1200px) {
  .k-home-gifts__card {
    min-height: 440px;
  }
}

.k-home-section--countries {
  --k-home-lead-width: 420px;
  --k-home-countries-title-width: 440px;
}

.k-home-section--countries h2 {
  max-width: var(--k-home-countries-title-width);
}

.k-home-section h2,
.k-home-section__lead {
  margin: 0;
}

.k-home-section__lead {
  max-width: var(--k-home-lead-width);
  color: var(--warm-600);
  font-size: 16px;
  line-height: 24px;
}

/* Demo index.html:315–330, :2370–2371. Both pages resolve cqw against the page root. */
.k-home-section--corporate {
  padding-block: clamp(24px, 8.3cqw, 120px);
}

.k-home-corporate {
  --k-corporate-gap: 24px;
  --k-corporate-title-max: 440px;
  --k-corporate-lead-max: 440px;
  --k-corporate-chips-max: none;
  --k-corporate-box-right: 24%;
  --k-corporate-box-width: clamp(220px, 24cqw, 340px);
  --k-corporate-tin-width: clamp(180px, 19cqw, 270px);

  position: relative;
  overflow: hidden;
  min-height: 548px;
  padding: clamp(24px, 4.4cqw, 64px);
  border-radius: clamp(28px, 2.8cqw, 40px);
  background: #2A1F1D;
  color: var(--typo-inverted);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.k-home-corporate::before {
  content: "";
  position: absolute;
  left: 62%;
  top: -120px;
  width: 560px;
  height: 560px;
  opacity: .55;
  border-radius: 50%;
  background: var(--bg-brand);
}

.k-home-corporate__photo {
  position: absolute;
  right: 2%;
  width: var(--k-corporate-tin-width);
  filter: drop-shadow(0 24px 40px rgba(115, 26, 31, .25));
}

.k-home-corporate__photo--first {
  right: var(--k-corporate-box-right);
  bottom: 8%;
  width: var(--k-corporate-box-width);
}

.k-home-corporate__photo--second {
  top: 10%;
}

.k-home-corporate__photo--third {
  bottom: 2%;
}

.k-home-corporate__copy {
  position: relative;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--k-corporate-gap);
  align-items: flex-start;
}

.k-home-corporate h2 {
  max-width: var(--k-corporate-title-max);
}

.k-home-corporate__lead {
  margin: 0;
  max-width: var(--k-corporate-lead-max);
  font-size: 16px;
  line-height: 24px;
}

.k-home-corporate .k-hero__facts {
  margin-block-start: 0;
  max-width: var(--k-corporate-chips-max);
}

.k-home-corporate .k-hero__fact,
.k-home-corporate .k-hero__cta {
  line-height: normal;
}

.k-home-corporate .k-hero__cta {
  flex: none;
  background: var(--k-gradient-accent);
  color: var(--typo-inverted);
}

.k-home-corporate .k-hero__cta-mark {
  background: var(--bg-default);
  color: var(--typo-primary);
}

@media (768px <= width < 1200px) {
  .k-home-section {
    --k-home-lead-width: 30.556cqw;
  }

  .k-home-section--countries {
    --k-home-lead-width: 29.167cqw;
    --k-home-countries-title-width: 30.556cqw;
  }

  .k-home-section__lead {
    font-size: 14px;
    line-height: 20px;
  }

  .k-home-corporate {
    /* tq(px) = (px * 100 / 1440).toFixed(3) + 'cqw' in the demo. */
    --k-corporate-gap: 1.667cqw;
    --k-corporate-title-max: 30.556cqw;
    --k-corporate-lead-max: 38.889cqw;
    --k-corporate-chips-max: 41.667cqw;
    --k-corporate-box-right: 13%;
    --k-corporate-box-width: 27.778cqw;
    --k-corporate-tin-width: 19cqw;

    min-height: 38.056cqw;
  }

  .k-home-corporate__lead {
    font-size: 14px;
    line-height: 20px;
  }

  .k-home-corporate .k-hero__cta {
    height: 48px;
    padding-left: 22px;
  }

  .k-home-corporate .k-hero__cta-mark {
    width: 36px;
    height: 36px;
  }
}

@media (width < 768px) {
  .k-home-corporate {
    --k-corporate-box-right: 30%;
    --k-corporate-box-width: 180px;
    --k-corporate-tin-width: 150px;

    min-height: 640px;
    justify-content: flex-start;
  }
}
