:root {
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-color: #333333;
    --accent-color: #007bff;
    --link-color: #007bff;
    --secondary-text: #666666;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--bg-color);
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 50px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h1 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.contact-info p {
    margin-bottom: 0.3rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid #dee2e6;
    height: 24px;
}

.lang-switch img {
    width: 28px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    display: block;
}

.lang-switch img:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
    font-size: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 0.2rem;
}

nav a:hover {
    color: var(--accent-color);
}

nav a.active {
    color: var(--accent-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.grid-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.section-box {
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.section-box h3 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.section-box p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.service-banner {
    background-color: #f0f7ff;
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 5px solid var(--accent-color);
    border-right: 1px solid #e1e9f1;
    border-top: 1px solid #e1e9f1;
    border-bottom: 1px solid #e1e9f1;
    border-radius: 0 8px 8px 0;
}

.service-banner img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.service-banner h2 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-section {
    margin: 4rem auto;
    padding: 2.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid #eee;
    max-width: 650px;
}

.contact-section h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: white;
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group select {
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: white;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn:active {
    transform: translateY(1px);
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--secondary-text);
    font-size: 0.75rem;
    border-top: 1px solid #eee;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#other-document-group {
    display: none;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }

    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        height: auto;
        padding: 0.4rem 0.2rem;
    }

    nav a.active::after {
        bottom: -2px;
    }

    .lang-switch {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #dee2e6;
        padding-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-info {
        min-width: auto;
    }

    .contact-info h1 {
        font-size: 1.7rem;
    }

    .service-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .grid-sections {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 1.5rem 1rem;
        margin: 2rem auto;
    }

    .contact-form {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.8rem;
    }

    nav {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }
}
