:root {
    --blue: #0649bd;
    --blue-dark: #053889;
    --cyan: #07bfe8;
    --ink: #172538;
    --muted: #627080;
    --line: #dce5ef;
    --soft: #f4f8fc;
    --white: #ffffff;
    --success: #18794e;
    --danger: #b42318;
    --shadow: 0 14px 30px rgba(18, 44, 78, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background: var(--white);
}

a { color: var(--blue); }

img { max-width: 100%; }

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
}

.header__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 88px;
}

.brand { display: inline-flex; align-items: center; }

.brand img {
    width: 162px;
    max-height: 70px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: var(--blue); }

.mobile-nav { display: none; position: relative; }

.mobile-nav summary {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.mobile-nav nav a {
    padding: 13px 15px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav nav a + a { border-top: 1px solid var(--line); }

.hero {
    padding: 92px 0;
    color: var(--white);
    background: linear-gradient(130deg, var(--blue-dark), var(--blue) 52%, var(--cyan));
}

.hero__content { max-width: 760px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #dff8ff; }

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.hero p:not(.eyebrow) {
    max-width: 660px;
    margin: 20px 0 28px;
    font-size: clamp(18px, 2vw, 21px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button--light { background: var(--white); color: var(--blue); }
.button--primary { background: var(--blue); color: var(--white); }
.button:hover { filter: brightness(.96); }

.section { padding: 64px 0; }
.section--soft { background: var(--soft); }

.section__heading { margin-bottom: 26px; }
.section__heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section__heading--split > a { font-weight: 800; }

.section h1,
.section h2,
.article h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(18, 44, 78, .14);
}

.card img {
    display: block;
    width: 100%;
    height: 196px;
    object-fit: cover;
    background: #e8eef6;
}

.card h3,
.card p,
.card span,
.card small { display: block; margin-left: 17px; margin-right: 17px; }

.card span {
    margin-top: 16px;
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.card h3 {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.27;
}

.card p {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.card small {
    margin-top: auto;
    margin-bottom: 17px;
    color: var(--muted);
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px dashed #b9c9d9;
    border-radius: 14px;
    padding: 24px;
    color: var(--muted);
    background: var(--white);
}

.article {
    max-width: 840px;
    padding-top: 62px;
    padding-bottom: 70px;
}

.article .eyebrow { margin-bottom: 10px; }

.subtitle,
.lead {
    color: var(--muted);
    font-size: 21px;
    line-height: 1.55;
}

.date,
.image-credit { color: var(--muted); font-size: 14px; }
.image-credit { margin-top: 8px; }

.cover {
    display: block;
    width: 100%;
    max-height: 530px;
    margin-top: 26px;
    border-radius: 18px;
    object-fit: cover;
}

.body { margin-top: 32px; font-size: 18px; line-height: 1.8; }
.body h2, .body h3 { margin-top: 1.7em; line-height: 1.2; }
.body img { max-width: 100%; height: auto; border-radius: 14px; }
.body a { font-weight: 700; }

.ouvidoria { max-width: 840px; }
.ouvidoria__intro { margin-top: 16px; }
.ouvidoria__intro p:first-child { margin-top: 0; }

.ouvidoria form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.ouvidoria label { display: grid; gap: 7px; font-weight: 700; }

.ouvidoria input,
.ouvidoria select,
.ouvidoria textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    color: var(--ink);
    font: inherit;
    background: var(--white);
}

.ouvidoria input:focus,
.ouvidoria select:focus,
.ouvidoria textarea:focus {
    outline: 3px solid rgba(7, 191, 232, .2);
    border-color: var(--cyan);
}

.checkbox-label { display: flex !important; align-items: center; gap: 10px !important; font-weight: 600 !important; }
.checkbox-label input { width: 18px; height: 18px; }

.identity-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.identity-fields legend { padding: 0 5px; font-weight: 800; }
.identity-fields legend span { color: var(--muted); font-size: 14px; font-weight: 400; }

.success,
.error-box {
    margin: 22px 0;
    border-radius: 12px;
    padding: 17px 18px;
}

.success { border-left: 4px solid var(--success); color: #145c3b; background: #ebf8f0; }
.error-box { border-left: 4px solid var(--danger); color: #8a1c12; background: #fff0ef; }
.error-box ul { margin: 8px 0 0; padding-left: 20px; }

.ouvidoria__track { margin-top: 28px; }
.ouvidoria__track a { font-weight: 800; }

.pagination { margin-top: 36px; }

.footer { color: var(--white); background: #182433; }
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
    gap: 38px;
    padding-top: 42px;
    padding-bottom: 32px;
}

.footer strong { font-size: 19px; }
.footer p { max-width: 500px; margin: 9px 0 0; color: #cbd6e2; }
.footer__contact { display: grid; align-content: start; gap: 7px; color: #cbd6e2; }
.footer a { color: #e7f8ff; }
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding-top: 18px;
    padding-bottom: 20px;
    color: #cbd6e2;
    font-size: 14px;
}

.social-links { display: flex; flex-wrap: wrap; gap: 13px; }

@media (max-width: 760px) {
    .wrap { width: min(100% - 28px, 1120px); }
    .header__wrap { min-height: 76px; }
    .brand img { width: 138px; max-height: 58px; }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .hero { padding: 62px 0; }
    .hero h1 { font-size: 40px; }
    .section { padding: 48px 0; }
    .section__heading--split { align-items: start; flex-direction: column; gap: 8px; }
    .cards { grid-template-columns: 1fr; }
    .card img { height: 210px; }
    .article { padding-top: 46px; padding-bottom: 54px; }
    .body { font-size: 17px; }
    .identity-fields { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
    .footer__bottom { align-items: start; flex-direction: column; }
}
