/* src/components/Faq/Faq.css */
/* B2C-Home3 «Частые вопросы» and B2C-Pricing «Вопросы об оплате»: a rule
   above every question and one under the list; the question a row with the
   «+» / «−» at its end; the open answer a paragraph under it. */
.oj-faq {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--oj-border);
}

.oj-faq__item {
  border-top: 1px solid var(--oj-border);
}

.oj-faq__question {
  margin: 0;
}

.oj-faq__question button {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--oj-navy);
}

.oj-faq__item.is-open .oj-faq__question button {
  padding-bottom: 12px;
}

.oj-faq__icon::before {
  content: "+";
  display: block;
  text-align: center;
  font-family: var(--oj-font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  color: var(--oj-blue);
}

.oj-faq__item.is-open .oj-faq__icon::before {
  content: "\2212";
}

/* content-box: the artboards' 900px is the text's own width, padding aside */
.oj-faq__answer p {
  box-sizing: content-box;
  margin: 0;
  max-width: 900px;
  padding: 0 88px 28px 28px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--oj-text-2);
}

/* a link inside an answer (the home FAQ's to /install) */
.oj-faq__link {
  color: var(--oj-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oj-faq__link:hover {
  color: var(--oj-navy);
}

/* an answer not written yet: one empty line where it will go */
.oj-faq__answer .oj-faq__pending {
  min-height: 1.55em;
}

/* Only once client/faq.ts has taken over: without JS every answer shows. */
.oj-faq.is-ready .oj-faq__item:not(.is-open) .oj-faq__answer {
  display: none;
}

@media (max-width: 1279px) {
  .oj-faq__question button {
    padding: 24px 20px;
    font-size: 24px;
    line-height: 1.25;
  }

  .oj-faq__item.is-open .oj-faq__question button {
    padding-bottom: 10px;
  }

  .oj-faq__answer p {
    padding: 0 64px 24px 20px;
    font-size: 18px;
  }
}

@media (max-width: 1023px) {
  .oj-faq__question button {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .oj-faq__question button {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 16px;
    padding: 20px 0;
    font-size: 18px;
  }

  .oj-faq__item.is-open .oj-faq__question button {
    padding-bottom: 10px;
  }

  .oj-faq__icon::before {
    font-size: 26px;
  }

  .oj-faq__answer p {
    padding: 0 32px 20px 0;
    font-size: 16px;
  }
}


/* src/pages/Plans.css */
/* /plans, B2C-Pricing and B2C-PricingBiz artboards. The wrapper's
   `data-plans-active` (client/plansTabs.ts) shows one tab: its panel, the
   limit block (personal only) and its own FAQ list. */
.oj-plans-page[data-plans-active="personal"] .oj-plans__panel--business,
.oj-plans-page[data-plans-active="personal"] .oj-pfaq__list--business,
.oj-plans-page[data-plans-active="business"] .oj-plans__panel--personal,
.oj-plans-page[data-plans-active="business"] .oj-plimit,
.oj-plans-page[data-plans-active="business"] .oj-pfaq__list--personal {
  display: none;
}

.oj-plans {
  background: var(--oj-surface);
  padding: 88px 0 96px;
}

.oj-plans__inner,
.oj-plimit__inner,
.oj-pfaq__inner {
  box-sizing: content-box;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--oj-page-pad-desktop);
}

.oj-plans__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.oj-plans__title {
  margin: 0;
  max-width: 1240px;
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--oj-navy);
}

.oj-plans__titleLine {
  display: block;
}

/* the switch: two pills of one width (the longer label's) in a track */
.oj-plans__tabs {
  align-self: flex-start;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--oj-bg);
  border: 1px solid #e4e1da;
}

.oj-plans__tabs button {
  box-sizing: border-box;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--oj-navy);
  white-space: nowrap;
}

.oj-plans__tabs button[aria-selected="true"] {
  background: var(--oj-navy);
  color: #fff;
}

.oj-plans__panel {
  margin-top: 12px;
}

/* Personal plans: the four cards share their rows (subgrid), so within a
   row the descriptions, list captions and buttons line up. */
.oj-pcards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 16px;
}

.oj-pcard {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--oj-bg);
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 14px;
}

/* «Базовый»: a 3px navy frame inside the card, the card's size unchanged */
.oj-pcard--base {
  box-shadow: inset 0 0 0 3px var(--oj-navy);
}

.oj-pcard__name,
.oj-pcard__price,
.oj-pcard__lede,
.oj-pcard__listTitle {
  margin: 0;
}

.oj-pcard__name {
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.035em;
  color: var(--oj-navy);
}

.oj-pcard__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.oj-pcard__amount {
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--oj-navy);
  white-space: nowrap;
}

.oj-pcard__period {
  font-size: 16px;
  color: var(--oj-muted);
}

.oj-pcard__lede {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--oj-navy);
}

.oj-pcard__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oj-pcard__listTitle,
.oj-pbiz__listTitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oj-muted);
}

.oj-plist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oj-plist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--oj-text);
}

.oj-plist--large li {
  font-size: 18px;
}

.oj-plist__mark {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}

.oj-plist--large .oj-plist__mark {
  width: 22px;
  height: 22px;
}

.oj-plist__mark--check circle {
  fill: var(--oj-cyan);
}

.oj-plist__mark--check path {
  fill: none;
  stroke: var(--oj-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oj-plist__mark--plus circle,
.oj-plist__mark--minus circle {
  fill: none;
  stroke-width: 1.5;
}

.oj-plist__mark--plus circle {
  stroke: var(--oj-cyan);
}

.oj-plist__mark--minus circle {
  stroke: #c9c6be;
}

.oj-plist__mark--plus path,
.oj-plist__mark--minus path {
  stroke-width: 2;
  stroke-linecap: round;
}

.oj-plist__mark--plus path {
  stroke: var(--oj-blue);
}

.oj-plist__mark--minus path {
  stroke: #9a9da6;
}

.oj-pcard__cta {
  align-self: end;
  margin-top: 8px;
  box-sizing: border-box;
  /* The button spans the card and centres its label, so its side padding
     only sets the narrowest it may get: at 28px «Попробовать бесплатно» ran
     past the card from 1280 to 1328 and at 320 (owner's report, 22.10).
     If even that is too wide, the label wraps inside the button. */
  min-height: var(--oj-btn-h);
  padding: 8px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.oj-pcard__cta--muted {
  border: 1px solid #c9c6be;
  background: transparent;
  color: var(--oj-muted);
}

.oj-pcard__cta--primary {
  background: var(--oj-navy);
  color: #fff;
}

.oj-pcard__cta--outline {
  border: 1px solid var(--oj-navy);
  background: var(--oj-surface);
  color: var(--oj-navy);
}

/* Hover as the site's buttons (components/Button/Button.css; owner's call,
   22.10): a light button takes a navy tint and a 2px navy edge (the inset
   shadow doubles the 1px border without moving anything), the navy one
   fades to a lighter navy. */
.oj-pcard__cta:hover {
  border-color: var(--oj-navy);
  box-shadow: inset 0 0 0 1px var(--oj-navy);
  background: var(--oj-light-hover);
  color: var(--oj-navy);
}

.oj-pcard__cta--primary:hover {
  border-color: transparent;
  box-shadow: none;
  background: var(--oj-navy-hover);
  color: #fff;
}

/* Until the plans open (`PLANS_OPEN` in Plans.tsx): the same box, greyed,
   no hover, no pointer — it reads as "not yet", not as broken. */
.oj-pcard__cta--closed,
.oj-pcard__cta--closed:hover {
  border: 1px solid var(--oj-border-2);
  box-shadow: none;
  background: var(--oj-surface-2);
  color: var(--oj-muted);
  font-family: inherit;
  /* 15px, not the live buttons' 17: the four-column cards at 1280 are too
     narrow for «Доступ откроется 30 ноября» on one line at 17 */
  font-size: 15px;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .oj-pcard__cta {
    transition: none;
  }
}

.oj-plans__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--oj-muted);
}

/* under the seat cards the step's own gap spaces it */
.oj-pbiz__step .oj-plans__note {
  margin-top: 0;
}

/* «Цены и тарифы могут быть изменены…» right under «Все цены указаны с
   учётом налогов» (owner's line, 22.10) */
.oj-plans__note--next {
  margin-top: 2px;
}

/* Business plans */
.oj-plans__panel--business {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.oj-pbiz__title {
  margin: 0;
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--oj-navy);
}

.oj-pbiz__step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oj-pbiz__stepTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oj-blue);
}

.oj-pbiz__custom {
  box-sizing: border-box;
  min-height: 224px;
  padding: 32px 36px;
  border-radius: 24px;
  background: var(--oj-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.oj-pbiz__customText {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oj-pbiz__customTitle,
.oj-pbiz__customLede {
  margin: 0;
}

.oj-pbiz__customTitle {
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--oj-navy);
}

.oj-pbiz__customLede {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--oj-text);
}

.oj-pbiz__demo {
  flex: none;
  height: 56px;
  padding: 0 28px;
  white-space: nowrap;
}

.oj-pbiz__seats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.oj-pbiz__seat {
  box-sizing: border-box;
  min-width: 0;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--oj-bg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.oj-pbiz__seatCount,
.oj-pbiz__seatPrice {
  margin: 0;
}

.oj-pbiz__seatCount {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.oj-pbiz__seatNumber {
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--oj-navy);
}

.oj-pbiz__seatLabel {
  font-size: 18px;
  color: var(--oj-muted);
}

.oj-pbiz__seatPrice {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oj-pbiz__seatAmount {
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--oj-navy);
  white-space: nowrap;
}

.oj-pbiz__seatPeriod {
  font-size: 16px;
  color: var(--oj-muted);
}

.oj-pbiz__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.oj-pbiz__listTitle {
  margin: 0 0 12px;
  font-size: 15px;
}

.oj-pbiz__onprem {
  margin-top: 16px;
  padding-top: 56px;
  border-top: 1px solid var(--oj-border);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* «Как считается лимит» */
.oj-plimit {
  background: var(--oj-bg);
  padding: 96px 0;
}

.oj-plimit__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 64px;
  align-items: center;
}

.oj-plimit__title {
  margin: 0;
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--oj-navy);
}

.oj-plimit__text p {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--oj-text);
}

.oj-plimit__title + p {
  margin-top: 24px;
}

.oj-plimit__card {
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 24px;
  background: var(--oj-surface);
  box-shadow: 0 30px 60px -44px rgba(28, 44, 90, 0.45);
  font-size: 14px;
  color: var(--oj-muted);
}

.oj-plimit__cardHead,
.oj-plimit__cardUsed {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.oj-plimit__cardHead {
  align-items: center;
}

.oj-plimit__cardLabel {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oj-plimit__cardUsed {
  margin-top: 18px;
  align-items: baseline;
  font-size: 16px;
  color: var(--oj-text);
}

.oj-plimit__cardPercent {
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--oj-navy);
}

.oj-plimit__meter {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: var(--oj-surface-2);
  overflow: hidden;
}

.oj-plimit__meter span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: 999px;
  background: var(--oj-cyan);
}

.oj-plimit__cardRenew {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--oj-muted);
}

/* «Вопросы об оплате»: on the business tab it follows the lists directly */
.oj-pfaq {
  background: var(--oj-surface);
  padding: 96px 0;
}

.oj-plans-page[data-plans-active="business"] .oj-pfaq {
  padding-top: 0;
}

.oj-pfaq__title {
  margin: 0;
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--oj-navy);
}

.oj-pfaq__list {
  margin-top: 56px;
}

@media (max-width: 1279px) {
  .oj-plans {
    padding-bottom: 88px;
  }

  .oj-plans__title {
    font-size: 76px;
  }

  .oj-pcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oj-pbiz__title {
    font-size: 40px;
  }

  .oj-pbiz__custom {
    min-height: 292px;
  }

  .oj-pbiz__customLede {
    max-width: 620px;
  }

  .oj-plimit,
  .oj-pfaq {
    padding: 88px 0;
  }
}

@media (max-width: 1023px) {
  .oj-plans {
    padding: 80px 0 72px;
  }

  .oj-plans__inner,
  .oj-plimit__inner,
  .oj-pfaq__inner {
    padding: 0 40px;
  }

  .oj-plans__title {
    font-size: 64px;
  }

  .oj-pbiz__custom {
    min-height: 322px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .oj-pbiz__demo {
    align-self: flex-start;
  }

  .oj-pbiz__seatCount {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .oj-plimit,
  .oj-pfaq {
    padding: 72px 0;
  }

  .oj-plimit__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .oj-plimit__title,
  .oj-pfaq__title {
    font-size: 48px;
  }

  .oj-plimit__card {
    max-width: none;
  }

  .oj-pfaq__list {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .oj-plans {
    padding: 40px 0 56px;
  }

  .oj-plans__inner,
  .oj-plimit__inner,
  .oj-pfaq__inner {
    padding: 0 20px;
  }

  .oj-plans__inner {
    gap: 20px;
  }

  .oj-plans__title {
    font-size: 42px;
  }

  .oj-plans__tabs {
    align-self: stretch;
  }

  .oj-plans__tabs button {
    height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }

  .oj-plans__panel {
    margin-top: 4px;
  }

  .oj-pcards {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .oj-pcard {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .oj-pcard__name {
    font-size: 26px;
  }

  .oj-pcard__amount {
    font-size: 38px;
  }

  .oj-pcard__period,
  .oj-pcard__lede {
    font-size: 15px;
  }

  .oj-pcard__listTitle {
    font-size: 12px;
  }

  .oj-plist li {
    padding: 6px 0;
    font-size: 15px;
  }

  .oj-plans__note {
    margin-top: 16px;
    font-size: 13px;
  }

  .oj-plans__note--next {
    margin-top: 2px;
  }

  .oj-plans__panel--business {
    gap: 28px;
  }

  .oj-pbiz__title {
    font-size: 30px;
  }

  .oj-pbiz__step {
    gap: 14px;
  }

  .oj-pbiz__stepTitle,
  .oj-pbiz__listTitle {
    font-size: 14px;
  }

  .oj-pbiz__custom {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .oj-pbiz__customTitle {
    font-size: 28px;
  }

  .oj-pbiz__customLede {
    font-size: 16px;
  }

  .oj-pbiz__demo {
    align-self: stretch;
    margin-top: 16px;
  }

  /* B2C-PricingBizMobile: the price on the right of the number */
  .oj-pbiz__seats {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .oj-pbiz__seat {
    padding: 20px;
    border-radius: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .oj-pbiz__seatCount {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .oj-pbiz__seatNumber {
    font-size: 40px;
  }

  .oj-pbiz__seatLabel {
    font-size: 16px;
  }

  .oj-pbiz__seatPrice {
    align-items: flex-end;
  }

  .oj-pbiz__seatAmount {
    font-size: 22px;
  }

  .oj-pbiz__lists {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .oj-plist--large li {
    padding: 6px 0;
    font-size: 16px;
  }

  .oj-pbiz__onprem {
    margin-top: 8px;
    padding-top: 36px;
    gap: 24px;
  }

  .oj-plimit,
  .oj-pfaq {
    padding: 56px 0;
  }

  .oj-plimit__inner {
    gap: 28px;
  }

  .oj-plimit__title,
  .oj-pfaq__title {
    font-size: 34px;
  }

  .oj-plimit__text p {
    margin-top: 12px;
    font-size: 17px;
  }

  .oj-plimit__title + p {
    margin-top: 16px;
  }

  .oj-plimit__card {
    padding: 20px;
    border-radius: 20px;
  }

  .oj-pfaq__list {
    margin-top: 28px;
  }
}

/* The page's top space: one value for every inner page (`--oj-page-top`,
   base.css; owner's call, 09.11). Last in the file so it outranks the
   breakpoint rules above. */
.oj-plans {
  padding-top: var(--oj-page-top);
}


/* the page's own style attributes, moved here by scripts/build/inlineStyles.mjs */

