:root {
    --blue: #087FE7;
    --blue-strong: #006FD7;
    --blue-dark: #00487F;
    --blue-darker: #003767;
    --blue-deep: #002F5B;
    --text: #082B59;
    --muted: #4C6283;
    --white: #FFF;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Trebuchet MS", Arial, sans-serif;
    background: #F7FBFF;
    display: flex;
    flex-direction: column;
}

.site-header {
    height: 118px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(10, 63, 113, 0.08);
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.9) 68%),
    #F7FBFF;
}

.brand {
    display: block;
    width: 174px;
    height: 100px;
    margin-left: clamp(24px, 18.7vw, 333px);
    background-image: url("../img/logo.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.hero {
    position: relative;
    min-height: 490px;
    flex: 1 0 auto;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.96)),
    #F7FBFF;
}

.hero::after {
    content: "";
    position: absolute;
    right: -4vw;
    bottom: -152px;
    width: 84vw;
    height: 520px;
    border-radius: 55% 0 0 0 / 58% 0 0 0;
    background: linear-gradient(150deg, rgba(219, 236, 255, 0.78), rgba(237, 247, 255, 0.5));
    z-index: 0;
}

.dot-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 450px;
    height: 235px;
    background-image: radial-gradient(circle, rgba(106, 165, 225, 0.25) 2px, transparent 2px);
    background-size: 44px 40px;
    z-index: 0;
}

.wave {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.wave-one {
    right: 0;
    bottom: 32px;
    width: 650px;
    height: 165px;
    border-top: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50% 0 0 0;
    transform: rotate(-8deg);
}

.wave-two {
    right: 280px;
    bottom: -58px;
    width: 430px;
    height: 230px;
    border-top: 2px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 48px));
    min-height: auto;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 92px);
}

.hero-copy {
    padding-left: 14px;
}

.hero-copy h1 {
    margin: 0;
    line-height: 0.96;
}

.hero-copy span {
    display: block;
    margin: 0 0 10px;
    color: #082B59;
    font-size: clamp(28px, 2.15vw, 36px);
    font-weight: 500;
}

.hero-copy strong {
    display: block;
    color: var(--blue);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(76px, 7.1vw, 140px);
    font-weight: 400;
    letter-spacing: 0;
}

.title-rule {
    display: block;
    width: 124px;
    height: 4px;
    margin-top: 28px;
    background: var(--blue);
}

.portrait {
    width: 430px;
    aspect-ratio: 1;
    justify-self: start;
    border-radius: 50%;
    background-color: #EAF4FF;
    background-image: url("../img/deputado-covatti.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 8px 16px 22px rgba(8, 43, 89, 0.18);
}

.page-footer {
    color: var(--white);
    background: radial-gradient(circle at 34% 34%, rgba(10, 126, 221, 0.2), transparent 26%),
    linear-gradient(120deg, #004D88 0%, #003E75 46%, #003767 100%);
}

.footer-content {
    width: min(1220px, calc(100% - 48px));
    min-height: 232px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    align-items: center;
    gap: clamp(56px, 11vw, 145px);
    padding: 38px 0 34px;
}

.footer-block h2 {
    margin: 0 0 10px;
    color: #5DB7FF;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 22, 46, 0.35);
}

.office-card h2 {
    color: var(--white);
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 15px;
    text-transform: none;
}

.footer-block p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.2;
}

.footer-rule {
    display: block;
    width: 78px;
    height: 2px;
    margin: 0 0 20px;
    background: #1C97FF;
}

.office-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: start;
}

.chamber-image {
    width: 96px;
    height: 101px;
    margin-top: 2px;
    background-image: url("../img/camara-card.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.system-bar {
    min-height: 47px;
    background: rgba(0, 35, 69, 0.78);
    flex: 0 0 auto;
}

.system-inner {
    width: min(1220px, calc(100% - 48px));
    min-height: 47px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 16px;
}

.system-inner i {
    color: var(--white);
    font-size: 22px;
}

.system-inner a {
    color: inherit;
    text-decoration: none
}

@media (max-width: 920px) {
    .site-header {
        height: 104px;
    }

    .brand {
        margin-left: 24px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 72px 0 64px;
        text-align: center;
    }

    .hero-copy {
        padding-left: 0;
    }

    .title-rule {
        margin-right: auto;
        margin-left: auto;
    }

    .portrait {
        width: 430px;
        max-width: 82vw;
        justify-self: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .brand {
        transform: scale(0.86);
        transform-origin: left center;
    }

    .hero-inner,
    .footer-content,
    .system-inner {
        width: min(100% - 32px, 1220px);
    }

    .hero-copy span {
        font-size: 25px;
    }

    .hero-copy strong {
        font-size: clamp(52px, 16vw, 70px);
    }

    .portrait {
        width: min(300px, 84vw);
    }

    .office-card {
        grid-template-columns: 1fr;
    }

    .system-inner {
        gap: 12px;
        font-size: 14px;
    }
}
