
.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: 2.5rem;
    text-align: center;
}
.katalog-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-top: 4.5rem;
}
.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;
    margin-top: 2rem;
    overflow-x: auto;

    scrollbar-width: none; /* hide scrollbar for Firefox */
    -ms-overflow-style: none; /* hide scrollbar for IE/Edge legacy */

}
.portfolio-list::-webkit-scrollbar { display: none; }
.portfolio-list { cursor: grab; }
.portfolio-list.dragging { cursor: grabbing; user-select: none; }
.port-item-link {
    text-decoration: none;
    color: white;
}
.port-item, .port-item-vizit {
    margin: 0.5rem;
}
.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);
    transition: 0.1s
}
.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);
    transition: 0.1s
}
.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;

    padding-bottom: 30px;
}
.info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 396px;

    font-size: 1.5rem;
}
.info-text .icon {
    width: 1.5rem;
}
.link-list {
    display: flex;
    flex-flow: wrap;
    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;
}
#cont-link-4 {
    border-color: #0077FF;
}
#cont-link-5 {
    border-color: #FF0033;
}
#cont-link-6 {
    border-color: #FF1753;
}
#cont-link-7 {
    border-color: #D901DA;
}
#cont-link-8 {
    border-color: #5D44EF;
}
#cont-link-9 {
    border-color: white;
}
#cont-link-10 {
    border-color: #00AAFF;
}
#cont-link-11 {
    border-color: #CB1F27;
}
.head {
    /*background-image: url("../tim3la/my-photo.png");
    background-repeat: no-repeat;
    background-position: 100% 100% ;
    background-size: 473px;*/

    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.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;
}
.contacts {
    padding-bottom: 2rem;
}

@keyframes moveBg {
    0% {
        background-position: center 0;
    }
    100% {
        background-position: center 100%;
    }
}

@keyframes moveY {
    from {
        transform: translate3d(0,-4191px,0);
    }
    to {
        transform: translate3d(0,-29729px,0);
    }
}

.nav #main {
    text-decoration: underline;
}


.portfolio-list {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  gap: 20px;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.portfolio-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.port-item-link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
  color: white;
}

.port-item, .port-item-vizit {
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0px 0px 30px rgba(255, 255, 255, 0.3) inset;
  backdrop-filter: blur(30px);
  transition: 0.3s ease;
}

.port-item:hover, .port-item-vizit:hover {
  transform: scale(1.03);
}

.port-item-frame {
  width: 100%;
  height: 194px;
}

.port-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 0 0;
}

@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;
        align-items: center;

        flex-direction: column;
    }
    .faq-text-list-item:nth-child(even) {
        flex-direction: column;
    }
    .item-text {
        width: 100%;
    }
    .video {
        width: 100%;
    }
    .port-item {
        width: 212px;
    }
    .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%;
        align-items: center;
        justify-content: center;
        max-width: 550px;
    }
    .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.98);
    }
    .port-item-vizit:hover {
        transform: scale(0.98);
    }
    .link-list-item:hover {
        transform: scale(0.9);
    }
    .portfolio-list {


        margin-right: 0; /* убираем отрицательные отступы */

        overflow-x: auto; /* разрешаем горизонтальный скролл */
        -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */

        scrollbar-width: none; /* скрыть скроллбар в Firefox */
        scroll-snap-type: x mandatory;
    }
    .portfolio-list::-webkit-scrollbar {
        display: none; /* скрыть скроллбар в Webkit (Chrome, Safari) */
    }

    .port-item {
        flex: 0 0 auto; /* фиксируем ширину карточки */
    }
    .port-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .portfolio-list {
        display: flex;
        gap: 0rem;

        margin-inline: 0;

        padding: 0;

        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;
        margin-top: 1.5rem;
    }
    .portfolio-list::-webkit-scrollbar {
        display: none;
    }

    .port-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .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;
    }
}
@media (max-width: 1076px) {
  .portfolio-list {
    scroll-snap-type: none; /* отключаем прилипающий скролл */
  }

  .port-item,
  .port-item-vizit {
    scroll-snap-align: unset; /* убираем привязку плитки */
  }
}
