:root {
  --text: #fefdff;
  --primary: #bb00d9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050308;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.advertise-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 4, 11, 0.86), rgba(8, 4, 11, 0.96)),
    #050308;
}

.advertise-hero {
  position: relative;
  min-height: 226px;
  padding: 30px 0 72px;
  overflow: visible;
  background: #24122b;
  z-index: 10;
  isolation: isolate;
}

.advertise-band {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: url("./features-pattern.svg");
  background-position: top center;
  background-repeat: repeat;
  background-size: 940px auto;
  opacity: 0.92;
  filter: blur(0.6px);
  z-index: 0;
  pointer-events: none;
}

.glass-nav,
.nav-menu-panel {
  position: relative;
  z-index: 2;
}

.glass-nav {
  width: min(1240px, calc(100vw - 48px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background:
    linear-gradient(90deg, rgba(60, 59, 59, 0.08), rgba(60, 59, 59, 0.08)),
    linear-gradient(160deg, rgba(241, 152, 255, 0.08), rgba(246, 187, 255, 0.08));
}

.advertise-page.is-menu-open .glass-nav {
  z-index: 6;
}

.icon-button,
.lang-button,
.pill-button,
.nav-menu-link,
.nav-install-card {
  border: 0;
  background: transparent;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button img {
  width: 40px;
  height: 40px;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-logo {
  width: 45px;
  height: 60px;
  transform: scale(2.18);
  transform-origin: center;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #fefdff;
  font-size: 16px;
}

.lang-button img {
  width: 20px;
  height: 20px;
}

.pill-button {
  min-width: 82px;
  height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
}

.pill-button-light {
  background: #f6f6f6;
  color: #bb00d9;
  border: 1px solid #e9e8ea;
}

.pill-button-primary {
  background: #bb00d9;
  color: #fff;
  border: 1px solid #bb00d9;
}

.nav-menu-panel {
  position: absolute;
  top: 112px;
  left: max(24px, calc(50% - 632px + 12px));
  width: min(790px, calc(100vw - 48px));
  height: 456px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 40px 30px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(31, 18, 48, 0.97), rgba(24, 13, 35, 0.98)),
    rgba(27, 17, 40, 0.98);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -18px, 0);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1),
    visibility 0s linear 240ms;
  will-change: transform, opacity;
}

.advertise-page.is-menu-open .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.nav-menu-panel::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 30px;
  height: 20px;
  background: rgba(31, 18, 48, 0.98);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.nav-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 78px;
}

.nav-menu-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.nav-menu-column-right {
  gap: 28px;
}

.nav-menu-link {
  display: inline-block;
  padding: 0;
  color: #fefdff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.65px;
  text-align: left;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.nav-menu-link:hover {
  opacity: 0.82;
}

.nav-install-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 24px;
}

.nav-install-card {
  width: 345px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 2px solid rgba(105, 102, 105, 0.9);
  border-radius: 18px;
  background: #020202;
  color: #fefdff;
  text-align: left;
}

.nav-install-card img {
  width: 38px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-install-card span:last-child {
  max-width: 200px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.42px;
}

.page-title {
  position: relative;
  z-index: 2;
  margin: 52px 0 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 49px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.advertise-sheet {
  background: #fff;
  color: #201728;
  min-height: 1096px;
  padding: 42px 60px 96px;
}

.advertise-content {
  max-width: 1270px;
  margin: 0 auto;
}

.ad-block + .ad-block {
  margin-top: 34px;
}

.ad-block h2 {
  margin: 0 0 4px;
  font-family: "Inter", sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.24;
  color: #23172a;
}

.ad-block h3 {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: #23172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ad-block p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(66, 57, 76, 0.78);
}

.ad-block p + p {
  margin-top: 22px;
}

.video-frame {
  width: min(332px, 100%);
  margin-top: 24px;
  aspect-ratio: 332 / 217;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.advertise-footer {
  background: #24122b;
  padding: 34px 0 52px;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.store-badge {
  width: 171px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #5f5d5d;
  border-radius: 8px;
  background: #0c0c0e;
  color: #fff;
  text-decoration: none;
}

.store-badge img {
  width: 32px;
  height: 38px;
  object-fit: contain;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge small {
  font-size: 12px;
  opacity: 0.78;
}

.store-badge strong {
  font-size: 12px;
  font-weight: 500;
}

.footer-row {
  max-width: 1410px;
  margin: 36px auto 0;
  padding: 0 100px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-mark {
  position: relative;
  width: 72px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
}

.footer-brand img {
  position: absolute;
  top: -18px;
  left: -11px;
  width: 94px;
  height: 125px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  padding-top: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 56px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .glass-nav,
  .nav-menu-panel {
    width: calc(100vw - 24px);
  }

  .page-title {
    font-size: 40px;
  }

  .advertise-sheet {
    min-height: 0;
    padding: 42px 28px 56px;
  }

  .nav-menu-panel {
    top: 92px;
    left: clamp(16px, 4vw, 28px);
    right: clamp(16px, 4vw, 28px);
    width: auto;
    height: auto;
    padding: 24px;
    border-radius: 26px;
  }

  .nav-menu-panel::before {
    left: 48px;
  }

  .nav-menu-grid {
    column-gap: 32px;
  }

  .nav-menu-column,
  .nav-menu-column-right {
    gap: 16px;
  }

  .nav-menu-link {
    font-size: 18px;
  }

  .nav-install-row {
    gap: 12px;
    margin-top: 18px;
  }

  .nav-install-card {
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;
  }

  .nav-install-card img {
    width: 34px;
    height: 36px;
  }

  .nav-install-card span:last-child {
    max-width: none;
    font-size: 14px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 clamp(16px, 4vw, 28px) 0;
  }

  .footer-brand {
    gap: 14px;
  }

  .footer-brand-mark {
    width: 62px;
    height: 76px;
  }

  .footer-brand img {
    top: -16px;
    left: -10px;
    width: 84px;
    height: 112px;
  }

  .footer-brand p {
    padding-top: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }
}

@media (max-width: 760px) {
  .advertise-hero {
    min-height: 190px;
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .advertise-band {
    background-size: 700px auto;
  }

  .glass-nav {
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    gap: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-button {
    display: none;
  }

  .pill-button {
    min-width: 68px;
    height: 34px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .page-title {
    margin-top: 38px;
    font-size: 28px;
  }

  .nav-menu-panel {
    top: 86px;
    padding: 20px;
    border-radius: 28px;
  }

  .nav-menu-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu-link {
    font-size: 18px;
  }

  .nav-install-row {
    flex-direction: column;
  }

  .advertise-sheet {
    padding: 18px 18px 28px;
  }

  .ad-block h2 {
    font-size: 20px;
  }

  .ad-block h3 {
    font-size: 18px;
  }

  .store-row {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: min(300px, 100%);
  }
}
