.marketing-subpage {
  --shell-text: var(--text, #f5efe8);
  --shell-muted: var(--muted, #beb5ad);
  --shell-accent: var(--accent, #efb15e);
  --shell-accent-soft: var(--accent-soft, #f4cc96);
  --shell-shadow: var(--shadow, 0 24px 72px rgba(0, 0, 0, 0.45));
}

.marketing-subpage--article .page > .header,
.marketing-subpage--pricing .shell > .logo-center,
.marketing-subpage--pricing .pricing-back-wrap {
  display: none;
}

.marketing-shell-top {
  position: relative;
  z-index: 120;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 8px;
}

.marketing-shell-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.marketing-shell-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marketing-shell-top .top-logo {
  width: clamp(40px, 4vw, 60px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(233, 146, 0, 0.24));
}

.marketing-shell-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.marketing-shell-top .nav-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: var(--shell-shadow);
}

.marketing-shell-top .nav-pill,
.marketing-shell-top .lang-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #06080d;
  color: var(--shell-text);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.marketing-shell-top .nav-pill:hover,
.marketing-shell-top .lang-select:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 177, 94, 0.35);
  box-shadow: 0 8px 22px rgba(239, 177, 94, 0.14);
}

.marketing-shell-lang-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.marketing-shell-top .lang-select {
  appearance: none;
  min-width: 78px;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(245, 239, 232, 0.82) 50%),
    linear-gradient(135deg, rgba(245, 239, 232, 0.82) 50%, transparent 50%);
  background-position: calc(100% - 14px) 17px, calc(100% - 9px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.marketing-shell-top .burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 13, 0.9);
  cursor: pointer;
  z-index: 200;
  transition: border-color 0.12s ease;
  flex-shrink: 0;
}

.marketing-shell-top .burger:hover {
  border-color: rgba(239, 177, 94, 0.45);
}

.marketing-shell-top .burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--shell-text);
  border-radius: 2px;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.marketing-shell-top .burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.marketing-shell-top .burger.open span:nth-child(2) {
  opacity: 0;
}

.marketing-shell-top .burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.marketing-shell-top .nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 100;
  border-radius: 20px;
  padding: 10px;
  background: rgba(6, 8, 14, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  gap: 4px;
}

.marketing-shell-top .nav-drawer.open {
  display: flex;
}

.marketing-shell-top .drawer-pill {
  display: block;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--shell-text);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.marketing-shell-top .drawer-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(239, 177, 94, 0.25);
}

.marketing-shell-footer.footer {
  width: min(980px, 94vw);
  margin: 34px auto 0;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(184, 184, 184, 0.85);
  font-size: 12px;
  border: 1px solid rgba(255, 204, 153, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 204, 153, 0.035), rgba(0, 0, 0, 0.24));
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.marketing-shell-footer .footer-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 22px;
  align-items: start;
}

.marketing-shell-footer .footer-col {
  min-width: 0;
}

.marketing-shell-footer .footer-col + .footer-col {
  position: relative;
  padding-left: 26px;
}

.marketing-shell-footer .footer-col + .footer-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 204, 153, 0) 0%,
    rgba(255, 204, 153, 0.16) 22%,
    rgba(255, 204, 153, 0.16) 78%,
    rgba(255, 204, 153, 0) 100%
  );
}

.marketing-shell-footer .footer-col--product {
  justify-self: center;
  text-align: center;
}

.marketing-shell-footer .footer-col--legal {
  justify-self: end;
  text-align: right;
}

.marketing-shell-footer .footer-brand-logo {
  display: block;
  width: clamp(58px, 6.6vw, 84px);
  height: auto;
  margin: 0 0 8px;
  opacity: 0.96;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.marketing-shell-footer .footer-tagline {
  margin-top: 5px;
  color: rgba(184, 184, 184, 0.9);
  font-size: 11.8px;
  line-height: 1.35;
}

.marketing-shell-footer .footer-copy {
  margin-top: 7px;
  color: rgba(184, 184, 184, 0.82);
  font-size: 11.5px;
  line-height: 1.35;
}

.marketing-shell-footer .footer-col-title {
  color: rgba(255, 204, 153, 0.94);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.marketing-shell-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.marketing-shell-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(255, 204, 153, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 204, 153, 0.18);
  padding-bottom: 0;
  font-size: 10.8px;
  line-height: 1.35;
}

.marketing-shell-footer .footer-links a::before {
  content: "\2022";
  color: rgba(255, 204, 153, 0.66);
  margin-right: 5px;
  font-size: 9px;
  transform: translateY(-0.5px);
}

.marketing-shell-footer .footer-links a:hover {
  border-bottom-color: rgba(255, 204, 153, 0.55);
  color: rgba(255, 204, 153, 0.98);
}

.marketing-shell-footer .footer-links--product {
  width: max-content;
  margin-inline: auto;
  align-items: flex-start;
}

.marketing-shell-footer .footer-links--legal {
  width: max-content;
  margin-left: auto;
  align-items: flex-start;
}

.marketing-shell-footer .footer-contact-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 153, 0.2);
  background: linear-gradient(180deg, rgba(255, 204, 153, 0.08), rgba(0, 0, 0, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(184, 184, 184, 0.9);
  font-size: 11.4px;
  line-height: 1.35;
  text-align: center;
}

.marketing-shell-footer .footer-contact-card a {
  color: rgba(255, 204, 153, 0.95);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 204, 153, 0.28);
}

.marketing-shell-footer .footer-contact-card a:hover {
  border-bottom-color: rgba(255, 204, 153, 0.58);
}

.marketing-shell-modal {
  position: fixed;
  inset: 0;
  z-index: 10720;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.marketing-shell-modal.is-open {
  display: flex;
}

.marketing-shell-modal .modal-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translate(-50%, 8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 153, 0.26);
  background: rgba(0, 0, 0, 0.74);
  color: rgba(255, 204, 153, 0.96);
  padding: 5px 10px;
  font-size: 9px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.marketing-shell-modal.is-hint-visible .modal-hint {
  opacity: 0.96;
  transform: translate(-50%, 0);
}

.marketing-shell-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.marketing-shell-modal .modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, 96vw);
  max-height: min(72vh, 640px);
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 68, 118, 0.48), #0f1624 22%, rgba(10, 18, 34, 0.98));
  border: 1px solid rgba(138, 164, 208, 0.32);
  box-shadow: 0 28px 90px rgba(3, 8, 18, 0.74);
  display: flex;
  flex-direction: column;
}

.marketing-shell-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  margin: 0;
  background: linear-gradient(180deg, rgba(16, 29, 55, 0.98), #0b1220);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(138, 164, 208, 0.24);
}

.marketing-shell-modal .modal-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: rgba(255, 204, 153, 0.95);
}

.marketing-shell-modal .modal-body {
  padding: 14px 16px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.marketing-shell-modal .modal-body p,
.marketing-shell-modal .modal-body li {
  color: rgba(184, 184, 184, 0.95);
  font-size: 13px;
  line-height: 1.55;
}

.marketing-shell-modal .modal-body ul,
.marketing-shell-modal .modal-body ol {
  margin: 10px 0 0;
  padding-left: 18px;
}

.marketing-shell-modal .modal-body a,
.marketing-shell-modal .modal-body a:visited {
  color: #ffcc99;
  text-decoration: none;
  font-weight: 600;
}

.marketing-shell-modal .modal-body a:hover {
  text-decoration: underline;
}

.marketing-shell-modal .policy-lang-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(138, 164, 208, 0.24);
  background: rgba(13, 27, 52, 0.46);
  color: rgba(255, 204, 153, 0.94);
  font-size: 12px;
  line-height: 1.45;
}

.marketing-shell-modal .privacy-policy.is-justify p,
.marketing-shell-modal .privacy-policy.is-justify li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.marketing-shell-modal .privacy-policy h2,
.marketing-shell-modal .privacy-policy h3,
.marketing-shell-modal .privacy-policy h4 {
  color: rgba(255, 204, 153, 0.95);
}

.marketing-shell-modal .policy-separator {
  border: 0;
  border-top: 1px solid rgba(138, 164, 208, 0.24);
  margin: 22px 0;
}

.marketing-shell-modal .modal-body .contact-block {
  margin-top: 8px;
  text-align: center;
}

.marketing-shell-modal .modal-body .contact-logo {
  display: block;
  height: 36px;
  margin: 0 auto 14px auto;
  opacity: 0.9;
}

.marketing-shell-modal .modal-body .contact-block p,
.marketing-shell-modal .modal-body .contact-block ul,
.marketing-shell-modal .modal-body .contact-block li,
.marketing-shell-modal .modal-body .contact-block strong,
.marketing-shell-modal .modal-body .contact-block span {
  text-align: center;
}

.marketing-shell-modal .modal-body .contact-block ul {
  padding-left: 0;
  list-style: none;
  margin-top: 14px;
}

.marketing-shell-modal .modal-body .contact-block li {
  max-width: 720px;
  margin: 0 auto 14px;
}

.marketing-shell-modal .modal-body .contact-block span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

.marketing-subpage.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .marketing-shell-top {
    width: min(1240px, calc(100% - 32px));
    padding-top: 26px;
  }

  .marketing-shell-topbar {
    justify-content: flex-start;
    padding-right: 92px;
  }

  .marketing-shell-top .nav-wrap {
    display: none;
  }

  .marketing-shell-top .burger {
    display: flex;
  }

  .marketing-shell-lang-wrap {
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 900px) {
  .marketing-shell-footer.footer {
    width: min(860px, calc(100% - 32px));
    padding: 14px 12px 12px;
    text-align: center;
    border-radius: 14px;
  }

  .marketing-shell-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  .marketing-shell-footer .footer-col {
    padding: 12px 0;
    text-align: center;
  }

  .marketing-shell-footer .footer-col--brand {
    grid-column: 1 / -1;
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 204, 153, 0.12);
    margin-bottom: 2px;
  }

  .marketing-shell-footer .footer-brand-logo {
    width: clamp(54px, 19vw, 72px);
    margin: 0 auto 8px;
  }

  .marketing-shell-footer .footer-col + .footer-col {
    padding-left: 0;
    border-top: none;
  }

  .marketing-shell-footer .footer-col + .footer-col::before {
    display: none;
  }

  .marketing-shell-footer .footer-col--product {
    justify-self: center;
    text-align: center;
    padding-right: 10px;
  }

  .marketing-shell-footer .footer-col--legal {
    position: relative;
    justify-self: center;
    text-align: center;
    padding-left: 10px;
  }

  .marketing-shell-footer .footer-col--legal::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(
      180deg,
      rgba(255, 204, 153, 0) 0%,
      rgba(255, 204, 153, 0.24) 22%,
      rgba(255, 204, 153, 0.24) 78%,
      rgba(255, 204, 153, 0) 100%
    );
  }

  .marketing-shell-footer .footer-col-title {
    margin-bottom: 6px;
  }

  .marketing-shell-footer .footer-links {
    align-items: center;
    gap: 6px;
  }

  .marketing-shell-footer .footer-links--product,
  .marketing-shell-footer .footer-links--legal {
    width: min(160px, 100%);
    margin-inline: auto;
    align-items: flex-start;
  }

  .marketing-shell-footer .footer-contact-card {
    margin-top: 8px;
    border-radius: 12px;
    padding: 11px 12px;
    flex-direction: column;
    gap: 6px;
  }
}
