:root {
  color-scheme: light;
  --bg: #e8e3d8;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: #202020;
  --muted: #746f66;
  --line: rgba(89, 76, 38, 0.08);
  --line-strong: rgba(141, 124, 74, 0.08);
  --chip-active: #e9d08a;
  --chip-text: #6b5a2f;
  --card-shadow: 0 20px 40px rgba(60, 48, 24, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --container: 1180px;
  --drawer-bg: rgba(238, 233, 223, 0.96);
  --drawer-link-bg: rgba(255, 255, 255, 0.45);
  --drawer-link-hover: rgba(231, 203, 109, 0.18);
  --theme-option-bg: rgba(255, 255, 255, 0.58);
  --theme-option-border: rgba(141, 124, 74, 0.08);
  --page-gradient:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, #ece7dc 0%, var(--bg) 32%, #e6e1d6 100%);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #13110e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f4ede2;
  --muted: rgba(238, 229, 214, 0.66);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(245, 195, 56, 0.14);
  --chip-active: rgba(245, 195, 56, 0.18);
  --chip-text: #f4d67f;
  --card-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
  --drawer-bg: rgba(18, 16, 13, 0.96);
  --drawer-link-bg: rgba(255, 255, 255, 0.04);
  --drawer-link-hover: rgba(245, 195, 56, 0.08);
  --theme-option-bg: rgba(255, 255, 255, 0.04);
  --theme-option-border: rgba(255, 255, 255, 0.08);
  --page-gradient:
    radial-gradient(circle at top center, rgba(245, 195, 56, 0.12), transparent 28%),
    linear-gradient(180deg, #171410 0%, #13110e 38%, #100e0c 100%);
}

:root[data-theme='light'] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-gradient);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand__emoji {
  font-size: 1.35rem;
}

.icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 6px 18px rgba(47, 38, 17, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.button {
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.catalog__cta:hover,
.card__action:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button--ghost {
  min-height: 48px;
  padding: 0 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 18px rgba(60, 48, 24, 0.05);
}

.hero {
  padding-top: 54px;
}

.hero--promo {
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.hero h1,
.catalog h2 {
  margin: 0;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(1.22rem, 5.4vw, 4rem);
  line-height: 0.98;
  max-width: 1180px !important;
  white-space: normal;
}

.hero-demo {
  position: relative;
  margin-top: 34px;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 896 / 563;
  box-shadow: var(--card-shadow);
  background: rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.hero-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(20, 16, 4, 0.08) 0%, rgba(20, 16, 4, 0.18) 36%, rgba(10, 10, 12, 0.34) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hero-demo:hover::after,
.hero-demo:focus-within::after {
  opacity: 1;
}

.hero-demo__media {
  position: absolute;
  inset: 0;
}

.hero-demo__media--light {
  display: block;
}

.hero-demo__media--dark {
  display: none;
}

.hero-demo img,
.hero-demo__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-demo__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6d769 0%, #e7cb6d 100%);
  color: #3f2d00;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 34px rgba(231, 203, 109, 0.32), 0 0 0 1px rgba(255, 241, 193, 0.55) inset;
  transform: translate(-50%, calc(-50% + 14px)) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.hero-demo:hover .hero-demo__cta,
.hero-demo:focus-within .hero-demo__cta {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hero-demo__cta:hover,
.hero-demo__cta:focus-visible {
  box-shadow: 0 18px 42px rgba(231, 203, 109, 0.42), 0 0 28px rgba(245, 214, 99, 0.34), 0 0 0 1px rgba(255, 245, 210, 0.72) inset;
}

.catalog {
  padding-top: 10px;
  padding-bottom: 84px;
}

.catalog__intro {
  margin-bottom: 32px;
}

.catalog h2 {
  font-size: clamp(2rem, 4.7vw, 3.7rem);
  line-height: 0.97;
}

.cards-grid {
  display: grid;
  gap: 26px;
}

.cards-grid--landing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  min-height: 0;
  aspect-ratio: 0.78;
  border: none;
  padding: 0;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: var(--card-shadow);
  isolation: isolate;
}

.card__image {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center center;
}

.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: #443f38;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
}

.card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.12) 6%, rgba(9, 11, 16, 0.26) 38%, rgba(9, 11, 16, 0.62) 100%);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: opacity 180ms ease;
}

.card:hover .card__overlay,
.card:focus-within .card__overlay,
.card.is-touch-active .card__overlay {
  opacity: 1;
  pointer-events: auto;
}

.card__prompt {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.24);
}

.card__actions {
  display: flex;
  gap: 10px;
}

.card__action {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.card__action:hover {
  background: rgba(255, 255, 255, 0.22);
}

.card__action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 203, 109, 0.32);
}

.card__action:active {
  transform: translateY(1px);
}

.card__action--primary {
  color: #2f2507;
  background: #e7cb6d;
  border-color: rgba(151, 118, 18, 0.28);
  box-shadow: 0 10px 24px rgba(151, 118, 18, 0.24);
}

.card__action--primary:hover {
  background: #efd57e;
  border-color: rgba(151, 118, 18, 0.38);
}

.card__action--primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 245, 196, 0.8), 0 0 0 6px rgba(231, 203, 109, 0.38);
}

.card__action--primary:active {
  background: #dcc05f;
  box-shadow: 0 6px 14px rgba(151, 118, 18, 0.22);
}

.card__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.card__action-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 44px;
}

.catalog__actions--promo {
  justify-content: flex-start;
}

.catalog__cta {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.catalog__cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e7cb6d;
  color: #5d4a0d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(151, 118, 18, 0.22);
}

.catalog__cta-icon svg {
  width: 20px;
  height: 20px;
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--muted);
}

.footer__meta {
  margin-bottom: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer__links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal {
  max-width: 1100px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: min(420px, calc(100vw - 24px));
  padding: 24px;
  background: var(--drawer-bg);
  backdrop-filter: blur(26px);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 42px rgba(39, 31, 13, 0.12);
  transform: translateX(calc(-100% - 16px));
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 36px;
}

.drawer__link {
  min-height: 58px;
  border-radius: 20px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  background: var(--drawer-link-bg);
  border: 1px solid var(--line-strong);
  font-size: 1.02rem;
}

.drawer__link--button {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.drawer__link--current {
  background: rgba(231, 203, 109, 0.24);
  color: var(--chip-text);
}

.drawer__footer {
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.drawer__footer p {
  margin: 0;
}


.drawer__scroll {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 34px;
}

.drawer__section {
  display: grid;
  gap: 12px;
}

.drawer__section--settings {
  gap: 10px;
}

.drawer__section-label {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.drawer__link {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
}

.drawer__link:hover {
  background: var(--drawer-link-hover);
}

.drawer__link-side {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

.theme-group {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.theme-option {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--theme-option-border);
  background: var(--theme-option-bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-option:hover {
  background: var(--drawer-link-hover);
}

.theme-option.is-selected {
  border-color: rgba(245, 195, 56, 0.24);
  background: rgba(245, 195, 56, 0.12);
}

.hidden {
  display: none !important;
}

.icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
}

.icon-theme::before,
.icon-grid::before,
.icon-arrow::before {
  content: '';
  position: absolute;
  display: block;
}

.icon-theme::before {
  inset: 2px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.icon-grid::before {
  inset: 1px;
  border-radius: 5px;
  border: 2px solid currentColor;
  box-shadow:
    7px 0 0 -5px currentColor,
    0 7px 0 -5px currentColor,
    7px 7px 0 -5px currentColor;
}

.icon-arrow::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  top: 4px;
  left: 3px;
  transform: rotate(45deg);
}

:root[data-theme='light'] .hero-demo__media--light {
  display: block;
}

:root[data-theme='light'] .hero-demo__media--dark {
  display: none;
}

:root[data-theme='dark'] .hero-demo__media--light {
  display: none;
}

:root[data-theme='dark'] .hero-demo__media--dark {
  display: block;
}

:root[data-theme='dark'] .button--ghost {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .icon-button,
:root[data-theme='dark'] .hero-demo,
:root[data-theme='dark'] .card,
:root[data-theme='dark'] .footer {
  border-color: var(--line);
}

:root[data-theme='dark'] .catalog__cta-icon {
  background: rgba(245, 195, 56, 0.92);
  color: #342401;
}

:root[data-theme='dark'] .hero-demo__cta {
  background: linear-gradient(180deg, #f6d769 0%, #efc94d 100%);
  color: #342401;
  box-shadow: 0 18px 40px rgba(239, 201, 77, 0.36), 0 0 0 1px rgba(255, 234, 160, 0.28) inset;
}

:root[data-theme='dark'] .hero-demo__cta:hover,
:root[data-theme='dark'] .hero-demo__cta:focus-visible {
  box-shadow: 0 20px 48px rgba(239, 201, 77, 0.44), 0 0 30px rgba(245, 214, 99, 0.4), 0 0 0 1px rgba(255, 238, 184, 0.4) inset;
}

:root[data-theme='dark'] .footer__links a {
  color: var(--text);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(20, 20, 24, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  transform: translate(-50%, 24px);
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: rgba(18, 18, 22, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .cards-grid--landing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .card__overlay {
    padding: 20px;
  }

  .card__prompt {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .card__action {
    min-height: 46px;
    padding: 0 12px;
    gap: 8px;
  }

  .card__action-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header {
    padding-top: 12px;
  }

  .header__left {
    gap: 12px;
  }

  .button--ghost,
  .icon-button {
    min-height: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(1.12rem, 5.3vw, 2.05rem);
  }

  .hero-demo {
    margin-top: 24px;
    border-radius: 24px;
  }

  .catalog {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .cards-grid--landing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card {
    border-radius: 24px;
    aspect-ratio: 0.72;
  }

  .card__badge {
    display: none;
  }

  .card__overlay {
    opacity: 0;
    pointer-events: none;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(9, 11, 16, 0.04) 0%, rgba(9, 11, 16, 0.1) 36%, rgba(9, 11, 16, 0.58) 100%);
  }

  .card.is-touch-active .card__overlay,
  .card:focus-within .card__overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .card__prompt {
    font-size: 0.82rem;
    line-height: 1.38;
    -webkit-line-clamp: 4;
  }

  .card__actions {
    gap: 8px;
  }

  .card__action {
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
  }

  .card__icon {
    width: 18px;
    height: 18px;
  }

  .card__action-text {
    display: none;
  }

  .catalog__actions {
    padding-top: 28px;
  }

  .catalog__cta {
    font-size: 1.25rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }
}


@media (max-width: 640px) {
  .drawer {
    width: min(392px, calc(100vw - 16px));
    padding: 20px;
  }

  .drawer__scroll {
    gap: 24px;
    padding-top: 26px;
  }

  .drawer__link {
    min-height: 54px;
    border-radius: 18px;
  }

  .theme-option {
    min-height: 40px;
  }
}


@media (max-width: 390px) {
  .card__prompt {
    -webkit-line-clamp: 3;
  }
}


@media (max-width: 480px) {
  .hero h1 {
    white-space: normal;
    line-height: 1.02;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* prompt archive refresh: numbered cards with visible titles */
.card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0) 0%, rgba(8, 10, 14, 0.18) 34%, rgba(8, 10, 14, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}
.card__footer {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.card__index,
.card__overlay-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
}
.card__meta { min-width: 0; }
.card__title {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}
.card__subtitle {
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 0.86rem;
  line-height: 1.3;
}
.card__overlay-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.card__title--overlay { font-size: 1.06rem; }
.card__subtitle--overlay { color: rgba(255,255,255,.7); }
.card__overlay { justify-content: space-between; }
.card__prompt {
  -webkit-line-clamp: 8;
  font-size: 0.95rem;
}
@media (max-width: 767px) {
  .card__footer { inset: auto 14px 14px; }
  .card__index, .card__overlay-index { min-width: 40px; height: 40px; padding: 0 10px; }
  .card__title { font-size: 1rem; }
  .card__prompt { font-size: 0.9rem; -webkit-line-clamp: 7; }
}

/* 2026-04-23 step5: favor sky palette */
:root {
  --bg: #f4f8ff;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --text: #173252;
  --muted: #6782a6;
  --line: rgba(88, 124, 178, 0.12);
  --line-strong: rgba(96, 149, 225, 0.16);
  --chip-active: #ddeafe;
  --chip-text: #35608f;
  --card-shadow: 0 22px 48px rgba(72, 112, 170, 0.12);
  --drawer-bg: rgba(244, 249, 255, 0.96);
  --drawer-link-bg: rgba(255, 255, 255, 0.58);
  --drawer-link-hover: rgba(112, 177, 255, 0.16);
  --theme-option-bg: rgba(255, 255, 255, 0.7);
  --theme-option-border: rgba(96, 149, 225, 0.14);
  --page-gradient:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.74), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 34%, #edf4ff 100%);
}

:root[data-theme='dark'] {
  --bg: #07111f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(18, 34, 58, 0.42);
  --text: #eef4ff;
  --muted: rgba(209, 224, 247, 0.72);
  --line: rgba(141, 178, 236, 0.12);
  --line-strong: rgba(109, 170, 255, 0.2);
  --chip-active: rgba(109, 170, 255, 0.18);
  --chip-text: #b7d5ff;
  --card-shadow: 0 28px 58px rgba(3, 8, 18, 0.44);
  --drawer-bg: rgba(8, 18, 35, 0.96);
  --drawer-link-bg: rgba(255, 255, 255, 0.04);
  --drawer-link-hover: rgba(104, 166, 255, 0.12);
  --theme-option-bg: rgba(255, 255, 255, 0.05);
  --theme-option-border: rgba(255, 255, 255, 0.08);
  --page-gradient:
    radial-gradient(circle at top center, rgba(105, 168, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #0c1730 0%, #07111f 42%, #040a14 100%);
}

.theme-option.is-selected {
  border-color: rgba(98, 173, 255, 0.24);
  background: rgba(98, 173, 255, 0.12);
}

.hero-demo__cta {
  background: linear-gradient(180deg, #9fd2ff 0%, #63aeff 100%);
  color: #07254b;
  box-shadow: 0 18px 40px rgba(99, 174, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.58) inset;
}

.hero-demo__cta:hover,
.hero-demo__cta:focus-visible {
  box-shadow: 0 20px 46px rgba(99, 174, 255, 0.38), 0 0 28px rgba(140, 204, 255, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.card__action:focus-visible {
  box-shadow: 0 0 0 3px rgba(98, 173, 255, 0.24);
}

.card__action--primary {
  color: #08264c;
  background: linear-gradient(180deg, #a1d3ff 0%, #67b1ff 100%);
  border-color: rgba(72, 129, 202, 0.22);
  box-shadow: 0 10px 24px rgba(86, 145, 221, 0.22);
}

.card__action--primary:hover {
  background: linear-gradient(180deg, #b5ddff 0%, #7dbdff 100%);
  border-color: rgba(72, 129, 202, 0.28);
}

.card__action--primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.84), 0 0 0 6px rgba(98, 173, 255, 0.3);
}

.card__action--primary:active {
  background: #5ba9ff;
  box-shadow: 0 8px 18px rgba(86, 145, 221, 0.18);
}

.catalog__cta-icon {
  background: #73b7ff;
  color: #07254b;
  box-shadow: 0 10px 20px rgba(99, 174, 255, 0.22);
}

:root[data-theme='dark'] .catalog__cta-icon {
  background: rgba(114, 183, 255, 0.92);
  color: #041d40;
}

:root[data-theme='dark'] .hero-demo__cta {
  background: linear-gradient(180deg, #a7d8ff 0%, #6bb4ff 100%);
  color: #041d40;
  box-shadow: 0 20px 44px rgba(94, 171, 255, 0.34), 0 0 0 1px rgba(209, 231, 255, 0.18) inset;
}

:root[data-theme='dark'] .hero-demo__cta:hover,
:root[data-theme='dark'] .hero-demo__cta:focus-visible {
  box-shadow: 0 24px 52px rgba(94, 171, 255, 0.42), 0 0 30px rgba(144, 205, 255, 0.28), 0 0 0 1px rgba(220, 236, 255, 0.26) inset;
}

/* 2026-04-23 step6: landing white light theme + stronger sky cleanup */
:root[data-theme='light'] {
  --bg: #f5f9ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #173252;
  --muted: #6782a6;
  --line: rgba(88, 124, 178, 0.12);
  --line-strong: rgba(104, 177, 255, 0.18);
  --chip-active: rgba(104, 177, 255, 0.12);
  --chip-text: #2b5988;
  --drawer-bg: rgba(248, 251, 255, 0.97);
  --drawer-link-bg: rgba(255, 255, 255, 0.72);
  --drawer-link-hover: rgba(104, 177, 255, 0.12);
  --theme-option-bg: rgba(255, 255, 255, 0.86);
  --theme-option-border: rgba(88, 124, 178, 0.12);
  --page-gradient:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 38%, #eef5ff 100%);
}

:root[data-theme='light'] .button--ghost,
:root[data-theme='light'] .icon-button,
:root[data-theme='light'] .hero-demo,
:root[data-theme='light'] .card,
:root[data-theme='light'] .footer,
:root[data-theme='light'] .drawer__link,
:root[data-theme='light'] .theme-option {
  background: rgba(255,255,255,.9) !important;
  border-color: rgba(88, 124, 178, 0.12) !important;
}

:root[data-theme='light'] .hero-demo__cta,
:root[data-theme='light'] .card__action--primary {
  background: linear-gradient(180deg, #b8e1ff 0%, #72b8ff 100%) !important;
  color: #08264c !important;
  border-color: rgba(104, 177, 255, 0.28) !important;
  box-shadow: 0 16px 32px rgba(104, 177, 255, 0.20), 0 0 0 1px rgba(255,255,255,.62) inset !important;
}

:root[data-theme='light'] .hero-demo__cta:hover,
:root[data-theme='light'] .hero-demo__cta:focus-visible,
:root[data-theme='light'] .card__action--primary:hover,
:root[data-theme='light'] .card__action--primary:focus-visible {
  box-shadow: 0 18px 40px rgba(104, 177, 255, 0.28), 0 0 26px rgba(160, 216, 255, 0.22), 0 0 0 1px rgba(255,255,255,.74) inset !important;
}

:root[data-theme='light'] .catalog__cta-icon {
  background: #72b8ff !important;
  color: #08264c !important;
  box-shadow: 0 10px 20px rgba(104, 177, 255, 0.22) !important;
}

/* 2026-05-25: Favor static landing prompt cards use portrait previews */
.card {
  aspect-ratio: 3 / 4;
}

/* 2026-04-29: Favor landing cropped card backgrounds white */
.card,
.card__image {
  background: #fff;
}


/* trust logos marquee — compact heading, selective mono logo inversion, 2026-05-07 */
.favor-trust-section{padding:clamp(34px,5.4vw,64px) 0;overflow:hidden;background:transparent;border:0;opacity:.82}
.favor-trust-section h2{width:min(1120px,calc(100% - 40px));margin:0 auto 18px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:clamp(17px,1.6vw,22px);font-weight:400;line-height:1.35;letter-spacing:-.025em;color:var(--muted,#5f6a81);text-align:left}
.favor-trust-marquee{position:relative;width:100%;overflow:hidden;mask-image:none;-webkit-mask-image:none}
.favor-trust-track{display:flex;width:max-content;animation:favorTrustMarquee 46s linear infinite;will-change:transform}
.favor-trust-marquee:hover .favor-trust-track{animation-play-state:paused}
.favor-trust-set{display:flex;align-items:center;gap:clamp(34px,5vw,76px);padding-inline:clamp(17px,2.5vw,38px)}
.favor-trust-logo{display:block;flex:0 0 auto;width:auto;height:clamp(46px,6vw,82px);max-width:clamp(150px,18vw,260px);object-fit:contain;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;filter:none!important}
:root[data-theme='light'] .favor-trust-logo[src$='adler-school.webp'],:root[data-theme='light'] .favor-trust-logo[src$='holy-trinity-chelyabinsk.webp'],:root[data-theme='light'] .favor-trust-logo[src$='st-nicholas-essentuki.webp'],.favor-trust-logo[src$='adler-school.webp'],.favor-trust-logo[src$='holy-trinity-chelyabinsk.webp'],.favor-trust-logo[src$='st-nicholas-essentuki.webp']{filter:brightness(0) saturate(100%) invert(12%) sepia(25%) saturate(1320%) hue-rotate(179deg) brightness(88%) contrast(108%)!important}
@keyframes favorTrustMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (max-width:640px){.favor-trust-section{padding:30px 0 40px}.favor-trust-section h2{width:min(100% - 32px,1120px);margin-bottom:16px;text-align:left;font-size:16px}.favor-trust-marquee{mask-image:none;-webkit-mask-image:none}.favor-trust-track{animation-duration:56s}.favor-trust-set{gap:34px;padding-inline:17px}.favor-trust-logo{height:52px;max-width:168px}}
@media (prefers-reduced-motion:reduce){.favor-trust-track{animation:none;transform:none;flex-wrap:wrap;justify-content:center;width:auto}.favor-trust-marquee{mask-image:none;-webkit-mask-image:none}.favor-trust-set[aria-hidden="true"]{display:none}.favor-trust-set{flex-wrap:wrap;justify-content:center}}

/* Support project donation — Favor DS, 2026-05-07 */
.support-project-button{min-height:40px;padding:0 16px;border:1px solid rgba(201,149,0,.18);border-radius:999px;background:linear-gradient(180deg,rgba(245,195,56,.18),rgba(245,195,56,.08));color:var(--text,#173252);font:inherit;font-size:14px;font-weight:700;letter-spacing:-.01em;box-shadow:0 12px 28px rgba(201,149,0,.10);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.support-project-button:hover{transform:translateY(-1px);border-color:rgba(201,149,0,.30);box-shadow:0 18px 34px rgba(201,149,0,.16)}
.support-modal-backdrop{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(12,18,32,.34);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.support-modal-backdrop.hidden{display:none!important}
.support-modal-card{width:min(100%,460px);border-radius:34px;padding:24px;border:1px solid var(--line,rgba(23,50,82,.10));background:linear-gradient(180deg,rgba(255,253,248,.96),rgba(245,240,231,.94));box-shadow:0 28px 88px rgba(23,50,82,.20);color:var(--text,#173252)}
.support-modal-title{font-size:clamp(28px,4vw,38px);line-height:1;letter-spacing:-.055em;font-weight:400}.support-modal-sub{max-width:34ch}.support-form{display:grid;gap:16px;margin-top:18px}.support-field{display:grid;gap:8px;color:var(--muted,#6782a6);font-size:13px;font-weight:700}.support-amount-input{width:100%;height:58px;border:1px solid rgba(23,50,82,.10);border-radius:22px;background:rgba(255,255,255,.72);padding:0 18px;color:var(--text,#173252);font:inherit;font-size:26px;font-weight:700;letter-spacing:-.04em;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.support-amount-input:focus{border-color:rgba(65,154,236,.45);box-shadow:0 0 0 4px rgba(65,154,236,.12)}.support-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.support-presets button{min-height:42px;border:1px solid rgba(23,50,82,.10);border-radius:16px;background:rgba(255,255,255,.58);color:var(--text,#173252);font:inherit;font-size:14px;font-weight:700;cursor:pointer}.support-presets button.is-active{border-color:rgba(201,149,0,.30);background:rgba(245,195,56,.18)}.support-note{margin:0;color:var(--muted,#6782a6);font-size:13px;line-height:1.55}.support-submit{min-height:52px;border:0;border-radius:18px;background:linear-gradient(135deg,#7cc7ff,#f5c338);color:#173252;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 18px 42px rgba(65,154,236,.22)}.support-error{min-height:18px;color:#b42318;font-size:13px;font-weight:700}
:root:not([data-theme='light']) .support-project-button{background:linear-gradient(180deg,rgba(245,195,56,.20),rgba(245,195,56,.10));color:#f7eed8;border-color:rgba(245,195,56,.24)}:root:not([data-theme='light']) .support-modal-card{background:linear-gradient(180deg,rgba(28,29,32,.96),rgba(20,21,24,.94));color:var(--text,#f7eed8)}:root:not([data-theme='light']) .support-amount-input,:root:not([data-theme='light']) .support-presets button{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:var(--text,#f7eed8)}
@media(max-width:720px){.support-project-button{min-height:38px;padding:0 12px;font-size:13px}.support-modal-card{border-radius:28px;padding:20px}.support-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-right .support-project-button{display:none}.header .support-project-button{display:none}}
.support-project-button--hero{margin-top:18px;min-height:46px;padding-inline:20px}.hero--promo .support-project-button--hero{margin:6px 0 24px;align-self:flex-start}@media(max-width:720px){.support-project-button--hero{display:inline-flex!important;align-items:center;justify-content:center;width:auto;min-height:44px;margin-top:16px}.hero--promo .support-project-button--hero{margin:0 0 20px}}

.support-modal-card #supportModalClose{flex:0 0 auto;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:999px!important;border:1px solid rgba(23,50,82,.08)!important;background:rgba(255,255,255,.54)!important;color:var(--muted,#6782a6)!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;font-size:22px!important;line-height:1!important}.support-modal-card #supportModalClose:hover{background:rgba(255,255,255,.82)!important;color:var(--text,#173252)!important}:root:not([data-theme='light']) .support-modal-card #supportModalClose{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important;color:rgba(247,238,216,.72)!important}:root:not([data-theme='light']) .support-modal-card #supportModalClose:hover{background:rgba(255,255,255,.14)!important;color:var(--text,#f7eed8)!important}
.support-modal-card .modal-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important}.support-modal-card .modal-head>div:first-child{min-width:0!important;flex:1 1 auto!important}.support-modal-card .modal-head #supportModalClose{margin-left:auto!important}

/* Support project — live Favor sky palette correction, 2026-05-07 */
.support-project-button{border-color:rgba(104,177,255,.24)!important;background:rgba(255,255,255,.96)!important;color:#173252!important;box-shadow:0 12px 28px rgba(72,112,170,.10)!important}.support-project-button:hover{border-color:rgba(104,177,255,.36)!important;background:rgba(247,251,255,.98)!important;box-shadow:0 18px 34px rgba(104,177,255,.16)!important}.support-modal-card{background:linear-gradient(180deg,rgba(255,255,255,.985),rgba(255,255,255,.965))!important;border-color:rgba(88,124,178,.10)!important;box-shadow:0 28px 88px rgba(72,112,170,.20)!important;color:#173252!important}.support-modal-sub,.support-field,.support-note{color:#6782a6!important}.support-amount-input{background:rgba(255,255,255,.96)!important;border-color:rgba(88,124,178,.12)!important;color:#173252!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 10px 28px rgba(72,112,170,.08)!important}.support-amount-input:focus{border-color:rgba(104,177,255,.45)!important;box-shadow:0 0 0 4px rgba(104,177,255,.13),0 10px 28px rgba(72,112,170,.08)!important}.support-presets button{background:rgba(255,255,255,.96)!important;border-color:rgba(88,124,178,.12)!important;color:#173252!important;box-shadow:0 8px 20px rgba(72,112,170,.07)!important}.support-presets button.is-active{background:rgba(104,177,255,.10)!important;border-color:rgba(104,177,255,.30)!important;color:#244971!important;box-shadow:0 10px 24px rgba(104,177,255,.13)!important}.support-submit{background:linear-gradient(180deg,#b8e1ff,#72b8ff)!important;color:#08264c!important;border:1px solid rgba(104,177,255,.34)!important;box-shadow:0 16px 30px rgba(104,177,255,.20)!important}.support-submit:hover{transform:translateY(-1px);box-shadow:0 20px 38px rgba(104,177,255,.24)!important}.support-modal-card #supportModalClose{background:rgba(255,255,255,.96)!important;border-color:rgba(88,124,178,.12)!important;color:#6782a6!important}.support-modal-card #supportModalClose:hover{background:rgba(247,251,255,.98)!important;color:#173252!important}:root:not([data-theme='light']) .support-project-button{background:rgba(18,34,58,.70)!important;border-color:rgba(141,178,236,.16)!important;color:#eef4ff!important;box-shadow:0 18px 44px rgba(3,8,18,.25)!important}:root:not([data-theme='light']) .support-modal-card{background:linear-gradient(180deg,rgba(18,34,58,.96),rgba(12,24,43,.94))!important;border-color:rgba(141,178,236,.13)!important;box-shadow:0 30px 90px rgba(3,8,18,.42)!important;color:#eef4ff!important}:root:not([data-theme='light']) .support-modal-sub,:root:not([data-theme='light']) .support-field,:root:not([data-theme='light']) .support-note{color:rgba(209,224,247,.72)!important}:root:not([data-theme='light']) .support-amount-input,:root:not([data-theme='light']) .support-presets button{background:rgba(255,255,255,.06)!important;border-color:rgba(141,178,236,.14)!important;color:#eef4ff!important}:root:not([data-theme='light']) .support-presets button.is-active{background:rgba(104,177,255,.14)!important;border-color:rgba(104,177,255,.28)!important;color:#dceeff!important}:root:not([data-theme='light']) .support-submit{background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;color:#07264c!important;border-color:rgba(104,177,255,.34)!important}:root:not([data-theme='light']) .support-modal-card #supportModalClose{background:rgba(255,255,255,.08)!important;border-color:rgba(141,178,236,.14)!important;color:rgba(209,224,247,.72)!important}

/* Support CTA moved to calm bottom placement, 2026-05-07 */
.support-bottom-section{width:min(100%,980px);margin:clamp(18px,4vw,44px) auto clamp(26px,5vw,58px);padding:0 0}.page-shell>.support-bottom-section{width:min(1120px,calc(100% - 40px));margin-top:clamp(24px,4vw,52px)}.support-bottom-card{display:flex;align-items:center;justify-content:space-between;gap:clamp(18px,4vw,48px);padding:clamp(20px,3vw,30px);border:1px solid rgba(88,124,178,.10);border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.64));box-shadow:0 18px 48px rgba(72,112,170,.10);color:var(--text,#173252)}.support-bottom-kicker{margin:0 0 8px;color:var(--accent,#68b1ff);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.support-bottom-card h2{margin:0 0 8px;font:inherit;font-size:clamp(24px,2.7vw,34px);font-weight:400;line-height:1.05;letter-spacing:-.045em;color:var(--text,#173252)}.support-bottom-card p:not(.support-bottom-kicker){margin:0;max-width:58ch;color:var(--muted,#6782a6);font-size:15px;line-height:1.55}.support-project-button--bottom{flex:0 0 auto;min-height:46px;padding-inline:20px}@media(max-width:720px){.support-bottom-section,.page-shell>.support-bottom-section{width:min(100% - 24px,980px);margin:26px auto 34px}.support-bottom-card{display:grid;gap:18px;align-items:start;padding:20px;border-radius:24px}.support-bottom-card h2{font-size:26px}.support-bottom-card p:not(.support-bottom-kicker){font-size:14px}.support-project-button--bottom{width:100%;justify-content:center}}:root:not([data-theme='light']) .support-bottom-card{background:linear-gradient(180deg,rgba(18,34,58,.62),rgba(12,24,43,.55));border-color:rgba(141,178,236,.12);box-shadow:0 24px 70px rgba(3,8,18,.26)}

/* Support CTA final: no kicker + live prompt-button gradient, 2026-05-07 */
.support-bottom-kicker{display:none!important}.support-project-button--bottom{background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;color:#fff!important;border-color:rgba(104,177,255,.38)!important;text-shadow:0 1px 1px rgba(7,38,76,.22)!important;box-shadow:0 16px 30px rgba(104,177,255,.22)!important}.support-project-button--bottom:hover{background:linear-gradient(180deg,#b8e1ff,#72b8ff)!important;color:#fff!important;box-shadow:0 20px 38px rgba(104,177,255,.26)!important}:root:not([data-theme='light']) .support-project-button--bottom{background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;color:#fff!important;border-color:rgba(104,177,255,.38)!important}

/* NCDT Favor landing footer: remove white background, 2026-05-07 */
:root[data-theme='light'] .footer{background:transparent!important;box-shadow:none!important}.footer{background:transparent!important}

/* Favor trust logos: refined dark recolor without filled circles, 2026-05-07 */
:root:not([data-theme='light']) .favor-trust-logo,
:root[data-theme='dark'] .favor-trust-logo,
[data-theme='dark'] .favor-trust-logo{
  opacity:.9!important;
}
:root:not([data-theme='light']) .favor-trust-logo[src$='adler-school.webp'],
:root:not([data-theme='light']) .favor-trust-logo[src$='holy-trinity-chelyabinsk.webp'],
:root:not([data-theme='light']) .favor-trust-logo[src$='st-nicholas-essentuki.webp'],
:root[data-theme='dark'] .favor-trust-logo[src$='adler-school.webp'],
:root[data-theme='dark'] .favor-trust-logo[src$='holy-trinity-chelyabinsk.webp'],
:root[data-theme='dark'] .favor-trust-logo[src$='st-nicholas-essentuki.webp'],
[data-theme='dark'] .favor-trust-logo[src$='adler-school.webp'],
[data-theme='dark'] .favor-trust-logo[src$='holy-trinity-chelyabinsk.webp'],
[data-theme='dark'] .favor-trust-logo[src$='st-nicholas-essentuki.webp']{
  filter:brightness(0) invert(1) contrast(1.08)!important;
}
:root:not([data-theme='light']) .favor-trust-logo[src$='orenburg-eparchy.webp'],
:root:not([data-theme='light']) .favor-trust-logo[src$='matrona-kurgan.webp'],
:root:not([data-theme='light']) .favor-trust-logo[src$='adler-temple.webp'],
:root[data-theme='dark'] .favor-trust-logo[src$='orenburg-eparchy.webp'],
:root[data-theme='dark'] .favor-trust-logo[src$='matrona-kurgan.webp'],
:root[data-theme='dark'] .favor-trust-logo[src$='adler-temple.webp'],
[data-theme='dark'] .favor-trust-logo[src$='orenburg-eparchy.webp'],
[data-theme='dark'] .favor-trust-logo[src$='matrona-kurgan.webp'],
[data-theme='dark'] .favor-trust-logo[src$='adler-temple.webp']{
  filter:grayscale(1) invert(1) brightness(1.34) contrast(1.18)!important;
}
:root[data-theme='light'] .favor-trust-logo[src$='orenburg-eparchy.webp'],
:root[data-theme='light'] .favor-trust-logo[src$='matrona-kurgan.webp'],
:root[data-theme='light'] .favor-trust-logo[src$='adler-temple.webp']{
  filter:none!important;
}

/* Support popup donation presets, 2026-05-08 */
.support-presets--donation{grid-template-columns:1fr!important;gap:10px!important}
.support-presets--donation button{display:grid!important;grid-template-columns:minmax(84px,auto) 1fr!important;align-items:center!important;gap:12px!important;min-height:64px!important;padding:12px 14px!important;text-align:left!important;border-radius:18px!important}
.support-preset-amount{font-size:18px;font-weight:850;letter-spacing:-.03em;white-space:nowrap}
.support-preset-label{font-size:12.5px;font-weight:650;line-height:1.35;color:var(--muted,#6782a6)}
:root:not([data-theme='light']) .support-preset-label{color:rgba(209,224,247,.72)}
@media(max-width:420px){.support-presets--donation button{grid-template-columns:1fr!important;gap:5px!important}.support-preset-label{font-size:12px}}

/* Support popup mobile compact 2x2 presets, 2026-05-08 */
@media(max-width:720px){
  .support-presets--donation{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .support-presets--donation button{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;min-height:74px!important;padding:10px 11px!important;border-radius:16px!important;text-align:left!important}
  .support-presets--donation .support-preset-amount{font-size:16px!important;font-weight:650!important;line-height:1.05!important;letter-spacing:-.025em!important}
  .support-presets--donation .support-preset-label{font-size:10.5px!important;font-weight:450!important;line-height:1.22!important;letter-spacing:-.01em!important}
}
@media(max-width:420px){
  .support-presets--donation{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .support-presets--donation button{grid-template-columns:none!important}
}

/* seo-geo-cro-growth-20260508 */
.seo-growth-section{margin:clamp(36px,6vw,72px) auto 0;padding:0 0 2px}.seo-growth-panel{border:1px solid var(--border,rgba(255,255,255,.12));background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border-radius:28px;padding:clamp(22px,4vw,38px);box-shadow:0 24px 80px rgba(0,0,0,.18)}:root[data-theme='light'] .seo-growth-panel{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.82));border-color:rgba(15,23,42,.1);box-shadow:0 18px 60px rgba(15,23,42,.08)}.seo-growth-section h2{margin:0 0 14px;font-size:clamp(1.65rem,3vw,2.45rem);line-height:1.08;letter-spacing:-.04em}.seo-growth-section h3{margin:0 0 8px;font-size:1rem}.seo-growth-lead{margin:0;color:var(--muted,rgba(255,255,255,.72));font-size:clamp(1rem,1.7vw,1.15rem);line-height:1.65;max-width:860px}.seo-growth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}.seo-growth-card{padding:18px;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}:root[data-theme='light'] .seo-growth-card{background:rgba(15,23,42,.035);border-color:rgba(15,23,42,.08)}.seo-growth-card p{margin:0;color:var(--muted,rgba(255,255,255,.68));line-height:1.52;font-size:.95rem}.seo-growth-list{margin:18px 0 0;padding:0;display:grid;gap:10px;list-style:none}.seo-growth-list li{position:relative;padding-left:22px;color:var(--muted,rgba(255,255,255,.72));line-height:1.55}.seo-growth-list li:before{content:'•';position:absolute;left:0;color:var(--accent,#facc15);font-weight:900}.seo-growth-faq{margin-top:24px;display:grid;gap:12px}.seo-growth-faq details{border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:14px 16px;background:rgba(0,0,0,.08)}:root[data-theme='light'] .seo-growth-faq details{border-color:rgba(15,23,42,.08);background:rgba(15,23,42,.03)}.seo-growth-faq summary{cursor:pointer;font-weight:750}.seo-growth-faq p{margin:10px 0 0;color:var(--muted,rgba(255,255,255,.7));line-height:1.55}.seo-growth-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.seo-growth-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:800}.seo-growth-actions .primary{background:var(--accent,#facc15);color:#161102}.seo-growth-actions .secondary{border:1px solid rgba(255,255,255,.16);color:inherit;background:rgba(255,255,255,.06)}:root[data-theme='light'] .seo-growth-actions .secondary{border-color:rgba(15,23,42,.12);background:rgba(15,23,42,.035)}@media(max-width:860px){.seo-growth-grid{grid-template-columns:1fr}.seo-growth-panel{border-radius:22px;padding:22px}.seo-growth-actions a{width:100%}}

/* Favor entity CTA color fix, 2026-05-08 */
.seo-growth-actions .primary[href*="favor.ncdt.ru"]{
  background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;
  color:#fff!important;
  border-color:rgba(104,177,255,.38)!important;
  text-shadow:0 1px 1px rgba(7,38,76,.22)!important;
  box-shadow:0 16px 30px rgba(104,177,255,.22)!important;
}
.seo-growth-actions .primary[href*="favor.ncdt.ru"]:hover{
  filter:brightness(1.02);
}

/* Favor native entity section, 2026-05-08 */
.favor-entity-native{padding-top:clamp(36px,6vw,76px)!important;padding-bottom:clamp(42px,7vw,86px)!important}.favor-entity-native__intro{max-width:980px}.favor-entity-native__intro p{max-width:780px;margin:14px 0 0;color:var(--muted,#6782a6);font-size:clamp(1rem,1.45vw,1.12rem);line-height:1.62}.favor-entity-native__grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:26px;align-items:stretch;margin-top:30px}.favor-entity-native__card{position:relative;min-height:430px;border-radius:32px;overflow:hidden;isolation:isolate;box-shadow:var(--card-shadow);background:rgba(255,255,255,.22)}.favor-entity-native__card img{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);object-fit:cover;object-position:center}.favor-entity-native__card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,12,22,.04) 0%,rgba(5,12,22,.18) 42%,rgba(5,12,22,.66) 100%);z-index:1}.favor-entity-native__copy{position:absolute;left:22px;right:22px;bottom:22px;z-index:2;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.34)}.favor-entity-native__copy span{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;margin-bottom:12px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(12px);font-size:.82rem;font-weight:700;color:rgba(255,255,255,.92);text-shadow:none}.favor-entity-native__copy h3{margin:0;max-width:540px;font-size:clamp(1.45rem,2.4vw,2.2rem);line-height:1.05;letter-spacing:-.045em;font-weight:400}.favor-entity-native__copy p{margin:10px 0 0;max-width:560px;color:rgba(255,255,255,.78);font-size:.98rem;line-height:1.5}.favor-entity-native__notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}.favor-entity-native__notes div{padding:0 0 0 18px;border-left:1px solid rgba(104,177,255,.32)}.favor-entity-native__notes b{display:block;margin-bottom:5px;color:var(--text,#173252);font-weight:500;letter-spacing:-.015em}.favor-entity-native__notes span{display:block;color:var(--muted,#6782a6);font-size:.94rem;line-height:1.52}.favor-entity-native__actions{align-items:center;justify-content:flex-start;gap:16px;margin-top:28px}.favor-entity-native__cta{width:auto!important;min-width:210px;text-decoration:none;background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;color:#fff!important;border-color:rgba(104,177,255,.38)!important;text-shadow:0 1px 1px rgba(7,38,76,.22)!important;box-shadow:0 16px 30px rgba(104,177,255,.22)!important}.favor-entity-native__link{color:var(--muted,#6782a6);text-decoration:none;font-weight:700}.favor-entity-native__link:hover{color:var(--text,#173252)}:root:not([data-theme='light']) .favor-entity-native__notes b{color:var(--text,#f7eed8)}:root:not([data-theme='light']) .favor-entity-native__notes span,:root:not([data-theme='light']) .favor-entity-native__link{color:rgba(247,238,216,.66)}@media(max-width:860px){.favor-entity-native{padding-top:34px!important;padding-bottom:52px!important}.favor-entity-native__grid{grid-template-columns:1fr;gap:16px;margin-top:22px}.favor-entity-native__card{min-height:360px;border-radius:26px}.favor-entity-native__card--wide{min-height:400px}.favor-entity-native__copy{left:18px;right:18px;bottom:18px}.favor-entity-native__copy h3{font-size:clamp(1.35rem,7vw,2rem)}.favor-entity-native__copy p{font-size:.92rem}.favor-entity-native__notes{grid-template-columns:1fr;gap:12px;margin-top:20px}.favor-entity-native__actions{display:grid;gap:12px}.favor-entity-native__cta{width:100%!important}.favor-entity-native__link{text-align:center}}@media(max-width:420px){.favor-entity-native__card{min-height:330px}.favor-entity-native__card--wide{min-height:360px}.favor-entity-native__copy span{font-size:.78rem}.favor-entity-native__copy p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}


/* Favor native entity mobile polish, 2026-05-08 */
@media(max-width:860px){
  .favor-entity-native{padding-top:48px!important}
  .favor-entity-native .catalog__intro{margin-bottom:22px!important}
  .favor-entity-native h2{font-size:clamp(2rem,9.2vw,2.65rem)!important;line-height:1.02!important;letter-spacing:-.055em!important}
  .favor-entity-native__intro p{font-size:1rem!important;line-height:1.58!important}
  .favor-entity-native__card{min-height:400px!important}
  .favor-entity-native__card--wide{min-height:430px!important}
  .favor-entity-native__copy p{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important}
}
@media(max-width:420px){
  .favor-entity-native h2{font-size:clamp(1.92rem,8.7vw,2.35rem)!important}
  .favor-entity-native__card{min-height:420px!important}
  .favor-entity-native__card--wide{min-height:450px!important}
  .favor-entity-native__copy{bottom:16px!important}
}

/* Favor native entity CTA polish, 2026-05-08 */
.favor-entity-native__cta{
  width:auto!important;
  min-width:0!important;
  min-height:46px!important;
  padding:0!important;
  gap:12px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-shadow:none!important;
  color:var(--text,#173252)!important;
  font-weight:500!important;
  letter-spacing:-.02em!important;
}
.favor-entity-native__cta:hover{
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.favor-entity-native__cta .catalog__cta-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;
  color:#fff!important;
  box-shadow:0 14px 28px rgba(104,177,255,.22)!important;
}
.favor-entity-native__cta:hover .catalog__cta-icon{
  background:linear-gradient(180deg,#b8e1ff,#72b8ff)!important;
  box-shadow:0 18px 34px rgba(104,177,255,.26)!important;
}
.favor-entity-native__link{
  font-weight:500!important;
  letter-spacing:-.01em!important;
  color:var(--muted,#6782a6)!important;
}
.favor-entity-native__link:hover{color:var(--text,#173252)!important}
:root:not([data-theme=light]) .favor-entity-native__cta{color:var(--text,#f7eed8)!important}
:root:not([data-theme=light]) .favor-entity-native__link{color:rgba(247,238,216,.62)!important}
:root:not([data-theme=light]) .favor-entity-native__link:hover{color:var(--text,#f7eed8)!important}
@media(max-width:860px){
  .favor-entity-native__actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;flex-wrap:wrap!important}
  .favor-entity-native__cta{width:auto!important}
  .favor-entity-native__link{text-align:left!important}
}

/* Favor native entity CTA icon hard fix, 2026-05-08 */
.favor-entity-native .favor-entity-native__cta .catalog__cta-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#aad8ff,#68b1ff)!important;
  color:#08264c!important;
  box-shadow:0 14px 28px rgba(104,177,255,.22)!important;
}
.favor-entity-native .favor-entity-native__cta:hover .catalog__cta-icon{
  background:linear-gradient(180deg,#b8e1ff,#72b8ff)!important;
  box-shadow:0 18px 34px rgba(104,177,255,.26)!important;
}

/* Favor page section width alignment, 2026-05-08 */
.favor-trust-section,
.support-bottom-section,
.page-shell>.support-bottom-section{
  width:min(calc(100% - 40px),var(--container,1180px))!important;
  max-width:var(--container,1180px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.favor-trust-section h2,
.favor-trust-marquee{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.support-bottom-card{
  width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:640px){
  .favor-trust-section,
  .support-bottom-section,
  .page-shell>.support-bottom-section{
    width:min(calc(100% - 24px),var(--container,1180px))!important;
  }
  .favor-trust-section h2{width:100%!important}
}


/* Favor reviews — compact carousel below trust logos. */
.favor-reviews-section{width:min(1120px,calc(100% - 40px));margin:0 auto clamp(26px,4.4vw,52px);padding:0 0 clamp(8px,1.4vw,18px);background:transparent;border:0;color:var(--text);overflow:hidden}
.favor-reviews-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding-left:8px}
.favor-reviews-head h2{margin:0;font-family:inherit;font-size:clamp(17px,1.6vw,22px);font-weight:400;line-height:1.35;letter-spacing:-.025em;color:var(--muted);text-align:left;text-wrap:balance}
.favor-reviews-controls{display:flex;align-items:center;gap:8px;padding-right:8px}
.favor-reviews-button{display:grid;place-items:center;width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);font:inherit;font-size:22px;line-height:1;cursor:pointer;transition:border-color .18s ease,color .18s ease,background-color .18s ease,transform .18s ease}
.favor-reviews-button:hover{border-color:rgba(104,177,255,.36);color:var(--text,#173252);background:rgba(104,177,255,.10);transform:none}
.favor-reviews-viewport{overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding:0 8px 8px;scrollbar-width:none}
.favor-reviews-viewport::-webkit-scrollbar{display:none}
.favor-reviews-track{display:flex;gap:18px;width:max-content;min-width:100%}
.favor-reviews-slide{scroll-snap-align:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:calc(min(1120px,100vw - 40px) - 16px)}
.favor-review-card{min-height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:18px;padding:18px 18px 16px;border:1px solid var(--line);border-radius:22px;background:transparent;box-shadow:none}
.favor-review-text{margin:0;font-size:clamp(14px,1.12vw,16px);font-weight:400;line-height:1.62;letter-spacing:-.01em;color:var(--text)}
.favor-review-person{display:flex;align-items:center;gap:12px;margin-top:auto;color:var(--text)}
.favor-review-avatar{display:block;flex:0 0 56px;width:56px;height:56px;border-radius:999px;object-fit:cover;border:1px solid var(--line);background:transparent}
.favor-review-person strong{display:block;margin:0 0 3px;font-size:14px;font-weight:600;line-height:1.2;color:var(--text)}
.favor-review-person small{display:block;font-size:12px;font-weight:400;line-height:1.35;color:var(--muted)}
@media (max-width:640px){.favor-reviews-section{width:min(100% - 32px,1120px);margin-bottom:34px}.favor-reviews-head{padding-left:0;margin-bottom:14px}.favor-reviews-head h2{font-size:16px}.favor-reviews-controls{padding-right:0}.favor-reviews-viewport{padding:0 0 8px}.favor-reviews-track{gap:12px}.favor-reviews-slide{width:calc(100vw - 32px);grid-template-columns:1fr;gap:12px}.favor-review-card{padding:16px;border-radius:18px}.favor-review-text{font-size:14px;line-height:1.55}.favor-review-avatar{width:52px;height:52px;flex-basis:52px}}
@media (prefers-reduced-motion:reduce){.favor-reviews-viewport{scroll-behavior:auto}.favor-reviews-button{transition:none}}
