/* COSTX — оформление юридических страниц и ссылок на них в подвале.
   Правит только собственные блоки (.costx-legal*), глобальные стили сайта не трогает.

   Типографика Framer управляется CSS-переменными --framer-*, поэтому базовый
   пресет (Unbounded 20px / 700 / UPPERCASE / line-height 1em) переопределяется
   здесь на читаемый для длинного текста. !important обязателен: рантайм Framer
   до-инжектит свои <style> в <head> уже после этого файла, и при равной
   специфичности выигрывал бы пресет. */

/* --- тело документа ------------------------------------------------------ */
.costx-legal .framer-text {
  --framer-font-size: 17px !important;
  --framer-font-weight: 400 !important;
  --framer-font-family: "Unbounded", "Unbounded Placeholder", sans-serif !important;
  --framer-text-transform: none !important;
  --framer-line-height: 1.75em !important;
  --framer-text-wrap: pretty !important;
  --framer-text-color: var(--token-3a1e9ce8-5158-474f-ae2b-27ee1dcc6045, #a8a8a8) !important;
  --framer-paragraph-spacing: 16px !important;
}

/* --- заголовок страницы (карточка-шапка) --------------------------------- */
.costx-legal h1.framer-text {
  --framer-font-size: 30px !important;
  --framer-font-weight: 500 !important;
  --framer-text-transform: uppercase !important;
  --framer-line-height: 1.25em !important;
  --framer-text-color: #ffffff !important;
  margin: 0 0 20px;
}

/* --- заголовки разделов --------------------------------------------------- */
.costx-legal h2.framer-text {
  --framer-font-size: 22px !important;
  --framer-font-weight: 500 !important;
  --framer-line-height: 1.35em !important;
  --framer-text-color: #ffffff !important;
  margin: 48px 0 18px;
}
.costx-legal h2.framer-text:first-child { margin-top: 0; }

/* зелёная черта под заголовком — чтобы разделы читались с одного взгляда */
.costx-legal h2.framer-text::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 14px;
  background: rgb(76, 191, 87);
}

/* --- списки --------------------------------------------------------------- */
.costx-legal ul.framer-text {
  margin: 10px 0 16px;
  padding-left: 20px;
  list-style: none;
}
.costx-legal ul.framer-text li.framer-text {
  position: relative;
  /* Framer вешает на li собственный padding-left ~30px — гасим, иначе
     текст пунктов уезжает далеко от маркера */
  padding-left: 0 !important;
  margin-bottom: 10px;
}
.costx-legal ul.framer-text li.framer-text:last-child { margin-bottom: 0; }
.costx-legal ul.framer-text li.framer-text::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(76, 191, 87);
}

/* --- ссылки в тексте ------------------------------------------------------ */
.costx-legal a.framer-text {
  --framer-text-color: rgb(76, 191, 87) !important;
  --framer-link-text-color: rgb(76, 191, 87) !important;
  --framer-text-decoration: none !important;
  border-bottom: 1px solid rgba(76, 191, 87, 0.4);
}
.costx-legal a.framer-text:hover { border-bottom-color: rgb(76, 191, 87); }

/* --- подвал сайта --------------------------------------------------------- */
.costx-footer {
  width: 100%;
  font-family: "Unbounded", "Unbounded Placeholder", sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 36px;
  /* иллюстрация с монетами из CTA-блока свисает в зону подвала (absolute, z-index 0) —
     поднимаем текст над ней, иначе контакты читаются поверх монет */
  position: relative;
  z-index: 1;
}

.costx-footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  /* и не заезжаем колонками на сами монеты справа */
  max-width: 72%;
}

.costx-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}
.costx-footer-logo {
  display: block;
  width: 132px;
  height: auto;
}
.costx-footer-company {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7em;
  color: #767676;
}

.costx-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.costx-footer-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e5e5e;
}
.costx-footer-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4em;
  color: #a8a8a8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.costx-footer-link:hover { color: rgb(76, 191, 87); }

.costx-footer-bottom {
  margin-top: 36px;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #5e5e5e;
}

/* --- логотип в шапке ведёт на главную ------------------------------------ */
/* display: contents — чтобы ссылка не создавала своего блока и не сдвигала
   вёрстку шапки, которую расставил Framer */
.costx-logo-link {
  display: contents;
  cursor: pointer;
}

@media (max-width: 809px) {
  .costx-legal .framer-text { --framer-font-size: 16px !important; }
  .costx-legal h1.framer-text { --framer-font-size: 24px !important; }
  .costx-legal h2.framer-text { --framer-font-size: 19px !important; margin-top: 40px; }

  .costx-footer { padding-top: 28px; }
  .costx-footer-cols { flex-direction: column; gap: 28px; }
  .costx-footer-bottom { margin-top: 28px; }
}
