/* ========================================
   Cards Styles
   ======================================== */

/* ----------------------------------------
   Products Cards
   ---------------------------------------- */
.products {
    margin-bottom: 165px;
}

.products.company-products {
    margin-bottom: 25px;
}

.products .container {
    flex-direction: column;
    padding: var(--spacing-32) var(--spacing-32) 55px;
    border-radius: 60px;
    background: #fff;
}

.products .container > a {
    display: none;
}

.products .container-header a {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #425466;
}

.products .container-header a:hover {
    color: #252525;
}

.products .section-descr {
    margin-top: 20px;
    font-size: 16px;
    line-height: 16px;
}

.products-cards {
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
}

.products-card {
    max-width: 220px;
    min-height: 353px;
    width: 100%;
    padding: 20px 20px 40px;
    border-radius: 8px;
    border: 1px solid #b7b7b7;
    transition: all 0.5s ease;
    background: #fff;
    height: 100%;
}

.products-card:hover {
    box-shadow: 0 7px 8px rgb(0, 0, 0, 0.08), 0 12px 17px rgb(0, 0, 0, 0.06), 0 5px 22px rgb(0, 0, 0, 0.04);
}

.products-card:hover .products-card__img {
    filter: grayscale(0);
    border: #ef2b23 solid 2px;
    background-color: #ef2b23;
}

.products-card:hover .products-card__title {
    color: #b61827;
}

.products-card:hover .products-card__descr {
    color: #0c0c0c;
}

.products-card:hover .products-card__link {
    color: #b61827;
}

.products-card:hover .products-card__link img {
    margin-right: 0;
    opacity: 1;
}

.products-card:hover i {
    color: white !important;
}

.products-card__img {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    border: #B7B7B7 solid 2px;
    font-size: 35pt;
    background: transparent;
    margin-bottom: var(--component-spacing-lg);
    filter: grayscale(1);
    transition: all 0.5s ease;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

.products-card__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 23px;
    color: #425466;
    margin-bottom: var(--component-spacing-lg);
    transition: all 0.5s ease;
}

.products-card__descr {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: #425466;
    transition: all 0.5s ease;
    max-width: 245px;
}

.products-card__link {
    max-width: 185px;
    width: 100%;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: #b7b7b7;
    transition: all 0.5s ease;
}

.products-card__link:hover {
    color: #252525 !important;
}

/* ----------------------------------------
   Advantages Cards
   ---------------------------------------- */
.advantages {
    position: relative;
    margin-bottom: var(--section-spacing-lg);
    padding: var(--section-spacing-xl) 0;
}

.advantages--with-bg {
    padding-top: var(--section-spacing-2xl);
    padding-bottom: var(--section-spacing-xl);
    background: rgb(196, 196, 196, 0.2);
    margin-bottom: 0;
    z-index: -1;
}

.advantages-allPage {
    padding-bottom: var(--section-spacing-2xl);
    padding-top: var(--section-spacing-2xl);
    margin-bottom: 0;
    background: rgb(196, 196, 196, 0.2);
    z-index: -1;
}

.advantages .container {
    flex-direction: column;
    position: relative;
}

.advantages .container .section-title {
    text-transform: none;
    max-width: 678px;
}

.advantages .container .section-text {
    max-width: 560px;
    margin-top: var(--component-spacing-lg);
}

.advantages .container .section-descr {
    margin-top: 0;
}

.advantages .container-header {
    margin-bottom: var(--section-spacing-lg);
    flex-direction: column;
    -ms-flex-align: start;
    align-items: flex-start;
}

.advantages .container-descr {
    max-width: 410px;
    margin: 0 auto;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;
    color: #919191;
    text-align: center;
}

.advantages-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: var(--component-spacing-xl);
    width: 100%;
}

.advantages-card {
    max-width: 258px;
    width: 100%;
    display: -webkit-box;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantages-card:hover {
    transform: translateY(-4px);
}

.advantages-card:hover .advantages-card__img {
    transform: scale(1.1);
}

.advantages-card__img {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: transparent;
    margin-bottom: var(--component-spacing-xl);
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    background-color: #ef2b23;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantages-card__img img {
    width: 100%;
    height: 100%;
}

.advantages-card__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 23px;
    color: #0c0c0c;
    margin-bottom: var(--component-spacing-md);
}

.advantages-card__descr {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.02em;
    font-feature-settings: "liga" off;
    color: #0c0c0c;
    margin-top: var(--component-spacing-sm);
}

/* ----------------------------------------
   Who Cards
   ---------------------------------------- */
.who {
    padding-top: var(--section-spacing-lg);
    padding-bottom: var(--section-spacing-xl);
    position: relative;
    margin-bottom: var(--section-spacing-2xl);
}

.who-bg-top {
    display: none;
}

.who-bg-bottom {
    display: none;
}

.who::before {
    position: absolute;
    content: "";
    display: block;
    z-index: -1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 100%;
    background: linear-gradient(145deg, #2f6aff 0%, #1b52f4 100%);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(20, 46, 140, 0.2);
}

.who .container {
    flex-direction: column;
}

.who .container-header {
    margin-bottom: var(--section-spacing-md);
}

.who .container-header .section-title {
    color: #fff;
}

.who .container-header .section-descr {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #fff;
}

.who .container-header a {
    color: #fff;
}

.who-cards {
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
}

.who-card {
    padding: var(--component-spacing-lg) var(--component-spacing-lg) var(--component-spacing-2xl);
    margin-bottom: var(--section-spacing-md);
    max-width: 360px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #b7b7b7;
    transform: scale(1.0);
    box-shadow: none;
}

.who-card__img {
    width: 62px;
    height: 62px;
    border-radius: var(--component-spacing-lg);
    font-size: 35pt;
    margin-bottom: var(--component-spacing-lg);
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
    border: #B7B7B7 solid 2px;
}

.who-card__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 23px;
    letter-spacing: 0.02em;
    color: #425466;
    margin-bottom: var(--component-spacing-lg);
}

.who-card__descr {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #425466;
}

/* ----------------------------------------
   Hardware Cards
   ---------------------------------------- */
.hardware {
    padding-top: var(--section-spacing-lg);
    position: relative;
    margin-bottom: var(--section-spacing-lg);
}

.hardware .container {
    display: -webkit-box;
    display: flex;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
}

.hardware .slick-list {
    overflow: unset;
}

.hardware-cards {
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: start;
    align-items: flex-start;
    max-width: 1198px;
    width: 100%;
}

.hardware-card {
    padding: var(--component-spacing-lg);
    margin-bottom: var(--section-spacing-md);
    max-width: 360px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgb(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hardware-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgb(0, 0, 0, 0.12);
}

.hardware-card__empty {
    padding: var(--component-spacing-lg) var(--component-spacing-lg) var(--component-spacing-2xl);
    margin-bottom: var(--section-spacing-md);
    max-width: 360px;
    width: 100%;
    background: transparent;
    border-radius: 8px;
}

.hardware-card__img {
    height: 400px;
    border-radius: 8px;
    font-size: 35pt;
    margin-bottom: var(--component-spacing-lg);
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}

.hardware-card__img img {
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s;
}

.hardware-card button {
    margin-left: var(--component-spacing-lg);
    margin-bottom: 0;
}

.hardware-card__title {
    padding-left: var(--component-spacing-lg);
    padding-right: var(--component-spacing-lg);
    font-weight: 700;
    font-size: 18px;
    line-height: 23px;
    letter-spacing: 0.02em;
    color: #425466;
    margin-bottom: var(--component-spacing-lg);
}

.hardware-card__descr {
    padding-left: var(--component-spacing-lg);
    height: 40px;
    padding-right: var(--component-spacing-lg);
    font-weight: 400;
    margin-bottom: var(--component-spacing-2xl);
    font-size: 16px;
    line-height: 26px;
    color: #425466;
}

/* ----------------------------------------
   Something Cards
   ---------------------------------------- */
.something {
    padding-bottom: var(--section-spacing-lg);
}

.something .container {
    flex-direction: column;
}

.something .container-header {
    margin-bottom: 100px;
}

.something-cards {
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.something .swiper {
    overflow: unset !important;
    position: static;
}

.something-card {
    max-width: 335px;
    width: 100%;
    margin: 0 1vw;
}

.something-card__img {
    width: 62px;
    font-size: 35pt;
    height: 62px;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: var(--component-spacing-lg);
    border-radius: 20px;
    border: #B7B7B7 solid 2px;
}

.something-card__img i {
    font-size: 35pt;
}

.something-card__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 23px;
    letter-spacing: 0.02em;
    color: #000;
    margin-bottom: var(--component-spacing-lg);
}

.something-card__descr {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #000;
    margin-bottom: 5vh;
}

/* ----------------------------------------
   Types Cards
   ---------------------------------------- */
.types {
    padding: 60px 0;
    margin-bottom: 140px;
}

.types .container {
    display: -webkit-box;
    display: flex;
    flex-direction: column;
}

.types .section-title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: var(--component-spacing-lg);
}

.types .section-descr {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
}

.types-card {
    margin-bottom: var(--section-spacing-md);
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: var(--component-spacing-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.types-card:hover {
    transform: translateX(8px);
}

.types-card:last-child {
    margin-bottom: 0;
}

.types-card:nth-child(2n) {
    flex-direction: row-reverse;
}

.types-card__text {
    padding-top: var(--component-spacing-xl);
    max-width: 650px;
    width: 100%;
}

.types-card__img {
    max-width: 368px;
    width: 100%;
    height: 230px;
    display: -webkit-box;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    filter: grayscale(1);
    transition-duration: 650ms;
}

.types-card__img:hover {
    filter: none;
}

.types-card__img img {
    width: 100%;
    height: 100%;
    transition-duration: 650ms;
}

/* ----------------------------------------
   Cards Responsive Styles
   ---------------------------------------- */
@media (width <= 1200px) {
    .products {
        margin-bottom: 0;
    }

    .products .container {
        padding: 80px;
    }

    .products-card {
        max-width: 220px;
        min-height: 379px;
    }

    .hardware-card {
        transform: scale(0.9);
    }

    .advantages {
        margin-bottom: var(--spacing-ultra-lg);
    }

    .advantages-allPage {
        margin-bottom: 0;
    }

    .advantages .container-header {
        margin-bottom: var(--component-spacing-2xl);
    }

    .advantages .container .section-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 0;
    }

    .advantages-card {
        max-width: 220px;
    }
}

@media (width <= 768px) {
    .types-card {
        flex-direction: column !important;
        margin-bottom: var(--component-spacing-xl);
    }

    .types-card__img {
        max-width: none;
    }

    .types-card__text {
        padding-top: 24px;
        max-width: none;
    }

    .types .section-descr {
        font-size: 16px;
        line-height: 26px;
        letter-spacing: 0;
    }

    .advantages {
        margin-bottom: 150px;
    }

    .advantages-cards {
        flex-wrap: wrap;
    }

    .advantages-card {
        margin-bottom: var(--component-spacing-2xl);
    }

    .advantages-allPages {
        margin-bottom: 128px;
    }

    .who::before {
        width: calc(100% - 24px);
        border-radius: 24px;
    }

    .who-card:nth-child(4) {
        display: none;
    }

    .products-cards {
        flex-wrap: wrap;
    }

    .products-card {
        max-width: 220px;
        margin-bottom: var(--component-spacing-lg);
    }

    .products .container {
        max-width: 617px;
        padding: 80px 77px;
    }

    .products .container > a {
        display: block;
        margin-left: auto;
        margin-top: 20px;
    }

    .products .container-header a {
        display: none;
    }

    .hardware-cards {
        max-width: none;
        width: 320px;
    }

    .hardware-card {
        margin: 0 auto;
    }

    /* Hardware Cards Grid */
    .hardware-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hardware-card {
        max-width: 100%;
    }
}

@media (width <= 480px) {
    .hardware-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hardware-card {
        transform: none;
        margin: 0 auto;
    }

    /* Product Images */
    .product-image img,
    .hardware-card img,
    .product-hero__image img {
        max-height: 220px;
    }
}
