* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: #142c27;
    background: #f8faf9;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */

.topbar {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #e3ebe7;
    display: flex;
    align-items: center;
    padding: 0 6vw;
    gap: 35px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: #123b32;
    color: white;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.brand strong {
    display: block;
    font-size: 12px;
    letter-spacing: .1em;
}

.brand small {
    display: block;
    color: #78847f;
    font-size: 9px;
}

nav {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: #566660;
}

.header-button {
    border: 0;
    background: #123b32;
    color: white;
    border-radius: 9px;
    padding: 12px 17px;
    font-weight: 800;
    cursor: pointer;
}

/* HERO */

.hero {
    min-height: 570px;
    padding: 85px 9vw;
    display: grid;
    grid-template-columns: 1.5fr .65fr;
    gap: 80px;
    align-items: center;

    background:
        radial-gradient(
            circle at 75% 20%,
            #dcefe6,
            #f5faf7 48%,
            #edf4f0
        );
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    color: #55756d;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.05em;
    margin: 18px 0;
}

.hero p {
    font-size: 18px;
    color: #61716b;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 9px;
    font-weight: 800;
}

.primary-button {
    background: #123b32;
    color: white;
}

.secondary-button {
    background: white;
    color: #123b32;
}

.hero-statistics {
    display: flex;
    gap: 45px;
    margin-top: 45px;
}

.hero-statistics strong {
    font-size: 28px;
    display: block;
}

.hero-statistics span {
    color: #77847f;
    font-size: 11px;
}

.hero-dashboard {
    background: #10342d;
    color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 60px #173b3020;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #8dd8a6;
    border-radius: 50%;
    margin-bottom: 18px;
}

.hero-dashboard > span {
    font-size: 10px;
    letter-spacing: .1em;
}

.hero-dashboard h2 {
    margin-top: 35px;
}

.risk-progress {
    height: 8px;
    background: #ffffff22;
    border-radius: 10px;
}

.risk-progress div {
    width: 68%;
    height: 100%;
    background: #9ddfb0;
    border-radius: 10px;
}

.risk-number {
    font-size: 28px;
    display: block;
    margin-top: 10px;
}

.hero-dashboard p {
    font-size: 11px;
    color: #b8cbc4;
}

/* SECTIONS */

.section {
    padding: 85px 7vw;
}

.light-section {
    background: #f0f5f2;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 42px;
    letter-spacing: -.04em;
    margin: 10px 0;
}

.section-heading > p {
    max-width: 430px;
    color: #687670;
    line-height: 1.6;
}

/* MAP */

.map-dashboard {
    height: 650px;
    display: grid;
    grid-template-columns: 300px 1fr;
    background: white;
    border: 1px solid #dce6e1;
    border-radius: 17px;
    overflow: hidden;
}

.map-sidebar {
    padding: 22px;
    border-right: 1px solid #e1e9e5;
    overflow-y: auto;
}

.filter-title {
    font-size: 11px;
    letter-spacing: .15em;
    font-weight: 900;
}

#search {
    width: 100%;
    padding: 11px;
    border: 1px solid #d5dfda;
    border-radius: 8px;
    margin: 20px 0 12px;
}

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin: 15px 0 8px;
    color: #66736e;
}

.risk-buttons {
    display: flex;
    gap: 6px;
}

.risk-filter {
    border: 1px solid #d5dfda;
    background: white;
    border-radius: 20px;
    padding: 7px 10px;
    cursor: pointer;
}

.risk-filter.active {
    background: #123b32;
    color: white;
}

#types label {
    display: block;
    margin: 9px 0;
    font-size: 12px;
}

#types input {
    margin-right: 6px;
}

.details-box {
    background: #f2f6f4;
    border-radius: 9px;
    padding: 14px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.6;
}

.details-box strong {
    display: block;
}

.details-box p {
    color: #697771;
}

#map {
    height: 100%;
    background: #dce8e2;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.popup h3 {
    margin: 8px 0;
}

.popup p {
    font-size: 12px;
    line-height: 1.5;
}

.badge {
    font-size: 9px;
    padding: 4px 7px;
    border-radius: 20px;
    background: #fff0ed;
    color: #a13a2e;
    font-weight: 800;
}

/* STATISTICS */

.statistics-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #dce5e1;
}

.stat-card {
    background: white;
    padding: 32px 7vw;
}

.stat-card span,
.stat-card small {
    display: block;
    color: #74817c;
    font-size: 11px;
}

.stat-card strong {
    display: block;
    font-size: 35px;
    margin: 5px 0;
}

/* FORMATION */

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

.course-card {
    background: white;
    border: 1px solid #dce5e1;
    border-radius: 15px;
    padding: 27px;
}

.course-icon {
    font-size: 25px;
}

.course-card h3 {
    font-size: 19px;
}

.course-card p {
    color: #697770;
    line-height: 1.6;
    font-size: 13px;
    min-height: 55px;
}

.course-card button {
    border: 0;
    background: none;
    font-weight: 800;
    color: #17483c;
    cursor: pointer;
}

/* REPORT */

.report-container {
    background: #123b32;
    color: white;
    border-radius: 20px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.report-container h2 {
    font-size: 40px;
}

.report-container p {
    color: #bdd0c9;
    line-height: 1.6;
}

.demo-warning {
    font-size: 12px;
}

.report-form {
    display: grid;
    gap: 10px;
}

.report-form input,
.report-form select,
.report-form textarea {
    border: 0;
    border-radius: 8px;
    padding: 13px;
    font: inherit;
}

.report-form textarea {
    min-height: 120px;
}

.submit-button {
    border: 0;
    background: white;
    color: #123b32;
    border-radius: 9px;
    padding: 13px;
    font-weight: 900;
    cursor: pointer;
}

/* PROCESS */

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.process > div {
    background: white;
    border: 1px solid #dce5e1;
    border-radius: 14px;
    padding: 25px;
}

.process span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #123b32;
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.process h3 {
    font-size: 17px;
}

.process p {
    font-size: 12px;
    color: #697670;
    line-height: 1.6;
}

/* FOOTER */

footer {
    background: #102f29;
    color: #d9e5df;
    padding: 28px 7vw;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

/* TOAST */

#toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #102f29;
    color: white;
    padding: 14px 18px;
    border-radius: 9px;
    opacity: 0;
    transform: translateY(10px);
    transition: .25s;
    z-index: 3000;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */

@media (max-width: 850px) {

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 7vw;
    }

    .map-dashboard {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e1e9e5;
    }

    #map {
        height: 520px;
    }

    .section-heading {
        display: block;
    }

    .courses,
    .statistics-section,
    .process {
        grid-template-columns: 1fr;
    }

    .report-container {
        display: block;
    }

    .report-form {
        margin-top: 30px;
    }

}