 body {
     font-family: Arial, sans-serif;
     margin: 0;
     padding: 0;
 }
 *,
 *::before,
 *::after {
     box-sizing: border-box;
 }
 .grid{
    display: grid;
 }
 .orange{
    color:rgb(219, 89, 38);
    /* font-weight: 600; */
 }
 .small{
    font-size: 0.6rem;
 }
 p{
    text-indent: 10px;
 }
a {
    text-decoration: none;
    color: #012269;
}
a:hover {
    text-decoration: none;
}
 .main-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    background-color:#c2bfbf;
    box-sizing: border-box;
 }
 .navbar {
    padding: 10px 40px;
    justify-content: flex-end;
    flex-wrap: wrap;
 }

 .navbar-brand {
     flex-shrink: 0;
 }

.logo-image {
    margin-top: 20px;
    height: 150px;
    width: auto;
}

 .navbar-buttons {
    flex-direction: column;
     margin-left: auto;
     margin-top: 10px;
    align-items: center;
 }

 .nav-contact {
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .btn.contact-button {
    margin: 5px;
    width: 120px;
    text-align: center;
    background-color: rgb(3, 70, 146);
    background: linear-gradient(135deg, #034692, #0b63ce);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
        
    animation: pulseGlow 2s infinite;
 }
 .btn.contact-button:hover{
    background-color: #5a646e;
 }
  i {
     margin-right: 8px;
 }
.contact-button i {
    animation: iconPulse 1.8s infinite ease-in-out;
}
.contact-button:first-child i {
    animation: phonePulse 3s infinite;
}
.contact-button:last-child i {
    animation: mailPulse 3s infinite;
}

 .navbar-toggler {
    margin-top: 10px;
    width: 120px;
     
 }
.navbar-collapse {
    flex-grow: 0;
    margin-left: auto;
}

.nav-contact .nav-link {
    margin: 5px ;
}
 .navbar-nav .nav-item {
     margin: 0 10px;
 }

.navbar-nav .nav-link {
    padding: 10px 15px;
    transition: all 0.3s ease; 
}

.navbar-nav .nav-link.active {
    color: rgb(3, 70, 146) !important;
    border-bottom: 3px solid rgb(3, 70, 146);
    font-weight: 700;
}
.navbar-nav .nav-link:hover {
    background-color: rgba(1, 34, 105, 0.12);
    border-radius: 6px;
    transition: 0.3s ease;
}

.logo-image {
    height: 150px;
}
.main-image {
    background: url('../public/img/white_farmhouse.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    width: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.main-img-header {
    text-align: center;
    position: relative;
}

.main-img-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.main-img-header h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #012269;
    text-shadow: rgb(252, 252, 255) 8px 10px 8px;
}

.main-img-header.active {
    opacity: 1;  
    transform: translateY(0);
    .slide-left {
    animation: slideInLeft 1s forwards;
  }
}
.main-image h1 {
   font-size: 3rem;
   font-weight: 700;
   transition: transform 0.3s ease-in-out;  
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(11, 99, 206, 0.0);
    }

    50% {
        box-shadow: 0 0 10px rgba(11, 99, 206, 0.35);
    }

    100% {
        box-shadow: 0 0 0 rgba(11, 99, 206, 0.0);
    }
}
@keyframes phonePulse {

    0%,
    15% {
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(1.2) rotate(-10deg);
    }

    25% {
        transform: scale(1.3) rotate(10deg);
    }

    30% {
        transform: scale(1.2) rotate(-8deg);
    }

    35% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}
@keyframes mailPulse {

    0%,
    50% {
        transform: scale(1) rotate(0deg);
    }

    55% {
        transform: scale(1.2) rotate(-10deg);
    }

    60% {
        transform: scale(1.3) rotate(10deg);
    }

    65% {
        transform: scale(1.2) rotate(-8deg);
    }

    70% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}
.main-image h1:hover {
    transform: scale(1.1);
}

.services-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.services{
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.service-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.service-item:hover {
background-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.service-item h2:hover {
    -webkit-transform: scale(1.1) translateY(-11px);
    transform: scale(1.1) translateY(-11px);
}
.service-item h2 {
transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}
.service-item img {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}
.service-item h2 {
    margin: 10px 0;
}
.service-item .btn {
    margin: 5px 0;
    width: 100%;
}
.maps{
    align-items: center;
    justify-content: center;
    padding: 25px 0;
}
.contacts-map{
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contacts-item{
    padding: 15px;
    align-self: start;
    background-color: #222020;
    color:#ddd
}
.contacts-item  h5{
    text-align: center;
    font-weight: 700;
    margin-top: 0.5em;
}
.contacts-item p {
    font-size: 1.3em;
}
p{
    margin-bottom: 0;
}
.contacts-map .btn, .about-us .btn{
    margin: 5px;
    background-color: #034692;
    border: none;
    /* width: 100%;  */
}
.contacts-btns{
    grid-template-columns: 1fr 1fr;
}
.contacts-btns i {
    animation: iconPulse 1.8s infinite ease-in-out;
}
.contacts-btns:first-child i {
    animation: phonePulse 3s infinite;
}

.contacts-btns:last-child i {
    animation: mailPulse 3s infinite;
}
    
.map, .contacts-item{
    /* height: 300px; */
    min-width: 240px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.pictures{
    text-align: center;
}
.grid-pictures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.icon{
    text-align: center;
    padding: 0;
}
.icon img{
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.icon h5{ 
    margin-top: 3%; 
    display: block;
}
.brands{
    margin-top: 2em;
    border: 1px solid #ddd;
    border-radius: 5px;  
}
.brands h3 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}
.brands .brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    object-fit: contain;
}
.offer{
box-sizing: border-box;
background-color: #c2bfbf;
align-items: center; 
justify-content: center;
margin-top: 20px;
padding: 0;
}
.offer-grid{
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap:20px
}
.offer p{
 text-align: justify;
 margin-bottom: 20px;
}
.offer h4 {
    text-align: center;
}
.offer h2 {
    font-weight: 900;
}
.offer-item{
    background-color: #222020;
    color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.offer-item:hover {
    background-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    color: rgb(36, 34, 34);
}
.offer-item ul{
    padding-left: 5px;
    padding-right: 5px;
    text-align: justify;
}
.footer {
     background: #c2bfbf;
     width: 100%;
    padding: 20px 0;
}
.footer img {
     max-width: 50px;
}
.footer .contacts {
     text-align: center;
     margin-bottom: 10px;
}
.rights{
    background-color:#034692;
    font-size: x-small;
    color:#dddddd;
    margin: 0;
    padding: 0;
}
.main-section {
     width: 100%;
     align-items: center;
}
.page-img img{
    margin-top: 20px;
    width:100%;
    border-radius: 5px;
}
.page-item{
    margin: 5%;   
}
.page-item p{
    text-align: justify;
    padding: 2%;
}
.page-item h4 {
    text-align: center;
    padding: 1%;
}
h2, h1{
    text-align: center;}
.page-ul li {
     position: relative;
     margin-bottom: 10px;
     line-height: 24px;
}
.page-ul li::before {
     content: "";
     position: absolute;
     left: 0;
     top: 50%;
     transform: translateY(-50%);
     width: 24px;
     height: 24px;
     background-size: cover;
     background-repeat: no-repeat;
}
.page-ul-other {
    list-style-image: url('../public/img/check_green.png');

}
.main-section .page-title{
    margin-top: 30px;
    margin-bottom: 0;
    text-align: center;}
#other .content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.service-item #other{
    margin-right: 20px;
}
#other .image-container {
    flex-shrink: 0;
    max-width: 50%;
}

#other .image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
 .gallery h3{
    margin-top: 20px;
    text-align: center;
    font-size:3em
 }
.gallery-item {
    position: relative;
    /* justify-content: center; */
    /* align-items: center; */
    overflow: hidden;
    flex-wrap: wrap;
    /* object-fit: contain; */
    /* height: 40vh; */
    display: block;
    overflow: hidden;
}
.gallery-row {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    box-sizing: border-box;
    padding: 5%;
    /* margin: 0 auto;          */
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* max-width: 100%;
    max-height: 100%; */
    cursor: pointer;
    object-position: center;
    border-radius: 5px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: optimizeQuality;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges; 
}
.modal-custom-height {
    height: 80%;
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
}

.modal-body img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;

}

.nav-arrow.left {
    left: -20px;
}

.nav-arrow.right {
    right: -20px;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}
.nav-arrow:focus {
    outline: none;
}

.nav-arrow:focus-visible {
    outline: 2px solid #ff9800;
}
.electric{
   text-align: start;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}
.electric:hover {
    background-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.electric h2{
    text-align: center;
}
.service-list ul {
    flex-wrap: wrap;
    column-count: 2;
    column-gap: 20px;
    list-style-type: disc;
    margin-left: 20px;
}
.about-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.about-us .page-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
} 
.service-list li {
    margin-bottom: 5px;
}
@media (min-width: 990px) {
    .navbar {
        flex-direction: row;
        align-items:center;
        padding-right:10px;
    }
    .logo-image {
        margin-top: 20px;
        margin-left: 10px;
        height: 185px;
        width: auto;
    }

    .navbar-buttons {
        flex-direction:column;
        margin: 0;
        align-items: flex-end;
    }

    .nav-contact {
          flex-direction: row;
          margin-right: 20px;
          margin-bottom: 0;
    }

    .contact-button {
          margin: 0 5px;
          width: auto;
      }
    .navbar-nav {
    align-items: flex-end;
    }
    .navbar-collapse {
        margin-left: auto;
        margin-top: 0;
        /* align-items: flex-end; */
        position: absolute;
        top: 30px;
        right: 2%;
        display: flex;
        align-items: flex-start;
        margin: 0;
        font-size: 1.1rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .contacts-map {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 2%;
    }
    .services, .offer {
        padding: 2%;
    }
    
    .brands, .pictures {
        /* box-sizing: border-box; */
        max-width: 100%;
        width: 96%;
    }
    .grid-pictures {
        grid-template-columns: repeat(6, 1fr);
    }
    .icon h5 {
        display: none;
    }
    .offer-grid{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 10px;
    }
    .navbar-nav .nav-item {
        margin: 0 2px;
    }
    .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .service-list ul {
        column-count: 3;
        column-gap: 20px;
        }
}

@media (max-width: 780px) {
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contacts-map {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .grid-pictures {
        grid-template-columns: repeat(2, 1fr);
    }
    .icon h5 {
        margin-top: 3%;
        display:block;
        font-weight: 600;
    }
    .offer-grid{
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .gallery-row {
         grid-template-columns: repeat(2, 1fr);
    }
 .about-us {
     grid-template-columns: 1fr;
 }

}
@media (max-width: 576px) {
    .main-container {
        box-sizing: border-box;
        max-width: 100%;  
    }
    .container{
        box-sizing: border-box;
        max-width: 100%;
    }
    .navbar {
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        padding: 5%;
    }
    .logo-image {
        width: 100%;
        height: auto;
    }

    .navbar-buttons {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
        align-items: center;
    }

    .contact-button {
        width: 100%;
        width: 100px;
        margin: 10px;
    }

    .navbar-nav {
        margin-top: 10px;
    }
    .navbar-collapse {
        margin: auto;
        margin-top: 0;
        align-items: center;
    }
    .navbar-collapse.show~.nav-contact {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    .services {
        padding: 5%;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .nav-contact {
        flex-direction: row;
    }
    .navbar-toggler {
        margin-top: 0;
        width: 50px;
        font-size: 1.10rem;  
    }
    .main-image h1 {
        font-size: 2.3rem;
        font-weight: 750;

    }
    .contacts-map {
        padding: 5%;
    }
    .pictures{
        max-width: 100%;
        width: 90%;
    }
    .grid-pictures {
        grid-template-columns: 1fr;
    }
    .icon{
        /* margin: 2% 0; */
        text-align: center;
    }
    .brands{
        box-sizing: border-box;
        max-width: 100%;
        margin: 5% auto; 
        width: 90%;
    }
    .brands .brand-item {
       height: auto;   
    }
    .brand-item{
        box-sizing: border-box;
        padding: 1em 7em ;
    }
    .offer {
        box-sizing: border-box;
        padding: 5%;
        margin: 0 auto;
        /* margin: 5%;  */
    }
    .offer-grid{
        background-color: #c2bfbf;
        grid-template-columns: 1fr;
    }
    #other .content {
        flex-direction: column;
    }
    
    #other .image-container {
             max-width: 100%;
             margin-top: 20px;
    }
    .gallery {
        margin: 20px ;
    
    }
    .gallery-row {
        grid-template-columns: 1fr;
    }
    .service-list ul {
        column-count: 1;       
    }
   
}