body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #1a1a1a !important;
    color: white !important;
}

.p-investion{
    font-size: 40px;
        padding: 51px 0;
        margin: 0;
        color: #ff784e;
    }

    .modal-content{
        border-radius: 0 !important;
    }

    .row>*{
        display: flex !important;
        gap: 30px;
        padding: 0 !important;
    }

    .cnnn{
    max-width: 1135px !important; 
    }

    .g-4, .gy-4 {
        --bs-gutter-y: 0 !important;
    }

.investion{
   display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;

}

.header {
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 2em !important;
    color: #ff784e;
    margin: 0;
}

.btn-home {
    background-color: transparent;
    color: #ff784e;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ff784e;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-home:hover {
    background-color: #ff784e;
    color: white;
}

.projects-main {
    padding: 20px;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1135px;
    margin: 0 auto;
}

.btn-details {
    width: 100%; /* Ширина кнопки - з відступом */
    background-color: #ff784e;
    color: white;
    border: none;
    padding: 15px 15px; /* Внутрішні відступи */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-details:hover {
    background-color: #e4713c;
}

.project-card {
    background-color: #2c2c2c;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 219px;}

.project-card h3 {
    padding: 15px;
    margin: 0;
    color: #ff784e;
}

.project-card p {
    padding: 0 15px 15px;
    color: #cccccc  !important;
}

/* Стилі для модального вікна */
.modal {
    display: none ; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0) !important; 
    background-color: rgba(0,0,0,0.4) !important; 
    padding-top: 60px;
}

.modal-content {
    background-color: #3c3837 !important;
    margin: 5% auto !important; 
    padding: 20px !important;
    border: 1px solid #888 !important;
    width: 80% !important; 
    max-width: 600px !important;
}

.close {
    color: #e87a40;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: transform 0.3s, color 0.3s;
}

.close:hover,
.close:focus {
    color: #ae4b15;
    text-decoration: none;
    cursor: pointer;

}

.footer {
    background-color: #141414;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    padding: 60px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
    color: #ff784e;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.footer-about p {
    font-size: 0.95em;
    color: #c0c0c0;
    line-height: 1.5;
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff784e;
}

.footer-contact p {
    color: #c0c0c0;
    font-size: 0.95em;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    color: #888888;
    padding-top: 20px;
    font-size: 0.85em;
}

.sec{
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    display: grid !important

}

.row{
    margin: 0 !important;
}

/* Адаптивність */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-about, .footer-links, .footer-contact {
        min-width: 100%;
    }


}
@media (min-width: 1399) {
    .invest{
        margin-left: 79px !important;
    }
}


@media (min-width: 768px) {
    .row-cols-md-2>*{
        width: 100% !important;
        gap: 30px;
    }
}



@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-about, .footer-links, .footer-contact {
        width: 80%;
        text-align: center;
    }
}