#try-for-free div>img,
.accord__item,
.faq>div,
.hiw,
.hiw_swiper,
.htu .htu_gif,
.htu>div:last-child>div,
.models,
.models::before,
.models__cards_container>div,
.pricing__card,
.results div img,
.reviews__card,
.reviews__container {
    border-radius: var(--brad)
}

.hiw>div:last-child,
.results {
    aspect-ratio: 2/1
}

#try-for-free div>img,
.hiw_swiper,
.htu .htu_gif,
.htu>div:last-child>div,
.results div img,
.reviews__container {
    overflow: hidden
}

.accord__container {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.accord__item {
    cursor: pointer;
    padding: 32px;
    background-color: var(--innerBg)
}

.accord__item h3,
.accord__item p,
.htu>div:last-child>div p:last-child {
    margin-bottom: 0
}

.accord__item>div:first-child>p {
    font-weight: 400;
    color: var(--mainText) !important;
    margin-bottom: 0
}

.accord__item>div:first-child,
.reviews__card>div:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center
}

.accord__item>div:last-child {
    max-height: 0;
    visibility: hidden;
    transition: .4s cubic-bezier(.075, .82, .165, 1)
}

.show {
    visibility: visible !important
}

.faq>div {
    background-color: (189, 178, 253)
}

footer div {
    background-color: #1a1919 !important
}

.footer__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 36px;
    margin-bottom: 29px
}

.footer__top>div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px
}

.footer__top>div>ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px
}

.footer__top>div>ul a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: var(--innerBlackBg);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center
}

.footer__top>div>ul img {
    height: 45%;
    object-fit: contain
}

.footer__top>nav ul {
    margin-left: auto;
    max-width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 39px;
    row-gap: 12px;
    justify-content: right
}

.footer__top>nav li a {
    width: max-content
}

.footer__bottom {
    padding: 8px 0;
    text-align: left;
    background-color: #1d1d1e
}

.footer__bottom p {
    color: var(--textP);
    font-size: 14px
}

.footer__top .wrapper {
    border-top: 1px solid #fff;
    border-radius: 0
}

.hiw {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: space-between;
    gap: 48px
}

.hiw>div,
.hiw>div:first-child,
.hiw_swiper .swiper-slide>* {
    flex: 1 1 50%
}

.hiw>div:last-child img {
    object-position: 50% 20%
}

.hiwRev {
    flex-direction: row-reverse
}

.hiwRev>div:first-child>div {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px
}

.hiw>div:first-child>a {
    max-width: 40%;
    min-width: 312px
}

.hiw>div:first-child>div a {
    flex: 1 0 20%
}

.hiw_swiper .swiper-slide {
    display: flex;
    flex-direction: row;
    gap: 6px;
    max-width: 100%
}

@media (max-width:1100px) {
    .refferal_img {
        display: none
    }
}

.htu>div:last-child {
    flex: 1 1 46%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px
}

.htu .htu_gif {
    position: absolute;
    width: 20%;
    height: auto;
    z-index: 5;
    rotate: -15deg;
    top: 144px;
    left: 36px;
    box-shadow: -6px 12px 24px rgba(0, 0, 0, .4)
}

.htu-img {
    grid-column: 2;
    grid-row-start: 1;
    grid-row: 1/5;
    max-height: 350px;
    width: 100%;
    object-position: 50% 28%;
    min-height: 100%
}

.htu div:last-child div:not(:last-child) {
    grid-column: 1
}

.htu>div:last-child p {
    font-family: poppins, sans-serif
}

.htu>div:last-child>div {
    flex: 1 1 48.5%;
    display: flex;
    gap: 2vw;
    flex-direction: row;
    padding: 30px;
    background-color: var(--innerBg)
}

.htu>div:last-child>div p {
    align-self: center
}

.htu>div:last-child>div>div>p:last-child,
.htu>div:last-child>div>p:last-child {
    color: var(--ultraDark50) !important
}

.htu>div:last-child>div>div:first-child p:first-child,
.htu>div:last-child>div>p:first-child {
    background-color: var(--accent);
    padding: 8px 13px;
    border-radius: 50%;
    min-width: 48px;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 0;
    justify-self: center
}

.htu>div:last-child>div>div:first-child p:first-child,
.htu>div:last-child>div>p:last-child {
    max-width: 90%
}

.htu>div:last-child>div:nth-child(3) {
    display: flex;
    flex-direction: row
}

.htu>div:last-child>div:nth-child(3) div {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    align-items: flex
}

@media(max-width:768px) {

    .htu>div:last-child>div,
    .htu>div:last-child>div:nth-child(3) div {
        gap: 3vw
    }
}

.htu>div:last-child>div:nth-child(3) div p {
    align-self: flex-start
}

.htu>div:last-child>div:nth-child(3) div p:last-child {
    margin-top: 10px
}

.htu>div:last-child>div:last-child>div:first-child {
    padding: 30px 0 30px 30px;
    z-index: 2;
    max-width: 236px;
    min-width: 222px
}

.htu>div:last-child>div:nth-child(3)>div:nth-child(2) {
    z-index: 2;
    position: absolute;
    bottom: 0;
    right: -32px
}

.htu>div:last-child>div:nth-child(3)>div:nth-child(2) img {
    width: 90% !important
}

.htu>div:last-child>div:nth-child(3) p {
    z-index: 10
}

.htu>div:last-child>div:nth-child(3)>img {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    opacity: .5
}

@media (max-width:974px) {
    .htu>div:last-child {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px
    }
}

.innerBg {
    background-color: #121213;
    padding: 100px 0
}

.modes__wrapper h2 {
    color: var(--ultraGray30) !important
}

.models>h2,
.models__cards_container>div h3,
.toc__container>ul a,
.why>div:last-child>div>div>p:last-child {
    color: var(--textMain) !important
}

.models__cards_container>div h3{
    margin-bottom: auto;
}

@media (max-width:768px){
    .models__cards_container>div h3{
        margin-bottom: 24px;
    }
}

.modes__wrapper>div:first-child>p {
    color: var(--neturalGray50) !important
}

.modes__wrapper {
    background-color: #151516;
    padding: 100px 0
}

.models::before,
.pricing__card,
.reviews__card,
.why>div:last-child>div {
    background-color: var(--innerBg)
}

.models::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    filter: blur(64px)
}

.models__cards_container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap
}

.models__cards_container>div {
    flex: 1 1 32%;
    display: flex;
    flex-direction: column;
    /* align-items: stretch; */
    justify-content: start;
    gap: 32px
}
.models__cards_container div div{
    flex: 1 1 39%;
}

.models__cards_container div div:nth-child(2){
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.models__cards_container>div>div:first-child {
    aspect-ratio: 1.1/1;
    overflow: hidden;
    border-radius: var(--brad)
}

@media (max-width:1864px) {
    .modes__wrapper {
        width: 100vw
    }
}

.pricing__container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
    align-items: center
}

.pricing__card {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    padding: 44px 36px;
    text-align: left;
    align-self: stretch
}

#pricing-plans .pricing__card:nth-child(2) {
    background-color: var(--innerBgAlt)
}

.pricing__card p {
    margin-bottom: 0
}

.pricing__card h3 {
    color: var(--textMain);
    font-weight: 500
}

.pricing__card>p:first-child {
    color: var(--accent)
}

.pricing__card_cost {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 14px
}

.pricing__card_cost p:first-child {
    font-size: 30px;
    line-height: 92%;
    color: var(--textMain)
}

.pricing__card_features_title {
    color: var(--textMain);
    margin-bottom: 14px !important
}

.pricing__card>a {
    margin-top: 24px;
    margin-bottom: 24px
}

.pricing__card:nth-child(odd) {
    min-height: 578px
}

.pricing__card ul li:not(:last-child) {
    margin-bottom: 20px
}

.pricing__card_features li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    background: url(/assets/checkGreen.svg) left no-repeat;
    object-fit: contain
}

.pricing__card_features li {
    margin-left: 34px
}

@media (max-width:768px) {

    .hiw>div,
    .reason>a {
        width: 100%
    }

    .reason {
        padding: 48px 24px !important
    }

    .accord__item>div:first-child {
        gap: 14px
    }

    .accord__item {
        padding: 32px 24px
    }

    .footer__top {
        flex-direction: column-reverse;
        align-items: start;
        gap: 24px
    }

    .footer__top>div:first-child>a {
        max-width: 153px
    }

    .footer__top>div>ul,
    .htu-img,
    .htu>div:last-child>div:nth-child(3)>div:nth-child(2),
    .htu>div:last-child>div:nth-child(3)>img {
        display: none
    }

    .footer__top>nav ul {
        margin-left: initial;
        max-width: 80%;
        align-items: start;
        gap: 24px;
        row-gap: 12px;
        justify-content: left
    }

    .hiw {
        flex-direction: column-reverse;
        flex-wrap: wrap;
        padding: 0;
        gap: 14px
    }

    .hiw>div {
        flex: 1 1 100% !important
    }

    .hiw>div:first-child {
        margin-top: 24px
    }

    .hiw>div:first-child>div,
    .pricing__container {
        flex-direction: column
    }

    .hiw>div:first-child>a {
        max-width: 100%;
        min-width: unset
    }

    .results {
        display: none !important
    }

    .hiw>div:last-child {
        aspect-ratio: 1/0.8
    }

    .hiw>div:last-child img {
        scale: 1.1;
        object-position: 50% 10%
    }

    #how-to-use div div {
        padding: 5% 3%;
        min-height: 120px
    }

    .htu>div:last-child {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap
    }

    .innerBg {
        padding: 64px 0
    }

    .models__cards_container>div>div:last-child a,
    .modes__wrapper>div:first-child>p {
        max-width: 100%
    }

    .modes__wrapper {
        width: 100vw;
        padding: 30px 0
    }

    .modes__wrapper>div:first-child {
        flex-wrap: wrap
    }

    .modes__wrapper>div:first-child>div {
        flex: 1 0 50%
    }

    .models__cards_container>div {
        flex-direction: column;
        align-items: start;
        gap: 24px;
        min-width: 80%
    }

    .modes__wrapper .warpper_small {
        padding: 0 22px 0 20px
    }

    .models__cards_container>div>div:last-child {
        padding-bottom: 12px;
        padding-left: 12px;
        padding-right: 12px;
        width: 100%
    }

    .models__cards_container>div p {
        margin-bottom: 24px !important
    }

    .pricing__card {
        flex: 1 1 50%;
        width: 100%
    }

    .pricing__card:nth-child(odd) {
        min-height: max-content
    }

    .pricing__card_cost p:first-child {
        font-size: 20px;
        align-self: center
    }
}

.results {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4px
}

.results div {
    flex: 1 1 10%;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.results div:first-child img:first-child,
.results div:nth-child(5) img:first-child {
    height: 150%
}

.results div:nth-child(2) img:first-child {
    height: 200%
}

.results div:nth-child(4) img:first-child {
    height: 80%
}

.reviews__container .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important
}

.reviews__card>div:first-child>p:first-child {
    color: var(--black) !important;
    font-weight: 700 !important
}

.reviews__card>div:first-child>p:last-child,
.reviews__card>p {
    font-weight: 400 !important
}

.reviews__card>p {
    color: var(--gray) !important
}

.reviews__card {
    padding: 50px 40px;
    display: flex !important;
    flex-direction: column !important
}

.reviews__card>a,
.why {
    flex-direction: row;
    display: flex
}

.reviews__card>a {
    width: max-content;
    color: #bdb2fd !important;
    margin-top: auto;
    align-items: center;
    justify-content: start;
    gap: 20px
}

.reviews__controls {
    left: initial !important;
    right: 0;
    width: initial !important;
    gap: 8px
}

.spacer_xxl {
    margin-top: 172px
}

.spacer_x {
    margin-top: 120px
}

.spacer_68 {
    margin-top: 68px
}

.spacer_60 {
    margin-top: 60px
}

.spacer_200 {
    margin-bottom: 200px
}

.spacer_100 {
    margin-bottom: 100px
}

.spacer_84 {
    margin-bottom: 84px
}

.spacer_64 {
    margin-bottom: 64px
}

.spacer_48 {
    margin-bottom: 48px
}

.spacer_40 {
    margin-bottom: 40px
}

.spacer {
    margin-bottom: 32px
}

.spacer_s {
    margin-bottom: 24px
}

.spacer_16 {
    margin-bottom: 16px
}

#try-for-free {
    max-height: 325px
}

#try-for-free div>img {
    height: 100%;
    object-position: center top
}

#try-for-free div img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    object-position: 0% 21%
}

#try-for-free div {
    max-height: 100%
}

.toc h2 {
    margin-bottom: 8px
}

.toc__container>ul li {
    min-width: max-content;
    max-width: max-content
}

.toc__container>ul a {
    padding-left: 24px;
    padding-right: 24px
}

.toc__container {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent
}

.toc__container::-webkit-scrollbar {
    height: 8px
}

.toc__container::-webkit-scrollbar-track {
    background: 0 0;
    border-radius: 4px
}

.toc__container::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
    border: 1px solid rgba(251, 169, 44, .2)
}

.toc__container::-webkit-scrollbar-thumb:hover {
    background-color: #e69a1f
}

.toc .toc__container .swiper-scrollbar,
.toc__container .swiper-scrollbar,
section.toc .toc__container .swiper-scrollbar {
    position: relative !important;
    background: 0 0 !important;
    border-radius: 6px !important;
    height: 6px !important;
    margin-top: 1rem !important;
    min-width: 100% !important;
    opacity: 1 !important;
    transition: opacity .3s !important;
    left: 0;
    right: 0
}

.toc__container .swiper-scrollbar-drag {
    background-color: var(--accent);
    border-radius: 6px;
    border: 1px solid rgba(111, 0, 255, .2);
    height: 100%;
    position: relative;
    cursor: default
}

.toc__container.swiper-scrollbar-hidden .swiper-scrollbar {
    opacity: 0
}

.toc__container:hover .swiper-scrollbar {
    opacity: 1
}

.why {
    gap: 24px;
    align-items: center
}

.why>h2,
.why>p {
    text-align: center
}

.why>div:last-child {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap
}

.why>div:last-child>div {
    flex: 1 1 32.5%;
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
    justify-content: start;
    padding: 20px 15px;
    border-radius: var(--brad)
}

.why>div:last-child>div>div:first-child {
    height: 100%
}

.why>div:last-child>div>div>p:first-child {
    color: var(--textMain) !important;
    font-weight: 700 !important;
    margin-bottom: 0;
    font-size: 22px
}

.why>div:last-child>div>div>p:last-child {
    margin-top: auto;
    margin-bottom: 0
}

.why>div:last-child>div>div:last-child {
    background-color: var(--white30);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 100px
}

.why>div:last-child>div>div:last-child img {
    height: 100%;
    object-fit: contain;
    z-index: 10
}

@media (max-width:768px) {
    .reviews__card {
        height: initial !important;
        padding: 20px
    }

    .reviews__card p:first-child,
    .reviews__card>div p:first-child,
    .toc h2 {
        font-size: 24px !important
    }

    .reviews__card>div p:last-child {
        display: none
    }

    .reviews__card>p {
        margin-bottom: 22px
    }

    .reviews__card>a {
        margin-top: auto
    }

    .spacer_xxl {
        margin-top: calc(172px / 2)
    }

    .spacer_x {
        margin-top: calc(120px / 2)
    }

    .spacer_200 {
        margin-bottom: calc(200px / 2)
    }

    .spacer_100 {
        margin-bottom: 60px
    }

    .spacer_68 {
        margin-top: calc(68px / 2)
    }

    .spacer_60 {
        margin-top: calc(60px / 2)
    }

    .spacer_84 {
        margin-bottom: calc(84px / 2)
    }

    .spacer_64 {
        margin-bottom: calc(64px / 2)
    }

    .spacer_48 {
        margin-bottom: calc(48px / 2)
    }

    .spacer_40 {
        margin-bottom: calc(40px / 2)
    }

    .spacer {
        margin-bottom: calc(32px / 2)
    }

    .spacer_16 {
        margin-bottom: calc(16px / 2)
    }

    .spacer_s {
        margin-bottom: calc(24px / 2)
    }

    .why {
        flex-direction: column
    }

    .why>div:last-child>div {
        flex: 1 1 100% !important;
        gap: 8px
    }

    .why>div:last-child>div>div:last-child {
        max-width: 45px;
        min-width: 45px;
        max-height: 45px;
        min-height: 45px
    }

}

    /* ===== Experts (law-firm styling) ===== */
.expertreview {
  background: var(--bg);            /* как и другие секции */
  padding: 80px 0;
}
.expertreview h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.expertreview .highlight{
  color: var(--accent, --innerBg);
}

/* сетка */
.expertReview{
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
}

/* ссылки внутри цитат — золотой акцент */
.expertReview a{
  color: var(--accent);
  text-decoration: none;
}
.expertReview a:hover{
  border-color: var(--accent);
}

/* левый штрих у абзаца — тонкий золотой градиент */
.expertReview p{
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--innerBg)) 1;
  padding-left: 18px;
  margin: 0 0 1rem;
  font-style: italic;
}

/* автор */
.expertReview span{
  font-style: italic;
  opacity: .7;
  display:block;
  text-align:right;
}

/* карточки */
.review-card{
  background: var(--innerBg);
  border: 1px solid var(--innerBgAlt, --accent);
  border-radius: var(--radius, 18px);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow, 0 10px 24px rgba(0,0,0,.08));
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.review-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  border-color: var(--accent, --bg);
}

/* 2 колонки на десктопе */
@media (min-width: 900px){
  .expertReview{ grid-template-columns: 1fr 1fr; }
}
