/* Вход в совместимость на /compat и страница пары /compat/p/{id} (COMPAT_ENTRY_ENABLED). */

.ce-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px var(--rx-gutter, 16px) 48px;
}

.ce-page--pair { padding-bottom: 120px; }
.ce-page--paid { padding-bottom: 48px; }

.ce-intro { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.ce-intro h1 { margin: 0; font: 600 30px/1.12 var(--rx-serif); text-wrap: balance; }
.ce-intro .rx-overline { margin: 0; }
.ce-lead { margin: 0; color: var(--rx-text-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.ce-pair-form { display: flex; flex-direction: column; gap: 10px; }
.ce-person {
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r-l, 16px);
  background: var(--rx-bg-1);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ce-person__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ce-person__head h2 { margin: 0; font: 600 20px/1.2 var(--rx-serif); }
.ce-person__tag {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rx-text-3, var(--rx-text-2));
}
.ce-person--you { border-color: rgba(232, 195, 106, .28); }
.ce-person--partner { border-color: rgba(157, 180, 255, .32); }

.ce-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 10px; }
.ce-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; position: relative; }
.ce-field label { font-size: 12px; color: var(--rx-text-2); }
.ce-field input[type="text"] {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r-m, 12px);
  background: rgba(242, 240, 234, .04);
  color: var(--rx-text);
  padding: 0 12px;
  font: 500 15px/1.2 var(--rx-sans);
}
.ce-field input:focus {
  outline: none;
  border-color: var(--rx-gold);
  background: rgba(242, 240, 234, .06);
}
.ce-field.is-error input { border-color: var(--rx-danger, #d97a7a); }

.ce-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-mode {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--rx-text-2);
  cursor: pointer;
  user-select: none;
}
.ce-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ce-mode:has(input:checked) {
  border-color: rgba(232, 195, 106, .7);
  color: var(--rx-text);
  background: rgba(232, 195, 106, .1);
}
.ce-approx.is-hidden,
.ce-field--time.is-hidden { display: none; }
.ce-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r-m, 12px);
  font-size: 13px;
  cursor: pointer;
}
.ce-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ce-chip:has(input:checked) {
  border-color: var(--rx-gold);
  box-shadow: inset 0 0 0 1px var(--rx-gold);
}
.ce-chip small { color: var(--rx-text-2); margin-left: 4px; }
.ce-hint { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--rx-text-3, #8b90a3); }

.ce-suggest {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: 100%;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r-m, 12px);
  background: var(--rx-bg-1, #12141f);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  max-height: 220px;
  overflow: auto;
}
.ce-suggest[hidden] { display: none; }
.ce-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--rx-text);
  font: 500 14px/1.35 var(--rx-sans);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.ce-suggest button:hover,
.ce-suggest button.is-active { background: rgba(232, 195, 106, .12); }

.ce-error { margin: 0; font-size: 12px; line-height: 1.4; color: var(--rx-danger, #d97a7a); }
.ce-error--form { margin: 0 0 8px; }

.ce-submit { margin-top: 4px; width: 100%; min-height: 52px; font-size: 16px; }
.ce-price-quiet {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--rx-text-3, #8b90a3);
}
.ce-page .rx-consent {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rx-text-3, #8b90a3);
}

.ce-pair-head { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.ce-pair-head h1 { margin: 0; font: 600 32px/1.12 var(--rx-serif); }
.ce-people { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; padding: 0; list-style: none; }
.ce-people li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  background: var(--rx-bg-1);
  font-size: 13px;
}
.ce-people b { font-weight: 600; }
.ce-people small { color: var(--rx-text-2); }
.ce-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ce-dot--a { background: var(--rx-gold); }
.ce-dot--b { background: var(--rx-blue, #9db4ff); }

.ce-wheels { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0 8px; }
.ce-wheel { margin: 0; }
.ce-wheel svg { display: block; width: 100%; height: auto; }
.ce-wheel figcaption { margin: 8px 0 0; text-align: center; color: var(--rx-text-3, #8b90a3); font-size: 12px; }
@media (min-width: 640px) {
  .ce-wheels { grid-template-columns: 1fr 1fr; }
}

.ce-fragment { margin: 16px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.ce-fragment h2 { margin: 0; font: 600 24px/1.2 var(--rx-serif); text-wrap: balance; }
.ce-fragment p { margin: 0; font-size: 15px; line-height: 1.6; }
.ce-fragment__kicker { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rx-gold); }
.ce-fragment__lead { color: var(--rx-text-2); }

.ce-contacts { margin: 20px 0 8px; }
.ce-contacts h2 { margin: 0 0 8px; font: 600 22px/1.2 var(--rx-serif); }
.ce-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ce-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 12px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-r-m, 12px);
  background: var(--rx-bg-1);
}
.ce-contact__name { font-size: 14px; font-weight: 600; }
.ce-contact__meta { grid-column: 1; font-size: 12px; color: var(--rx-text-2); }
.ce-contact__lock { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--rx-text-3, #8b90a3); }
.ce-contact--lock { opacity: .85; }

.ce-offer {
  margin: 24px 0 16px;
  padding: 16px;
  border: 1px solid rgba(232, 195, 106, .35);
  border-radius: var(--rx-r-l, 16px);
  background: var(--rx-bg-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ce-offer h2 { margin: 0; font: 600 24px/1.2 var(--rx-serif); }
.ce-offer p { margin: 0; font-size: 15px; line-height: 1.55; }
.ce-gets { margin: 0; padding-left: 1.1em; font-size: 14px; line-height: 1.5; }
.ce-offer .rx-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}
.ce-offer__note { font-size: 13px; color: var(--rx-text-2); }

.ce-read { width: 100%; min-height: 52px; margin-top: 16px; text-decoration: none; }
.ce-soft { margin: 20px 0 0; color: var(--rx-text-2); font-size: 14px; line-height: 1.5; }
.ce-soft p { margin: 0 0 6px; }
.ce-soft a { color: var(--rx-gold); }

.ce-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 10px var(--rx-gutter, 16px) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(11, 13, 23, .92) 28%, var(--rx-bg-0, #0b0d17) 100%);
}
.ce-sticky .rx-btn {
  width: 100%;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  font-size: 16px;
}
.ce-sticky .rx-cta__sub,
.ce-offer .rx-cta__sub { font-size: 13px; font-weight: 600; }
