* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: 100px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #555;
    background-color: #f8f9fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.fg-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.fg-eu-corner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.fg-eu-corner img {
    height: 120px;
    width: auto;
    display: block;
}

.fg-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
    padding-left: 160px;
    height: 100%;
}

.fg-logo-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    margin-right: 20px;
}

.fg-site-logo {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}

.fg-mobile-logo {
    display: none;
}

.fg-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 25px;
}

.fg-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.fg-nav a:hover {
    color: #9ccfa0;
}

.btn-appointment {
    background-color: #9ccfa0;
    color: #fff !important;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(156, 207, 160, 0.3);
    text-align: center;
    white-space: normal !important;
    line-height: 1.2;
    display: inline-block;
}

.btn-appointment:hover {
    background-color: #7ab57f;
    transform: translateY(-2px);
}

.fg-container-full {
    width: 100%;
    overflow-x: hidden;
}

.fg-hero-modern {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding-top: 130px;
    padding-bottom: 80px;
    width: 100%;
}

.fg-hero-modern::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('hero-bg.jpeg') center center/cover no-repeat;
    filter: blur(4px);
    z-index: 1;
    transform: scale(1.1);
}

.fg-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.fg-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.fg-hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.fg-hero-modern h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.fg-hero-modern p {
    font-size: 1.15em;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    font-size: 1.2rem;
    padding: 0.9em 2.5em;
    background-color: #9ccfa0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    background-color: #7ab57f;
    transform: translateY(-3px);
}

.fg-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.03);
    position: relative;
    top: -50px;
    border-radius: 8px;
    padding-top: 20px;
    z-index: 10;
}

h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #9ccfa0;
    margin: 15px auto 0;
}

.fg-services {
    background-color: #fff;
    padding: 60px 40px;
}

.fg-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.fg-service-card {
    background: #f9fbf9;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.fg-service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #9ccfa0;
}

.fg-service-card h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.fg-process-section {
    padding: 80px 50px;
    background: #fff;
}

.fg-process-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.fg-process-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fg-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.fg-step-number {
    background-color: #9ccfa0;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.fg-step-content h3 {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 1.3em;
}

.fg-process-image {
    flex: 1;
    text-align: center;
}

.fg-process-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 20px;
    box-shadow: -20px 20px 0px #f0f7f1;
}

.fg-team {
    padding: 90px 40px;
    background: #f8f9fa;
}

.fg-team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 30px;
    margin-bottom: 60px;
}

.fg-team-row.assistants {
    margin-bottom: 0;
}

.fg-team-member {
    text-align: center;
    width: 250px;
}

.fg-team-member img, 
.fg-member-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 0 0 5px #fff, 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.fg-team-member img {
    object-fit: cover;
    object-position: top center;
}

.fg-member-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #9ccfa0 100%);
    position: relative;
    overflow: hidden;
}

.fg-member-placeholder::after {
    content: 'FG';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 2em;
    opacity: 0.5;
}

.fg-team-member:hover img,
.fg-team-member:hover .fg-member-placeholder {
    box-shadow: 0 0 0 5px #9ccfa0, 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.fg-team-member h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
    font-weight: 700;
}

.fg-role {
    color: #7ab57f;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fg-implant-section {
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 60px;
    background: #34495e;
    color: #fff;
    border-radius: 8px;
    margin: 40px;
    overflow: hidden;
}

.fg-implant-section h2 {
    color: #fff;
    text-align: left;
    margin-bottom: 20px;
}

.fg-implant-section h2::after {
    margin: 15px 0 0;
    background: #fff;
}

.fg-implant-section p {
    font-size: 1.1em;
    opacity: 0.9;
}

.fg-implant-img {
    flex: 0 0 480px;
    width: 480px;
}

.fg-implant-img img {
    width: 100%;
    height: auto;
    max-height: 450px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    background-color: #95a5a6;
}

.fg-al {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: fit-content;
    max-width: 100%;
}

.fg-footer {
    background-color: #222;
    color: #ccc;
    border-top: 5px solid #9ccfa0;
    display: flex;
    flex-direction: column;
    padding: 60px 0 20px 0;
    width: 100%;
}

.fg-footer-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 100px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.fg-footer h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 25px;
    border-left: 3px solid #9ccfa0;
    padding-left: 15px;
    line-height: 1;
    width: 100%;
}

.fg-contact-item {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.fg-footer-project-info {
    text-align: center;
    width: 100%;
    margin-top: 40px;
    padding: 0 20px;
    color: #fff;
}

.fg-copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #888;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    body {
        padding-top: 250px; 
    }

    .fg-header {
        height: auto; 
        padding: 10px 0;
        position: absolute; 
    }

    .fg-header-inner {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 120px;
    }
    
    .fg-eu-corner img {
        height: 40px;
    }

    .fg-logo-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .fg-desktop-logo {
        display: none;
    }

    .fg-mobile-logo {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        max-height: 100px;
        object-fit: cover;
    }

    .fg-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }

    .fg-nav a {
        display: block;
        padding: 5px 0;
    }

    .fg-nav .btn-appointment {
        display: inline-block;
        padding: 12px 25px;
        margin-top: 10px;
        width: auto;
        height: auto;
        line-height: normal;
    }

    .fg-hero-modern h1 {
        font-size: 2em;
    }
    
    .fg-hero-logo {
        height: 80px;
        padding: 10px 20px;
    }

    .fg-container {
        width: 95%;
        padding: 0;
    }

    .fg-services, .fg-process-section, .fg-team {
        padding: 40px 20px;
    }

    .fg-process-container {
        flex-direction: column;
        gap: 40px;
    }

    .fg-process-image img {
        width: 100%;
    }

    .fg-team-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .fg-team-member {
        width: 100%;
    }

    .fg-implant-section {
        flex-direction: column;
        padding: 30px;
        margin: 20px;
    }

    .fg-implant-img {
        width: 100%;
        flex: auto;
    }
    
    .fg-footer-grid {
        gap: 40px;
        text-align: center;
    }
    
    .fg-al {
        align-items: center;
        text-align: center;
    }
    
    .fg-footer h3 {
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid #9ccfa0;
        padding-bottom: 10px;
        display: inline-block;
        width: auto;
    }
}