body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f0f0f0;
    color: #575757;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Floating Background */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(96, 142, 235, 0.3);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    width: 30px;
    height: 30px;
    top: 50%;
    left: 70%;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    width: 15px;
    height: 15px;
    top: 80%;
    left: 30%;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    width: 25px;
    height: 25px;
    top: 10%;
    left: 90%;
    animation-duration: 10s;
}

@keyframes float {

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

    50% {
        transform: translateY(-50px);
    }
}

/* Logo */
.logo {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: left 0.3s ease, transform 0.3s ease;
}

.logo.shifted {
    left: 0px;
    transform: translateX(0) scale(0.6); /* сдвигаем и уменьшаем */
}

.logo svg {
    width: 120px;
    height: auto;
}

/* Language Switcher и Contact Button */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher button:not(.contact-btn) {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    padding: 8px 15px;
    border: none;
    background: #a9a9a9;
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.lang-switcher button:not(.contact-btn):hover {
    background: #3d77ea;
}

.lang-switcher button.active {
    background: #3d77ea;
}

.contact-btn {
    background: none;
    border: none;
    color: #608eeb;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 15px;
    transition: color 0.3s;
}

.contact-btn:hover {
    color: #3d77ea;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 100px;
    margin-top: 80px;
    padding: 20px;
}

.header-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 77px; /* примерно высота твоего header */
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    pointer-events: none;
    transition: background 0.3s, box-shadow 0.3s;
    z-index: 2;
}

.header-backdrop.visible {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


h1,
h2,
h3,
h4 {
    text-align: center;
    color: #575757;
}

h1 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #608eeb;
    margin: 10px auto;
}

h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: #3d77ea;
}

h4 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #575757;
}

p {
    font-size: 1.2rem;
    color: #575757;
    line-height: 1.6;
}

.cta {
    display: inline-block;
    padding: 15px 30px;
    background: #608eeb;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.cta:hover {
    background: #3d77ea;
}

/* Sections */
section {
    margin-bottom: 100px;
}

/* Benefits Section */
#benefits {
    text-align: center;
}

.benefits-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Services Section */
#services {
    text-align: center;
}

.services-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Case Studies Section */
#cases {
    text-align: center;
}

.cases-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.case-item {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Portfolio Section */
#portfolio {
    text-align: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-text {
    max-width: 800px;
    margin: 20px auto;
}

.portfolio-text p {
    font-size: 1.3rem;
    color: #575757;
}

/* Testimonials Section */
#testimonials {
    text-align: center;
}

.testimonials-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonials-list {
    display: flex;
    width: calc(340px * 12);
}

.testimonial-item {
    flex: 1;
    min-width: 320px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
    position: relative;
}

.testimonial-item::before {
    content: '“';
    font-size: 3rem;
    color: #608eeb;
    position: absolute;
    top: 0;
    left: 10px;
}

.testimonial-item p {
    font-style: italic;
}

.testimonial-item span {
    display: block;
    margin-top: 10px;
    color: #575757;
    font-weight: bold;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #a9a9a9;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #3d77ea;
}

/* Contact Section */
#contact {
    text-align: center;
    background: #608eeb;
    padding: 40px;
    border-radius: 10px;
    color: #FFFFFF;
}

#contact h2 {
    color: #f0f0f0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

input,
textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #ffffff;
    color: #575757;
}

textarea {
    height: 150px;
}

button.submit-btn {
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    color: #3d77ea;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

button.submit-btn:hover {
    background: #3d77ea;
    color: #f0f0f0;
}

button.submit-btn-popup {
    padding: 10px;
    background: #608eeb;
    border: none;
    border-radius: 5px;
    color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button.submit-btn-popup:hover {
    background: #3d77ea;
}

.privacy-notice {
    font-size: 0.9rem;
    color: #f0f0f0;
    margin-top: 10px;
    text-align: center;
}

.privacy-notice a {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    background: #FAFAFA;
    color: #575757;
    padding: 20px 50px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    display: flex;
    align-items: center;
}
.footer-socials img {
    width: 30px;
}
footer a {
    color: #457ff2;
    text-decoration: none;
}

footer a:hover {
    color: #3d77ea;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.popup-content a {
    display: inline-block;
    padding: 10px 20px;
    background: #608eeb;
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 5px;
}

.popup-content a:hover {
    background: #3d77ea;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #575757;
}

.privacy-notice-popup {
    font-size: 0.9rem;
    color: #575757;
    margin-top: 10px;
}

.privacy-notice-popup a {
    color: #575757;
    text-decoration: underline;
    background: none;
    padding: 0;
    color: #608eeb;
}
.privacy-notice-popup a:hover {
    background: none;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    text-align: center;
}

.social-links a {
    background: none;
    transition: color 0.3s;
    display: flex;
        justify-content: center;
        align-items: center;
}
.social-links a:hover {
    background: none;
}

.social-links img {
    max-width: 35px;
    max-height: 35px;
    width: 100%;
}

/* Success Popup */
#success-popup {
    background: rgba(0, 0, 0, 0.7);
    z-index: 20;
}

.success-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.success-content p {
    font-size: 1.2rem;
    color: #3d77ea;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .container {
        padding: 0px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .logo svg {
        width: 10px;
    }

    .testimonial-item {
        min-width: 200px;
    }

    .testimonials-list {
        width: calc(220px * 12);
    }

    textarea {
        height: 120px;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .logo {
        top: 10px;
    }

    .logo img {
        width: 140px;
    }

    .logo.shifted {
        left: 0px;
        transform: translateX(0) scale(0.7);
    }

    .contact-btn {
        display: none !important;
    }

    .testimonial-item {
        min-width: 200px;
    }

    .testimonials-list {
        width: calc(220px * 12);
    }

    textarea {
        height: 120px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
    }

    .footer-socials a {
        margin-right: 10px;
    }

    .footer-socials img {
        width: 28px;
    }
}