.about-us-content {
    width: 100vw;
    max-width: 1460px;
}

.about-us-main-banner {
    position: relative;
    display: flex; /* по горизонтали */ /* по вертикали */
    background-image: url("https://i.ibb.co/F1qGtN1/o-nas.jpg");
    background-color: rgba(0, 0, 0, 0.5); /* затемнение */
    background-blend-mode: color;
    background-size: cover; /* растянуть */
    background-position: center;
    width: 100%;
    height: max-content; /* 30% от экрана */
    color: white; /* текст видимый */
    text-align: center;
    padding: 20px;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
}

.banner-subtext {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    p {
        text-align: left;
    }
}

.about-us-home-page-btn {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.about-us-home-page-btn:hover {
    border: none;
    text-decoration: none;
    background-color: var(--color-primary);
    color: white;
}


.banner-2 {
    display: flex;
    flex-direction: column;
    margin: 40px 0 40px 0;
    align-items: center;
}

.spinner {
    position: relative;
    background-image: linear-gradient(var(--color-primary) 35%, rgb(0, 178, 255));
    width: 100px;
    height: 100px;
    animation: spinning82341 1.7s linear infinite;
    text-align: center;
    border-radius: 50px;
    filter: blur(1px);
    box-shadow: 0px -5px 20px 0px var(--color-primary), 0px 5px 20px 0px rgb(0, 178, 255);
}

.spinner1 {
    background-color: white;
    width: 100px;
    height: 100px;
    border-radius: 50px;
    filter: blur(10px);
}

@keyframes spinning82341 {
    to {
        transform: rotate(360deg);
    }
}

.spinner1 p {
    position: absolute;
    filter: none;
}

.spiner-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spin-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.banner-text span {
    font-size: 14px;
    font-weight: bold;
    color: black;
    word-wrap: break-word;
}

.banner-text {
    max-width: 300px; /* ограничиваем ширину блока */
    margin: 0 auto; /* центрируем */
    text-align: center; /* выравниваем текст */
    line-height: 1.4; /* добавляем читаемости */
}


.spiner-text span {
    position: absolute;
    z-index: 2;
    font-size: 14px;
    font-weight: bold;
    color: black;
}

.banner-3 h3 {
    display: flex;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0 60px 0;
}

.recommended-categories {
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recommended-categories .row {
    width: 60%;
}

.recommended-categories .row .col {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.p3-category-card {
    padding: 20px;
    background-color: #6c757d;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: all 0.5s ease-in-out;
    border-radius: 8px;
}

.p3-category-card img {
    position: relative;
    bottom: 10%;
    border: #f3f3f3 5px solid;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.p3-category-card .banner-text {
    text-align: left;
}

.p3-category-card .banner-text p {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.arrow-link {
    display: flex;
    align-items: flex-start;
    width: 100%;
    text-align: center;
    margin-top: auto;
    max-width: 300px;
}

.p3-category-card svg {

    width: 40px;
    height: 40px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.p3-category-card svg:hover {
    transform: translateX(10px);

}

.p3-category-card:hover {
    img {
        bottom: 15%;
    }

    svg {
        color: white;
    }

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    max-width: 340px;
    background: linear-gradient(45deg, var(--color-primary), rgb(0, 162, 232));
}

.banner-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-4 h3 {
    display: flex;
    flex-direction: column;
    margin: 20px 0 40px 0;
    align-items: center;
}

.p4-grid {
    width: 80%;
}

.p4-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p4-grid-item .banner-text {
    position: relative;
    text-align: left;
    padding: 10px;
    overflow: hidden; /* чтобы градиент не вылезал */
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.p4-grid-item .banner-text::before {
    content: "";
    position: absolute;
    inset: 0; /* занимает всю область */
    background: linear-gradient(to top, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}

.p4-grid-item .banner-text:hover::before {
    opacity: 1;
}

.p4-grid-item .banner-text:hover {
    transform: translateY(-7px);
    border-radius: 12px;
}

.p4-grid-item .banner-text * {
    position: relative;
    z-index: 1; /* чтобы текст был сверху */
}

.p4-grid-item .banner-text h3 {
    margin: 0 0 10px 0;
    align-items: flex-start;
    animation: pulsate 2s infinite ease-in-out;
}


@keyframes pulsate {
    0% {
        color: var(--color-primary);
        text-shadow: 0 0 5px var(--color-primary);
    }
    50% {
        color: rgb(0, 178, 255);
        text-shadow: 0 0 15px rgb(0, 178, 255);
    }
    100% {
        color: var(--color-primary);
        text-shadow: 0 0 5px var(--color-primary);
    }
}

.page-pt-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.banner-5 {
    margin-bottom: 10px;
}

.p5-grid {
    width: 80%;
    margin-bottom: 20px;
}

.p5-grid .row .col {
    margin-bottom: 25px;
}


.pg5-grid-item .banner-text {
    position: relative; /* чтобы ::before позиционировался внутри блока */
    padding: 5px;
    min-height: 150px;
    text-align: left;
    background: transparent;
    color: black;
    border: 1px solid var(--color-primary);
    box-shadow: 0px -1px 4px 0px var(--color-primary), 0px 1px 5px 0px rgb(0, 178, 255);
    border-radius: 8px;
    overflow: hidden; /* чтобы фон не выходил наружу */
    transition: all 0.4s ease-in-out;

}

.pg5-grid-item .banner-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-primary);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 100%;
    transition: transform 0.5s ease-in-out, width 0.5s ease-in-out, height 0.5s ease-in-out;
    z-index: 0; /* теперь фон под текстом, но внутри блока */
}

.pg5-grid-item .banner-text p {
    position: relative;
    z-index: 1; /* текст всегда поверх */
}

.pg5-grid-item .banner-text:hover::before {
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
}

.pg5-grid-item .banner-text:hover {
    box-shadow: 0px -5px 20px 0px var(--color-primary), 0px 5px 20px 0px rgb(0, 178, 255);
    color: white;
    transform: translateY(-7px);
}

.spinner-box {
    position: relative;
    left: 20%;
    top: 30px;
    width: 80px;
    height: 80px;
    --clr: rgb(127, 207, 255);
    --clr-alpha: rgb(127, 207, 255, .1);
    animation: spinner-box 10s infinite linear;
    transform-style: preserve-3d;
}

.spinner-box > div {
    background-color: var(--clr-alpha);
    height: 100%;
    position: absolute;
    width: 100%;
    border: 5px solid var(--clr);
}

.spinner-box div:nth-of-type(1) {
    transform: translateZ(-40px) rotateY(180deg);
}

.spinner-box div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}

.spinner-box div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}

.spinner-box div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}

.spinner-box div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}

.spinner-box div:nth-of-type(6) {
    transform: translateZ(40px);
}

@keyframes spinner-box {
    0% {
        transform: rotate(0deg) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: rotate(180deg) rotateX(180deg) rotateY(180deg);
    }

    100% {
        transform: rotate(360deg) rotateX(360deg) rotateY(360deg);
    }
}

.banner-6{
    display: flex;
    flex-direction: column;
    margin: 0 0 40px 0;
    align-items: center;
}

.p6-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p6-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
}


.p6-cards{
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    width: 80%;
}

.p6-card{
    max-width: 170px;
    padding: 20px 10px;
    border: 1px solid var(--color-primary);
    box-shadow: #bebebe 0px 1px 4px 0px, #BEBEBEFF 0px -1px 4px 0px;
    border-radius: 8px;
    background-color: white;
    z-index: 3;
    transition: all 0.3s ease-in-out;
}

.p6-card .banner-text svg{
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}


.pg-cards-down .banner-text{
    text-align: center;
    margin-top: 10px;
}

.pg-cards-down{
    position: relative;
    bottom: 20px;
    background-color: #6c757d;
    width: 90%;
    border-radius: 8px;
    padding: 25px;
}

.pg-cards-down .banner-text{
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.6;
    max-width: 600px;
}

.p6-card:hover{
    box-shadow: 0px -3px 10px 0px var(--color-primary), 0px 3px 10px 0px rgb(0, 178, 255);
    transform: translateY(-7px);
}

.p6-copany-info{
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 70%;
}