html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.header {
    background-color: rgb(36, 17, 131);
    font-size: large;
}

.header__text-block_color-white,
.color-white {
    color: white;
}

.logo-image {
    max-width: 60vw;
}

.text-justify-mobile_center-tablet {
    text-align: justify;
}

.service__font__size{
    font-size: 1.15rem;
}

.nav-item {
    color: rgb(36, 17, 131);
}

.text-blue {
    color: rgb(36, 17, 131) !important;
    font-weight: 500;
}

.navbar li a:hover {
    color: rgb(7, 215, 173) !important;
}

.header__icon:hover {
    color: rgb(7, 215, 173);
    cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(31, 79, 97, 0);
}

.slide-2 {
    background: url(images/cargo.webp) center/cover no-repeat;
}

.slide-1 {
    background: url(images/ship.webp) center/cover no-repeat;
}

.slide-3 {
    background: url(images/truck1.webp) center/cover no-repeat;
}

.slide-4 {
    background: url(images/plane1.webp) center/cover no-repeat;
}
.slider-container {
    height: 700px;
}

.justified-text {
    text-align: justify;
}





.animated-button {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.7s ease, transform 1.7s ease;
    animation: slideIn 2.5s ease forwards;
}

.animated-heading-1 {
    opacity: 0;
    animation: fadeIn1 4s ease forwards;
}

.animated-heading-2 {
    transition: opacity 4s ease, transform 4s ease;
    animation: slideIn 5s ease forwards;
}

.animated-heading-2 span,
.animated-heading-1 span {
    font-size: 50px;
    color: white;
}

.animated-heading-3 {
    transition: opacity 3s ease, transform 3s ease;
    animation: slideIn 4s ease forwards;
}

@keyframes fadeIn1 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.branded-button {
    background: none;
    color: white;
    width: 16rem;
    height: 4rem;
    padding: 0.85em 0.75em;
    border: 2px solid #0c5adb;
    border-radius: 25px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.35s;
}

.branded-button::before {
    content: '';
    background: #0c5adb;
    position: absolute;
    top: 100%;
    bottom: 0;
    left: -100%;
    right: 100%;
    z-index: -1;
    padding: 0.85em 0.75em;
    display: block;
    width: 100%;
    height: 200%;
    transition: all 0.35s;
    rotate: 45deg;
}

.branded-button:hover::before {
    transform: scale(1.5, 2);
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    transition: all 0.35s;
}

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




.line {
    height: 10px;
    width: 180px;
    background-color: #ccc;
    border-radius: 5px;
}

.circle {
    height: 20px;
    width: 20px;
    clip-path: circle(50% at 50% 50%);
    background-color: #0c5adb;
    margin-top: -4.5px;

    animation-name: circleAnimation;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}


.circle-icon{
    background-color: #07D7AD;
    /* width: 80px;
    height: 80px; */
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 1s;
}

.circle-icon i{
    color: white;
    font-size: 175%;
}

.circle-icon:hover{
    transform: scale(1.1);
}

.circle-icon:hover i{
    color: gray;
}

@keyframes circleAnimation {
    from {
        margin-left: 0px;
    }

    to {
        margin-left: 160px;
    }
}





.service-card {
    border-style: ridge;
    transition: all 1s;
    border-color: whitesmoke;
    border-bottom-width: 3px;
    border-bottom-color: #0c5adb;
    height: 100%;
}

.carousel-indicators [databstarget] {
    background-color: #0c5adb;
}


.blue-text-color {
    color: #0c5adb;
}






.image-container-1,
.image-container-2 {
    overflow-x: hidden;
    overflow-y: hidden;
    background-repeat: repeat-y;
    height: auto;
}

.image-container-1 {
    background: url(images/cn-bg.jpg) center/cover no-repeat;
}

.image-container-2 {
    position: relative;
    /* Fallback для старых браузеров */
    background: url(images/customs-clearence-services.webp) center/cover no-repeat;
    /* Адаптивное фоновое изображение для современных браузеров */
    background-image: -webkit-image-set(
        url(images/optimized/customs-clearence-services-768w.webp) 1x,
        url(images/optimized/customs-clearence-services-1280w.webp) 1.5x,
        url(images/optimized/customs-clearence-services-1920w.webp) 2x
    );
    background-image: image-set(
        url(images/optimized/customs-clearence-services-768w.webp) 1x,
        url(images/optimized/customs-clearence-services-1280w.webp) 1.5x,
        url(images/optimized/customs-clearence-services-1920w.webp) 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-container-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.image-container-1 .row {
    height: auto;
}

.advantage-icon {
    width: 7rem;
    height: auto;
    box-sizing: border-box;
    object-fit: contain;
}

.row-advantage-icons {
    display: flex;
    align-items: stretch;
    /*обеспечивает одинаковую высоту для всех колонок*/
}

.row-advantage-icons h4 {
    height: 4rem;
}

.achievement-card {
    z-index: 2;
}

.record-card {
    background-color: #0c5adb;
    clip-path: circle(50% at 50% 50%);
    height: 87px;
    width: 87px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.record-card-border {
    border: 3px solid white;
    border-radius: 50%;
    height: 67px;
    width: 67px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s;
}

.record-card-border:hover {
    border: 3px solid #0c5adb;
    height: 87px;
    width: 87px;
    text-align: center;
}

.triangle {
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background-color: #0c5adb;
    height: 40px;
    width: 40px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -7px;
    border-radius: 5px;
    z-index: -2;
}


.contact-us-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    z-index: 1000;
}

.contact-us-container.column-layout {
    flex-direction: column;
}

.messenger-icons {
    display: none;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 1s;
    flex-direction: column;
}

.messenger-icons i {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.messenger-icons a {
    text-decoration: none;
}

.messenger-icons.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-text {
    font-size: 14px;
    color: black;
    background-color: rgba(233, 238, 244, 0.6);
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.contact-us-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgb(174, 114, 231);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.fa-viber {
    background-color: rgb(102, 92, 172);
}

.fa-whatsapp {
    background-color: limegreen;
}

.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.display,
.display1,
.display2,
.display3 {
    font-size: 70px;
}

.image-container-4 {
    background-color: whitesmoke;
    overflow: hidden;
    overflow-x: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
    justify-items: center;
    align-items: center;
    gap: 5px;
}




.grid-item {
    padding: 20px;
}

.grid-item img{
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}


@media (min-width: 768px) {
    .logo-image {
        max-width: 30vw;
    }

    .text-justify-mobile_center-tablet {
        text-align: center;
    }

    .grid-container{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }

    .grid-item img{
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .logo-image {
        max-width: 15vw;
    }

    .grid-container {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .advantage-icon {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 1920px) {
    .logo-image {
        max-width: 12vw;
    }
}

@media (min-width: 2560px) {
    .logo-image {
        max-width: 7vw;
    }
}
