@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400..900&family=Onest:wght@100..900&display=swap');

body.no-scroll {
    /* overflow-y: scroll; */
    /* position: fixed; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    color: #1D3A5A;
}

body {
    /* max-width: 1280px; */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

main {
    z-index: -1000;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #333;
    border-top-color: transparent;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.heading {
    left: 50%;
    position: absolute;
    top: -100px;
    font-size: 2rem;
    transition: transform 0.1s linear;
    z-index: 2;
}

.header {
    /* max-width: 1024px; */
    margin: 0 auto;
    font-size: 16px;
    padding: 5px;
    width: 100%;
    position: relative;
}

.header__mobile-menu {
    display: none;
    visibility: hidden;
    left: -100%;
}

.header__nav {
    /* margin: 40px auto 0; */
    background-color: rgba(255, 255, 255, 0.6);
    width: 95%;
    max-width: 720px;
    padding: 8px;
    -webkit-box-shadow: 0px 0px 16px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 0px 16px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 0px 16px 0px rgba(34, 60, 80, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 10000;
    left: 50%;
    top: 40px;
    transform: translate(-50%, 0);
    transition: all 0.5s ease;
    gap: 16px;
    backdrop-filter: blur(5px) saturate(1.8);
}

.header__nav.sticky {
    top: 0;
    transition: all 0.5s ease;
}

.header__company {
    display: none;
}

.header__name {
    font-family: "Golos Text", sans-serif;
    font-size: 20px;
}

.header__text {
    font-size: 12px;
    color: #999999;
}

.burger-open,
.burger-close {
    position: absolute;
    transition: all 0.5s ease;
    transform: scale(0);
}

.showed {
    transition: all 0.5s ease;
    transform: scale(1);
}

.burger-menu {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 40px;
    cursor: pointer;
    display: none;
    padding: 12px 24px;
    border-radius: 100px;
}

.burger-menu.active .header__company {
    position: relative;

}


.burger-menu .bar {
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
}

.burger-menu:first-child {
    width: 6px;
}

.burger-menu.active .bar {
    background-color: #ffffff;
}

/* Анимация для активного состояния */
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}



.header__nav-list a {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 22px;
    color: grey;
    transition: color 150ms ease;
}


.header__nav-item:not(.active):hover a {
    color: #1D3A5A;
}


.button-link {

    background-color: #FFAD6E;
    color: #1D3A5A;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    display: flex;
    gap: 2.5px;
    align-items: center;
    cursor: pointer;
    transition: background-color 150ms ease;
    margin-left: auto;

}

.button-link:hover {
    background-color: #FFA35E;
}

.bigger {
    padding: 14px 30px;
    gap: 8px;
    margin: 32px auto 0;
    display: inline-flex;
    justify-content: center;
}


.active a {
    background-color: #1D3A5A;
    color: white;
}

.main {
    margin-top: 136px;
}

.intro,
.cases,
.choice {
    max-width: 1024px;
    margin: 0 auto 72px;
}

.intro {
    text-align: center;
}

.intro__skill-list {
    margin-top: 20px;
    font-size: 18px;
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.intro__skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
}

.tooltip {
    font-size: 14px;
    display: inline-block;
    width: 0;
    height: 0;
    background-color: #1D3A5A;
    color: #ffffff;
    text-align: start;
    position: absolute;
    bottom: 25px;
    /* left: -50px; */
    left: 50%;
    transform: translate(-45%);
    padding: 16px;
    border-radius: 8px;
    opacity: 0;
    z-index: -1000;


}

.intro__skill-item:first-child .tooltip {
    left: 0;
    transform: translate(0);
}

.intro__skill-item:last-child .tooltip {
    left: auto;
    right: 0;
    transform: translate(0);
}

.about__list-item:first-child {
    cursor: pointer;
}

.intro__skill-item:hover .tooltip,
.about__list-item:hover .tooltip {
    opacity: 1;
    width: 240px;
    height: auto;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.about__list-item:hover .tooltip {
    left: 150px;
    bottom: 25px;
}

.intro__title {
    font-size: 40px;
    margin-top: 20px;
}

.intro__text {
    color: #999999;
    font-size: 16px;
    margin-top: 20px;
    margin: 20px auto 0;
}

.intro__social {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 16px;
}

.intro__social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 100px;
    border: 1px solid #000000;
    background-color: #ffffff;
    cursor: pointer;
}

.cases {
    color: #ffffff;
    margin-bottom: 0;
}

.bottom {
    margin-top: -120px;
    position: relative;
    z-index: 1000;
}

.cases.wave {
    /* margin-top: -300px; */
    color: #ffffff;
}

.border-wave {
    position: absolute;

    width: 100%;
    /* top: 140px; */
    bottom: 0;
}

.rotated {
    transform: rotate(180deg);
}

.gray {
    background-color: #3E4362;
    position: relative;
}

.cases__title {
    margin-top: 40px;
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
}

.cases__title--black {
    font-size: 32px;
    font-weight: 400;
    color: #000000;
}

.white-filter img {
    fill: #000000;
}

.green-filter {
    width: 16px;
    height: 16px;
    fill: green;
    /* filter: invert(73%) sepia(12%) saturate(1528%) hue-rotate(101deg) brightness(93%) contrast(92%); */
    stroke: #a3a3a3;
}

.cases__text {
    margin-top: 20px;
    color: #ffffff;
}

.cases__list {
    margin-top: 20px;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cases__item {
    font-size: 16px;
    font-weight: 400;
    padding: 12px 16px;
    border-radius: 100px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.reverse {
    background-color: #b3e7d0;
    color: #000000;
}

.about {
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
}

.about__title {
    font-size: 80px;
    color: #1D3A5A;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.about__name {
    font-size: 32px;
    font-weight: 700;
    font-family: "Golos Text", sans-serif;
}

.about__content {
    position: relative;
    border-radius: 100px;
    border: 4px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.6);
    /* Белый с 30% непрозрачности */
    border-radius: 24px;
    /* Скругленные углы */
    padding: 48px;
    color: black;
    /* Цвет текста внутри блока */
    font-size: 18px;

    /* Эффект размытия и увеличения заднего фона */
    backdrop-filter: blur(5px) saturate(1.8);

    -webkit-box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    display: flex;
    gap: 40px;
}

.about__image {
    width: 260px;
    height: 340px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Hero layout */
.intro__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}

.intro__hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro__hero-text .intro__skill-list {
    justify-content: flex-start;
}

.intro__hero-photo {
    height: 540px;
    border-radius: 24px;
    overflow: hidden;
}

.intro__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about__text {
    font-size: 16px;
    margin-top: 32px;
    color: #999999;
}

.about__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 32px;
}


.about__list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.about__list-item:first-child p {
    border-bottom: 1px dashed #1D3A5A;
}


.about__list-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.about__cert-list {
    margin-top: 32px;
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.about__cert-item {
    color: #ffffff;
    padding: 8px 16px;
    background-color: #a3a3a3;
    border-radius: 100px;
    font-size: 16px;
}

.choice {
    max-width: 1024px;
    margin: 60px auto;
}

/* Основной стиль для коллапс-блоков */
.accordion {
    list-style: none;
    gap: 20px;
    font-size: 24px;
    overflow: hidden;
}

.accordion-header,
.accordion__background-header {

    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
    /* Убирает синий фон при нажатии */
}

.accordion-header p {
    color: #1D3A5A;
}

.accordion__background {
    padding: 40px;
    left: 0;
    top: -145%;
    transform: translate(0, -50%);
    width: 100%;
    position: absolute;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, .5) 100%);
    background-position: center;
    /* object-fit: cover; */
    transition: top 400ms ease;
    background-size: cover;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion__background-img {}


.accordion__background p {
    color: #ffffff;
}

.accordion__background-text {
    font-size: 16px;
}

.accordion-header {
    outline: none;
    /* Убирает синий контур */
}

.accordion-header:focus {
    outline: none;
    /* Убирает эффект фокуса */
}

.accordion-item:focus {
    outline: none;
}


/* Контент блока с плавным переходом */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    /* border-top: 1px solid #ddd; */
    transition: all 0.5s ease, padding 0.3s ease;
    list-style: none;
}

/* Стили для отображаемого контента */
.faq__list-item.active .accordion-content {
    max-height: 1000px;
    /* Укажите максимальную высоту, достаточную для контента */
    padding: 15px;
}


.reviews__card-header.active .accordion-content {
    max-height: 1000px;
}

.arrows {
    display: flex;
    align-items: center;
    transform: rotate(-45deg);
    justify-content: center;
    width: 40px;
    height: 40px;
}

.faq__list-item:hover>.faq__header>.arrows>.arrow-left {
    margin-right: 6px;
    transition: all 0.4s ease;
}

.faq__list-item:hover>.faq__header>.arrows>.arrow-right {
    margin-left: -6px;
    transition: all 0.4s ease;
}

.arrow-left {
    fill: #FFAD6E;
    margin-right: -2px;
    transition: margin-right 0.4s ease;
}

.prev.btn svg,
.next.btn svg {
    fill: #1D3A5A;
}

.prev.btn:hover {
    background-color: #1D3A5A;
    transition: all 150ms ease;
}

.prev.btn:hover .arrow-left {
    transition: all 150ms ease;
    fill: #fff;
}

.arrow-right {
    fill: #FFAD6E;
    margin-left: -2px;
    transition: all 0.4s ease;
}

.next.btn:hover {
    background-color: #1D3A5A;
    transition: all 150ms ease;
}

.next.btn:hover .arrow-right {
    transition: all 150ms ease;
    fill: #fff;
}

.accordion-item.active>.accordion-header>.arrows>.arrow-left,
.accordion-item.active>.accordion-header>.arrows>.arrow-right {
    transform: rotateY(180deg);
}

.choice__list {
    list-style: none;
    margin-top: 20px;
    gap: 20px;
    font-size: 24px;
}

.choice__list-item {
    height: 110px;
    display: flex;
    /* flex-direction: column; */
    padding: 40px;
    border-bottom: 1px solid #FFAD6E;
    gap: 8px;
    cursor: pointer;
    position: relative;
    overflow-y: hidden;
    transition: height 0.3s ease;
}

.choice__list-item:last-child {
    border-bottom: none;
}

.choice__list-item:hover {
    height: 140px;
    transition: height 0.3s ease;
}

.choice__list-item:hover .accordion-header {
    opacity: 0;
}

.choice__list-item:hover .accordion__background-img {
    fill: #ffffff;
}

.choice__list-item:hover .accordion__background {
    top: 50%;
}

.choice__list-background {}

.choice__list-background {
    background: url('../img/14bc428b22451a22473f320bda284211.jpg');
    background-position: center;
    height: 200px;
    /* width: 100%; */
}

.faq,
.contacts,
.reviews,
.about {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px;
}

.services {
    margin: 120px auto 0;
    max-width: 1024px;
}

.services a {
    width: 100%;
}

.services__title,
.reviews__title {
    font-size: 80px;
    color: #1D3A5A;
    font-weight: 700;
    text-align: center;
    line-height: 96px;
    margin-bottom: 20px;
}


.first {

    margin-top: -170px;
    transform: scale(1);
    z-index: 100;
}

.second {
    margin-top: -175px;
    transform: scale(0.9);
}

.third {
    top: -73px;
    transform: scale(0.8);
    z-index: -1;
}


.new {
    position: absolute;
    top: 160%;
}

.up {
    top: 60%;
}

.hidden {
    opacity: 0;
}

.services__cards {
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.services__card {
    flex: 1;
    position: relative;
    border: 4px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 20px;
    color: black;
    backdrop-filter: blur(5px) saturate(1.8);
    -webkit-box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    display: flex;
    flex-direction: column;
    height: auto;
}

.services__card .button-link {
    padding: 14px 22px;
}

.services__card-title {
    font-size: 24px;
    font-weight: 100;
    margin-bottom: 24px;
}

.services__card-duration {
    font-size: 16px;
    font-weight: 400;
    color: #a3a3a3;
    margin-bottom: 24px;
}

.services__card-price {
    font-size: 32px;
    font-weight: 700;
}

.services__card-text {
    font-size: 16px;
    font-weight: 400;
    color: #a3a3a3;
    line-height: 1.5;
    min-height: 48px;
}

.services__card-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.reviews {
    margin-top: 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}


.reviews__cards {
    position: relative;
    justify-content: center;
    /* perspective: 300px; */


}

.reviews__card {
    max-height: 2000px;
    width: 100%;
    flex: 1;
    /* position: absolute; */
    border: 4px solid #ffffff;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 24px;
    padding: 44px;
    color: black;
    backdrop-filter: blur(5px) saturate(1.8);
    -webkit-box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 24px 0px rgba(34, 60, 80, 0.2);
    transition: all 0.3s ease-in;
}

.quote {
    position: absolute;
}

.quote {
    top: 0;
    left: 0;
}

.quote.right {
    left: auto;
    right: 0;
    top: 20%;
}

.quote.bottom {
    left: 15%;
    top: auto;
    bottom: 0;
}

.reviews__card-header {
    margin-bottom: 24px;
    overflow: hidden;
    max-height: 1000px;
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    transition: all 300ms ease-in-out;
}

.reviews__card-review {
    font-family: "Golos Text", serif;
    padding-bottom: 32px;
    border-bottom: 1px solid #FFAD6E;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
}

.reviews__card-comment,
.reviews__card-date {
    font-size: 16px;
    color: #1D3A5A;
    font-weight: 400;
    transition: all 150ms ease;

}

.reviews__card-comment.accordion-content {
    padding: 0;
}

.main-comment {
    max-height: 40px;
    overflow: hidden;
}

.reviews__card-more.accordion-header {
    background: none;
    border: none;
    color: #FFAD6E;
    cursor: pointer;
    margin-top: 4px;
}

.reviews__card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews__card-control {
    display: flex;
    gap: 8px;
}

.btn {
    border: 1px solid #000000;
    padding: 16px 32px;
    background-color: #ffffff;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.faq__title {
    margin-bottom: 20px;
}

.faq__list {
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq__list-item {
    padding: 24px;
    border-radius: 8px;
    cursor: pointer;
    -webkit-box-shadow: 0px 4px 24px 0px rgba(163, 163, 163, 0.3);
    -moz-box-shadow: 0px 4px 24px 0px rgba(163, 163, 163, 0.3);
    box-shadow: 0px 4px 24px 0px rgba(163, 163, 163, 0.3);
}

.faq__header {
    display: flex;
    gap: 32px;
    align-items: center;
}

.faq__header p {
    font-size: 18px;
}

.faq__text {
    font-size: 16px;
    color: #999999;
    margin-left: 58px;
}

.contacts__list-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 12px;
    width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn__img {
    fill: #ffffff;
    transition: all 150ms ease;
}

.contacts__list-btn:hover .btn__img {
    fill: #1D3A5A;
}

.contacts__list-btn:hover {
    color: #1D3A5A;
    background-color: #ffffff;
}

.contacts__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts__list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.contacts__list-text {
    font-size: 24px;
    font-weight: 100;
    color: #ffffff;
}

.line {
    width: 100%;
    height: 1px;
    background-color: #a3a3a3;
    display: block;
}



.contacts__title {
    margin-bottom: 48px;
    color: #ffffff;
}

.wrapper {
    padding: 20px 0 60px;
}

.wrapper.footer {
    margin-top: 56px;
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #3E4362;
    z-index: 100;
}

.border-wave .bottom {
    position: absolute;

    width: 100%;
    /* top: 140px; */
    bottom: 0;
    z-index: -100;
}


.wrapper.footer .border-wave {
    top: 0;
}


@media (max-width: 1024px) {

    .intro,
    .cases,
    .choice,
    .about,
    .services__cards {
        padding: 0 40px;
    }

    .services__card .button-link {
        padding: 14px 0.2em;
    }
}

@media (max-width: 950px) {
    .services__card {
        padding: 10px;
    }
}
@media (max-width: 890px) {
    .services__card {
        padding: 20px;
    }

    .services__cards {
        flex-direction: column;
        padding: 24px;
    }
}

@media (max-width: 768px) {

    .intro,
    .cases,
    .choice,
    .about {
        padding: 0 24px;
    }

    .about__title,
    .reviews__title,
    .services__title {
        font-size: 64px;
    }

    .content {
        position: relative;
    }

    .choice__list-item:hover {
        height: 200px;
        transition: height 0.3s ease;
    }

    .intro__title {
        font-size: 28px;
    }

    .intro__hero {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .intro__hero-photo {
        height: 360px;
        order: -1;
        border-radius: 24px 24px 0 0;
        margin-bottom: 24px;
    }

    .intro__hero-text {
        align-items: center;
        text-align: center;
    }

    .intro__hero-text .intro__skill-list {
        justify-content: center;
    }

    .about__image {
        width: 200px;
        height: 260px;
    }

    .about__name {
        text-align: left;
    }

    .services__cards,
    .about__content {
        flex-direction: column;
        padding: 24px;
    }

    .about__left {
        margin: auto;
    }





    .contacts__list-text,
    .line {
        display: none;
    }

    .contacts__list {
        align-items: center;
    }

    .contacts__list-btn {
        flex: 1;
    }


}

/* @media (max-width: 640px) {
    .reviews {
        height: 840px;
    }
} */


@media (max-width:675px) {
        .burger-menu {
        background-color: #5ACB99;
        display: flex;
        z-index: 200;
        padding: 12px 32px;

    }

    .header__company {
        display: block;
        position: relative;
        z-index: 1000;
    }

    .burger-menu.active .header__name {
        color: #ffffff !important;
    }

    .header__nav {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 17px 24px;
        gap: 16px;
        justify-content: start;
    }

    .header__mobile-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        visibility: visible;
        top: 0;
        position: fixed;
        background-color: rgba(62, 67, 98, 0.99);
        width: 100%;
        height: 100%;
        transition: left 0.3s ease;
        color: #ffffff;
        transition: all 0.5s ease;
        padding: 96px 24px 24px;
        z-index: 1000;
    }

    .header__nav-list.mobile {
        display: none;
    }

    .header__mobile-nav-list {
        display: flex;
        list-style: none;
        width: 100%;
        flex-direction: column;
        gap: 16px;

    }

    .header__mobile-nav-item,
    .header__mobile-nav-link {
        color: rgba(255, 255, 255, .5);
        font-size: 24px;
    }

    .header__mobile-nav-item.active {
        font-weight: 700;
    }

    .header__mobile-nav-list a {
        background-color: inherit;
        text-decoration: none;
        padding: 0;
        border-radius: 0;
        width: 100%;
        display: inline-block;
        text-decoration: none;
    }

    .header__mobile-nav-list a::after {
        content: '';
        text-decoration: none;
        border-radius: 0;
        width: 0;
        background-color: #FFAD6E;
        height: 2px;
        display: block;
        margin-top: 4px;
        transition: width 0.5s ease-in-out;
    }

    .header__mobile-nav-list a:hover::after {
        width: 100%;
        background-color: #FFAD6E;
    }

    .active a::after {
        width: 100%;
        background-color: #FFAD6E;
    }

    .header__mobile-menu.show {
        left: 0;
        z-index: 1000;
    }
}

@media (max-width: 480px) {


    .new {
        position: absolute;
        top: -120px;
        left: -120%;
    }

    .intro {
        margin: 20px auto 40px;
    }

    .intro__hero-photo {
        height: 260px;
        border-radius: 0;
    }

    .header__nav {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 17px 24px;
        gap: 16px;
        justify-content: start;
    }

    body.no-scroll .header__nav {
        background: none;
    }

    body.no-scroll .header__name,
    body.no-scroll .header__text {
        color: #fff;
    }

    body.no-scroll .button-link.header-btn {
        opacity: 0;
        pointer-events: none;
    }

    .burger-menu {
        margin-left: 0;
    }

    .button {
        margin-left: auto;
    }

    .main {
        margin-top: 116px;
    }


}

@media (max-width:550px) {
    .intro__skill-item:first-child .tooltip {
        left: 0;
    }

    .intro__skill-item:last-child .tooltip {
        left: -120px;
    }



    .about__list-item:hover .tooltip {
        bottom: 50px;
    }
}

@media (max-width:420px) {
    .header__nav {
        padding: 14px 5px;
    }

    .choice__list-item:hover {
        height: 250px;
        transition: height 0.3s ease;
    }

    .reviews__card {
        padding: 25px;
    }

    .first {
        margin-top: -130px;
    }

    .second {
        margin-top: -135px;
    }
}


.container {
    position: relative;
    overflow: hidden;
}



.toast {
    position: fixed;
    top: 36px;
    right: 36px;
    background-color: #5ACB99;
    color: #1D3A5A;
    padding: 16px;
    border-radius: 8px;
    opacity: 0;
    /* Скрыто по умолчанию */
    transform: translateY(-20px);
    /* Начальная позиция */
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    /* Нельзя кликнуть */
    z-index: 100000000;
}

.toast.showy {
    opacity: 1;
    /* Показать */
      pointer-events: auto;
}

/* ===== HEADER PHONE ===== */
.header-phone {
    display: none;
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .header-phone {
        display: inline-block;
    }
}

/* ===== TRUST STRIP ===== */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #f0faf6;
    border-radius: 16px;
    padding: 24px 32px;
    margin: 24px 0 0;
}

.trust-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.trust-strip__number {
    font-size: 32px;
    font-weight: 700;
    color: #1D3A5A;
    line-height: 1;
}

.trust-strip__label {
    font-size: 13px;
    color: #5a7a9a;
    text-align: center;
}

.trust-strip__divider {
    width: 1px;
    height: 40px;
    background: #c5ddd0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .trust-strip {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px 16px;
    }
    .trust-strip__item {
        flex: 1 1 40%;
    }
    .trust-strip__divider {
        display: none;
    }
    .trust-strip__number {
        font-size: 26px;
    }
}

/* ===== STICKY CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-cta__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #5ACB99;
    color: #1D3A5A;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(90, 203, 153, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sticky-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(90, 203, 153, 0.6);
}

@media (max-width: 480px) {
    .sticky-cta {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    .sticky-cta__btn {
        justify-content: center;
    }
}

/* ===== DIKIDI MODAL ===== */
.dikidi-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99000;
}

.dikidi-modal.open {
    display: block;
}

.dikidi-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.dikidi-modal__box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 860px;
    height: 85vh;
    max-height: 700px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dikidi-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #1D3A5A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dikidi-modal__box iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
}

.dikidi-modal__fallback {
    display: none;
    padding: 40px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .dikidi-modal {
        /* Запрещаем любой горизонтальный выход за пределы экрана */
        overflow: hidden;
    }
    .dikidi-modal__box {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        transform: none;
        box-sizing: border-box;
        overflow: hidden;
    }
    .dikidi-modal__box iframe {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }
    .dikidi-modal__close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        z-index: 100010;
    }
}


/* ============================================================
   UI/UX PRO MAX — DESIGN SYSTEM UPGRADES
   Trust & Authority / Wellness / Soft Professional
   ============================================================ */

/* --- 1. TYPOGRAPHY: Lora for headings (warmth + trust) --- */
h1, h2, h3,
.intro__title,
.about__title,
.about__name,
.services__title,
.choice__title,
.cases__title,
.faq__title,
.contacts__title {
    font-family: 'Lora', Georgia, serif;
    font-optical-sizing: auto;
}

.intro__title {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #1D3A5A;
}

/* --- 2. CONTRAST FIX: #999999 fails WCAG 4.5:1 on white --- */
.intro__text,
.services__card-duration,
.services__card-text,
.about__text,
.faq__text {
    color: #5a6e85 !important;
    line-height: 1.65;
}

/* --- 3. BUTTON POLISH: min-height 44px, transform hover, focus --- */
.button-link {
    min-height: 44px;
    transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.button-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 163, 94, 0.35);
}

.button-link:active {
    transform: translateY(0);
}

.button-link:focus-visible {
    outline: 3px solid #FFAD6E;
    outline-offset: 3px;
}

/* --- 4. FOCUS STATES: keyboard accessibility (WCAG) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #5ACB99;
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- 5. SERVICE CARDS: hover lift effect --- */
.services__card {
    transition: transform 200ms ease, box-shadow 200ms ease !important;
    cursor: default;
}

.services__card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 12px 40px 0px rgba(29, 58, 90, 0.18) !important;
}

/* --- 6. SECTION TITLES: elegant underline accent --- */
.services__title,
.about__title,
.contacts__title {
    position: relative;
    display: inline-block;
}

.services__title::after,
.about__title::after,
.contacts__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #5ACB99;
    border-radius: 2px;
    margin-top: 10px;
}

/* --- 7. NAV LINKS: cursor + transition --- */
.header__nav-list a,
.header__nav-link {
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
}

/* --- 8. HEADER PHONE: better styling --- */
.header-phone {
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 150ms ease;
    opacity: 0.8;
}

.header-phone:hover {
    opacity: 1;
    color: #5ACB99;
}

/* --- 9. TRUST STRIP: refined visual --- */
.trust-strip {
    border: 1px solid #d4ede3;
    box-shadow: 0 2px 12px rgba(90, 203, 153, 0.12);
}

.trust-strip__number {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    color: #1D3A5A;
}

/* --- 10. INTRO SKILLS BADGES: better hover --- */
.intro__skill-item {
    transition: transform 150ms ease;
    cursor: default;
}

.intro__skill-item:hover {
    transform: scale(1.03);
}

/* --- 11. FAQ ACCORDION: smoother feel --- */
.faq__header,
.accordion-header {
    cursor: pointer;
    transition: background-color 150ms ease;
}

/* --- 12. CONTACTS LIST: hover highlight --- */
.contacts__list-item {
    transition: background-color 150ms ease;
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.contacts__list-btn {
    transition: color 150ms ease, transform 150ms ease;
}

.contacts__list-btn:hover {
    transform: translateX(3px);
}

/* --- 13. ABOUT IMAGE: subtle hover --- */
.about__image {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.about__left:hover .about__image {
    transform: scale(1.01);
    box-shadow: 0 16px 48px rgba(29, 58, 90, 0.2);
}

/* --- 14. REDUCED MOTION: respect user preference --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- 15. MOBILE TITLE SIZE --- */
@media (max-width: 768px) {
    .intro__title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .intro__title {
        font-size: 28px;
    }
}

/* === HEADER FIX: телефон не ломает строку === */
.header__nav {
    max-width: 900px !important;
}

.header__nav-list a {
    padding: 12px 16px !important;
    white-space: nowrap;
    font-size: 15px;
}

.header-phone {
    white-space: nowrap;
    font-size: 14px;
    flex-shrink: 0;
}

.header-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* === MOBILE FIXES: баги в мобильной вёрстке === */
@media (max-width: 768px) {
    /* Заголовки секций — было 64px (больше десктопа!), исправляем */
    .about__title,
    .reviews__title,
    .services__title,
    .contacts__title,
    .cases__title {
        font-size: 32px !important;
    }

    /* Фото в герое — не должно занимать всё первое касание */
    .intro__hero-photo {
        height: 280px !important;
    }

    /* Trust strip — 2 колонки на мобиле */
    .trust-strip {
        flex-wrap: wrap;
        padding: 20px 16px;
    }
    .trust-strip__item {
        flex: 1 1 40%;
        min-width: 0;
    }
    .trust-strip__divider {
        display: none;
    }
    .trust-strip__number {
        font-size: 26px;
    }

    /* Sticky CTA — на всю ширину */
    .sticky-cta {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .sticky-cta__btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Телефон в шапке — скрыть на мобиле */
    .header-phone {
        display: none !important;
    }

    /* Герой — без фото на самых маленьких экранах */
    .intro__hero-photo {
        height: 220px !important;
    }

    /* Карточки услуг — убрать лишний паддинг */
    .services__cards {
        padding: 16px !important;
        gap: 16px;
    }

}

/* COLLAPSIBLE ABOUT (mobile) */
@media (max-width: 768px) {
  .about__bio {
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
  }
  .about__bio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.4em;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .about__bio.expanded {
    max-height: 600px;
  }
  .about__bio.expanded::after {
    opacity: 0;
  }
  .about__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 0;
    color: #2ecc8b;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
  }
  .about__toggle svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }
  .about__toggle.expanded svg {
    transform: rotate(180deg);
  }
}
@media (min-width: 769px) {
  .about__toggle {
    display: none;
  }
}

/* === MOBILE BUTTON SHRINK + HERO PHOTO CROP === */
@media (max-width: 768px) {
  /* Кнопки меньше — не вылезают за пределы */
  .button-link {
    font-size: 14px !important;
    padding: 10px 18px !important;
    min-height: 40px !important;
  }
  .button-link.bigger {
    padding: 11px 20px !important;
    font-size: 15px !important;
  }
  .services__card .button-link {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  /* Кнопка в шапке — компактнее */
  .header-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    min-height: 36px !important;
  }
  /* Фото героя: лёгкое смещение вниз чтобы воздух над головой уходил */
  .intro__photo {
    object-position: center 5% !important;
  }
  /* Высоту чуть снижаем чтобы не занимала весь экран */
  .intro__hero-photo {
    height: 240px !important;
  }
}
@media (max-width: 480px) {
  .intro__photo {
    object-position: center 5% !important;
  }
  .intro__hero-photo {
    height: 200px !important;
  }
}
