* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'MontserratLocal';
    src: url('/assets/montserrat.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900; /* variable-шрифт содержит все веса */
    font-display: swap;
}



:root {
    --grey: rgba(153, 128, 114, 1);
    --white: #ffffff;
    --glass-bg: #5B433766;
    --radius: 14px;
    --orange: rgba(181, 116, 78, 1);
    --universal-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.22);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --white-border: 1px solid rgba(188, 188, 188, 0.8);
    --white-border2: 2px solid rgba(188, 188, 188, 0.8);
    --blur8: blur(8px);
    --blur2: blur(2px);
    --grey_gradient: linear-gradient( 180deg, rgba(153,128,114,0.9) 0%, rgba(153,128,114,0.65) 100% );
    --befor_01: rgba(0, 0, 0, 0.25);
    --text-color: #fff;
}





html {
    scroll-behavior: auto; /* управление сглаживанием через JS */
    scroll-snap-type: none; /* убираем snap */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar {
        display: none;
    }

html, body {
    overflow-x: clip;
}


body {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    margin: 0 auto;
    font-family: 'MontserratLocal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    height: 100vh; /* Фоллбэк для браузеров без поддержки dvh */
    height: 100dvh;
    /* scroll-behavior: smooth;*/
}


/* Единый слой фона для всех слайдов */
.bg-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: -1;
    background-color: #181314; /* тёмный фон в тон твоим картинкам */
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}




    /* Текущий фон видим */
    .bg-slide.bg-active {
        opacity: 1;
    }

    /* Уходящий фон сдвигается в сторону скролла и гаснет */
    .bg-slide.bg-leave-up {
        transform: translateY(-20px);
    }

    .bg-slide.bg-leave-down {
        transform: translateY(20px);
    }




section {
    height: 100vh; /* Фоллбэк для браузеров без поддержки dvh */
    height: 100dvh;
    /*   scroll-snap-align: start;*/
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Секция "Обо мне" */
.about {
    color: var(--white);
}

.about-me-img {
    width: clamp(192px, 22vw, 256px);
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/*.background-about {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;*/ /* Фоллбэк для браузеров без поддержки dvh */
/*height: 100dvh;
    background: url('assets/bg-about.webp');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;*/ /* ← вот это убирает белые засветы */
/*}*/

.about .container {
    display: grid;
    width: 100%;
    height: 100%;
}

.about_me {
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 0.8s ease forwards;
}



.about-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.about-content {
    grid-template-columns: minmax(0,1.0fr) 1px minmax(0,1fr);
    column-gap: clamp(20px, 4vw, 40px);
    row-gap: clamp(16px, 3vh, 28px);
    max-width: min(856px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(20px, 3.5vw, 40px) clamp(24px, 4vw, 40px);
    position: relative; /* нужно обязательно для ::before */
    display: grid;
    /* тёплая полупрозрачная подложка — как у тебя */
    background-color: var(--glass-bg);
    -webkit-backdrop-filter: var(--blur8);
    backdrop-filter: var(--blur8);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--universal-shadow);
    overflow: hidden; /* чтобы ::before не вылезал за скругления */
}

    .about-content::before {
        content: '';
        position: absolute;
        inset: 0; /* заменяет top/left/width/height */
        background: var(--befor_01);
        border-radius: var(--radius);
        z-index: -1; /* всегда позади */
    }

    /* чтобы контент был поверх затемнения */
    .about-content > * {
        position: relative;
        z-index: 1;
    }

.about_me h3 {
    text-align: center;
    font-size: 30px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.5s;
    /* Тень именно по ТЕКСТУ */
    text-shadow: 0 3px 8px rgba(0,0,0,0.25), 0 6px 20px rgba(0,0,0,0.20);
}

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

.fade-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    border: var(--glass-border);
    border-radius: var(--radius);
    background-color: var(--glass-bg);
    -webkit-backdrop-filter: var(--blur8);
    backdrop-filter: var(--blur8);
    padding: 4px 16px;
    height: 48px;
    border: var(--glass-border);
    box-shadow: var(--universal-shadow);
}

.fade-text {
    opacity: 0;
    position: absolute;
    top: 50%; /* центрируем вертикально */
    left: 0;
    align-items: center;
    transform: translateY(-50%);
    width: 100%; /* для центровки */
    text-align: center; /* чтобы текст не уезжал */
    display: flex;
    justify-content: center;
    gap: 9px;
    transition: opacity 0.8s ease;
}

    .fade-text.active {
        opacity: 1;
    }

    .fade-text .num {
        font-weight: 600;
        font-size: clamp(30px, 4vw, 39px);
    }

    .fade-text .txt {
        font-weight: 600;
        font-size: clamp(18px, 2.6vw, 21px);
    }



.about-info {
    text-align: left;
    padding-right: 16.5px;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 0.8s ease forwards;
}

    .about-info h4 {
        font-weight: 700;
        font-size: 37px;
        line-height: 140%;
        opacity: 0;
        padding-bottom: 13px;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards 0.3s;
    }

        .about-info h4 a {
            color: inherit; /* ← наследует белый */
            text-decoration: none; /* убирает подчёркивание */
        }

            .about-info h4 a:hover {
                text-decoration: underline;
                opacity: 1;
            }

    .about-info span {
        font-weight: 800;
        font-size: 21px;
        line-height: 140%;
        letter-spacing: 0%;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards 0.5s;
    }

    .about-info p {
        font-weight: 600;
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0%;
        padding-top: 13px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards 0.7s;
    }

.solutions {
    text-align: left;
    padding-left: 66px;
}

    .solutions h4 {
        padding-top: 5px;
        padding-bottom: 16px;
        font-weight: 800;
        font-size: 21px;
        line-height: 140%;
        letter-spacing: 0%;
        opacity: 0;
        transform: translateX(50px);
        animation: fadeInRight 0.8s ease forwards;
    }

    .solutions li {
        font-weight: 600;
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0%;
        padding-bottom: 12px;
        margin-left: 16px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }

        .solutions li:nth-child(1) {
            animation-delay: 0.1s;
        }

        .solutions li:nth-child(2) {
            animation-delay: 0.2s;
        }

        .solutions li:nth-child(3) {
            animation-delay: 0.3s;
        }

        .solutions li:nth-child(4) {
            animation-delay: 0.4s;
        }

        .solutions li:nth-child(5) {
            animation-delay: 0.5s;
        }

        .solutions li:nth-child(6) {
            animation-delay: 0.6s;
        }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.mouse-img {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
}




.tech-stack .tech-icon-wrapper {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.tech-icon-wrapper svg {
    width: 50px;
    height: 50px;
}

.tech-stack .tech-icon-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.tech-stack .tech-icon-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-stack .tech-icon-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.tech-stack .tech-icon-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

.tech-stack .tech-icon-wrapper:nth-child(5) {
    animation-delay: 0.5s;
}

.tech-stack .tech-icon-wrapper:nth-child(6) {
    animation-delay: 0.6s;
}

.tech-stack .tech-icon-wrapper:nth-child(7) {
    animation-delay: 0.7s;
}


.tech-stack .tech-icon-wrapper p {
    position: absolute;
    top: 100%;
    opacity: 0;
    transition: 0.3s ease;
    white-space: nowrap;
}

.tech-stack .tech-icon-wrapper:hover p {
    opacity: 1;
}

.change-lang {
    position: fixed;
    top: 55px;
    right: 55px;
    z-index: 1000;
}

.change-lang__button {
    font-family: 'MontserratLocal', sans-serif;
    font-weight: 600;
    font-size: 22.14px;
    text-transform: uppercase;
    color: #ffffff83;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    opacity: 1;
}

    /* краткое исчезновение */
    .change-lang__button.fade-out {
        opacity: 0;
        transform: scale(0.9);
    }

    /* появление + подсветка */
    .change-lang__button.fade-in {
        opacity: 1;
        transform: scale(1);
        color: #fff;
    }

/* Индикатор страниц */
.page-indicator {
    position: fixed;
    right: clamp(12px, 3vw, 54px);
    top: 63%;
    transform: translateY(-50%);
    flex-direction: column;
    display: inline-flex; /* ← исправляет растягивание */
    gap: 24px;
    z-index: 1000;
    background: var(--glass-bg);
    background: #32292280;
    -webkit-backdrop-filter: var(--blur8);
    backdrop-filter: var(--blur8);
    padding: 18px;
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--universal-shadow);
}







.indicator-item {
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.88);
    opacity: 0.65;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

    .indicator-item:hover {
        opacity: 0.9;
    }

    .indicator-item.active {
        color: rgba(255,255,255,0.98);
        opacity: 1;
        font-weight: 700;
        animation: indPop 380ms cubic-bezier(0.2,0.8,0.2,1);
    }

@keyframes indPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.promo__mouse {
    display: inline-block;
    position: relative;
    width: 1.65rem;
    height: 2.5875rem;
    border: 3px solid #ffffff;
    border-radius: var(--radius);
    animation: mouseMove 3s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

    .promo__mouse:before {
        content: '';
        position: absolute;
        width: .1875rem;
        height: .4375rem;
        background-color: #ffffff;
        border-radius: 2px;
        left: 50%;
        transform: translateX(-50%);
        top: .1875rem;
        animation: scroll 3s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    }

.solutions ul li:last-child {
    padding-bottom: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    30% {
        transform: translateX(-50%) translateY(14px);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes mouseMove {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(12px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.about_me {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5vh, 16px);
}



    .about_me h3 {
        font-size: clamp(18px, 2.2vw, 26px);
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.16em;
    }








/* Vertical divider */
.about-line {
    width: 1px;
    background-color: #ffffff27;
}

/* Technology icons */
.tech-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(24px, 3vw, 36px);
    max-width: min(1000px, 100%);
    padding: 0 clamp(16px, 4vw, 32px) clamp(8px, 2vh, 16px);
}

.tech-icon-wrapper svg,
.tech-icon-wrapper img {
    width: clamp(26px, 4vw, 38px);
    height: auto;
}

/* Mouse */
.mouse-img {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: clamp(8px, 3vh, 20px);
}



/* Language switcher slightly away from edge on small screens */
.change-lang {
    top: clamp(16px, 3vh, 32px);
    right: clamp(16px, 3vw, 40px);
}


/* ====== Mobile layout: when card becomes effectively vertical ====== */
@media (max-width: 768px) {
    :root {
        --vh0: 100svh;
    }
    /* fallback */

    body {
        height: auto !important;
        min-height: var(--vh0) !important;
    }

    section {
        height: auto !important;
    }

    /* Фон на 30% выше "малого" окна (со строкой). Не прыгает при скролле */
    .bg-layer {
        inset: auto !important; /* важно: отключаем bottom:0 из inset */
        left: 0;
        right: 0;
        top: -15vh; /* fallback */
        height: 130vh !important; /* fallback */
    }
    /* +30% по вертикали */


    .about .container {
        padding: 10px 10px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        padding: clamp(18px, 4vw, 24px) clamp(14px, 5vw, 22px) clamp(18px, 4vw, 24px);
        row-gap: clamp(14px, 3vh, 22px);
        margin-top: 15px;
    }

    .about-line {
        display: none;
    }


    /* Hide mouse + page-indicator on mobile to avoid overlap */
    .change-lang,
    .mouse-img,
    .page-indicator {
        display: none !important;
    }



    .about_me h3 {
        font-size: clamp(16px, 5vw, 20px);
    }


    .solutions {
        padding-left: 0;
    }
}

.tech-stack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: min(1000px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}



@keyframes fadeText {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seo-text,
.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 768px) {



    html {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    section {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .work_time,
    .tech-stack {
        display: none !important;
    }

    .about-info h4 {
        /* 37px → 35px */
        font-size: clamp(35px, 6vw, 37px);
    }

    .about-info span {
        /* 21px → 19px */
        font-size: clamp(19px, 4.5vw, 21px);
    }

    .about-info p {
        /* 16px → 14px */
        font-size: clamp(14px, 4vw, 16px);
    }

    .solutions h4 {
        /* 21px → 19px */
        font-size: clamp(19px, 4.5vw, 21px);
    }

    .solutions li {
        /* 16px → 14px */
        font-size: clamp(14px, 4vw, 16px);
    }
}

@media (min-width: 769px) {



    .mouse-img {
        position: static;
        right: auto;
        bottom: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin-top: clamp(8px, 3vh, 20px);
        padding-top: 0;
        max-width: min(1000px, 100%);
        margin-left: auto;
        margin-right: auto;
    }


    .tech-stack .tech-icon-wrapper svg,
    .tech-stack .tech-icon-wrapper img {
        width: clamp(32px, 3.5vw, 52px);
        height: auto;
    }
}
