.center_center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
@media screen and (max-width:600px) {
    ul.col2 {
        display: flex;
        flex-direction: column;
        row-gap: 0;
    }
}
#hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    font-size: 5vw;
    min-height: 540px;
}
#hero.small {
    max-width: 1000px;
    font-size: 2vw;
    max-height: 500px;
    margin: 0 auto 60px;
    border-radius: 15px;
}
.hero-left {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 60%;
    font-size: inherit;
    /* стилі для кращого вигляду */
}
.hero-right {
    width: 60%;
    margin-left: auto;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: inherit;
}
#hero.small .hero-left {
    max-width: 50%;
}
#hero h1, #hero h2 {
    font-size: max(1em, 2rem);
    line-height: .95;
    text-shadow: 0 0 20px #ffffff6b;
}
#hero h1 span.second, #hero h2 span.second {
    font: inherit;
    color: #ff8c00;
    padding-left: 8vw;
}
#hero h1 span.third, #hero h2 span.third {
    font-size: 1.75vw;
    color: #838383;
    display: block;
    padding: 0 20px 1.6vw 14vw;
    position: relative;
    font-weight: 300;
}
#hero span.hero-line {
    /*display: inline-block;*/
    display: none;
    height: 2px;
    width: 10vw;
    background: var(--font-color-accent);
    margin: 0 20px 2vw;
}

#hero p {
    font-size: max(.4em, 1rem);
    display: inline-block;
    max-width: 80%;
    text-shadow: 0 0 30px #ffffff;
    line-height: 1.2;
}




.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, #fff, transparent);
    z-index: 2;
    pointer-events: none;
}

.main-content-area {
    position: relative;
    background-color: white;
    padding: 80px 20px 40px;
    margin-top: -50px;
    z-index: 2;
    text-align: center;
}

.main-content-area::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%,0 100%);
    z-index: 3;
}

#hero::after {
    content: '';
    position: absolute;
    top: calc(100% - 50px);
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
    z-index: 3000;
}


/* Мобільна адаптація */
@media screen and (max-width:900px) {
    #hero {
        flex-direction: column; /* Stacks items vertically */
        height: auto; /* Allow height to adjust to content */
        overflow: visible; /* Allow content to overflow if needed */
    }
    #hero.small {
        max-height: none;
    }
    .hero-right {
        width: 100%; /* Take full width */
        height: 70vh; /* Give the image some height on mobile */
        margin-left: 0; /* Reset margin */
        order: 1; /* Puts hero-right first */
    }

    .hero-left {
        position: static; /* Remove absolute positioning */
        top: auto; /* Reset top */
        left: auto; /* Reset left */
        transform: none; /* Remove transform */
        max-width: 100%; /* Take full width */
        width: 100%; /* Adjust width for padding/margin */
        margin: 20px auto; /* Center with some vertical spacing */
        text-align: center; /* Center text for mobile */
        order: 2; /* Puts hero-left second */
    }
    #hero h1 span.second, #hero h2 span.second {
        padding-left: 0;
    }
    #hero.small .hero-left {
        max-width: 100%;
    }
    #hero.small .hero-right {
        max-height: 300px;
    }
    #hero.small .hero-right img {
        border-top-right-radius: 15px;
        border-top-left-radius: 15px;
    }

    #hero h1 {
        font-size: 13.5vw;
        font-weight: 500;
        /*text-shadow: 1px 1px 9px hsl(0deg 0% 0% / 24%);*/
    }
    #hero h1 span.third {
        font-size: 6vw;
        color: #000;
        display: block;
        font-weight: 300;
        top: 0;
        left: 0;
        padding: 3vw 0;
    }

    #hero span.hero-line {
        display: none;
    }
    #hero span.hero-space {
        display: none;
    }
    #hero p {
        font-size: max(3.3vw, 1.5rem);
        line-height: 1.25;
        color: #545454;
        max-width: 85%;
    }
    .hero-right::before {
        width: 101%;
        height: 30%;
        bottom: -1px;
        top: auto;
        background: linear-gradient(to top, #fff, transparent);
    }

}


#portfolio h2 {
    padding-bottom: 50px;
}

.swiper-container {
    width: 100%; /* Full width of the container */
    height: 500px; /* Fixed height as per your original request */
    position: relative;
}
.swiper-container {
    /*overflow-y: auto;*/
    /*-ms-overflow-style: none;  !* IE and Edge *!*/
    /*scrollbar-width: none;  !* Firefox *!*/
}
.swiper-container::-webkit-scrollbar {
    display: none;
}

.swiper-wrapper {
    display: flex; /* Flexbox for horizontal alignment */
}
.swiper-slide {
    width: auto; /* Slide width adjusts based on the image size */
    padding-right: 2px;
}
.swiper-slide img,
.swiper-slide figure
{
    height: 100%; /* Limit the image height */
    width: auto; /* Keep the natural aspect ratio */
}
.first-slide {
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px 0 20px;
    min-width: 100px;
}

.final-slide {
    padding: 20px;
    font-size: 1.2vw;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

a.portfolio-click {
    position: relative;
}
a.portfolio-click:after {
    content: attr(data-label);
    position: absolute;
    bottom: 2vw;
    left: 0;
    color: white;
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: clamp(1px, 7vw, 35px);
    font-weight: 600;
}

.lp-style {
    text-align: center;
    color: #5a5a5a;
    font-weight: 300;
    margin-top: 80px;
    padding: 0 10px 20px 10px;
}
.lp-style span:before {
    content: '';
    display: block;
    height: 1px;
    width: 30%;
    margin: 10px 35% 0;
    background: #ccc;
}
.lp-style span {
    display: block;
    font-size: 4rem;
    text-align: center;
    color: var(--font-color-accent);
    line-height: 1;
}

.attention_block {
    background-color: #e4f9ef;
    padding: 30px 10px 10px 10px;
    box-sizing: border-box;
    width: 100%;
    margin: 80px auto;
    max-width: 1000px;
    /* margin: 0 auto; */
    border-radius: 30px;
}

.attention_block .lp-style {
    margin-top:0;
}
.stylish {
    border-bottom: 0;
}
.stylish span:before {
    content: '';
    display: block;
    height: 1px;
    width: 90%;
    border-top: 1px solid var(--border-color);
}


#lp-list-services {
    max-width: 1200px;
    margin: 0 auto;
}
.lp-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 0;
    text-align: center;
}

.lp-services div {
    padding: 30px 10px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.lp-services div:hover {
    transform: translateY(-5px);
}

.lp-services img {
    margin-bottom: 20px;
    width: 100%;
}

.lp-services h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.lp-services p {
    font-size: 16px;
}

/* Два блоки в ряд при ширині < 1200px */
@media (max-width: 1200px) {
    .lp-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Один блок в ряд при ширині < 600px */
/*@media (max-width: 900px) {
    .lp-services {
        grid-template-columns: 1fr;
    }
}*/


#about {
    padding: 60px 10px;
}
.bg_gray{
    background-color: #ededed;
}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar_small {
    display: none;
}
.avatar_small img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}
@media (max-width: 900px) {
    .about-image {
        display: none;
    }
    .avatar_small {
        display: inline-block;
        max-width: 200px;
        border-radius: 50%;
    }
}
#about h2 {
    margin-top: 0;
}

.about-text {
    max-width: 600px;
}

.about-btn:hover {
    background-color: #d2ff00;
    color: #111;
}

/* Mobile adaptation */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .about-text p {
        font-size: 16px;
    }
}

#phases {
    max-width: 1200px;
    margin: 150px auto;
    display: flex;
    gap: 50px;
}

#phases h2.lp-style {
    margin-top: 0;
}

.image-col {
    flex: 1;
    min-width: 300px;
    background-image: url('https://cdn.dimasfrolov.com/img-gen/height/1000/70/lisboa/img/nikon.webp');
    background-size: cover;
    background-position: center;
}

.text-col {
    flex: 1;
    /*display: flex;*/
    /*align-items: center; !* optional, for vertical alignment *!*/
}

/* Responsive adjustments below 700px */
@media (max-width: 700px) {
    #phases {
        flex-direction: column;  /* Stack vertically */
        gap: 20px;               /* Reduced gap */
    }

    .image-col {
        /*order: -1;               !* Image first *!*/
        width: 100%;
        height: 150px;
        min-width: unset;        /* Remove min-width constraint */
    }

    .text-col {
        width: 100%;
    }
}




.phase {
    padding: 0 20px;
}
.phase-num {
    font-family: "Andale Mono", "Lucida Console", "Courier New", monospace;
    font-size: 1.6rem;
    padding: 14px 0 0;
}
.phase-num span {
    display: inline-block;
    width: calc(100% - 100px);
    height: 1px;
    background: var(--font-color-accent);
    margin: 0 20px 8px;
}
.phase h3 {
    font-size: 2.5rem;
    /*text-transform: capitalize;*/
}
.phase h3:first-letter {
    text-transform: capitalize;        /* Make the first letters uppercase      */
}

.phase h3, .phase .phase-descr {
    margin-left: 50px;
}


/*************************************/
/********  NEW REVIEW    *************/
/*************************************/
/*
.swiper-slide img.review_photo {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto;
    text-align: center;
    top: -150px;
    position: relative;
}

.review_block {
    width: calc(100% - 30px);
    max-width: 530px;
    margin: 80px 0 0;
    text-align: center;
}
.swiper-slide.one_review {
    width: calc(100% - 30px);
    max-width: 530px;
    margin: 80px 15px 0;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
}
.one_review {
    background: rgb(204,204,204);
    background: linear-gradient(180deg, rgba(204,204,204,.1) 0%, rgba(204,204,204,.1) 23%, rgba(255,255,255,.1) 100%);
    border-radius: 15px;
}
.review_text {
    padding: 0 25px 15px;
}
.review_name {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
}
.review_info {
    margin-top: -150px;
}
*/

/*************************************/
/********  NEW RATING    *************/
/*************************************/
.rating-new {
    max-width: 900px;
    width: 100%;
    grid-row-gap: 6vw!important;
    grid-column-gap: 3vw!important;
}
ul.col.rating-new li {
    grid-row: auto;
}
.rating-number {
    font-weight: 800;
    font-size: min(12vw, 3rem);
    font-family: monospace;
    line-height: 1em;
    /*display: block;*/
    letter-spacing: -7px;
}
.rating-number ~ span {
    white-space: nowrap;
    display: block;
    text-align: center;
    margin: 0;
}
.rate-text {
    font-size: .9rem;
    color: var(--font-color-accent)
}
.rating-new .trust-img {
    max-width: 180px;
    margin-top: -15px;
}
.rating-new a,
.rating-new a:hover
{
    text-decoration: none;
    border: 0;
    color: var(--font-color-main);
}
.rating-new a:hover {
    color: var(--font-color-accent);
    background-color: transparent;
    box-shadow: none;
}
.trust-img {
    padding: 0;
}
.rate-stars {
    height: 25px;
}
.rate-stars span {
    display: block;
    text-align: center;
    margin: 0 0 0 -8px;
    font-size: 14px;
    color: #ff9800;
}
.trust-img {
    display: inline-block;
    margin-bottom: -8px;
    padding: 0 23px;
    width: 100%;
    box-sizing: border-box;
    max-width: 250px;
}
#yandex-logo {
    padding: 0 40px;
}

@media screen and (max-width:700px) {
    .rating-new.col4 {
        grid-template-columns: repeat(2, 1fr);
    }
}



/******* REVIEW *********/




.img_review {
    width: 100%;
    text-align: center;
    display: block;
}
.white_plank, .white_plank2 {
    width: calc(100% - 40px);
    background-color: white;
    padding: 30px 20px;
    box-sizing: border-box;
}
.border-radius {
    border-radius: 20px;
}
.border-top-radius {
    border-radius: 20px 20px 0 0;
}
.border-bottom-radius {
    border-radius: 0 0 20px 20px;
}

.review-banner {
    position: relative;
}
.review-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 930 / 345;
}
.review-banner div {
    position: absolute;
    right: 25px;
    display: inline-block;
    max-width: 50%;
    top: 15%;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 400;
    text-align: right;
}

@media (max-width: 930px) {
    .review-banner div {
        font-size: 2.5vw;
        right: 2.5vw;
    }
}

.click-and-read-reviews {
    margin: -15px 0 15px 0;
    line-height: 1;
}

/********* GALLERIES BLOCK **********/


.story_new {
    padding-bottom: 15px;
    text-align: center;
}
.story_new img {
    width: 100%;
    height: auto;
}
.story_content, .private_block {
    --o: 1px;
    --b: 2px;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}

.story_content img {
    display: block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    object-fit: cover;
}

.story_content:after,
.private_block a span.for_img:after {
    content: '';
    border: var(--b) solid #fff;
    width:  calc(100% - var(--o)* 2 - 2*var(--b));
    height: calc(100% - var(--o)* 2 - 2*var(--b));
    display: block;
    z-index: 10;
    position: absolute;
    top: var(--o);
    left: var(--o);
    box-sizing: content-box;
    pointer-events: none;
    transition: .4s;
    opacity: 0;
    clip-path: polygon(0% 0%, 20% 0%, 20% 20%, 80% 20%, 80% 0%, 100% 0%, 100% 20%, 80% 20%, 80% 80%, 100% 80%, 100% 100%, 80% 100%, 80% 80%, 20% 80%, 20% 100%, 0% 100%, 0% 80%, 20% 80%, 20% 20%, 0% 20%);
}

.story_content:hover,
.private_block:hover {
    --o: 20px;
}
.story_content:hover:after,
.private_block:hover a span.for_img:after
{
    opacity: 1;
}

.story_new h3 {
    margin-bottom: -10px;
}
.story_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 5px;
}
@media screen and (max-width:1000px) {
    .story_grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .story_grid > .story_new:nth-child(n+7) {
        display: none;
    }
}
@media screen and (max-width:650px) {
    .story_grid {
        grid-template-columns: 1fr 1fr;
    }
    .story_grid > .story_new:nth-child(n+7) {
        display: block;
    }
}
.story_content {
    position: relative;
    width: 100%;
}
.story_content picture {
    width: 100%;
}
.story_content a {
    display: flex;
    aspect-ratio: 3 / 2;
}

.story_content div {
    box-sizing: border-box;
    position: absolute;
    display: block;
    width: 100%;
    top: 0;
    padding: 6px 0 50px;
    text-align: center;
    color: white;
    background: rgb(0,0,0);
    /*background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);*/
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);
    font-size: min(1vw, 17px);
}

.story_content a:hover div {
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    /*background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);*/
}

.story_content div h3 {
    color: white;
    padding-bottom: 0;
    font-size: 26px;
}

.story_content div span {
    display: block;
    /*margin-top: -.2vw;*/
    text-transform: uppercase;
    font-size: 14px;
}
@media screen and (max-width:650px) {
    .story_content div h3 {
        font-size: 20px;
    }
    .story_content div span {
        font-size: 12px;
    }
}
ul.list+h3 {
    padding-top: 1.3rem;
}

.blog_text h3 {
    font-size: 2.3rem;
}

/*********************/
.btn1 {
    background-color: #509995;
    color: #fff;
    padding: 13px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    margin: 5px 2px;
}

.btn1:hover,
.btn1:focus {
    background-color: #2e8c88;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    outline: none;
    color: #fff;
}

/******** COL Services ********/

.col-services-auto {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px 15px;
    grid-auto-flow: row;
    display: grid;
    grid-auto-columns: auto;
    width: 100%;
    list-style: none;
}


.col-services, .col-services2, .col-services3 {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: row;
    display: grid;
    grid-auto-columns: auto;
    width: 100%;
    list-style: none;
    gap: 30px 15px;
}
.col-services2 {
    grid-template-columns: 1fr;
}
.col-services3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-services2:has(:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}
.col-services.bylist {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.col-services.main_page {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.col-services > li, .col-services > a,
.col-services2 > li, .col-services2 > a,
.col-services3 > li, .col-services3 > a
{
    display: table-cell;
    vertical-align: top;
    border-radius: 10px;
    box-shadow: rgb(99 99 99 / 10%) 0 1px 8px 0;
    border: 1px solid #f1f1f1;
    cursor: pointer;
}
.col-services.bylist>li,
.col-services.bylist>a
{
    display: flex;
    text-decoration: none;
    align-items: center;
}
.col-services.main_page>a {
    text-decoration: none;
    align-items: center;
}
.col-services > li:hover, .col-services > a:hover,
.col-services2 > li:hover, .col-services2 > a:hover,
.col-services3 > li:hover, .col-services3 > a:hover
{
    cursor: pointer;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
}
.service_link  {
    display: block;
    padding: 10px 7px 10px;
    line-height: 1.3;
    text-decoration: none;
    text-align: left;
}
.col-services.bylist .service_link,
.col-services.main_page .service_link
{
    font-size: 1.3em;
    padding: 1em;
    line-height: 1;
    /*display: flex;*/
    text-decoration: none;
    align-items: center;
    font-weight: 400;
}
.col-services.main_page .service_link {
    text-align: center;
}

.col-services.bylist .service_link i,
.col-services.main_page .service_link i
{
    display: block;
    color: var(--font-color-main);
    font-size: .8em;
    line-height: 1;
    padding-top: 10px;
    font-style: normal;
    text-decoration: none;
}
.col-services-auto .img_box,
.col-services .img_box,
.col-services2 .img_box,
.col-services3 .img_box
{
    width: 100%;
    overflow: hidden;
    display: block;
}

.col-services .img_box {
    aspect-ratio: 2 / 3;
}

.col-services.bylist .img_box {
    /*aspect-ratio: 1 / 1;*/
    max-width: 100px;
    border-radius: 15px;
}
.col-services.main_page .img_box {
    aspect-ratio: 3.4 / 2;
}

.col-services .img_box {
    aspect-ratio: 2 / 3;
}
.col-services-auto .img_box,
.col-services2 .img_box {
    aspect-ratio: 1 / 1;
}
.col-services-auto>li,
.col-services2>li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 10px;
}
.col-services-auto h3,
.col-services2 h3 {
    padding: 20px 20px 5px;
    margin: 0;
    text-align: center;
}
.col-services-auto p,
.col-services2 p {
    padding: 10px 20px 5px;
    margin: 0;
    text-align: center;
}
.col-services-spacer {
    flex-grow: 1;
}
.img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-sizing: border-box;

}
@media screen and (max-width:800px) {
    .col-services.main_page {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width:600px) {
    .col-services {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-services.bylist {
        grid-template-columns: repeat(1, 1fr);
    }
    .col-services.main_page {
        grid-template-columns: repeat(1, 1fr);
    }
    .col-services.main_page>li,
    .col-services.main_page>a
    {
        display: flex;
        text-decoration: none;
        align-items: center;
    }
    .col-services.main_page .img_box {
        aspect-ratio: 1 / 1;
        max-width: 100px;
        height: 100%;
        border-radius: 10px;
    }
    .col-services.main_page .service_link {
        text-align: left;
    }
    .col-services-auto {
        grid-template-columns: 1fr;
    }

}


ul.col-gap {
    column-gap: 20px;
}

ul.col-gap li img {
    border-radius: 10px;
}

/* Honeypot */
.country_field {
    display: none !important;
}
