html {
    font-size: 15px;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #2b2a2c;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

.user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 10px;
}
.user__content {
    margin-top: 10px;
}


/* Slick Slider */
.slick-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list {
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
    height: 100%;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    transform: translate3d(0, 0, 0);
}

.slick-track {
    height: 100%;
    position: relative;
    left: 0;
    top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.slick-track:before,
.slick-track:after {
    content: "";
    display: table;
}

.slick-track:after {
    clear: both;
}

.slick-loading .slick-track {
    visibility: hidden;
}

.slick-slide {
    float: left;
    height: 100%;
    min-height: 1px;
    display: none;
}

[dir="rtl"] .slick-slide {
    float: right;
}

.slick-slide img {
    display: block;
}

.slick-slide.slick-loading img {
    display: none;
}

.slick-slide.dragging img {
    pointer-events: none;
}

.slick-initialized .slick-slide {
    display: block;
}

.slick-loading .slick-slide {
    visibility: hidden;
}

.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
    display: none;
}

.slick-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    bottom: 1.4rem;
    left: 0;
    z-index: 2;
}

.slick-dots li {
    margin: 0 .5rem;
}

.slick-dots li.slick-active button {
    background-color: #fff;
}

.slick-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    background-color: #fff;
    border: 1px solid #fff;
    background: transparent;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
    cursor: pointer;
}

.slick-dots button:focus {
    outline: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
}

/* Header */
.header {
    padding: 1.2rem 0;
    position: relative;
    background-color: #fafdee;
}

@media (max-width: 767px) {
    .header {
        position: static; /* обычное поведение, не фиксированное */
        top: auto;        /* убираем привязку к верху */
        width: 100%;
        z-index: auto;   

        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        
        /* top: 0;
        left: 0;
        right: 0;
        z-index: 1000; */
    }
}

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

/* User */
.user {
    display: flex;
}

.user__avatar {
    width: 57px;
    height: 57px;
}

.user__avatar img {
    border-radius: 50%;
}

.user__content {
    padding-left: 9px;
}

.user__name {
    margin-bottom: 3px;
    font-size: 1.06rem;
    line-height: 1.2;
    color: #2b2a2c;
    font-weight: 700;
}

.user__prof {
    font-size: .8rem;
    color: rgba(43, 42, 44, 0.7);
}

/* Navigation */
.nav {
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
}

@media (max-width: 767px) {
    .nav {
        width: 100%;
        height: auto;
        padding: 1rem;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        text-align: center;
        display: none;
    }

    .nav.show {
        display: flex;
    }
}

.nav__link {

    position: relative;
    font-size: .93rem;
    color: #2b2a2c;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
}

.nav__link:after {
    content: "";
    width: 0;
    height: 2px;
    background-color: #2b2a2c;
    position: absolute;
    bottom: -5px;
    left: 0;
    z-index: 1;
    transition: width .2s linear;
}

.nav__link:hover:not(.nav__link--btn):after {
    width: 100%;
}

.nav__link--btn {
    padding: .66rem 2rem;
    border: 2px solid #2b2a2c;
    border-radius: 20px;
    transition: background-color .2s linear, color .2s linear;
}

.nav__link--btn:hover {
    background-color: #2b2a2c;
    color: #fff;
}

@media (max-width: 767px) {
    .nav__link {
        width: 100%;
        margin-left: 0;
        padding: .5rem 1rem;
    }
}

/* Intro */
@media (max-width: 767px) {
    .intro {
        margin-top: 100px;
    }
}

.intro__inner {
    display: flex;
    padding-top: 6.6rem;
    padding-bottom: 8rem;
    position: relative;
    background: url("../images/symbols.png") right bottom no-repeat;
    border-bottom: 1px solid rgba(106, 105, 107, 0.3);
}

@media (max-width: 991px) {
    .intro__inner {
        padding-top: 3rem;
        padding-bottom: 3rem;
        background-size: 400px auto;
    }
}

@media (max-width: 767px) {
    .intro__inner {
        background-size: 300px auto;
    }
}

.intro__content {
    width: 50%;
}

@media (max-width: 767px) {
    .intro__content {
        width: 60%;
    }
}

@media (max-width: 565px) {
    .intro__content {
        width: 100%;
    }
}

.intro__subtitle {
    font-size: 2.13rem;
    color: #2b2a2c;
    font-weight: 200;
}

@media (max-width: 991px) {
    .intro__subtitle {
        font-size: 1.5rem;
    }
}

.intro__title {
    margin-bottom: 5px;
    font-size: 3rem;
    color: #2b2a2c;
    font-weight: 700;
}

@media (max-width: 991px) {
    .intro__title {
        font-size: 2rem;
    }
}

.intro__text {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: rgba(43, 42, 44, 0.7);
}

.intro__photo {
    position: absolute;
    bottom: -1px;
    right: 135px;
    z-index: 1;
}

@media (max-width: 991px) {
    .intro__photo {
        width: 350px;
    }
}

@media (max-width: 767px) {
    .intro__photo {
        width: 300px;
    }
}

@media (max-width: 565px) {
    .intro__photo {
        display: none;
    }
}
/* Social Links */
.social {
    display: flex;
    margin-bottom: 42px;
}

.social__link {
    margin-right: 10px;
    text-decoration: none;
    transition: transform .2s linear;
}

.social__link:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    background-color:#fff;
    padding: .66rem 2rem;
    border: 2px solid #2b2a2c;
    border-radius: 20px;
    transition: background-color .2s linear, color .2s linear;
    margin-left: .5rem;
    position: relative;
    font-size: .93rem;
    color: #2b2a2c;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s linear, color .2s linear, box-shadow .2s linear, border-color .2s linear;
}

.btn:focus {
    outline: none;
}

.btn:hover {
    background-color: #2b2a2c;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.24);
    color: #fff;
    border-color: #2b2a2c;
}

.btn + .btn {
    margin-left: 1rem;
}

.btn--sm {
    padding: .7em 1.2em;
    min-width: 0;
    font-size: .94rem;
    font-weight: 700;
    border-width: 2px;
}

.btn--thin {
    min-width: 145px;
    font-size: .8rem;
}

@media (max-width: 991px) {
    .btn {
        font-size: 1rem;
        padding: 1em 1.5em;
        min-width: 140px;
    }
}

@media (max-width: 565px) {
    .btn {
        display: block;
        width: 100%;
    }

    .btn + .btn {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Works */
.works {
    margin: 2.8rem 0;
}

.works__nav {
    display: flex;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.works__nav-link {
    margin: 0 1.2rem;
    font-size: 1.2rem;
    color: rgba(43, 42, 44, 0.7);
    text-decoration: none;
}

.works__nav-link:hover {
    text-decoration: underline;
}

.work {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: box-shadow .2s linear;
}

.work:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
    .work {
        max-width: 370px;
    }
}

@media (max-width: 565px) {
    .work {
        margin: 0 auto;
    }
}

.work__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.work__content {
    padding: 1rem .8rem;
}

.work__cat {
    margin-bottom: .5rem;
    font-size: .8rem;
    color: #2b2a2c;
    text-transform: uppercase;
}

.work__title {
    display: flex;
    justify-content: space-between;
    font-size: 1.06rem;
    color: #2b2a2c;
    text-transform: uppercase;
    font-weight: 700;
}

/* Portfolio */
.portfolio {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem 2.8rem;
}

.portfolio__col {
    flex-basis: 33.33333%;
    padding:  1rem;
}

@media (max-width: 767px) {
    .portfolio__col {
        flex-basis: 50%;
    }
}

@media (max-width: 565px) {
    .portfolio__col {
        flex-basis: 100%;
    }
}

/* About */
.about {
    margin: 8.4rem 0;
}

@media (max-width: 991px) {
    .about {
        margin: 4rem 0;
    }
}

.about__inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1090px;
}

.about__photo,
.about__content {
    width: 50%;
}

@media (max-width: 991px) {
    .about__photo,
    .about__content {
        width: 100%;
    }
}

.about__photo {
    position: relative;
}

.about__photo img {
    position: absolute;
    bottom: 0;
    right: 150px;
    z-index: 2;
}

.about__photo:before {
    content: "";
    display: block;
    width: 413px;
    height: 413px;
    background-color: #f2f9e3;
    position: absolute;
    left: 1rem;
    bottom: 0;
    z-index: 1;
}

@media (max-width: 991px) {
    .about__photo {
        order: 2;
    }

    .about__photo:before {
        width: 100%;
        height: 300px;
        left: 0;
    }

    .about__photo img {
        position: relative;
        margin: 0 auto;
    }
}

.about__content {
    padding-left: 3.2rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .about__content {
        order: 1;
        margin-bottom: 2rem;
        padding-left: 0;
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

.about__title {
    font-size: 3rem;
    color: #2b2a2c;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .about__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .about__title {
        font-size: 2rem;
    }
}

.about__bigtitle {
    margin-bottom: 1.4rem;
    position: relative;
    left: -10px;
    font-size: 6.1rem;
    line-height: 1.1;
    color: rgba(43, 42, 44, 0.15);
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .about__bigtitle {
        font-size: 4rem;
    }
}

@media (max-width: 991px) {
    .about__bigtitle {
        position: static;
    }
}

@media (max-width: 767px) {
    .about__bigtitle {
        font-size: 3rem;
    }
}

.about__text {
    margin-bottom: 2.8rem;
    font-size: .9rem;
    line-height: 2;
    color: #484848;
    font-weight: 300;
}


/* =================== Articles (news cards) =================== */
.articles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.articles__col {
    width: 33.33333%;
    padding: 0 1rem;
}

@media (max-width: 767px) {
    .articles__col {
        width: 100%;
    }
}

.articles__item {
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .articles__item {
        max-width: 370px;
        margin: 0 auto 2rem;
    }
}

.articles__header {
    position: relative;
    margin-bottom: 1.35rem;
}

.articles__content {
    margin-bottom: 2rem;
}

.articles__date {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 77px;
    height: 77px;
    background-color: #2b2a2c;
    color: #fff;
    font-size: 1.06rem;
    line-height: 1.4;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.articles__photo {
    display: block;
    max-width: 100%;
    height: auto;
}

.articles__title {
    margin-bottom: .6rem;
    font-size: 1.2rem;
    color: #2b2a2c;
    text-transform: uppercase;
    font-weight: 700;
}

.articles__title a {
    color: inherit;
    text-decoration: none;
}

.articles__title a:hover {
    text-decoration: underline;
}

.articles__cat {
    margin-bottom: 1.5rem;
    font-size: .8rem;
    color: #2b2a2c;
    text-transform: uppercase;
}

.articles__text {
    font-size: .8rem;
    color: #6a696b;
    font-weight: 300;
    line-height: 2;
}


/* =================== Footer =================== */
.footer {
    padding: 1rem 0;
    background-color: #2b2a2c;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer__credits {
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .footer__credits {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 565px) {
    .footer__credits {
        flex-direction: column;
    }
}

.footer__copyright {
    padding-right: .8rem;
    margin-right: 1rem;
    font-size: .94rem;
    color: #bbc;
    border-right: 1px solid rgba(106,105,107,0.35);
}

@media (max-width: 565px) {
    .footer__copyright {
        margin-right: 0;
        margin-bottom: 1rem;
        border-right: 0;
    }
}

.footer__social {
    display: flex;
    align-items: center;
}

.footer__social a {
    margin-right: 1.2rem;
    text-decoration: none;
}

@media (max-width: 991px) {
    .footer__social a {
        margin: 0 .5rem;
    }
}

.footer__nav {
    display: flex;
    align-items: center;
    font-size: .94rem;
}

@media (max-width: 991px) {
    .footer__nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.footer__nav-link {
    margin-left: 1.5rem;
    color: #bbc;
    text-decoration: none;
}

.footer__nav-link:hover {
    text-decoration: underline;
}

.footer__nav-link--btn {
    padding: .5rem 1.4rem;
    border-radius: 20px;
    border: 1px solid #8d8d8e;
    line-height: 1.1;
}

.footer__nav-link--btn:hover {
    text-decoration: none;
    background-color: #bbc;
    border-color: #bbc;
    color: #2b2a2c;
}

@media (max-width: 991px) {
    .footer__nav-link {
        margin: 0 .5rem .5rem;
    }
}


/* =================== Modal =================== */
.modal {
    display: none;
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow: auto;
    background-color: rgba(6,15,49,0.9);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal__dialog {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    background-color: #fff;
    transform: scale(0);
    transition: transform .2s linear;
}

.modal__dialog--sm {
    max-width: 900px;
}

    .modal__close {
        
        
        padding: 0;
        background: none;
        border: 0;
        cursor: pointer;
        position: absolute;
        top: .4rem;
        right: .5rem;
        z-index: 1;
        transition: transform .2s linear;
    }
    .modal__close img {
        width: 30px;
        height: 30px;}

.modal__close:hover {
    transform: translateY(-2px) rotate(90deg);
}

.modal__content {
    padding: 5rem 1rem;
}

.modal__title {
    margin-bottom: 3.6rem;
    font-size: 3rem;
    text-transform: uppercase;
    color: #2b2a2c;
    font-weight: 700;
}

.modal__subtitle {
    text-transform: uppercase;
    font-size: 1.06rem;
    color: #2b2a2c;
    font-weight: 400;
}


/* =================== Modal Work (project view) =================== */
.modal-work {
    display: flex;
}

.modal-work__preview {
    width: 65%;
    position: relative;
    overflow: hidden;
}

.modal-work__photo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate3d(-50%, -50%, 0);
}

.modal-work__content {
    width: 35%;
    padding: 3.4rem 6.6rem 1rem 1.73rem;
    position: relative;
}

.modal-work__header {
    margin-bottom: 2.2rem;
}

.modal-work__title {
    margin-bottom: .2rem;
    font-size: 2.12rem;
    color: #2b2a2c;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-work__info {
    font-size: 1.2rem;
    color: #6a696b;
    text-transform: uppercase;
}

.modal-work__info-divider {
    margin: 0 1rem;
}

.modal-work__client {
    margin-bottom: 2.2rem;
}

.modal-work__client-title {
    margin-bottom: .2rem;
    font-size: 1.06rem;
    color: #2b2a2c;
    font-weight: 700;
}

.modal-work__client-company {
    font-size: .94rem;
    font-style: italic;
    color: #6a696b;
}

.modal-work__text {
    margin-bottom: 8.66rem;
    font-size: .8rem;
    line-height: 2;
    color: #6a696b;
    font-weight: 300;
}

.modal-work__footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.8rem 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.modal-work__btn {
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: .94rem;
    color: #2b2a2c;
    text-transform: uppercase;
}


/* =================== Timeline =================== */
.timeline {
    display: flex;
    margin: 4.2rem auto;
    width: 100%;
    max-width: 768px;
    position: relative;
}

.timeline:before {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background-color: #2b2a2c;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
}

.timeline__col {
    width: 50%;
}

.timeline__col--left {
    text-align: right;
    padding-right: 3.2rem;
}

.timeline__col--right {
    padding-left: 3.2rem;
}

.timeline__title {
    margin-bottom: 2.6rem;
    font-size: 1.2rem;
    color: #2b2a2c;
    text-transform: uppercase;
    font-weight: 700;
}

.timeline__item {
    margin-bottom: 2.6rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__date {
    display: block;
    margin-bottom: .8rem;
    text-decoration: underline;
    font-size: .94rem;
    color: #2b2a2c;
}

.timeline__subtitle {
    margin-bottom: .2rem;
    font-size: 1.06rem;
    color: #2b2a2c;
    font-weight: 700;
}

.timeline__position {
    font-size: .94rem;
    color: #2b2a2c;
    font-style: italic;
}

.timeline__text {
    margin-top: .8rem;
    font-size: .8rem;
    line-height: 1.5;
    color: #6a696b;
    font-weight: 300;
}


/* =================== Progress Bar =================== */
.progress-bar {
    margin-bottom: 2.6rem;
}

.progress-bar__item {
    display: flex;
    align-items: center;
    margin-bottom: .3rem;
}

.progress-bar__title {
    font-size: .94rem;
    font-weight: 300;
}

.progress-bar__right {
    padding-left: 1.2rem;
}

.progress-bar__bar {
    width: 139px;
    height: 6px;
    background-color: #efefef;
}

.progress-bar__progress {
    height: 100%;
    background-color: #6a696b;
    transition: width .2s linear;
}


/* =================== Contact =================== */
.contact {
    display: flex;
    background: url(https://placehold.it/477x700) right center no-repeat;
}

.contact__left {
    width: 47%;
    padding: 2rem;
}

.contact__info {
    margin: 2rem 0 3rem;
    padding: 0;
    list-style: none;
    font-size: .94rem;
    color: #2b2a2c;
    font-weight: 300;
}

.contact__info-item {
    display: flex;
    align-items: center;
    margin-bottom: .75rem;
}

.contact__info-item:last-child {
    margin-bottom: 0;
}

.contact__info-icon {
    margin-right: .75rem;
    width: 18px;
    height: 18px;
}


/* =================== Form =================== */
.form__group {
    margin-bottom: 1.8rem;
}

.form__label {
    display: inline-block;
    margin-bottom: .6rem;
    font-size: .8rem;
    color: #2b2a2c;
    font-weight: 700;
}

.form__input,
.form__textarea {
    display: block;
    width: 100%;
    padding: 1.3rem 1.8rem;
    border: 1px solid rgba(112,112,112,0.3);
    border-radius: 1.8rem;
    font-family: inherit;
    font-size: .8rem;
    line-height: 1.2;
    font-weight: 300;
    color: #2b2a2c;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #36abc7;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: #2b2a2c;
}

.form__textarea {
    height: 200px;
    resize: none;
}


/* =================== Burger (mobile menu button) =================== */
.burger {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    display: none;
}

@media (max-width: 767px) {
    .burger {
        display: block;
    }
}

.burger__icon {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =================== Utility / Helpers =================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.img {
    display: block;
    max-width: 100%;
    height: auto;
}

.mb-0 {
    margin-bottom: 0;
}

.hide {
    display: none !important;
}



/*  */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* увеличиваем глубину для реалистичного эффекта */
  }
  
  .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    transform-origin: left center; /* точка вращения */
    transform: rotateY(-90deg) scale(0.8); /* начальное закрытое состояние */
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* плавная «живая» анимация */
  }
  
  .modal.show .modal-content {
    transform: rotateY(0deg) scale(1); /* раскрыто */
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
   
 
  
  

  
  #butterfly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
  }
  
  .butterfly {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('https://i.pinimg.com/originals/ce/4e/a0/ce4ea062c764d5c127855573df87b15c.gif'); /* Прямая ссылка на бабочку */
    background-size: contain;
    background-repeat: no-repeat;
    animation: fly 5s linear forwards;
  }
  
  @keyframes fly {
    0% {
      transform: translate(0, 0) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translate(var(--x), var(--y)) rotate(0deg);
      opacity: 0;
    }
  }
  

  .hystmodal {
    background: #90909060;
    display: none;
    
    
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-flow: column nowrap;
    justify-content: center; /* см. ниже */
    align-items: center;
    z-index: 99;
    /* Чтобы окно не прилипало к границе
    браузера установим отступы */
    padding:30px 0;
}

.hystmodal__close {
    position: absolute;
    top: 0px;   /* расстояние от верхнего края */
    right: 0px; /* расстояние от правого края */
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }

.hystmodal__window {
    background: #fff;
    border-radius: 15px;

    /* Установим по умолчанию ширину 600px
    но она будет не больше ширины браузера */
    width: 800px;
    max-width: 100%;

    /* Заготовка для будущих анимаций */
    transition: transform 0.15s ease 0s, opacity 0.15s ease 0s;
    transform: scale(1);
}

.content  {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.content h2 {
    font-size: 25px;
    margin-bottom: 20px;
    text-align:center;
}
.content p {
    font-size: 18px;
}
.content img {
     display: block;
     width: 100%;     
     height: auto;    
     object-fit: cover;
  }
  
#myModal .row{ display:flex; 
    align-items:center; 
    gap:12px; 
    margin:12px 0; 
    }
#myModal .row img{ 
    width:32px !important; 
    height:32px !important; 
    object-fit:contain; 
    display:block; 
}
#myModal .row span{ 
    font-size:16px; 
    line-height:1.3; 
}
