/* unicsupport additions on top of the Tilda copy: quiz, Trustpilot quotes, chat launcher, form notes.
   Tokens follow the page itself (Raleway, #06020f text, #fd633e accent,
   1px cards with 8px radius, 2px pill buttons). */
:root {
  --u-ink: #06020f;
  --u-muted: #55555a;
  --u-accent: #fd633e;
  --u-tint: #fff3f0;
  --u-line: #ffc8ba;
  --u-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- quiz ---------- */
.uq { font-family: 'raleway', Arial, sans-serif; color: var(--u-ink); background: #fff; padding: 105px 0 90px; }
.uq__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.uq__title { font-size: 42px; line-height: 1.3; font-weight: 600; margin: 0 0 20px; }
.uq__title span { color: var(--u-accent); }
.uq__lead { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--u-muted); margin: 0; max-width: 400px; }

.uq__panel { border: 1px solid var(--u-accent); border-radius: 8px; padding: 32px; min-height: 420px; display: flex; flex-direction: column; }
.uq__step { font-size: 14px; font-weight: 600; color: var(--u-accent); letter-spacing: .02em; margin-bottom: 12px; }
.uq__q { font-size: 24px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; }
.uq__hint { font-size: 14px; color: var(--u-muted); font-weight: 500; margin: 0 0 22px; min-height: 1em; }
.uq__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uq__opt {
  font: inherit; font-size: 16px; font-weight: 600; text-align: left; color: var(--u-ink);
  background: #fff; border: 1px solid var(--u-ink); border-radius: 8px; padding: 16px 18px; cursor: pointer;
  transition: background-color 160ms var(--u-ease), border-color 160ms var(--u-ease), transform 120ms var(--u-ease);
}
.uq__opt small { display: block; font-size: 13px; font-weight: 500; color: var(--u-muted); margin-top: 4px; }
.uq__opt[aria-pressed="true"] { background: var(--u-tint); border-color: var(--u-accent); }
.uq__opt:active { transform: scale(0.97); }
.uq__opt:focus-visible, .uq__btn:focus-visible, .uq__back:focus-visible, .uq input:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 2px; }

.uq__nav { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 28px; gap: 12px; }
.uq__back { font: inherit; font-size: 16px; font-weight: 600; color: var(--u-muted); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.uq__back[hidden] { visibility: hidden; display: block; }
.uq__btn {
  font: inherit; font-size: 16px; font-weight: 600; color: var(--u-ink); background: #fff;
  border: 2px solid var(--u-ink); border-radius: 56px; height: 56px; padding: 0 8px 0 28px;
  display: inline-flex; align-items: center; gap: 16px; cursor: pointer;
  transition: background-color 160ms var(--u-ease), transform 120ms var(--u-ease);
}
.uq__btn::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--u-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h12M10 4l5 5-5 5'/%3E%3C/svg%3E") center no-repeat;
}
.uq__btn:hover { background: var(--u-tint); }
.uq__btn:active { transform: scale(0.97); }
.uq__btn:disabled { opacity: .4; cursor: default; transform: none; }

/* result: first steps, one per ticked pain, then the manager line */
.uq__plan { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 12px; }
.uq__plan li { position: relative; padding-left: 30px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.uq__plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 2px; background: var(--u-accent); }
.uq__mgr { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--u-accent); margin: 0 0 10px; padding-left: 30px; }
.uq__note { font-size: 14px; line-height: 1.4; color: var(--u-muted); font-weight: 500; margin: 0 0 22px; }
.uq__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uq input[type="text"], .uq input[type="email"] {
  font: inherit; font-size: 16px; color: var(--u-ink); background: #fff;
  border: 0; border-bottom: 1px solid var(--u-ink); border-radius: 0; height: 52px; padding: 0 2px; width: 100%;
}
.uq__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.uq__err { color: #c3341b; font-size: 14px; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.uq__done { font-size: 24px; font-weight: 600; line-height: 1.3; margin: auto 0; }
.uq__done span { display: block; font-size: 16px; font-weight: 500; color: var(--u-muted); margin-top: 8px; }

.uq__body { animation: uq-in 220ms var(--u-ease); }
@keyframes uq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
  .uq { padding: 60px 0; }
  .uq__wrap { grid-template-columns: 1fr; gap: 28px; }
  .uq__title { font-size: 30px; }
  .uq__panel { padding: 22px 18px; min-height: 0; }
  .uq__q { font-size: 20px; }
  .uq__opts, .uq__fields { grid-template-columns: 1fr; }
  .uq__plan li, .uq__mgr { font-size: 17px; }
  /* phone: the main button takes the full width on one line, «Back» sits under it */
  .uq__nav { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .uq__btn { justify-content: space-between; white-space: nowrap; }
  .uq__back { align-self: flex-start; white-space: nowrap; }
  .uq__back[hidden] { display: none; }
}

/* ---------- our numbers, next to the reviews (server-rendered by tools/build.py) ---------- */
.ucs { font-family: 'raleway', Arial, sans-serif; color: var(--u-ink); background: #fff; padding: 90px 0 0; }
.ucs__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ucs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.ucs__title { font-size: 42px; line-height: 1.3; font-weight: 600; margin: 0; max-width: 720px; }
.ucs__title span { color: var(--u-accent); }
.ucs__lead { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--u-muted); margin: 0 0 8px; max-width: 360px; }
.ucs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#case .ucs__list { padding-left: 0; }
.ucs__list li { border-top: 1px solid var(--u-ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ucs__v { font-size: 56px; line-height: 1; font-weight: 600; color: var(--u-accent); }
.ucs__l { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--u-muted); max-width: 320px; }
@media (max-width: 959px) {
  .ucs { padding: 60px 0 0; }
  .ucs__title { font-size: 30px; }
  .ucs__list { grid-template-columns: 1fr; gap: 24px; }
  .ucs__v { font-size: 44px; }
}

/* ---------- client testimonials (Tilda block): phone text size ----------
   On Tilda's phone layout the long reviews run into the names under them, even in English.
   A smaller text only there; tools/reviews_check.py checks the block on every language. */
@media (max-width: 479px) {
  #rec681530352 .tn-elem[data-elem-id="1702589296661"] .tn-atom,
  #rec681530352 .tn-elem[data-elem-id="1702589296673"] .tn-atom,
  #rec681530352 .tn-elem[data-elem-id="1702589296681"] .tn-atom,
  #rec683012919 .tn-elem[data-elem-id="1702589296661"] .tn-atom,
  #rec683012919 .tn-elem[data-elem-id="1702589296673"] .tn-atom,
  #rec683012919 .tn-elem[data-elem-id="1702589296681"] .tn-atom { font-size: 13px !important; line-height: 1.25 !important; }
  /* the empty line between two paragraphs (<br /><br />) goes; the paragraphs stay apart by a line break */
  #rec681530352 .tn-elem[data-elem-id] .tn-atom br + br,
  #rec683012919 .tn-elem[data-elem-id] .tn-atom br + br { display: none; }
}
/* tablet: Tilda put three 370px cards side by side in a narrower artboard and hid the overflow,
   so the third card was cut off with no way to reach it. Let the row scroll sideways instead. */
@media (min-width: 480px) and (max-width: 1199px) {
  #rec681530352 .t396__artboard, #rec683012919 .t396__artboard {
    overflow-x: auto !important; overflow-y: hidden !important; overscroll-behavior-x: contain; scrollbar-width: thin;
  }
}

/* ---------- Trustpilot quotes (server-rendered by tools/build.py) ----------
   Same frame as the quiz: Raleway, ink cards with 8px radius, orange accent. */
.utp { font-family: 'raleway', Arial, sans-serif; color: var(--u-ink); background: #fff; padding: 90px 0 60px; }
.utp__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.utp__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.utp__title { font-size: 42px; line-height: 1.3; font-weight: 600; margin: 0; max-width: 720px; }
.utp__title span { color: var(--u-accent); }
.utp__score { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--u-muted); margin: 0 0 8px; max-width: 360px; }
.utp__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.utp__card { border: 1px solid var(--u-ink); border-radius: 8px; padding: 28px 28px 24px; display: flex; flex-direction: column; }
.utp__stars { display: inline-flex; gap: 2px; color: var(--u-accent); margin-bottom: 16px; }
.utp__card blockquote { margin: 0 0 20px; }
.utp__card blockquote p { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 500; }
.utp__who { font-size: 14px; font-weight: 600; color: var(--u-muted); margin: auto 0 6px; }
.utp__link, .utp__foot a { font-size: 14px; font-weight: 600; color: var(--u-ink); text-decoration: underline; text-decoration-color: var(--u-accent); text-underline-offset: 3px; }
.utp__link:hover, .utp__foot a:hover { color: var(--u-accent); }
.utp__link:focus-visible, .utp__foot a:focus-visible { outline: 2px solid var(--u-accent); outline-offset: 2px; }
/* Tilda styles lists and links under #allrecords (an id beats our classes): win back with ours */
#trustpilot .utp__list, #quiz .uq__plan { padding-left: 0; }
#trustpilot .utp__link, #trustpilot .utp__foot a { color: var(--u-ink); text-decoration: underline; text-decoration-color: var(--u-accent); }
#trustpilot .utp__link:hover, #trustpilot .utp__foot a:hover { color: var(--u-accent); }
.utp__foot { margin: 24px 0 0; font-size: 14px; color: var(--u-muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 959px) {
  .utp { padding: 60px 0 40px; }
  .utp__title { font-size: 30px; }
  .utp__list { grid-template-columns: 1fr; gap: 14px; }
  .utp__card { padding: 22px 18px 18px; }
  .utp__card blockquote p { font-size: 17px; }
}

/* ---------- chat launcher ---------- */
.uc-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 9990;
  font-family: 'raleway', Arial, sans-serif; font-size: 16px; font-weight: 600; color: #fff;
  background: var(--u-accent); border: 0; border-radius: 56px; height: 56px; padding: 0 22px 0 18px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(253, 99, 62, .35);
  transition: transform 160ms var(--u-ease), opacity 160ms var(--u-ease);
}
.uc-launch:hover { transform: translateY(-2px); }
.uc-launch:active { transform: scale(0.97); }
.uc-launch:focus-visible { outline: 2px solid var(--u-ink); outline-offset: 3px; }
.uc-launch[aria-busy="true"] { opacity: .7; }
.uc-launch[hidden] { display: none; }
[data-chat-open][role="button"] { cursor: pointer; }
.uc-launch[aria-busy="true"] { cursor: progress; }
@media (max-width: 640px) { .uc-launch { right: 16px; bottom: 16px; } }

/* ---------- translated pages: short labels ----------
   tools/i18n.py marks short one-line labels (menu items, heading pieces,
   «up to 40%») with u-nw: Tilda sized their boxes to the English words, and a
   translated word a few letters longer should use the free space next to it
   rather than wrap. layout_check flags it when that space is not free. */
.tn-atom.u-nw, .tn-atom[data-u-nw] { white-space: nowrap; }   /* data-u-nw: same for EN/RU copy v2 (tools/build.py) */

/* ---------- language switcher ---------- */
.ul-trigger { cursor: pointer; }
.ul-menu {
  /* fixed + max-content from the start: measured before placing, a block would report the page width */
  position: fixed; top: 0; left: 0; width: max-content;
  list-style: none; margin: 0; padding: 6px; z-index: 10000; min-width: 190px;
  font-family: 'raleway', Arial, sans-serif; background: #fff;
  border: 1px solid var(--u-ink); border-radius: 8px; box-shadow: 0 12px 32px rgba(6, 2, 15, .12);
  transform-origin: top right; animation: ul-in 140ms var(--u-ease);
}
.ul-menu[hidden] { display: none; }
.ul-menu a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px 12px; border-radius: 6px; color: var(--u-ink); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.ul-menu a small { font-size: 12px; font-weight: 600; color: var(--u-muted); letter-spacing: .04em; }
.ul-menu a:hover, .ul-menu a:focus-visible { background: var(--u-tint); outline: none; }
.ul-menu a[aria-current] { font-weight: 600; }
.ul-menu a[aria-current] small { color: var(--u-accent); }
@keyframes ul-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Tilda form: our status line ---------- */
.uf-status { font-family: 'raleway', Arial, sans-serif; font-size: 16px; font-weight: 600; margin-top: 14px; }
.uf-status.is-error { color: #c3341b; }
.uf-status.is-ok { color: var(--u-ink); }

@media (prefers-reduced-motion: reduce) {
  .uq__body, .ul-menu { animation: none; }
  .uq__opt, .uq__btn, .uc-launch { transition: none; }
}
