
@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/unbounded/TTF/Unbounded-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/unbounded/TTF/Unbounded-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/unbounded/TTF/Unbounded-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/unbounded/TTF/Unbounded-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/unbounded/TTF/Unbounded-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/unbounded/TTF/Unbounded-Blond.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: rgb(13,13,13);
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 400;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

main {
    display: flex;
    flex-direction: column;
}

.container,
.about-section {
    scroll-snap-align: start;
}

.container {
    position: relative;
    width: 100%;
}

.hamburger {
    cursor: pointer;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background-color: rgba(27, 28, 29, 1);
    padding: 10px;
    border-radius: 10px;
    width: 80%;
    max-width: 300px;
    position: relative;
    text-align: center;
    border: 1px solid rgb(250 250 250 / 20%);
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 400;
}

.close-btn {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: 1.5px solid rgb(250 250 250 / 20%);
    color: white;
    font-size: 15px;
    cursor: pointer;
    border-radius: 33px;
    padding: 0.2em 0.5em;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 300;
}

.island {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: url('../photo/фон/1.png') no-repeat center/cover;
}

ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 165px;
}

ul li {
    color: white;
    margin: 15px;
    cursor: pointer;
    text-align: left;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 400;
    position: relative;
}

ul li::after {
    content: '';
    display: block;
    width: 135px;
    height: 1px;
    background-color: rgb(250 250 250 / 20%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
    margin-top: 15px;
}

ul li.draw::after {
    transform: scaleX(1);
}

.contact-box {
    margin-top: 2em;
    display: flex;
    justify-content: space-evenly;
    border: 2px solid white;
    border-radius: 5px;
    width: 105px;
}


.contact-box a {
    filter: brightness(0) invert(1);
    padding: 6px;
}

.contact-box img {
    width: 2em;
    height: 2em;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(27, 28, 29, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    padding: 1em 2em;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid rgb(250 250 250 / 20%);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(10px, 6vw, 30px);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.contact-btn {
    background: none;
    border: 1.5px solid rgb(250 250 250 / 20%);
    color: white;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(10px, 3vw, 16px);
    padding: 0.5em 1em;
    border-radius: 33px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center;
}

.contact-btn:hover {
    background-color: rgb(250 250 250 / 10%);
}

.menu-container {
    display: flex;
    align-items: center;
}

.wrap {
    position: relative;
    width: 100%;
    z-index: 10;
}

.items-wrap {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 20px;
    overflow-x: hidden;
    margin-bottom: 5px;
}

.items-wrap:before,
.items-wrap:after {
    content: "";
    height: 100%;
    top: 0;
    width: 10%;
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.items-wrap:before {
    left: 0;
}

.items-wrap:after {
    right: 0;
}

.items {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    justify-content: space-around;
    min-width: 100%;
    filter: brightness(0) invert(1);
}

.item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s ease-in-out;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item:hover {
    transform: scale(1.05);
}

.marquee {
    animation: scroll 20s linear infinite;
}

.reverce {
    animation-direction: reverse;
}

.items-wrap:hover .marquee {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(

0);
    }
    to {
        transform: translateX(calc(-100% - 20px));
    }
}

.intro-text {
    color: white;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 5vw, 36px);
    text-align: center;
    width: 95%;
    margin-bottom: 15px;
}

.iintro-text {
    color: white;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(3px, 3vw, 17px);
    text-align: center;
    margin-bottom: 15px;
    margin-top: 15px;
    width: 95%;
}

.wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 100vh;
}
.wrap-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    position: relative;
    top: 25%;
}

.items-wrap {
    width: 100%;
}

.works-btn {
    width: 250px;
    height: 56px;
    overflow: hidden;
    border: none;
    color: #fff;
    background: none;
    position: relative;
    padding-bottom: 2em;
    cursor: pointer;
}

.works-btn > div,
.works-btn > svg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.works-btn:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: bottom right;
    background: currentColor;
    transition: transform 0.25s ease-out;
}

.works-btn:hover:before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.works-btn .clone > *,
.works-btn .text > * {
    opacity: 1;
    font-size: 1.3rem;
    transition: 0.2s;
    margin-left: 4px;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 300;
}

.works-btn .clone > * {
    transform: translateY(60px);
}

.works-btn:hover .clone > * {
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

.works-btn:hover .text > * {
    opacity: 1;
    transform: translateY(-60px);
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

.works-btn:hover .clone > :nth-child(1) {
    transition-delay: 0.15s;
}

.works-btn:hover .clone > :nth-child(2) {
    transition-delay: 0.2s;
}

.works-btn:hover .clone > :nth-child(3) {
    transition-delay: 0.25s;
}

.works-btn:hover .clone > :nth-child(4) {
    transition-delay: 0.3s;
}

.works-btn svg {
    width: 20px;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-50deg);
    transition: 0.2s ease-out;
}

.works-btn:hover svg {
    transform: translateY(-50%) rotate(90deg);
}

.mouse-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 1px solid rgb(196, 196, 196);
    background-color: transparent;
    border-radius: 13px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scroll {
    width: 3px;
    height: 10px;
    background-color: rgb(196, 196, 196);
    border-radius: 2px;
    position: absolute;
    bottom: 9px;
    animation: move_918 1.5s linear infinite;
}

@keyframes move_918 {
    0% {
        bottom: 9px;
    }
    50% {
        bottom: 5px;
    }
    100% {
        bottom: 9px;
    }
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4%;
    padding-top: 50px;
    box-sizing: border-box;
    width: 100%;
}

.about-heading {
    color: white;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 5vw, 36px);
    text-align: center;
    margin-bottom: 1em;
}

.about-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    min-height: calc(100% - 3em); /* Ensure content takes available space */
    gap: 2em;
}

/* Убрана анимация появления - элементы сразу видимы */
.about-image,
.cardd,
.about-text p {
    opacity: 1; /* Изменено: сразу видимый */
    transform: translateY(0); /* Изменено: без смещения */
}

.about-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.about-image[data-image="full"] {
    display: block;
}

.about-image[data-image="min"] {
    display: none;
}

.about-text {
    flex: 1;
    color: white;
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(13px, 1.66vw, 16px);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-text p {
    margin: 0.5em 0;
}

.cardd {
    border-radius: 1.25rem;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        min-height: auto; /* Allow height to adjust to content */
        gap: 1.5em;
        padding: 1em;
    }

    .about-image[data-image="full"] {
        display: none;
    }

    .about-image[data-image="min"] {
        display: block;
        height: auto;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        opacity: 1; /* Изменено: сразу видимый */
        transform: translateY(0); /* Изменено: без смещения */
    }

    .about-image[data-image="min"] img {
        width: 100%;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        transform: translateY(0);
    }

    .about-image[data-image="min"] img:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }

    .about-text {
        padding: 1em;
        background: rgba(27, 28, 29, 0.7);
        border-radius: 10px;
        position: relative;
        z-index: 2;
    }

    /* Убрана анимация для мобильной версии */
    .cardd,
    .about-text p {
        opacity: 1; /* Изменено: сразу видимый */
        transform: translateY(0); /* Изменено: без смещения */
    }
}

/* From Uiverse.io by kennyotsu */
.loaderr {
    color: rgb(124, 124, 124);
    font-family: 'Unbounded', Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(7px, 5vw, 25px);
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    height: 40px;
    padding: 10px 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 8px;
}

.wordss {
    overflow: hidden;
    position: relative;
}

.wordss::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        var(--bg-color) 10%,
        transparent 30%,
        transparent 70%,
        var(--bg-color) 90%
    );
    z-index: 20;
}

.wordd {
    display: block;
    height: 100%;
    padding-left: 6px;
    color: #2CA0D9;
    animation: spin_4991 4s infinite;
}

@keyframes spin_4991 {
    10% {
        -webkit-transform: translateY(-102%);
        transform: translateY(-102%);
    }
    25% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
    35% {
        -webkit-transform: translateY(-202%);
        transform: translateY(-202%);
    }
    50% {
        -webkit-transform: translateY(-200%);
        transform: translateY(-200%);
    }
    60% {
        -webkit-transform: translateY(-302%);
        transform: translateY(-302%);
    }
    75% {
        -webkit-transform: translateY(-300%);
        transform: translateY(-300%);
    }
    85% {
        -webkit-transform: translateY(-402%);
        transform: translateY(-402%);
    }
    100% {
        -webkit-transform: translateY(-400%);
        transform: translateY(-400%);
    }
}

.buttonn {
  font-family: inherit;
  background: #2CA0D9;
  color: white;
  padding: 0.35em 0;
  font-size: 17px;
  border: none;
  border-radius: 0.7em;
  letter-spacing: 0.08em;
  position: relative;
  display: flex;
  align-content: center;
  align-items: center;
  overflow: hidden;
  height: 2.5em;
  padding-left: 2.8em;
  padding-right: 0.92em;
}

.buttonn .iconn {
  background: #fff;
  height: 2em;
  width: 2em;
  border-radius: 2em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0.4em;
  transition: all 0.5s;
}

.iconn svg {
  margin-left: 0.1em;
  transition: all 0.5s;
  color: #2CA0D9;
  width: 1.2rem;
  height: 1.2rem;
}

.buttonn:hover .iconn svg {
  transform: rotate(360deg);
}

.buttonn:hover .iconn {
  width: calc(100% - 0.85rem);
  border-radius: 0.5em;
}

/* Обновляем стили для десктопной версии */
@media (min-width: 769px) {
    .about-content {
        display: flex;
        flex-direction: row;
        width: 100%;
        max-width: 1200px;
        min-height: calc(100% - 3em);
        gap: 2em;
        align-items: flex-start;
    }

    .about-image {
        flex: 0 0 auto; /* Запрещаем сжатие изображения */
        width: 45%; /* Фиксируем ширину изображения */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
    }

    .about-image.visible {
        height: auto;
        align-self: stretch;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        min-height: 400px; /* Минимальная высота для изображения */
    }

    .about-text {
        flex: 1 1 auto; /* Разрешаем сжатие текста */
        min-width: 0; /* Важно: разрешаем сжатие flex-элемента */
        color: white;
        font-family: 'Unbounded', Arial, sans-serif;
        font-weight: 300;
        font-size: clamp(13px, 1.66vw, 16px);
        line-height: 1.6;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        height: auto;
    }

    /* Обеспечиваем адаптивность текста */
    .about-text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Для очень узких экранов уменьшаем gap */
    @media (max-width: 900px) {
        .about-content {
            gap: 1em;
        }
        
        .about-image {
            width: 40%; /* Еще немного уменьшаем изображение */
        }
        
        .about-text {
            font-size: clamp(12px, 1.5vw, 15px);
        }
    }
}

/* Мобильная версия остается без изменений */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        min-height: auto;
        gap: 1.5em;
        padding: 1em;
    }

    .about-image[data-image="full"] {
        display: none;
    }

    .about-image[data-image="min"] {
        display: block;
        height: auto;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        opacity: 1; /* Изменено: сразу видимый */
        transform: translateY(0); /* Изменено: без смещения */
    }

    .about-image[data-image="min"] img {
        width: 100%;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        transform: translateY(0);
    }

    .about-text {
        padding: 1em;
        background: rgba(27, 28, 29, 0.7);
        border-radius: 10px;
        position: relative;
        z-index: 2;
    }
}
