/**
 * /lawyerai-wp/ — визуальное совпадение с Tilda /lawyerai
 * page-id-7220
 */

body.page-id-7220 {
  background: #fff;
  font-family: Inter, sans-serif;
  color: #1a1b1d;
}

body.page-id-7220 .site-header,
body.page-id-7220 .header,
body.page-id-7220 .header-new,
body.page-id-7220 .site-footer,
body.page-id-7220 .footer,
body.page-id-7220 .footer-new,
body.page-id-7220 .mobile-callbar {
  display: none !important;
}

body.page-id-7220 main {
  padding: 0 0 40px;
  overflow-x: hidden;
}

/* --- Hero card: logo + title (как шапка Tilda) --- */
body.page-id-7220 .lawyerai-hero {
  padding: 12px 16px 0;
  max-width: 1240px;
  margin: 0 auto;
  /* global section { overflow: hidden } обрезал тень: карточка вплотную к низу секции */
  overflow: visible;
}

body.page-id-7220 .lawyerai-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 18px;
  background: #fff;
  border-radius: 20px;
  /* как Tilda /lawyerai: tn-molecule 0 0 36px -10px rgba(0,0,0,.5) */
  box-shadow: 0 0 36px -10px rgba(0, 0, 0, 0.5);
}

body.page-id-7220 .lawyerai-brand {
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
}

body.page-id-7220 .lawyerai-brand img {
  width: 168px;
  max-width: 72vw;
  height: auto;
  display: block;
}

body.page-id-7220 .lawyerai-hero__copy {
  text-align: center;
  max-width: 640px;
}

body.page-id-7220 .lawyerai-hero__h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-id-7220 .lawyerai-hero__title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #5a6369;
}

body.page-id-7220 .lawyerai-hero__sub {
  margin: 6px 0 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.35;
  color: #5a6369;
  white-space: pre-line;
}

body.page-id-7220 .lawyerai-hero__sub strong {
  font-weight: 700;
  color: #2154b2;
}

@media (min-width: 960px) {
  body.page-id-7220 .lawyerai-hero {
    padding: 16px 20px 0;
  }

  body.page-id-7220 .lawyerai-hero__card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 34px;
    padding: 18px 28px 18px 56px;
    min-height: 110px;
  }

  body.page-id-7220 .lawyerai-brand img {
    width: 273px;
  }

  body.page-id-7220 .lawyerai-hero__copy {
    text-align: left;
    max-width: 760px;
  }

  body.page-id-7220 .lawyerai-hero__title {
    font-size: 25px;
    line-height: 1.55;
  }

  body.page-id-7220 .lawyerai-hero__sub {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.35;
  }
}

/* Старый Carbon hero скрыт — контент перенесён в .lawyerai-hero */
body.page-id-7220 #hero.hero {
  display: none !important;
}

/* --- Chat: карточка со скруглением со всех сторон, плашки живут снаружи --- */
body.page-id-7220 .custom-code:has(.lawyerai-chat),
body.page-id-7220 .lawyerai-chat-section {
  padding: 16px 0 0;
}

body.page-id-7220 .lawyerai-chat {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* 860 + место под бейджи; без 78vh — иначе футер пиллов обрезается */
  height: 900px;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf1f6;
}

body.page-id-7220 .lawyerai-chat iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 959px) {
  body.page-id-7220 .lawyerai-chat {
    height: min(900px, max(680px, 92vh));
  }
}

/* Trust — три отдельные плашки, свисающие под чатом (как Tilda /lawyerai) */
body.page-id-7220 .custom-code:has(.lawyerai-trust) {
  padding: 0;
  margin: 0;
  background: transparent;
}

body.page-id-7220 .custom-code:has(.lawyerai-trust) > .container {
  max-width: none;
  width: 100%;
  padding: 0 16px;
  background: transparent;
}

@media (min-width: 960px) {
  body.page-id-7220 .custom-code:has(.lawyerai-trust) > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

body.page-id-7220 .lawyerai-trust {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

body.page-id-7220 .lawyerai-trust .container,
body.page-id-7220 .custom-code:has(.lawyerai-trust) .lawyerai-trust .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

body.page-id-7220 .lawyerai-trust__list,
body.page-id-7220 .lawyerai-trust .hero__cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 109px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-id-7220 .lawyerai-trust .hero,
body.page-id-7220 .custom-code:has(.lawyerai-trust) .hero {
  padding: 0;
  margin: 0;
  background: transparent;
}

body.page-id-7220 .lawyerai-trust .hero > .container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  gap: 0;
}

body.page-id-7220 .lawyerai-trust .hero__card-item,
body.page-id-7220 .lawyerai-trust__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
  padding: 10px 30px;
  min-height: 43px;
  box-sizing: border-box;
  background: #eaf1f6;
  border-radius: 0 0 10px 10px;
}

body.page-id-7220 .lawyerai-trust .hero__card-icon,
body.page-id-7220 .lawyerai-trust__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.page-id-7220 .lawyerai-trust .hero__card-text,
body.page-id-7220 .lawyerai-trust__text {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #1a1b1d;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  body.page-id-7220 .lawyerai-trust__list,
  body.page-id-7220 .lawyerai-trust .hero__cards {
    gap: 62px;
  }
}

@media (max-width: 959px) {
  body.page-id-7220 .lawyerai-trust__list,
  body.page-id-7220 .lawyerai-trust .hero__cards {
    gap: 16px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-item,
  body.page-id-7220 .lawyerai-trust__item {
    padding: 8px 16px;
  }
}

@media (max-width: 639px) {
  body.page-id-7220 .lawyerai-trust__list,
  body.page-id-7220 .lawyerai-trust .hero__cards {
    gap: 8px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-item,
  body.page-id-7220 .lawyerai-trust__item {
    gap: 6px;
    padding: 5px 10px;
    min-height: 28px;
    border-radius: 0 0 8px 8px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-icon,
  body.page-id-7220 .lawyerai-trust__icon {
    width: 12px;
    height: 12px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-text,
  body.page-id-7220 .lawyerai-trust__text {
    font-size: 11px;
  }
}

@media (max-width: 389px) {
  body.page-id-7220 .lawyerai-trust {
    margin-top: -10px;
  }

  body.page-id-7220 .lawyerai-trust__list,
  body.page-id-7220 .lawyerai-trust .hero__cards {
    gap: 4px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-item,
  body.page-id-7220 .lawyerai-trust__item {
    gap: 4px;
    padding: 4px 8px;
    min-height: 24px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-icon,
  body.page-id-7220 .lawyerai-trust__icon {
    width: 10px;
    height: 10px;
  }

  body.page-id-7220 .lawyerai-trust .hero__card-text,
  body.page-id-7220 .lawyerai-trust__text {
    font-size: 9px;
  }
}

/* --- Вопросы: 2×2 голубые карточки как Tilda rec1842541791 --- */
body.page-id-7220 .portal-info {
  padding: 13px 0 31px;
  background: #fff;
}

body.page-id-7220 .portal-info > .container {
  width: min(320px, calc(100% - 40px));
  max-width: 320px;
  margin-inline: auto;
}

body.page-id-7220 .portal-info__top {
  margin-bottom: 16px;
  text-align: center;
}

body.page-id-7220 .portal-info__title,
body.page-id-7220 .portal-info .section-title {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #2154b2 !important;
  background: none !important;
  -webkit-text-fill-color: #2154b2 !important;
  text-align: center;
}

body.page-id-7220 .portal-info__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  width: min(300px, 100%);
  max-width: 300px;
  margin: 0 auto;
}

body.page-id-7220 .portal-info__item,
body.page-id-7220 .portal-info__item:nth-child(4n + 1),
body.page-id-7220 .portal-info__item:nth-child(4n + 4) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0;
  box-shadow: none;
  background: linear-gradient(32.76deg, #d0e8f9 41%, #eaf1f6 100%) !important;
  border-radius: 10px;
  padding: 10px 15px;
  opacity: 1 !important;
  translate: none !important;
  text-align: center;
}

body.page-id-7220 .portal-info__item-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

body.page-id-7220 .portal-info__item-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

body.page-id-7220 .portal-info__item-icon img {
  width: 30px;
  height: 30px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

body.page-id-7220 .portal-info__item-title {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #2154b2;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  width: auto;
  flex: 0 0 auto;
}

body.page-id-7220 .portal-info__item-text {
  margin: 0;
  width: 100%;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 23.4px;
  color: #000;
  text-align: center;
  white-space: pre-line;
}

@media (min-width: 768px) {
  body.page-id-7220 .portal-info {
    padding: 20px 0 28px;
  }

  body.page-id-7220 .portal-info > .container {
    width: min(1043px, calc(100% - 64px));
    max-width: 1043px;
  }

  body.page-id-7220 .portal-info__top {
    margin-bottom: 20px;
  }

  body.page-id-7220 .portal-info__title,
  body.page-id-7220 .portal-info .section-title {
    font-size: 23px;
    line-height: 1.4;
  }

  body.page-id-7220 .portal-info__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    width: 100%;
    max-width: none;
  }

  body.page-id-7220 .portal-info__item,
  body.page-id-7220 .portal-info__item:nth-child(4n + 1),
  body.page-id-7220 .portal-info__item:nth-child(4n + 4) {
    gap: 14px;
    padding: 16px 18px;
  }

  body.page-id-7220 .portal-info__item-icon,
  body.page-id-7220 .portal-info__item-icon img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.page-id-7220 .portal-info__item-title {
    font-size: 20px;
    line-height: 32px;
  }

  body.page-id-7220 .portal-info__item-text {
    font-size: 15px;
    line-height: 28px;
  }
}

@media (min-width: 1200px) {
  body.page-id-7220 .portal-info {
    padding: 20px 0 26px;
  }

  body.page-id-7220 .portal-info__top {
    margin-bottom: 23px;
  }

  body.page-id-7220 .portal-info__title,
  body.page-id-7220 .portal-info .section-title {
    font-size: 32px;
    line-height: 50px;
  }

  body.page-id-7220 .portal-info__wrapper {
    gap: 47px 77px;
  }

  body.page-id-7220 .portal-info__item,
  body.page-id-7220 .portal-info__item:nth-child(4n + 1),
  body.page-id-7220 .portal-info__item:nth-child(4n + 4) {
    gap: 17px;
    padding: 20px;
  }

  body.page-id-7220 .portal-info__item-icon,
  body.page-id-7220 .portal-info__item-icon img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  body.page-id-7220 .portal-info__item-title {
    font-size: 22px;
    line-height: 34px;
  }

  body.page-id-7220 .portal-info__item-text {
    font-size: 16px;
    line-height: 35.2px;
  }
}

/* --- Помощь специалиста: одна белая карточка, логотип + красная кнопка --- */
body.page-id-7220 .banner-split {
  padding: 21px 0 0;
  margin: 0;
  background: transparent;
}

body.page-id-7220 .banner-split > .container,
body.page-id-7220 .legal-disclaimer > .container {
  width: min(320px, calc(100% - 16px));
  max-width: 320px;
  margin-inline: auto;
  padding: 0;
}

body.page-id-7220 .banner-split__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  margin: 0;
  padding: 16px 28px 24px;
  background:
    linear-gradient(#eaf1f6, #eaf1f6) center bottom / calc(100% - 54px) 2px no-repeat,
    #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

body.page-id-7220 .banner-split__content {
  display: contents;
}

body.page-id-7220 .banner-split__text-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-id-7220 .banner-split__media {
  display: block;
  order: 0;
  width: auto;
  max-width: none;
  margin: 0;
}

body.page-id-7220 .banner-split__img {
  display: block;
  width: 248px;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

body.page-id-7220 .banner-split__btn,
body.page-id-7220 .banner-split .btn {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 248px;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 12px !important;
  background: #cc0a0a !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-family: Inter, sans-serif;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none !important;
}

body.page-id-7220 .banner-split__btn:hover,
body.page-id-7220 .banner-split .btn:hover {
  background: #cc0a0a !important;
  opacity: 0.9;
}

body.page-id-7220 .legal-disclaimer {
  position: relative;
  z-index: 2;
  padding: 0 0 24px;
  margin: 0;
  background: transparent;
}

body.page-id-7220 .legal-disclaimer > .container {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 18px 27px 21px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.page-id-7220 .legal-disclaimer__notice {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0;
}

body.page-id-7220 .legal-disclaimer__icon {
  display: none;
}

body.page-id-7220 .legal-disclaimer__text,
body.page-id-7220 .legal-disclaimer__text p {
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  color: #000;
}

body.page-id-7220 .legal-disclaimer__text p {
  margin: 0;
}

body.page-id-7220 .legal-disclaimer__text p + p {
  margin-top: 0;
}

body.page-id-7220 .legal-disclaimer__text p:first-child {
  margin-bottom: 15px;
}

body.page-id-7220 .legal-disclaimer__text strong {
  font-weight: 500;
  color: #2154b2;
}

body.page-id-7220 .legal-disclaimer__text p:last-child {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid #eaf1f6;
  text-align: center;
}

body.page-id-7220 .legal-disclaimer a {
  color: #2154b2;
  font-weight: 500;
  font-size: inherit;
  text-decoration: underline;
}

@media (min-width: 768px) {
  body.page-id-7220 .banner-split {
    padding-top: 40px;
  }

  body.page-id-7220 .banner-split > .container,
  body.page-id-7220 .legal-disclaimer > .container {
    width: min(1181px, calc(100% - 48px));
    max-width: 1181px;
  }

  body.page-id-7220 .banner-split__box {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 22px 20px;
    background:
      linear-gradient(#eaf1f6, #eaf1f6) center bottom / calc(100% - 44px) 2px no-repeat,
      #fff;
  }

  body.page-id-7220 .banner-split__img {
    width: 166px;
    height: 35px;
    object-position: left center;
  }

  body.page-id-7220 .banner-split__btn,
  body.page-id-7220 .banner-split .btn {
    width: 240px;
    height: 44px;
    min-height: 44px;
    font-size: 16px !important;
  }

  body.page-id-7220 .legal-disclaimer {
    padding-bottom: 40px;
  }

  body.page-id-7220 .legal-disclaimer > .container {
    padding: 21px 22px 21px;
  }

  body.page-id-7220 .legal-disclaimer__text,
  body.page-id-7220 .legal-disclaimer__text p {
    font-size: 15px;
    line-height: 23.25px;
  }

  body.page-id-7220 .legal-disclaimer__text p:first-child {
    margin-bottom: 27px;
  }
}

/* --- Форма заявки: модалка по #cons, как попап Tilda, не блок в потоке --- */
body.page-id-7220 #request.request {
  display: none;
}

body.page-id-7220 #request.request.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10050;
  margin: 0;
  padding: 24px 16px;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: rgba(29, 29, 29, 0.45);
  border-radius: 0;
}

body.page-id-7220 #request.request.is-open .request__form-wrap {
  width: min(420px, 100%);
  max-width: 420px;
  padding-top: 0;
}

body.page-id-7220 #request.request.is-open .request__form {
  position: relative;
  gap: 16px;
  padding: 40px 16px 24px;
}

body.page-id-7220 #request.request.is-open .request__title {
  white-space: pre-line;
}

body.page-id-7220 .lawyerai-request-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d1d1d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 1024px) {
  body.page-id-7220 #request.request.is-open .request__form-wrap {
    max-width: 480px;
    padding-top: 0;
  }

  body.page-id-7220 #request.request.is-open .request__form {
    gap: 20px;
    padding: 48px 32px 32px;
  }
}

/* --- Exit popup --- */
.lawyerai-exit[hidden] {
  display: none !important;
}

.lawyerai-exit {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.lawyerai-exit__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, 0.45);
}

.lawyerai-exit__dialog {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px 22px;
}

.lawyerai-exit__dialog img {
  width: 140px;
  max-width: 40%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.lawyerai-exit__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  white-space: pre-line;
}

.lawyerai-exit__text {
  margin: 0 0 16px;
  line-height: 1.45;
  white-space: pre-line;
}

.lawyerai-exit__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.lawyerai-exit__yes {
  font-weight: 600;
}

.lawyerai-exit__no {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.lawyerai-exit__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lawyerai-home {
  display: inline-block;
  margin-top: 8px;
}

/* custom_code обёртки без лишних отступов */
body.page-id-7220 .custom-code {
  padding: 0;
  margin: 0;
}

body.page-id-7220 .custom-code:has(.lawyerai-hero) {
  overflow: visible;
}

body.page-id-7220 .custom-code:has(.lawyerai-hero) > .container,
body.page-id-7220 .custom-code:has(.lawyerai-chat) > .container {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 960px) {
  body.page-id-7220 .custom-code:has(.lawyerai-chat) > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
