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

html {
    background: #f5f6f7;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --blue-color: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: #f5f6f7 !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f6f7;
}

.top-section {
    background: #f5f6f7 !important;
    flex: 3;
    min-height: 75vh;
}

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

#home .container,
.hero .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* Navigation */
.navbar {
    background: #f5f6f7 !important;
    box-shadow: none !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 400;
    color: #000000;
    font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0;
}

.mobile-lang-switcher {
    display: none;
}

.lang-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #000000;
    padding: 0.05rem 0.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
    border-radius: 0;
    min-width: auto;
    text-align: center;
}

.lang-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

.lang-btn.active {
    background: var(--text-dark);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Subpage navigation (no Vue, always visible) */
.subpage-nav .nav-menu {
    position: static !important;
    left: auto !important;
}
.subpage-nav .nav-toggle {
    display: none !important;
}
.subpage-nav .nav-brand a,
.subpage-nav .nav-brand a:hover {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.subpage-nav .logo-img-static {
    height: 40px;
    opacity: 1;
}
.subpage-nav .language-switcher a.lang-btn {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}
.subpage-nav .language-switcher a.lang-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}
.subpage-nav .language-switcher a.lang-btn.active {
    background: var(--text-dark);
    color: var(--white);
}
@media (max-width: 768px) {
    .subpage-nav .nav-menu {
        position: static !important;
        left: auto !important;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem 0;
    }
}

/* Hero Section */
.hero {
    background: #f5f6f7 !important;
    color: var(--text-dark);
    padding: 100px 0 10px 0;
    text-align: center !important;
    overflow-x: visible !important;
    width: 100%;
    position: relative;
}

#home .container,
.hero .container {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#home .container > .hero-title,
.hero .container > .hero-title {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    box-sizing: border-box !important;
}

.hero-header-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4rem;
}

#home .hero-title,
.hero-title {
    font-size: clamp(0.93rem, 3.255vw, 2.325rem);
    font-weight: 400;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
    white-space: nowrap;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
}

.hero-title .separator,
#home .hero-title .separator {
    font-weight: 600;
    margin: 0 0.05rem !important;
    color: var(--text-dark);
}

@media (min-width: 769px) {
    .hero-title .separator:last-of-type,
    #home .hero-title .separator:last-of-type {
        display: none;
    }
}

.hero {
    position: relative;
}

.hero-content {
    margin-top: 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    align-self: stretch !important;
}

.hero-content .about-title {
    flex: 1 1 auto !important;
    max-width: 950px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.about-title {
    font-size: 1.3rem !important;
    font-weight: 400;
    color: var(--text-dark);
    margin: 6rem 0 0 0;
    padding-left: 8rem !important;
    font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
    max-width: 950px !important;
    width: 100% !important;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    visibility: visible;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
    box-sizing: border-box !important;
}

.learn-more-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.learn-more-link:hover {
    opacity: 0.7;
}


.hero-image {
    display: flex;
    justify-content: flex-end;
    padding-right: 10%;
    background: #f5f6f7;
    flex: 1;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-width: 450px;
    background: #f5f6f7;
    mix-blend-mode: darken;
    filter: brightness(1.1) contrast(0.97);
    clip-path: inset(0 0 12.5% 0);
    object-fit: cover;
    object-position: top;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.cta-button {
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sections */
.section {
    padding: 80px 0;
    background: #f5f6f7 !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

#about .section-title {
    font-size: clamp(1rem, 3.5vw, 2.5rem) !important;
    font-weight: 400 !important;
    text-align: center;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif !important;
}

#about {
    padding-top: 10px !important;
    margin-top: 0 !important;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-section {
    background: #f5f6f7 !important;
    padding-top: 0px !important;
    margin-top: -20px !important;
}

#services .section-title {
    font-size: clamp(1rem, 3.5vw, 2.5rem) !important;
    font-weight: 400 !important;
    text-align: center;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.services-tagline {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 2rem auto 0 !important;
    max-width: 900px;
    line-height: 1.4 !important;
    color: var(--text-dark);
    font-family: Arial, sans-serif !important;
}

#contact .section-title {
    font-size: clamp(1rem, 3.5vw, 2.5rem) !important;
    font-weight: 400 !important;
    text-align: center;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.services-container {
    position: relative;
    padding-bottom: 50px;
    width: 100%;
    margin-bottom: 30px;
}

.services-grid-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.services-grid.scrollable {
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% * 4 / 3);
}

.service-card.hidden {
    display: none;
}

.services-grid.scrollable .service-card.hidden {
    display: block;
}


.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    min-height: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.service-video {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}


.services-arrow {
    position: absolute;
    bottom: -20px;
    left: calc(33.333% + 16.666% - 16px);
    transform: translateX(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.services-arrow:hover {
    opacity: 0.6;
}

.services-arrow-right::after {
    content: '→';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1;
}

.services-arrow-left::after {
    content: '←';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1;
}

.services-arrow:hover::after {
    opacity: 0.6;
}

.services-arrow.hidden {
    display: none;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: #f5f6f7 !important;
    padding-top: 0px !important;
    margin-top: -20px !important;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-linkedin {
    text-align: center;
    margin: 0 0 2rem 0;
}

.contact-linkedin a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.contact-linkedin a:hover {
    opacity: 0.8;
}

.contact-linkedin .linkedin-icon {
    display: block;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .cta-button {
    font-size: 1.1rem;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    line-height: 1.8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    flex: 1;
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer p {
    margin: 0;
}

.impressum-link {
    color: var(--white);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: opacity 0.3s ease;
}

.impressum-link:hover {
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Mobile: всё в столбик, ровные отступы слева/справа */
@media (max-width: 768px) {
    body,
    .page-wrapper,
    .top-section {
        overflow-x: hidden;
    }

    .container,
    #home .container,
    .hero .container,
    .section .container,
    .navbar .container,
    .footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #f5f6f7;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-right .language-switcher {
        display: none;
    }

    .mobile-lang-switcher {
        display: flex;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 1rem;
    }

    .mobile-lang-switcher .language-switcher {
        display: flex;
        gap: 0.5rem;
    }

    .hero {
        padding: 60px 0 10px 0 !important;
    }

    #home .hero-title,
    .hero .hero-title,
    .hero-title {
        font-size: 1.3rem !important;
        white-space: normal;
        line-height: 1.5;
        padding: 0 !important;
        text-align: center !important;
    }

    .hero-title .separator,
    #home .hero-title .separator {
        display: inline;
        margin: 0;
    }

    .hero-title .separator::after,
    #home .hero-title .separator::after {
        content: '\A';
        white-space: pre;
    }

    .hero-content {
        flex-direction: column;
        align-items: stretch;
        margin-top: 2rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .about-title {
        font-size: 1.1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 1rem 0 0 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-image {
        margin-top: 1rem !important;
        width: 100% !important;
        justify-content: center;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    #about {
        padding-top: 20px !important;
        margin-top: 0 !important;
    }

    #about .section-title {
        font-size: 1.3rem !important;
    }

    #services .section-title {
        font-size: 1.3rem !important;
    }

    .services-tagline {
        font-size: 1.3rem !important;
    }

    #contact .section-title {
        font-size: 1.3rem !important;
    }

    .service-card h3 {
        font-size: 1.3rem !important;
    }

    .hero-img {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .about-content,
    .about-text {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .about-text p {
        padding: 0;
    }

    .services-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        transform: none !important;
        width: 100% !important;
    }

    .services-grid.scrollable {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        transform: none !important;
    }

    .services-grid.scrollable .service-card.hidden {
        display: block !important;
    }

    .service-card.hidden {
        display: block !important;
    }

    .services-grid-wrapper {
        overflow: visible !important;
    }

    .services-arrow {
        display: none !important;
    }

    .contact-section {
        margin-top: -40px !important;
        padding-top: 0px !important;
    }

    .contact-form,
    .contact-intro {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .footer p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    #home .container,
    .hero .container,
    .section .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero {
        padding: 50px 0 10px 0 !important;
    }

    #home .hero-title,
    .hero .hero-title,
    .hero-title {
        font-size: 1.3rem !important;
        white-space: normal;
        line-height: 1.5;
        padding: 0 !important;
        text-align: center !important;
    }

    .hero-title .separator,
    #home .hero-title .separator {
        display: inline;
        margin: 0;
    }

    .hero-title .separator::after,
    #home .hero-title .separator::after {
        content: '\A';
        white-space: pre;
    }

    .hero-content {
        margin-top: 1.5rem;
    }

    .about-title {
        font-size: 1.1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0.8rem 0 0 0 !important;
    }

    .hero-image {
        margin-top: 1rem !important;
    }

    #about {
        padding-top: 15px !important;
        margin-top: 0 !important;
    }

    #about .section-title {
        font-size: 1.3rem !important;
    }

    #services .section-title {
        font-size: 1.3rem !important;
    }

    .services-tagline {
        font-size: 1.3rem !important;
    }

    #contact .section-title {
        font-size: 1.3rem !important;
    }

    .service-card h3 {
        font-size: 1.3rem !important;
    }

    .contact-section {
        margin-top: -40px !important;
        padding-top: 0px !important;
    }

    .hero-img {
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .logo-img {
        height: 30px;
    }

    .footer .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


