body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    background-color: #0A0A0A;
    overflow-x: hidden;
}

.page-container {
    margin: 0 auto;
    position: relative;
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    width: 100%;
}

section {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-header {
    width: 100%;
    height: 120px;
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 0 32px;
    box-sizing: border-box;
}

.header-inner {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 32px;
    gap: 32px;
    box-sizing: border-box;
}

.header-right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
}
.logo img {
    width: 36px;
    height: 56px;
}
.main-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 16px;
}
.main-nav a {
    text-decoration: none;
    color: #B3B3B3;
    font-size: 16px;
    font-weight: 400;
}
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 105px;
    height: 46px;
    padding: 16px;
    box-sizing: border-box;
    background: #0091FF;
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.hero-section {
    min-height: 1080px;
    justify-content: flex-start;
    padding-top: 220px;
}

.hero-content-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    width: 100%;
}

.hero-text-block h1 {
    font-size: 46px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.1;
}

.hero-text-block p {
    font-size: 32px;
    font-weight: 600;
    color: #B3B3B3;
    margin: 0;
}

.hero-devices {
    width: 503px;
    height: auto;
    align-self: center;
}

.services-section {
    padding: 64px 80px;
}

.services-section .container {
    max-width: none;
    padding: 64px;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.services-section .container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('Frame 1.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.services-title { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 16px;
    text-align: center;
}

.services-title h2 { 
    font-size: 48px; 
    font-weight: 700; 
    color: #FFFFFF; 
    margin: 0; 
}

.services-title p { 
    font-size: 32px; 
    font-weight: 600; 
    color: #B3B3B3; 
    margin: 0; 
}

.services-cards { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 24px; 
    width: 100%;
}

.service-card {
    width: 320px;
    height: auto;
    box-sizing: border-box;
    border-radius: 32px;
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px;
    gap: 24px;
    text-align: center;
}

.card-icon { 
    width: 64px;
    height: 64px;
}

.card-text { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px;
}

.card-text h3 { 
    font-size: 24px; 
    font-weight: 600; 
    color: #FFFFFF; 
    margin: 0; 
    line-height: 1.2;
}

.card-text p { 
    font-size: 16px; 
    font-weight: 400; 
    color: #FFFFFF; 
    margin: 0; 
    line-height: 1.4;
}

.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 220px;
    height: 52px;
    box-sizing: border-box;
    background: #0091FF;
    border-radius: 12px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.portfolio-section {
    padding: 32px 0 64px 0;
}

.portfolio-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.portfolio-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.portfolio-title p {
    font-size: 32px;
    font-weight: 600;
    color: #B3B3B3;
    margin: 0;
}

.portfolio-slider {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 10px;
}

.slider-viewport {
    width: calc(352px * 3 + 32px * 2);
    overflow: hidden;
}

.slider-track {
    display: flex;
    align-items: center;
    gap: 32px;
    transition: transform 0.5s ease-in-out;
}

.portfolio-card {
    background: #0A0A0A;
    border-radius: 16px;
    box-sizing: border-box;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    flex-shrink: 0;
    width: 352px;
    height: auto;
    transition: all 0.5s ease-in-out;
}

.project-logo {
    border-radius: 8px;
    width: 96px;
    height: 96px;
}

.portfolio-card.active {
    opacity: 1;
    filter: none;
    transform: scale(1.05) translateY(-10px);
}

.portfolio-card.side {
    opacity: 0.5;
    filter: grayscale(80%);
    transform: scale(0.9);
}

.portfolio-card h3 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

.project-details {
    display: flex;
    width: 100%;
    text-align: left;
    flex-direction: column;
    gap: 16px;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-details h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.project-details p {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    color: #FFFFFF;
}

.slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-arrow.prev-arrow {
    left: calc(50% - (352px * 3 + 32px * 2)/2 - 48px);
}

.slider-arrow.next-arrow {
    right: calc(50% - (352px * 3 + 32px * 2)/2 - 48px);
}

.slider-arrow img {
    width: 14px;
    height: 24px;
}

.why-us-section {
    padding: 64px 0 128px 0;
}

.why-us-title h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    margin-bottom: 36px;
}

.why-us-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.why-us-card {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 302px;
    height: 144px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.why-us-card .icon {
    width: 48px;
    height: 48px;
}

.why-us-card h3 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.contacts-section {
    padding: 32px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.contacts-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contacts-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.contacts-title p {
    font-size: 32px;
    font-weight: 600;
    color: #B3B3B3;
    margin: 0;
    line-height: 1;
}

.contacts-content {
    display: flex;
    flex-direction: row;
    gap: 32px;
    width: 100%;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-item .icon {
    width: 32px;
    height: 32px;
}

.contact-info-item p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.btn-telegram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    gap: 8px;
    background: #0091FF;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    width: 222px;
    height: 48px;
}

.btn-telegram .icon {
    width: 19px;
    height: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.contact-details p {
    font-size: 12px;
    color: #FFFFFF;
    margin: 0;
    font-weight: 400;
}

.contact-form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    min-width: 300px;
}

.form-group {
    background: rgba(10, 10, 10, 0.5);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: none;
    border: none;
    color: #B3B3B3;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #B3B3B3;
}

.form-group textarea {
    height: 112px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

.btn-submit {
    padding: 16px;
    background: #0091FF;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 256px;
    height: 46px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

#form-result {
    display: none;
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.main-footer {
    padding: 32px 0;
    width: 100%;
    background-color: #000000;
}

.main-footer p {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 1024px) {
    .main-header {
        left: 24px;
        right: 24px;
        width: auto;
        padding: 0;
    }
    
    .container {
        padding: 0 24px;
    }

    .header-inner {
        padding: 24px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 180px;
        padding-bottom: 64px;
    }

    .hero-text-block h1 {
        font-size: 38px;
    }

    .hero-text-block p {
        font-size: 24px;
    }

    .hero-devices {
        width: 80%;
        max-width: 500px;
    }

    .services-section .container {
        padding: 48px;
    }

    .services-cards {
        gap: 16px;
    }

    .service-card {
        flex: 1; 
        min-width: 250px;
    }

    .slider-viewport {
        width: 320px;
    }
    
    .portfolio-card {
        width: 320px;
    }

    .slider-arrow.prev-arrow {
        left: calc(50% - 320px/2 - 48px);
    }
    
    .slider-arrow.next-arrow {
        right: calc(50% - 320px/2 - 48px);
    }
    
    .why-us-cards {
        gap: 16px;
        flex-wrap: wrap;
    }

    .why-us-card {
        flex: 1;
        min-width: 220px;
    }

    .contacts-content {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .main-nav,
    .header-right .btn-primary {
        display: none;
    }

    .header-inner {
        justify-content: center;
    }

    .hero-section {
        padding-top: 152px;
        padding-bottom: 32px;
    }

    .hero-text-block {
        text-align: center;
        align-items: center;
        gap: 16px;
    }

    .hero-text-block h1 {
        font-size: 36px;
    }

    .hero-text-block p {
        font-size: 26px;
    }

    .hero-devices {
        width: 100%;
        max-width: 504px;
    }

    .services-section {
        padding: 64px 16px;
    }

    .services-section .container {
        padding: 16px;
    }

    .services-title h2 {
        font-size: 36px;
    }

    .services-title p {
        font-size: 26px;
        text-align: center;
    }

    .services-cards {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .service-card {
        width: 100%;
        max-width: 450px;
        height: auto;
        padding: 24px;
    }

    .card-text h3 {
        font-size: 20px;
    }

    .portfolio-section {
        padding: 24px 0;
    }

    .portfolio-title h2 {
        font-size: 36px;
    }

    .portfolio-title p {
        font-size: 26px;
    }
    
    .portfolio-slider {
        width: 100%;
        padding: 0;
    }

    .slider-viewport {
        width: 100%;
        margin: 0;
        overflow: visible;
    }

    .slider-track {
        flex-direction: column;
        gap: 24px;
        transform: none !important;
    }

    .slider-arrow {
        display: none;
    }
    
    .portfolio-card {
        width: 100% !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
    
    .portfolio-card h3 {
        display: block;
    }
    
    .portfolio-card .project-details {
        display: flex;
    }

    .project-details h4 {
        font-size: 20px;
    }

    .why-us-section {
        padding: 24px 0;
    }

    .why-us-title h1 {
        font-size: 36px;
    }

    .why-us-cards {
        flex-direction: column;
    }

    .why-us-card {
        width: 100%;
        max-width: 350px;
    }

    .why-us-card h3 {
        font-size: 20px;
    }

    .contacts-section {
        padding: 24px 0 40px 0;
    }

    .contacts-title h2 {
        font-size: 36px;
    }

    .contacts-title p {
        font-size: 26px;
    }

    .contacts-content {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .contact-info {
        align-items: center;
    }

    .contact-form {
        width: 100%;
        max-width: 400px;
    }

    .main-footer p {
        font-size: 12px;
    }
}