
.logo-full {
    padding-top: 1.4rem;
}
.name-1 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
}
.name-2 {
    font-size: 1.25rem;
}
.line {
    height: 0.75px;
    background-color: rgba(255, 255, 255, 0.25);

    margin-inline: -20px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.why-h1 {
    font-size: 2.5rem;
    text-align: center;
}
.why-h2 {
    color: #9456D5;
    font-size: 2rem;

    margin-top: 1.5rem;
}
.p-img {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin-top: 2rem;

}
.why-img {
    margin-left: 185px;
}
.why-p {
    width: 613px;
}
.why-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;

    width: min-content;

    margin-top: 1.5rem;

    font-size: 2rem;
    text-align: center;
    padding: 0.2rem 2.75rem 0.55rem 2.75rem;

    border-radius: 4rem;
    border-color: white;
    border-style: solid;
    border-width: 1px;

    color: white;
    transition: 0.5s ease-in-out;
}
.why-link {
    text-decoration: none;
}
.why-link:hover .why-button{
    transform: scale(1.1);
    transition: 0.1s ;
}

.katalog-title {
    font-size: 2rem;
    text-align: center;
    text-decoration: underline;

    padding-top: 1.35rem;
}
.katalog-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-top: 6.75rem;
}
.list-item {
    list-style-type: none;
    display: flex;

    background-color: rgba(255, 255, 255, 0.07);
    width: 303px;
    height: 159px;

    border-radius: 1.5rem; -webkit-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    -moz-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;

    backdrop-filter: blur(30px);

    transition: 0.5s ease-in-out;
}
.list-link:hover .list-item {
    transform: scale(1.1);
    transition: 0.1s ;
}
.list-link {
    text-decoration: none;
    color: white;
    font-size: 1.25rem;

}
.item-title {
    width: 200px;
    margin: 1rem;
}
.item-img#l-1 {
    width: 210px;
    height: 210px;

    overflow: visible;
    object-position: -25px -50px;
}
.item-img#l-2 {
    width: 200px;
    height: 200px;

    overflow: visible;
    object-position: -35px -50px;
}
.item-img#l-3 {
    width: 180px;
    height: 180px;

    overflow: visible;
    object-position: -10px -30px;
}
.faq-list {
    margin-top: 2rem;

    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.faq-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    border-radius: 1.5rem; -webkit-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    -moz-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;

    backdrop-filter: blur(30px);

    transition: 0.5s ease-in-out;

    background-color: rgba(255, 255, 255, 0.07);
    cursor: pointer;

    height: min-content;
}
.faq-list-item:hover {
    transform: scale(1.02);
    transition: 0.1s;
}
.faq-title {
    font-size: 1.5rem;
    margin: 22px 90px;
}
.star {
    overflow: visible;
    width: 120px;
    height: 120px;

    position: absolute;

    object-position: -28px -32px;
}
.faq-text-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    list-style-type: none;
    padding-bottom: 1rem;

    width: 100%;
}
.faq-text-list-item {
    margin: 22px 90px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}
.faq-text-list-item:nth-child(even) {
    flex-direction: row-reverse;
}
.video-frame {
    display: flex;
    flex: 0 0 50%;
    aspect-ratio: 16/9;
    justify-content: flex-end; /* прижимает видео к правой стороне */
}
.item-text {
    font-size: 1.25rem;
    flex: 1 1 auto;
}

.video {
    height: auto;
    aspect-ratio: 16/9;
    width: 100%;
}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-bottom: 2rem;

    column-gap: 74.5px;
    row-gap: 2rem;


}
.port-item-link {
    text-decoration: none;
    color: white;
}
.port-item {
    list-style-type: none;

    display: flex;
    flex-direction: column;



    width: 303px;

    border-radius: 1.5rem; -webkit-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    -moz-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;

    backdrop-filter: blur(30px);

    transition: 0.5s ease-in-out;

    background-color: rgba(255, 255, 255, 0.07);
}
.port-item:hover {
    transform: scale(1.03);
}
.port-item-frame {
    width: 100%;
    height: 194px;

}
.port-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
    object-position: top; /* прижимает к верху */
}
.port-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin: 0.9rem;
}
.port-item-title {
    text-align: left;
}
.port-item-desc {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2rem;

    text-align: left;
}
.port-item-vizit {
    list-style-type: none;

    display: flex;
    flex-direction: column;



    width: 303px;

    border-radius: 1.5rem; -webkit-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    -moz-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;

    backdrop-filter: blur(30px);

    transition: 0.5s ease-in-out;

    background-color: rgba(255, 255, 255, 0.07);
}
.port-item-vizit:hover {
    transform: scale(1.03);
}
.port-item-frame#vi-1, .port-item-frame#vi-2 {
    height: 173px;
}
.port-item-img#viz-img-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
}
.port-item-frame#vi-1, .port-item-frame#vi-2 {
    height: 173px;
}
.vizit-title {
    margin-block: 0.8rem;
    margin-inline: 0.9rem;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contacts-info {
    display: flex;
    flex-direction: row;
    margin-inline: 5.65rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 285px;
}
.info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;

    font-size: 1.5rem;
}
.info-text .icon {
    width: 1.5rem;
}
.link-list {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    list-style-type: none;
}
.link-list-item {
    display: flex;
    justify-content: center;

    width: 120px;
    height: 52px;
    text-align: center;
    align-items: center;

    border-width: 1px;
    border-style: solid;
    border-color: white;
    border-radius: 4rem;
}
.link-list-item .cont-icon {
    width: 34px;
}

.contacts .applic {
    font-size: 1.5rem;
    margin: 1rem;
}


.link-list-item {
    transition: 0.5s ease-in-out;
}
.link-list-item:hover {
    transform: scale(1.05);
    transition: 0.1s ;
}
#cont-link-1 {
    border-color: #0088CC;
}
#cont-link-2 {
    border-color: #25d366;
}
#cont-link-3 {
    border-color: #FFC400;
}
.head {
    background-image: url("../tim3la/my-photo.png");
    background-repeat: no-repeat;
    background-position: 100% 100% ;
    background-size: 473px;
}

.faq-text-list {
    display: none; /* изначально скрыто */
}

.faq-list-item.active .faq-text-list {
    display: flex; /* показывается при открытии */
}

.content {
    background-image: url("../tim3la/black-holes.svg");
    background-repeat: no-repeat;
    background-position: 50% -300px;
}
/*
.content-back {
    background-image: url("../tim3la/back-gradient.svg");
    background-position: top center;
    background-repeat: repeat-y;
    background-size: 4226px;


    animation: moveBg 50s linear infinite;
    will-change: background-position;
}

 */
.contacts {
    padding-bottom: 2rem;
}

@keyframes moveBg {
    0% {
        background-position: center 0;
    }
    100% {
        background-position: center 100%;
    }
}

.content-back {
    position: relative; /* чтобы псевдоэлементы или абсолютные дети были внутри */
    overflow: hidden;   /* скрываем выходящий за пределы контент */
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25538px;
    background-image: url("../tim3la/back-gradient.svg");
    background-size: 4226px; /* масштабируем по ширине */
    background-repeat: repeat-y;
    background-position: 50% 50%;
    z-index: -1;         /* чтобы слой был за контентом */
    animation: moveY 70s linear infinite;
}

.animated-bg:nth-child(2) {
    top: 25538px;
}


@keyframes moveY {
    0% { transform: translateY(-4191px); }
    100% { transform: translateY(-29729px); } /* движемся вверх на половину высоты блока */
}

.nav #faq {
    text-decoration: underline;
}

.else-faq {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.else-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.48);
}
.applic#else {
    font-size: 1.25rem;
    margin-left: 1rem;
}
@media (max-width: 1076px) {
    --scale: 0.9;


    .line {
        margin-inline: -1rem;
    }
    .logo-full {
        width: 195px;
    }
    .name-1 {
        font-size: 24px;
    }
    .name-2 {
        font-size: 16px;
    }
    .why-h1, .katalog-title {
        font-size: 32px;
    }
    .why-h2 {
        font-size: 20px;
        margin-top: 1rem;
    }
    .p-img {
        flex-direction: column;

        margin-top: 1rem;
    }
    .why-img {
        margin-top: 1rem;
        margin-left:0 ;

        width: 6rem;
        margin-left: auto;
    }
    .why-p {
        width: 100%;
    }
    .why-button {
        font-size: 25px;
    }
    .katalog-list {
        flex-direction: column;
        gap: 20px;

        margin-top: 3rem;
    }
    .list-item {
        width: 100%;
        height: 96px;


    }
    .item-title {
        font-size: 20px;
    }
    .list-item {
        justify-content: space-between;

    }


    .item-img#l-1 {
        height: 120px;
        width: auto;

        object-position: 0px -32px;
    }
    .item-img#l-2 {
        height: 120px;
        width: auto;

        object-position: 0px -25px;
    }
    .item-img#l-3 {
        height: 110px;
        width: auto;

        object-position: 0px -15px;
    }
    .faq-list {
        margin-top: 38px;
        gap: 11px
    }
    .star {
        width: 90px;
        height: auto;

        object-position: -20px -25px ;
    }
    .faq-title {
        font-size: 20px;
        margin: 17px 12px 17px 72px;
    }
    .faq-text-list {
        margin: 17px 30px 20px 72px;
        width: auto;
    }
    .faq-text-list-item {
        margin: 0;
        margin-top: 16px;

        flex-direction: column;
    }
    .faq-text-list-item:nth-child(even) {
        flex-direction: column;
    }
    .item-text {
        width: 100%;
    }
    .video {
        width: 100%;
    }
    .portfolio-list {
        flex-direction: column;
        gap: 1.5rem; /* или 0 */
    }
    .port-item, .port-item-vizit {
        width: 100%;
        box-sizing: border-box;
    }
    .port-item-frame  {

    }
    .port-item-img {
        position: relative;
        top: 0;
    }
    .port-item-frame {
        height: 130px;
    }
    .port-item-info {
        height: 50%;
    }
    .port-item-title {
        font-size: 16px;
    }
    .portfolio-list {
        margin-right: -1px;
    }

    .contacts-info {
        flex-direction: column;
    }
    .link-list-item {
        width: 80px;
        height: 32px;
    }
    .link-list {
        width: 100%;
    }
    .link-list-item .cont-icon {
        width: 21px;
    }
    .contacts-info {
        margin: 0;
        margin-top: 2rem;

        gap: 1rem;

    }
    .info-text {
        align-items: center;
    }
    .contacts-img {
        width: 90px;
        margin-left: auto;
    }
    .contacts-info .applic {
        font-size: 25px;

    }
    .why-link:hover .why-button {
        transform: scale(0.95);
    }
    .list-link:hover .list-item {
        transform: scale(0.95);
    }
    .faq-list-item:hover {
        transform: scale(1);
    }
    .port-item:hover {
        transform: scale(0.95);
    }
    .link-list-item:hover {
        transform: scale(0.9);
    }

    .head {
        background-image: url("../tim3la/my-photo.png");
        background-repeat: no-repeat;
        background-position: 100% 100%;
        background-size: 214px;

        margin-right: -8vw;
        padding-right: 8vw;
    }
    .content {
        background-image: url("../tim3la/black-holes-phone.svg");
        background-repeat: repeat-y;
        background-position: 50% -20px;
        background-size: 100%;

        margin-block: -1px;
    }

    .port-item-frame#vi-1,
    .port-item-frame#vi-2 {
        height: 173px;
        border-radius: 1.5rem;   /* скругление рамки */
        overflow: hidden;        /* прячет часть изображения, которая выходит за рамку */
        position: relative;      /* для object-position внутри */
    }

    #viz-img-1,
    .port-item-img#viz-img-2 {
        height: 100%;      /* занимает всю высоту контейнера */
        width: auto;             /* ширина по пропорции */
        object-fit: contain;     /* сохраняет пропорции, не обрезает */
        object-position: center; /* центрирование */
        display: block;
        margin: 0 auto;
        border-radius: 0;        /* обнуляем скругление у самого изображения, рамка уже задает */
    }

    .else-faq {
        flex-direction: column;
    }
    .applic#else {
        margin-left: 0;
        margin-top: 1rem;
    }
}




