/* R9: a single type system over the frozen legacy styles.
   Russo One is a 400-only display face: never synthesize bold on it.
   Onest supplies all running text, subheads, labels, numbers and controls. */
body.night-city.night-unified {
  --font-body: "Onest", Arial, sans-serif;
  --font-display: "Russo One", "Onest", sans-serif;
  --text-body: 18px;
  --text-small: 14px;
  --text-label: 12px;
  --text-subhead: clamp(22px, 2vw, 28px);
  font-family: var(--font-body);
}

/* A bounded family reset is needed because the imported theme contains
   unrelated Manrope/DM Mono declarations on individual cards and labels. */
body.night-city.night-unified :is(main, .nav, .mobile-buy) :not(svg, svg *, h1, h2, h1 *, h2 *) {
  font-family: var(--font-body) !important;
}
body.night-city.night-unified main :is(h1, h2) {
  font-family: var(--font-display);
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: -.025em;
}
body.night-city.night-unified main :is(h1, h2) :is(span, mark) {
  font-family: inherit;
  font-weight: inherit;
}
body.night-city.night-unified main > section:not(#benefits):not(.hero) h2 {
  font-size: var(--site-title-size);
  line-height: 1.16;
  letter-spacing: -.025em;
  text-shadow: none;
  text-wrap: balance;
}
body.night-city.night-unified main :is(h3, h4) {
  font-family: var(--font-body);
  font-size: var(--text-subhead) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em;
  text-transform: none;
  text-wrap: balance;
}
body.night-city.night-unified #alo-ecosystem .alo-tool h3,
body.night-city.night-unified main .eco-time h3 {
  font-size: var(--text-subhead) !important;
  font-weight: 600;
  line-height: 1.3;
}
body.night-city.night-unified main h4 {
  font-size: 20px !important;
  line-height: 1.4 !important;
}
body.night-city.night-unified #benefits h2 {
  font-family: var(--font-body);
  font-size: var(--text-subhead);
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-transform: none;
}

/* These are content roles, not a blanket font-size reset on controls or SVGs.
   Important only defeats the old per-section type declarations. */
body.night-city.night-unified main :is(p, li, dd, dt) {
  font-size: var(--copy-size, var(--text-body)) !important;
  font-weight: var(--copy-weight, 400) !important;
  line-height: var(--copy-leading, 1.65) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-wrap: pretty;
}
body.night-city.night-unified main :is(p, li) :is(strong, b),
body.night-city.night-unified main :is(summary, .sale-countdown-copy strong) {
  font-weight: 600 !important;
}
body.night-city.night-unified main summary {
  font-size: var(--text-body);
  line-height: 1.5;
}
body.night-city.night-unified main :is(figcaption, small, .money-hint, .eco-note, .photo-caption, .sr-status, .course-gallery-caption, .secret-bonus-note, .installment-note) {
  --copy-size: var(--text-small);
  --copy-leading: 1.5;
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.5;
}
body.night-city.night-unified main :is(.eco-kicker, .course-included, .care-status, .price-kicker, .secret-bonus-tag, .ai-rail-head > span) {
  --copy-size: var(--text-label);
  --copy-leading: 1.5;
  --copy-weight: 600;
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.night-city.night-unified main :is(.helpers-outcome, .texture-transition-copy p, .speed-layout p, .care-copy, .ai-lead) {
  --copy-size: var(--text-body);
  --copy-weight: 400;
  --copy-leading: 1.65;
}
body.night-city.night-unified :is(.button, .secret-bonus-link, .mobile-buy > a) {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .025em;
}
body.night-city.night-unified main .review-redesigned h4 {
  font-size: 20px;
  font-weight: 600;
}

/* The hero keeps its compact display scale and the approved image placement.
   Its supporting text is no longer a 12–14px miniature. */
body.night-city.night-unified .hero-copy .intro-note {
  --copy-size: 14px;
  --copy-leading: 1.5;
  --copy-weight: 500;
  text-transform: none;
}
body.night-city.night-unified .hero-copy .hero-included,
body.night-city.night-unified .hero-copy .hero-included :is(p, li) {
  --copy-size: 16px;
  --copy-leading: 1.6;
  --copy-weight: 400;
  font-size: 16px;
  font-weight: 400;
}
body.night-city.night-unified .hero-copy .hero-included > p {
  --copy-weight: 600;
}

/* Keep the owner's left-hand ornament, but give it its own safe line above
   the speed title instead of painting an 86px bar across the first word. */
body.night-city.night-unified #workflow .speed-layout,
body.night-city.night-unified #care .care-grid,
body.night-city.night-unified #orders > .wrap,
body.night-city.night-unified #course > .wrap {
  padding-top: 56px;
}
body.night-city.night-unified #workflow .speed-layout::before,
body.night-city.night-unified #care .care-grid::before,
body.night-city.night-unified #orders > .wrap::before,
body.night-city.night-unified #course > .wrap::before {
  top: 0;
}
body.night-city.night-unified #workflow .speed-layout::after,
body.night-city.night-unified #care .care-grid::after,
body.night-city.night-unified #orders > .wrap::after,
body.night-city.night-unified #course > .wrap::after {
  top: 0;
}
body.night-city.night-unified #workflow .speed-layout p::before {
  font: 600 var(--text-label)/1.5 var(--font-body);
  letter-spacing: .08em;
  margin-bottom: 12px;
}

/* Pricing is read as content, not fine print. Every tier uses the same size. */
body.night-city.night-unified #pricing .price-card h3 {
  font: 600 var(--text-subhead)/1.3 var(--font-body);
  letter-spacing: -.02em;
  text-transform: none;
}
body.night-city.night-unified #pricing .price-card h3 small {
  display: block;
  margin-top: 8px;
  font: 400 var(--text-small)/1.5 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
body.night-city.night-unified #pricing .price-card > ul > li {
  --copy-size: var(--text-body);
  --copy-leading: 1.6;
  --copy-weight: 400;
  padding-block: 10px;
}
body.night-city.night-unified #pricing .price-card > ul {
  gap: 0;
}
body.night-city.night-unified #pricing .price-card > ul > li::before {
  top: calc(10px + .65em);
}
body.night-city.night-unified #pricing .price-card .credits {
  padding: 20px 0 22px;
  margin-top: 12px;
  border-block: 1px solid var(--line);
  background: transparent;
  color: var(--tariff-accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
}
body.night-city.night-unified #pricing .credits strong {
  display: block;
  font: 600 clamp(24px, 2.1vw, 30px)/1.25 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
body.night-city.night-unified #pricing .credits span {
  display: block;
  margin-top: 8px;
  color: var(--tariff-ink);
  font: 400 16px/1.5 var(--font-body);
}
body.night-city.night-unified #pricing .price {
  font: 600 clamp(36px, 3.2vw, 46px)/1.15 var(--font-body);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
body.night-city.night-unified #pricing .sale-price .old-price {
  font: 400 18px/1.4 var(--font-body);
  letter-spacing: 0;
}
body.night-city.night-unified #pricing .sale-price .current-price {
  font: inherit;
}
body.night-city.night-unified #pricing .sale-price .discount-label {
  font: 600 var(--text-label)/1.2 var(--font-body);
  letter-spacing: .03em;
}
body.night-city.night-unified #pricing .installment-note {
  --copy-size: var(--text-small);
  --copy-leading: 1.5;
}

/* A full-width final chapter: oversized brand lettering, a restrained signal
   line and clear navigation. No new marketing copy or external links. */
body.night-city.night-unified .foot {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 6vw, 88px) 0 30px;
  color: var(--paper);
  background: #080f13 !important;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
}
body.night-city.night-unified .foot > .wrap {
  position: relative;
  width: var(--site-content-width);
  max-width: var(--site-content-max);
  margin-inline: auto;
}
body.night-city.night-unified .foot :not(svg, svg *) {
  font-family: var(--font-body);
}
.foot-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
body.night-city.night-unified .foot .foot-wordmark {
  display: block;
  min-width: 0;
  font: 400 clamp(44px, 10.5vw, 154px)/1 var(--font-display) !important;
  font-synthesis: none;
  letter-spacing: -.03em;
  color: var(--cyan);
}
body.night-city.night-unified .foot .foot-top {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: 6px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(92,224,218,.5);
  color: var(--cyan);
  font: 500 12px/1.3 var(--font-body);
  transition: background 200ms ease-out, color 200ms ease-out;
}
.foot-top svg { width: 24px; height: 24px; transition: transform 200ms ease-out; }
body.night-city.night-unified .foot .foot-top:hover {
  background: var(--cyan);
  color: var(--ink);
}
.foot-top:hover svg { transform: translateY(-3px); }
.foot-signal {
  position: relative;
  height: 1px;
  margin-bottom: 42px;
  overflow: hidden;
  background: rgba(92,224,218,.24);
}
.foot-signal::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 15%;
  background: var(--red);
  animation: foot-signal 14s linear infinite;
}
@keyframes foot-signal { to { transform: translateX(670%); } }
body.night-city.night-unified .foot-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}
body.night-city.night-unified .foot .foot-brand {
  margin: 0 0 16px;
  color: var(--paper);
  font: 600 24px/1.3 var(--font-body);
  letter-spacing: -.02em;
  text-transform: none;
}
body.night-city.night-unified .foot .foot-intro {
  --copy-size: 16px;
  max-width: 40ch;
  margin: 0 0 24px;
  color: #bdccce;
  font: 400 16px/1.65 var(--font-body) !important;
}
body.night-city.night-unified .foot .foot-label {
  margin-bottom: 18px;
  color: #bdccce;
  font: 600 14px/1.5 var(--font-body) !important;
  letter-spacing: 0;
  text-transform: none;
}
body.night-city.night-unified .foot-links { gap: 4px; }
body.night-city.night-unified .foot .foot-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 10px;
  min-height: 44px;
  color: var(--paper);
  font: 400 16px/1.5 var(--font-body);
  text-wrap: pretty;
  transition: color 200ms ease-out;
}
.foot-links a svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  transition: transform 200ms ease-out;
}
body.night-city.night-unified .foot .foot-links a:hover { color: var(--cyan); }
.foot-links a:hover svg { transform: translate(2px, -2px); }
body.night-city.night-unified .foot-bottom {
  gap: 14px 28px;
  align-items: flex-start;
  margin-top: 42px;
  padding-top: 24px;
  color: #a9bfc1;
  font: 400 13px/1.6 var(--font-body);
}
body.night-city.night-unified .foot-bottom span { max-width: 65ch; }
body.night-city.night-unified .foot a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  body.night-city.night-unified { --text-body: 16px; --text-subhead: 24px; }
  body.night-city.night-unified .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  body.night-city.night-unified .foot-grid > div:first-child { grid-column: 1 / -1; }
  body.night-city.night-unified .foot .foot-top { width: 56px; height: 56px; }
  body.night-city.night-unified .foot .foot-wordmark { font-size: clamp(40px, 10.5vw, 96px) !important; }
}
@media (max-width: 600px) {
  body.night-city.night-unified { --text-subhead: 22px; }
  body.night-city.night-unified main h4 { font-size: 18px !important; }
  body.night-city.night-unified .foot { padding-bottom: 112px; }
  body.night-city.night-unified .foot .foot-wordmark { font-size: 10.2vw !important; }
  .foot-signature { gap: 16px; margin-bottom: 28px; }
  body.night-city.night-unified .foot .foot-top { width: 48px; height: 52px; font-size: 11px; }
  .foot-top svg { width: 20px; height: 20px; }
  .foot-signal { margin-bottom: 30px; }
  body.night-city.night-unified .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  body.night-city.night-unified .foot .foot-label { margin-bottom: 6px; }
  body.night-city.night-unified .foot-grid > nav[aria-label="Разделы сайта"] .foot-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.night-city.night-unified .foot-bottom { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-signal::after { animation: none; }
  .foot-top svg, .foot-links a svg { transition: none; }
  .foot-top:hover svg, .foot-links a:hover svg { transform: none; }
}
