body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 18px;
}

a {
    color: #fff;
    text-decoration: none;
}

.bg-image {
    background-image: url('../images/5183051.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
    text-align: start;
    opacity: 0;
    animation: 0.5s forwards slideIn;
    display: flex;
    align-items: center;
    max-width: 700px;
    margin-left: 375px;
}

.navbar-brand p {
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        margin-top: -700px;
        opacity: 0;
    }
    to {
        margin-top: 0;
        opacity: 1;
    }
}

.footer-links {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
}

.footer-links a {
    margin-right: 10px;
    font-size: 1.25rem;
}
.footer-links a svg{
    width: 30px;
    fill: #fff;
}
.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo span {
    text-align: right;
    line-height: 1.5;
    font-size:  18px;
}

.logo img {
    width: 250px;
    margin-right: 40px;
}

.bg-image-links {
    height: 100%;
    text-align: start;
    display: flex;
    flex-direction: column;
    margin-left: 150px;
}

.bg-image-links a {
    display: block;
    margin-bottom: calc((100vh / 4) - 70px);
    position: relative;
    font-size: 1.5rem;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.bg-image-links a:nth-child(1) {
    animation-delay: 0.1s;
    margin-left: -100px;
}

.bg-image-links a:nth-child(2) {
    animation-delay: 0.2s;
    margin-left: 0;
}

.bg-image-links a:nth-child(3) {
    animation-delay: 0.3s;
    margin-left: 0;
}

.bg-image-links a:nth-child(4) {
    animation-delay: 0.4s;
    margin-left: 50px;
}

.bg-image-links a:nth-child(5) {
    animation-delay: 0.5s;
    margin-bottom: 0;
    margin-left: -200px;

}

/* Анимация для ромбиков */
.bg-image-links a:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.bg-image-links a:nth-child(1):before {
    animation-delay: 0.1s;
}

.bg-image-links a:nth-child(2):before {
    animation-delay: 0.2s;
}

.bg-image-links a:nth-child(3):before {
    animation-delay: 0.3s;
}

.bg-image-links a:nth-child(4):before {
    animation-delay: 0.4s;
}

.bg-image-links a:nth-child(1) {
    margin-left: -100px;
}

.bg-image-links a:nth-child(4) {
    margin-left: -100px;
}

.about-me-content, .portfolio-content, .blog-content, .contacts-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7); /* Черный с полупрозрачностью */
    color: #fff; /* Белый цвет текста */
    padding: 20px;
    border-radius: 15px; /* Закругленные углы */
    max-width: 80%; /* Максимальная ширина блока */
    z-index: 1000; /* Выше других элементов */
    text-align: center; /* Выравнивание текста по центру */
    max-height: 500px;
    overflow: overlay;
}

.about-me-content p {
    margin-bottom: 20px;
}

.contacts-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-post {
    margin-bottom: 20px;
}

.pagination {
    margin-top: 20px;
}

/* Стили для блока с анонсами статей */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex: 0 0 45.8%;
    max-width: 50%;
    padding: 0 15px;
}

/* === Карточка (как услуги) === */

.blog-post {
    background: #1f2937; /* как service-card */
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    border: none; /* убираем старую рамку */
}

.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

/* Заголовок */
.blog-post h2 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* Текст */
.blog-post p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Ссылка внутри карточки */
.blog-post a {
    margin-top: auto;
    font-weight: 500;
    color: #38bdf8;
    transition: 0.2s;
}

.blog-post a:hover {
    color: #7dd3fc;
}

/* Стили для постраничной навигации */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    list-style: none;
}

.page-link {
    padding: 10px 16px;
    background: #1f2937;
    border-radius: 10px;
    color: #cbd5e1;
    border: none;
    transition: 0.3s;
}

.page-link:hover {
    background: #374151;
    color: #ffffff;
}

.page-item.active .page-link {
    background: #38bdf8;
    color: #0f172a;
}

.page-item.disabled .page-link {
    opacity: 0.4;
}


/* ... */

.menu-toggle {
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu-close {
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    width: 200px;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 28px;
}

.mobile-menu a:hover {
    color: #ccc;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mr5 a {
    margin: 30px 5px 0;
}

.card {
    transition: transform 0.3s ease;
    padding-bottom: 30px;
}

.card:hover {
    transform: scale(1.05);
}

.hidden-d {
    display: none;
}

.opacity {
    background: rgba(0, 0, 0, 0.56);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-link {
    margin: 20px 0 30px;
    display: block;
}

.flex {
    display: flex;
}

.flex img {
    width: auto;
    max-width: 40%;
    bottom: 0;
    position: absolute;
    left: 0;
    max-height: 85%;
}
.imageBlock{display: flex; flex-wrap: wrap;}
.imageBlock img{width: 50%; height: auto;}
@media (max-width: 767px) {
    .logo span{
        display: none;
    }
    .bx-newsdetail-img img {
        width: 100%;
        height: auto;
    }

    /*.about-me-content, .portfolio-content, .blog-content, .contacts-content{*/
    /*    height: auto;*/
    /*    width: 90%;*/
    /*    max-height: max-content;*/
    /*}*/
    .bg-image {
        background-position: 75%;
        /*background-position: top right;*/
    }

    .logo {
        top: 20px;
    }

    .hidden-m {
        display: none;
    }

    .hidden-d {
        display: block;
    }

    .navbar-brand {
        font-size: 1.5rem;
        margin: 10px;
    }

    .logo img {
        width: 150px;
    }

    .bg-image-links a {
        font-size: 1.25rem;
    }

    .bg-image-links a:before {
        width: 10px;
        height: 10px;
        left: -20px;
    }

    .about-me-content, .portfolio-content, .blog-content, .contacts-content {
        width: 90%;
        margin: 165px 0;
        top: 165px;
    }

    .portfolio-content {
        padding: 20px;
    }

    .col {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .blog-post h2 {
        font-size: 20px;
    }

    .blog-post p {
        font-size: 14px;
    }

    .page-link {
        padding: 8px 12px;
    }

    .mobile-menu {
        width: 100%;
    }

    .mr5 a {
        margin: 15px 5px 0;
    }
    .footer-links{
        left: auto;
        right: 0;
    }
}
.cookie-modal {
    position: fixed;
    /*top: 0;*/
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(0, 0, 0, 0.7);*/
    display: flex;
    justify-content: center;
    align-items: end;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;

}

.cookie-modal-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-modal-text {
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-modal-link {
    color: #2aa7d6;
    text-decoration: none;
}

.cookie-modal-button {
    background: #2aa7d6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.cookie-modal-button:hover {
    background: #2aa7d6;
}

@media (max-width: 480px) {
    .cookie-modal-content {
        padding: 20px;
    }
}
.mb20{
    margin-bottom: 20px;
}
/* ... */