* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a4b8c 0%, #2d5aa0 50%, #1a4b8c 100%);
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.a11y-announcer {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.a11y-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    background: #1a4b8c;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.4);
}

.a11y-toggle:hover,
.a11y-toggle:focus {
    transform: scale(1.05);
    background: #0d2847;
    outline: none;
    box-shadow: 0 0.375rem 1.5625rem rgba(0, 0, 0, 0.5);
}

.a11y-toggle:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.a11y-toggle[aria-expanded="true"] {
    background: #0d2847;
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

.a11y-toggle svg {
    width: 1.875rem;
    height: 1.875rem;
    pointer-events: none;
}

.a11y-panel {
    position: fixed;
    top: 6.5rem;
    right: 1.25rem;
    background: #fff;
    border: 2px solid #1a4b8c;
    border-radius: 0.9375rem;
    padding: 1.5625rem;
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.3);
    z-index: 999;
    min-width: 17.5rem;
    max-width: 20rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.a11y-panel[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.a11y-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a4b8c;
    margin: 0 0 1.25rem 0;
    text-align: center;
    border-bottom: 2px solid #1a4b8c;
    padding-bottom: 0.75rem;
}

.a11y-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.a11y-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    color: #333;
}

.a11y-btn:hover,
.a11y-btn:focus {
    background: #1a4b8c;
    color: #fff;
    border-color: #1a4b8c;
    transform: translateX(-0.1875rem);
    outline: none;
}

.a11y-btn:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.a11y-btn[aria-pressed="true"] {
    background: #0d2847;
    color: #fff;
    border-color: #0d2847;
    font-weight: bold;
}

.a11y-btn-reset {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    margin-top: 0.625rem;
}

.a11y-btn-reset:hover,
.a11y-btn-reset:focus {
    background: #c82333;
    border-color: #c82333;
}

body.a11y-contrast {
    background: #000;
    color: #fff;
}

body.a11y-contrast .page-container {
    background: #fff;
    border: 4px solid #000;
    color: #000;
}

body.a11y-contrast .site-header {
    background: #000;
    color: #fff;
}

body.a11y-contrast .site-logo {
    filter: brightness(0) invert(1) contrast(2) !important;
    background: #fff;
    padding: 0.625rem;
    border-radius: 0.5rem;
}

body.a11y-contrast .content-section {
    background: #fff;
    border: 3px solid #000;
    color: #000;
}

body.a11y-contrast .section-title,
body.a11y-contrast .contact-name,
body.a11y-contrast .info-list dt {
    color: #000 !important;
}

body.a11y-contrast a {
    color: #00f !important;
    text-decoration: underline;
    font-weight: bold;
}

body.a11y-contrast .contact-card {
    border: 3px solid #000;
    background: #fff;
}

body.a11y-contrast .site-footer {
    background: #000;
    color: #fff;
}

body.a11y-contrast .site-footer a {
    color: #ff0 !important;
}

body.a11y-contrast .a11y-toggle {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.a11y-contrast .a11y-panel {
    border: 4px solid #000;
}

body.a11y-grayscale {
    filter: grayscale(100%);
}

body.a11y-grayscale img {
    filter: grayscale(100%) !important;
}

body.a11y-font-size-1 {
    font-size: 125%;
}

body.a11y-font-size-2 {
    font-size: 150%;
}

body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: Arial, sans-serif !important;
}

body.a11y-underline-links a {
    text-decoration: underline !important;
}

body.a11y-light-bg {
    background: #f5f5f5;
}

body.a11y-light-bg .page-container {
    background: #fff;
}

body.a11y-light-bg .site-header {
    background: #e3f2fd;
    color: #0d47a1;
}

body.a11y-light-bg .site-title {
    color: #0d47a1;
    text-shadow: none;
}

body.a11y-light-bg .site-subtitle {
    color: #1565c0;
}

body.a11y-light-bg .site-logo {
    filter: none;
}

body.a11y-light-bg .content-section {
    background: #fafafa;
    border-right-color: #1565c0;
}

body.a11y-light-bg .section-title,
body.a11y-light-bg .contact-name {
    color: #0d47a1;
}

body.a11y-light-bg .site-footer {
    background: #e3f2fd;
    color: #0d47a1;
}

body.a11y-light-bg .site-footer a {
    color: #1565c0;
}

body.a11y-light-bg .a11y-toggle {
    background: #1565c0;
    border-color: #fff;
}

.page-container {
    max-width: 62.5rem;
    margin: 1.25rem auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
    overflow-x: hidden;
}

.site-header {
    background: linear-gradient(135deg, #1a4b8c 0%, #2d5aa0 100%);
    padding: 2rem 1.875rem;
    text-align: center;
    color: #fff;
}

.header-content {
    max-width: 50rem;
    margin: 0 auto;
}

.site-logo {
    max-width: 15rem;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.3));
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.625rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.site-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

.site-main {
    padding: 2.5rem 1.875rem;
}

.content-section {
    margin-bottom: 2.1875rem;
    padding: 1.5625rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.9375rem;
    border-right: 5px solid #1a4b8c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateX(-0.3125rem);
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 1.8rem;
    color: #1a4b8c;
    margin-bottom: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
}

.section-title::before {
    content: '◆';
    color: #2d5aa0;
    font-size: 0.8em;
}

.info-list {
    display: grid;
    gap: 0.75rem;
}

.info-list dt {
    font-weight: bold;
    color: #1a4b8c;
    display: inline;
}

.info-list dd {
    display: inline;
    margin: 0 0 0 0.625rem;
    font-size: 1.1rem;
}

.info-list dt::after {
    content: '';
    display: block;
    margin-bottom: 0.75rem;
}

.about-text {
    line-height: 1.9;
    font-size: 1.1rem;
    text-align: justify;
    padding: 0.9375rem;
    background: #fff;
    border-radius: 0.625rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.contact-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #1a4b8c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.5625rem rgba(26, 75, 140, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.625rem;
}

.contact-name {
    font-weight: bold;
    color: #1a4b8c;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #2d5aa0;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    word-break: break-all;
    text-align: center;
}

.contact-link:hover,
.contact-link:focus {
    color: #1a4b8c;
    text-decoration: underline;
}

.site-footer {
    background: linear-gradient(135deg, #1a4b8c 0%, #0d2847 100%);
    color: #fff;
    text-align: center;
    padding: 1.5625rem;
    font-size: 1rem;
}

.site-footer nav {
    margin-top: 0.625rem;
}

.site-footer a {
    color: #a8c5ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer span {
    margin: 0 0.625rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .page-container {
        margin: 0.625rem;
        border-radius: 0.9375rem;
    }

    .site-header {
        padding: 1.5rem 1.25rem;
    }

    .site-logo {
        max-width: 10rem;
        margin-bottom: 0.75rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .site-main {
        padding: 1.875rem 1.25rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 1.25rem;
    }

    .a11y-toggle {
        width: 3.125rem;
        height: 3.125rem;
        top: 0.625rem;
        right: 0.625rem;
    }

    .a11y-toggle svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .a11y-panel {
        right: 0.625rem;
        left: 0.625rem;
        max-width: none;
        top: 4.375rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .site-title {
        font-size: 1.5rem;
    }

    .site-logo {
        max-width: 8rem;
    }

    .a11y-panel {
        min-width: auto;
        right: 0.3125rem;
        left: 0.3125rem;
    }

    .info-list dt,
    .info-list dd {
        display: block;
        margin: 0;
    }

    .info-list dd {
        margin-bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-property: none !important;
        scroll-behavior: auto !important;
    }

    .a11y-toggle:hover,
    .a11y-btn:hover,
    .contact-card:hover,
    .content-section:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .a11y-toggle:focus,
    .a11y-btn:focus,
    .contact-card:focus,
    .content-section:focus {
        transform: none !important;
    }
}

@media print {
    .a11y-toggle,
    .a11y-panel {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-container {
        box-shadow: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    a[href^="mailto"]::after,
    a[href^="tel"]::after {
        content: "";
    }
}