/* ===================================
HERO
=================================== */

.hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../img/general/hero_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    color: var(--color-gray-100);
    border-radius: .75rem;
}


/* ===================================
   SERVICES
=================================== */

.services {
    background: var(--color-gray-100);
}

.service-card {
    height: 100%;
    padding: 40px 35px;
    background: #fff;
    border-radius: .75rem;
    box-shadow: var(--shadow-sm);
    transition: .35s;
    border: 1px solid transparent;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2) !important;
}

.service-card img {
    width: 64px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}


/* ===================================
   ADVANTAGES
=================================== */

.advantages {
    background-image: url("../img/general/advantages_bg.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.list-group-item {
    background: rgba(0, 0, 0, 0) !important;
    border: none;
}


/* ===================================
   WORKFLOW
=================================== */

.workflow {
    background-color: #F1F5F9;
}

.workflow-list {
    position: relative;
}


/* Линия верткальная */

.workflow-list::before {
    content: "";
    width: .5rem;
    height: 100%;
    background: var(--color-gray-400);
    position: absolute;
    top: 0;
    left: 50%;
}

.workflow-list .workflow-card {
    margin-bottom: 30px;
    position: relative;
}

.workflow-list .workflow-icon {
    width: 50px;
    height: 50px;
    background: var(--color-gray-400);
    overflow: hidden;
    margin-left: -23px;
    position: absolute;
    top: 0;
    left: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 50px;
    color: white;
    border-radius: 50% !important;
    border: none;
}

.workflow-list .workflow-card:before,
.workflow-list .workflow-card:after {
    content: "";
    display: block;
    width: 100%;
    clear: both;
}

.workflow-list .workflow-content {
    width: 45%;
    padding: 20px;
    border-radius: .25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, .125);
}


/* треугольники */

.workflow-list .workflow-content:before {
    content: "";
    border-left: 7px solid var(--color-gray-400);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    position: absolute;
    left: 45%;
    top: 20px;
}

.workflow-list .workflow-content.right:before {
    content: "";
    right: 45%;
    left: inherit;
    border-left: 0;
    border-right: 7px solid var(--color-gray-400);
}

.workflow-list .workflow-content.right {
    float: right;
}


/* адаптивы */

@media only screen and (max-width: 990px) {
    .workflow-list .title {
        font-size: 25px;
    }
    .workflow-list .workflow-content::before {
        top: 16px;
    }
}

@media only screen and (max-width: 767px) {
    .workflow-list {
        margin-left: 20px;
    }
    .workflow-list::before {
        left: 0;
    }
    .workflow-list .workflow-icon {
        left: 0;
    }
    .workflow-list .workflow-content {
        width: 90%;
        float: right
    }
    .workflow-list .workflow-content:before,
    .workflow-list .workflow-content.right:before {
        left: 10%;
        right: inherit;
        margin-left: -6px;
        border-left: 0;
        border-right: 7px solid var(--color-gray-400);
    }
}

@media only screen and (max-width: 479px) {
    .workflow-list .workflow-content {
        width: 85%;
    }
    .workflow-list .workflow-content:before,
    .workflow-list .workflow-content.right:before {
        left: 15%;
    }
    .workflow-list .title {
        font-size: 20px;
    }
    .workflow-list .workflow-content::before {
        top: 13px;
    }
}


/* ===================================
   PORTFOLIO
=================================== */

.portfolio {
    background: var(--color-gray-100);
}

.portfolio-item {
    overflow: hidden;
    border-radius: .75rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.portfolio-item img {
    transition: .45s;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}


/* ===================================
   BLOG
=================================== */

.blog {
    background: #fff;
}

.blog-card {
    transition: .4s;
}

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

.card-img-top {
    max-height: 200px!important;
    object-fit: cover;
}


/* ===================================
   CONTACTS
=================================== */

.contacts {
    background: var(--color-gray-100);
}

.contact-map {
    width: 100%;
    height: 500px;
}


/* ===================================
   FOOTER
=================================== */

.site-footer {
    padding: 50px 0 30px;
    background: var(--color-gray-400);
    color: var(--color-gray-300);
}

.site-footer h2 {
    color: #ffffff;
    font-size: 1.2rem;
}

.site-footer a {
    text-decoration: none;
    color: var(--color-gray-300);
}

.site-footer a:hover,
.site-footer .documentation a:hover {
    color: var(--color-primary) !important;
}

.site-footer .documentation a {
    color: var(--color-lead) !important;
    font-size: .8rem;
}

.site-footer .official-info {
    color: var(--color-lead) !important;
}


/* ===================================
   ERROR
=================================== */

.error-404-block {
    padding: 4rem 1rem;
    background: var(--color-gray-100);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.error-404-block .display-1 {
    font-size: 9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.error-404-block .lead {
    font-size: 1.1rem;
    color: var(--color-lead);
    flex-direction: row;
    gap: 5px !important;
    flex-flow: column wrap;
}


/* ===================================
   ARTICLE
=================================== */

.article-img {
    display: flex;
    justify-content: center;
    /* Центрирует по горизонтали */
    align-items: center;
    /* Центрирует по вертикали */
    border-radius: .75rem;
    max-height: 450px !important;
    width: 100%;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../img/general/hero_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 20px 24px;
    display: none;
}


/* ===================================
   КУКИ
=================================== */

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: #2563eb;
    text-decoration: underline;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: #2563eb;
    color: #fff;
    transition: 0.2s;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: #1d4ed8;
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}