body {
    background-color: #000;
    color: #f5f5f5;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

img, 
svg {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.wrapper {
    width: 100%;
    height: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.header-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 52px;
    z-index: 1;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo svg {
    height: 24px;
    width: auto;
}

.header-button {
    background: transparent;
    border: 1px solid rgba(245, 245, 245, 0.30);
    border-radius: 100px;
    padding: 14px 20px;
    color: #f5f5f5;
    font-size: 14px;
    letter-spacing: -0.28px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-out;
}

.header-button:hover {
    background: #fff;
    color: #000;
}

.main-header {
    padding-top: 160px;
    padding-bottom: 72px;
    background: #000;
    text-align: center;
    position: relative;
}

.logo-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: -50px;
}

.title {
    margin-bottom: 12px;
    height: 28px;
    width: auto;
    fill: #fff;
    border: none;
    background: none;
}

.title-up {
    margin-bottom: 24px;
}

.buttonbek {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.buttons {
    background: #e5e5e5;
    display: flex;
    color: #000000;
    padding: 24px 32px;
    font-size: 16px;
    letter-spacing: -0.48px;
    font-weight: 500;
    line-height: 16px;
    max-width: 216px;
    gap: 1rem;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.buttons:hover {
    background: #fff;
    color: #000;;
    transition: all 0.2s ease-out;
}

.button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(245, 245, 245, 0.30);
    padding: 20px 24px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: -0.24px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background: #fff;
    color: #000;
}

.gallery {
    display: grid;
    gap: 8px;
    justify-content: center;
    justify-items: center;
}

.gallery img {
    width: 100%;
}

.presentation-section {
    padding: 104px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-sizing: border-box;
    object-fit: cover;
}

.features {
    padding: 2rem;
}

.feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
}

.p {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.6px;
    margin: 0px 0px 32px 0px;
    max-width: 443px;
}

.description {
    font-size: 16px;
    line-height: 22px;
    font-weight: 350;
    margin: 0px 0px 32px 0px;
    margin-bottom: 32px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 52px;
}

.full-width {
    width: 100%;
    background: #f5f5f5;
}

.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bottom-image-section {
    position: relative;
    height: 100vh;
    background-image: url('/img/img4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bottom-image-section .content {
    position: absolute;
    max-width: 600px;
    padding: 0 20px;
    text-align: center;
    top: 27%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottom-image-section .buttons {
    margin: 0 auto;
    display: inline-flex;
}

.bottom-image-section h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.bottom-image-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

body.popup-open .wrapper {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #212121;
    padding: 32px;
    border-radius: 32px;
    z-index: 1001;
    max-height: 80vh;
    width: 90%;
    max-width: 600px;
    overflow-y: auto;
    text-align: center;
}

.close-popup {
    position: absolute;
    right: 16px;
    top: 16px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
}


.popup-text {
    line-height: 21px;
    margin: 0px;
}

.messenger-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.messenger-button {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(50px);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(245, 245, 245, 0.30);
    border-radius: 8px;
    width: 136px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-out;
    color: #f5f5f5;
}

.messenger-button:hover {
    background: rgb(255, 255, 255);
    color: #000;
}

.messenger-button svg {
    width: 24px;
    height: 24px;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-color: #000;
}

.error-title {
    font-size: 120px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    background: linear-gradient(to right, #f5f5f5, #808080);
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

.error-text {
    font-size: 32px;
    margin: 20px 0;
    color: #f5f5f5;
}

.error-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(245, 245, 245, 0.7);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

.fade-in.visible {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (max-width: 768px) {
    .error-title {
        font-size: 80px;
    }
    
    .error-text {
        font-size: 24px;
    }
    
    .error-description {
        font-size: 16px;
    }

    .header-container {
        padding: 0 16px;
    }

    .header-logo svg {
        height: 20px;
        width: auto;
    }

    .title-up {
        width: 100%;
        height: auto;
        max-width: 500px;
        margin-bottom: 16px;
    }

    .title {
        width: 100%;
        height: auto;
        max-height: 28px;
    }

    .header-button {
        font-size: 12px;
        }

    .container {
        padding: 0 16px;
    }

    .buttonbek {
        max-width: 280px;
        margin: 0 auto;
    }

    .button-proj {
        display: flex;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
    }

    .main-header {
        padding-top: 120px;
    }

    .logo {
        max-height: 140px;
        margin-bottom: -12px;
    }

    .p {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: -0.48px;
        max-width: 100%;
    }

    .buttons {
        width: 100%;
        max-width: 100%;
        padding: 24px 32px;
        width: fit-content;
    }

    .messenger-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .messenger-button {
        width: calc(50% - 4px);
    }

    .presentation-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 80px 0;
    }

    .description {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        margin-bottom: 20px;
        text-align: center;
    }

    .gallery img {
        border-radius: 4px;
    }

    .popup {
        width: 80%;
        padding: 24px;
    }

    .popup-title {
        margin-bottom: 16px;
    }

    .popup-text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .bottom-image-section {
        height: 75vh;
        margin-top: 104px;
    }

    .bottom-image-section .content {
        width: calc(100% - 56px);
        padding: 0;
        top: 20%;
    }
}

@media (hover: hover) {
    .header-button:hover {
        background: #fff;
        color: #000;
    }

    .button:hover {
        background: #fff;
        color: #000;
    }

    .messenger-button:hover {
        background: #fff;
        color: #000;
    }
}

.popup-divider {
    width: 100%;
    height: 1px;
    background: rgba(245, 245, 245, 0.3);
    margin: 32px 0px 24px 0;
}