/**
 * Recommendations page. Colored hero, hosting cards, theme grid.
 */

.mk-rec-page {
  background: #fff;
}

.mk-rec-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 7vw, 88px) 24px 40px;
  background:
    radial-gradient(circle at 12% 30%, rgb(36 73 232 / 0.14), transparent 36%),
    radial-gradient(circle at 88% 70%, rgb(196 107 58 / 0.12), transparent 34%),
    #e7eef8;
}

.mk-rec-hero .lx-container {
  position: relative;
}

.mk-rec-eyebrow {
  margin: 0 0 10px;
  color: var(--olive, var(--gold-deep));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mk-rec-hero h1 {
  margin: 0 auto 12px;
  max-width: 14ch;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.mk-rec-hero p:not(.mk-rec-eyebrow) {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.5;
}

.mk-rec-hero p.mk-rec-plain {
  margin-top: 14px;
  color: #182021;
  font-weight: 680;
}

.mk-rec-px {
  position: absolute;
  display: block;
  pointer-events: none;
  background: #2449E8;
}

.mk-rec-px--a { left: 8%; top: 22%; width: 14px; height: 14px; opacity: 0.9; }
.mk-rec-px--b { left: 18%; top: 68%; width: 8px; height: 8px; background: #182021; opacity: 0.35; }
.mk-rec-px--c { right: 12%; top: 18%; width: 12px; height: 12px; background: #C46B3A; opacity: 0.85; }
.mk-rec-px--d { right: 22%; top: 62%; width: 18px; height: 18px; background: transparent; box-shadow: inset 0 0 0 2px #2449E8; opacity: 0.7; }
.mk-rec-px--e { left: 28%; top: 16%; width: 6px; height: 6px; background: #182021; opacity: 0.4; }
.mk-rec-px--f { right: 7%; top: 46%; width: 10px; height: 10px; opacity: 0.45; }
.mk-rec-px--g { left: 6%; top: 46%; width: 16px; height: 16px; background: transparent; box-shadow: inset 0 0 0 2px #182021; opacity: 0.25; }

.mk-rec-hosts-wrap {
  padding: 36px 0 40px;
  background: #fff;
}

.mk-rec-themes-wrap {
  padding: clamp(48px, 6vw, 80px) 0 calc(var(--final-half) + 36px);
  background: #f4f6f8;
}

.mk-rec-page .lx-final {
  margin-top: 0;
  background: #f4f6f8;
}

.mk-rec-head {
  max-width: 40rem;
  margin: 0 auto 28px;
  text-align: center;
}

.mk-rec-head h2 {
  margin: 0 0 8px;
  font-weight: 720;
}

.mk-rec-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.mk-rec-hosts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

.mk-rec-host {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 48px 22px 22px;
  border: 1px solid #e4e7ea;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.mk-rec-host.is-pick {
  border: 2px solid #2449E8;
  box-shadow: 0 18px 40px rgb(36 73 232 / 0.12);
  z-index: 1;
}

.mk-rec-pick {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #2449E8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.mk-rec-logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 168px;
  margin: 0 auto 18px;
  object-fit: contain;
  object-position: center;
}

.mk-rec-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mk-rec-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  color: #182021;
  font-family: var(--font-display, inherit);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.mk-rec-price span {
  margin-top: 7px;
  font-size: 1.15rem;
  font-weight: 700;
}

.mk-rec-price b {
  font-size: clamp(2.4rem, 3vw, 2.85rem);
  font-weight: 720;
}

.mk-rec-price small {
  align-self: flex-end;
  margin: 0 0 6px 2px;
  color: #5c6768;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
}

.mk-rec-term {
  min-height: 2.6em;
  margin: 8px 0 0;
  color: #5c6768;
  font-size: 0.82rem;
  line-height: 1.35;
}

.mk-rec-lead {
  min-height: 2.7em;
  margin: 14px 0 0;
  color: #182021;
  font-weight: 680;
  line-height: 1.35;
}

.mk-rec-host ul {
  width: 100%;
  margin: 18px 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid #e8ebed;
  list-style: none;
  text-align: left;
}

.mk-rec-host li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.mk-rec-host li:last-child {
  margin-bottom: 0;
}

.mk-rec-host li::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e7eef8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.6 10.8 12 5.2' fill='none' stroke='%232449E8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

.mk-rec-host .lx-btn {
  width: 100%;
  margin-top: auto;
}

.mk-rec-price-note {
  margin: 20px auto 0;
  color: #5c6768;
  font-size: 0.82rem;
  text-align: center;
}

.mk-rec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mk-rec-theme {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgb(24 32 33 / 0.05);
}

.mk-rec-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #e7eef8;
  overflow: hidden;
}

.mk-rec-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mk-rec-shot.is-top img {
  object-position: top center;
}

.mk-rec-brand {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 70% 30%, rgb(36 73 232 / 0.16), transparent 46%),
    #eef2fb;
}

.mk-rec-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mk-rec-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: #182021;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.mk-rec-theme-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 14px 14px 16px;
}

.mk-rec-theme-copy h3 {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.mk-rec-theme-copy p {
  margin: 0;
  color: #3d484a;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mk-rec-theme-copy a {
  margin-top: auto;
  color: #2449E8;
  font-weight: 750;
  text-decoration: none;
}

.mk-rec-theme-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mk-rec-note {
  max-width: 40rem;
  margin: 28px auto 0;
  text-align: center;
  color: #3d484a;
  line-height: 1.5;
}

.mk-rec-note a {
  color: #2449E8;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .mk-rec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .mk-rec-hosts {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .mk-rec-host.is-pick {
    order: -1;
  }
}

@media (max-width: 640px) {
  .mk-rec-grid {
    grid-template-columns: 1fr;
  }
}
