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

html, body {
    height: 100%;
}

:root {
    --primary: #1f618d;
    --secondary: #f4c542;
    --bg: #ffffff;
    --muted: #6b7280;
    --card-bg: #fbfbfc;
    --radius: 10px;
    --max-width: 1100px;
    --container-padding: 16px;
    --accent-contrast: #0b253d;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    background: linear-gradient(90deg,var(--primary), #2f8bed);
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(15,23,42,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px var(--container-padding);
}

.site-title {
    font-size: 1.1rem;
    margin-left: 8px;
}

.header-inner img {
    height: 56px;
    width: auto;
    border-radius: 6px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

.main-nav a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background .16s, transform .08s;
}

    .main-nav a:hover,
    .main-nav a:focus {
        background: rgba(255,255,255,0.08);
        outline: none;
        transform: translateY(-1px);
    }
    
    .main-nav a.active {
        box-shadow: inset 0 -3px 0 var(--secondary);
    }

a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid rgba(31,97,141,0.18);
    outline-offset: 2px;
    border-radius: 6px;
}

.hero {
    padding: 32px 0;
    background: linear-gradient(180deg, rgba(47,139,237,0.04), transparent 60%);
}

.hero-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text h1, .hero-text h2 {
    margin-bottom: 8px;
}

.hero-text h1 {
    font-size: 2rem;
    color: var(--accent-contrast);
}

.hero-text p {
    margin-bottom: 12px;
    color: var(--muted);
}

.hero-image img {
    transform-origin: 50% 50%;
    backface-visibility: hidden;
}

.hero-image img:hover,
.hero-image img:focus {
    animation: spin-on-hover 1s linear infinite;
}

@keyframes spin-on-hover {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image img:hover,
    .hero-image img:focus {
        animation: none;
        transition: transform .2s linear;
    }
}

.hero-image img {
    width: 320px;
    max-width: 40vw;
    height: auto;
    border-radius: 6px;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

    .btn:hover, .btn:focus {
        background: #1b4f78;
        transform: translateY(-1px);
    }
    
    .btn.outline {
        background: transparent;
        color: var(--primary);
        border: 2px solid var(--primary);
    }
    
    .btn.small {
        padding: 6px 8px;
        font-size: .9rem;
    }

.intro {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
    padding-bottom: 20px;
}

.cta-box {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(15,23,42,0.04);
}

.card-grid {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: white;
    border: 1px solid #eceff3;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(15,23,42,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .card h3 {
        font-size: 1.05rem;
        color: var(--accent-contrast);
    }
    
    .card p {
        color: var(--muted);
        font-size: .95rem;
    }

.profiles {
    margin-top: 26px;
    display: grid;
    gap: 16px;
}

.profile {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15,23,42,0.04);
}

thead {
    background: var(--primary);
    color: white;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f6;
}

tbody tr:last-child td {
    border-bottom: none;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px var(--container-padding);
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 10px;
    max-width: 680px;
}

    .contact-form label {
        font-weight: 600;
        color: var(--accent-contrast);
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #d6dce6;
        font: inherit;
    }

    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }

img[loading="lazy"] {
    display: block;
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-image img {
        max-width: 45vw;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        padding: 14px var(--container-padding);
    }

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

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

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

:focus-visible {
    outline: 3px solid rgba(31,97,141,0.18);
    outline-offset: 2px;
}
