:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --primary-hover: #4f46e5;
    --light-bg: #FAFAFA;
    --bg-white: #ffffff;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --navbar-height: 72px;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    margin: 0;
    padding-top: var(--navbar-height);
    min-height: 100vh;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar-fixed-top.is-scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-fixed-top.is-hidden {
    transform: translateY(-110%);
    box-shadow: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 0.6rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.95rem;
    border-radius: 0.6rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
}

.navbar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.14));
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-toggle {
    display: none;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.navbar-toggle:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar-brand:focus-visible,
.navbar-link:focus-visible,
.navbar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

main {
    width: 100%;
    padding-bottom: 3rem;
}

.page-header {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 3rem) 1.5rem 0;
}

.page-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--primary-color);
}

.page-divider {
    width: 80px;
    height: 4px;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    border: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.map-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    display: block;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1.25rem;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    border-color: var(--primary-color);
}

.contact-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.contact-info h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-card iframe {
        height: 46vh;
        min-height: 300px;
        max-height: 420px;
    }

    .contact-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-item:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .contact-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-grid {
        padding: 0 0.85rem;
        gap: 1rem;
    }

    .map-card iframe {
        height: 38vh;
        min-height: 240px;
    }

    .contact-list {
        gap: 0.75rem;
    }

    .contact-item {
        padding: 1rem;
        gap: 0.85rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .navbar-brand img {
        height: 36px;
    }

    .navbar-brand .brand-text {
        font-size: 1.05rem;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 0.4rem;
        min-width: 200px;
        gap: 0.2rem;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .navbar-menu.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar-link {
        padding: 0.65rem 0.9rem;
    }

    .navbar-fixed-top.is-hidden {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .navbar-fixed-top {
        padding: 0 0.85rem;
        gap: 0.5rem;
    }

    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-brand .brand-text {
        font-size: 0.95rem;
    }

    .navbar-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .navbar-menu {
        right: 0.75rem;
        min-width: 180px;
    }

    .page-header {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

@media (max-width: 360px) {
    .navbar-brand .brand-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
