:root {
    --primary-color: #0077b6;
    --secondary-color: #00a8e8;
    --accent-color: #ffb703;
    --dark-color: #023047;
    --light-color: #f4faff;
    --text-color: #1f1f1f;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: white;
    transition: background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

.hero img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(2, 48, 71, 0.15);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    color: white;
    background-color: var(--accent-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(255, 183, 3, 0.3);
}

.button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1rem 3.5rem;
}

.section {
    background-color: white;
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 30px rgba(2, 48, 71, 0.08);
}

.section header h1,
.section header h2,
.section header h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.section header p {
    margin-bottom: 1.5rem;
    color: rgba(31, 31, 31, 0.75);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background-color: var(--light-color);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(2, 48, 71, 0.08);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 0;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(0, 119, 182, 0.1);
    border-radius: 0 10px 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th,
table td {
    border: 1px solid rgba(2, 48, 71, 0.1);
    padding: 0.75rem;
    text-align: left;
}

table th {
    background-color: rgba(0, 119, 182, 0.12);
}

aside {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 1rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer small {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    opacity: 0.85;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: var(--accent-color);
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
}

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

.fact-tile {
    background-color: white;
    border: 1px solid rgba(2, 48, 71, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(0, 119, 182, 0.12);
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .button,
    .button.secondary {
        width: 100%;
        text-align: center;
    }
}
form[data-form] {
    display: grid;
    gap: 0.75rem;
}

label {
    font-weight: 600;
}

input,
textarea,
select {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(2, 48, 71, 0.2);
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(0, 168, 232, 0.35);
    border-color: var(--secondary-color);
}

[aria-invalid="true"] {
    border-color: #c1121f;
}

[data-role="form-alert"] {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background-color: rgba(0, 119, 182, 0.12);
    color: var(--dark-color);
    margin-bottom: 1rem;
}
