/* Маркетинговые HTML-страницы: midnight-токены лендинга, без CDN и glow. */
@import url("/fonts.css");

:root,
html.on-seo,
html[data-theme="midnight"] {
  --brand: #0052FF;
  --brand-hover: #0046DB;
  --ink: #EDEEF2;
  --muted: #A6A8B8;
  --page: #15161A;
  --sheet: #1C1D24;
  --surface: #262731;
  --line: #33343F;
  --ok: #30D158;
  --bad: #FF453A;
  --skel-a: #262731;
  --skel-b: #33343F;
  --sel-bg: #ffffff;
  --sel-fg: #15161A;
  --sex-female: #FF4F8B;
  --radius: 16px;
  --font: Inter, system-ui, sans-serif;
  --display: Manrope, Inter, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --dur: .55s;
  --dur-fast: .28s;
}

html.on-seo,
html.on-seo body,
.seo-body {
  margin: 0;
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
}

.seo-body {
  position: relative;
  overflow-x: hidden;
}

.seo-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.seo-ornament {
  position: absolute;
  display: block;
  opacity: .11;
  filter: invert(1);
  user-select: none;
}

.seo-ornament.is-swirl {
  left: -24px;
  bottom: 8%;
  width: min(280px, 72vw);
  transform: rotate(-12deg);
}

.seo-ornament.is-corner {
  right: -16px;
  top: 12%;
  width: min(160px, 42vw);
  transform: rotate(16deg);
}

.seo-ornament.is-fleuron {
  left: 50%;
  top: 24px;
  width: min(180px, 48vw);
  transform: translateX(-50%);
}

.seo-ornament.is-leaf {
  right: -8px;
  bottom: 16%;
  width: min(168px, 46vw);
  transform: rotate(8deg) scaleX(-1);
}

.seo-oval {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(720px, calc(100% - 24px));
  margin: 8px auto 0;
  padding: 4px 4px 4px 12px;
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sheet);
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.seo-brand img {
  display: block;
  width: 24px;
  height: 24px;
  background: none;
}

.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--sel-bg);
  color: var(--sel-fg);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.seo-btn-sm {
  padding: 4px 14px;
  min-height: 32px;
  min-width: 0;
  height: 32px;
  font-size: 14px;
  border-radius: 999px;
}

@media (hover: hover) {
  .seo-btn:hover:not(:disabled) { opacity: .92; }
}

.seo-btn:active:not(:disabled) {
  transform: scale(.985);
  opacity: .94;
}

.seo-btn:focus-visible,
.seo-brand:focus-visible,
.seo-card:focus-visible,
.seo-form select:focus-visible,
.seo-form input:focus-visible,
.seo-form button:focus-visible,
.seo-pick:focus-visible,
.seo-step-btn:focus-visible,
.seo-sex-btn:focus-visible,
.seo-article a:focus-visible,
.seo-links a:focus-visible,
.seo-crumbs a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.seo-btn:disabled { opacity: .6; }

.seo-main {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 24px auto 64px;
}

.seo-main h1 {
  margin: 0 0 12px;
  max-width: 22em;
  font-family: var(--display);
  font-size: clamp(24px, 5.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  text-wrap: balance;
}

.seo-main h2 {
  margin: 24px 0 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.seo-main h3 {
  margin: 16px 0 8px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
}

.seo-lead,
.seo-article p,
.seo-meaning,
.seo-note {
  margin: 0 0 16px;
  max-width: 42em;
}

.seo-meta,
.seo-note {
  color: var(--muted);
  font-size: 16px;
}

.seo-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--muted);
}

.seo-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}

.seo-crumbs a,
.seo-article a,
.seo-links a,
.seo-related a {
  color: var(--ink);
}

.seo-cards {
  display: grid;
  gap: 12px;
}

.seo-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--sheet);
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.seo-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.seo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (hover: hover) {
  .seo-card:hover { opacity: .92; }
}

.seo-card:active {
  transform: scale(.985);
  opacity: .94;
}

.seo-cta {
  margin: 32px 0;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--sheet);
  text-align: center;
}

.seo-cta h2 {
  margin: 0 0 8px;
}

.seo-cta p {
  margin: 0 0 16px;
  color: var(--muted);
}

.seo-form {
  display: grid;
  gap: 16px;
  margin: 8px 0 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--sheet);
}

.seo-field {
  display: grid;
  gap: 8px;
}

.seo-field-label {
  font-size: 14px;
  color: var(--muted);
}

.seo-form input,
.seo-form select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.seo-sex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seo-sex-btn {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.seo-sex-btn.is-male[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.seo-sex-btn.is-female[aria-pressed="true"] {
  background: var(--sex-female);
  color: #fff;
  border-color: transparent;
}

.seo-step {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
}

.seo-step-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.seo-step-mid {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

.seo-step-mid input {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.seo-step-mid input::-webkit-outer-spin-button,
.seo-step-mid input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.seo-step-unit {
  font-size: 14px;
  color: var(--muted);
}

.seo-pick-wrap {
  position: relative;
}

.seo-pick {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.seo-pick::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -4px;
}

.seo-pick-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 8;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.seo-pick-list [role="option"] {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.seo-pick-list [role="option"][aria-selected="true"],
.seo-pick-list [role="option"]:hover {
  background: var(--surface);
}

.seo-range-row {
  display: grid;
  gap: 8px;
}

.seo-range-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.seo-range-head strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.seo-range {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.seo-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--pct, 50%), var(--line) var(--pct, 50%));
}

.seo-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.seo-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
}

.seo-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
}

.seo-hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.seo-macro-bar,
.seo-bmi-bar {
  display: flex;
  height: 8px;
  margin: 12px auto 0;
  max-width: 280px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
  position: relative;
}

.seo-macro-bar .is-p { background: var(--ok); }
.seo-macro-bar .is-f { background: var(--brand); }
.seo-macro-bar .is-c { background: var(--muted); }

.seo-bmi-bar {
  background: linear-gradient(90deg, #3B82F6 0 18%, var(--ok) 18% 46%, #F5A524 46% 68%, var(--bad) 68% 100%);
}

.seo-bmi-bar i {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 16px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--ink);
}

@media (hover: hover) {
  .seo-step-btn:hover:not(:disabled),
  .seo-sex-btn:hover:not([aria-pressed="true"]),
  .seo-pick:hover {
    opacity: .92;
  }
}

.seo-step-btn:active:not(:disabled),
.seo-sex-btn:active,
.seo-pick:active {
  transform: scale(.985);
  opacity: .94;
}

.seo-step-btn:disabled,
.seo-sex-btn:disabled {
  opacity: .6;
}

.seo-result {
  margin: 0 0 16px;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--sheet);
  text-align: center;
}

.seo-result-num {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 16px;
}

.seo-table caption {
  text-align: left;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 800;
}

.seo-table th,
.seo-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.seo-faq details {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--sheet);
}

.seo-faq summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.seo-links {
  margin: 24px 0;
}

.seo-related ul {
  margin: 0;
  padding-left: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .seo-btn,
  .seo-card,
  .seo-step-btn,
  .seo-sex-btn,
  .seo-pick {
    transition: none;
  }
  .seo-btn:active:not(:disabled),
  .seo-card:active,
  .seo-step-btn:active:not(:disabled),
  .seo-sex-btn:active,
  .seo-pick:active {
    transform: none;
  }
}

body.lite-motion .seo-btn:active:not(:disabled),
body.android .seo-btn:active:not(:disabled),
body.lite-motion .seo-card:active,
body.android .seo-card:active,
body.lite-motion .seo-step-btn:active:not(:disabled),
body.android .seo-step-btn:active:not(:disabled),
body.lite-motion .seo-sex-btn:active,
body.android .seo-sex-btn:active,
body.lite-motion .seo-pick:active,
body.android .seo-pick:active {
  transform: none;
}

body.android .seo-ornaments {
  display: none;
}
