* {
    box-sizing:border-box;
}

body {
    margin:0;
    font:17px/1.65 system-ui,sans-serif;
    color:#20333d;
    background:#fafbf9;
}

header,main,footer {
    max-width:1060px;
    margin:auto;
    padding:24px;
}

header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:15px;
}

a {
    color:#176d70;
}

nav {
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

nav a {
    text-decoration:none;
    color:#20333d;
    font-size:15px;
}

.brand {
    font-size:23px;
    font-weight:750;
    text-decoration:none;
    color:#20333d;
    letter-spacing:-1px;
}

.brand span {
    color:#176d70;
}

main {
    min-height:65vh;
}

h1 {
    font-size:clamp(34px,5vw,58px);
    line-height:1.12;
    letter-spacing:-2px;
    max-width:800px;
}

h2 {
    line-height:1.25;
}

p {
    max-width:760px;
}

.lead {
    font-size:22px;
    color:#51616a;
}

.button,button {
    display:inline-block;
    background:#176d70;
    color:white;
    padding:13px 22px;
    border:0;
    border-radius:6px;
    text-decoration:none;
    font:inherit;
    cursor:pointer;
}

.cards {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
    margin:40px 0;
}

.card,fieldset {
    background:white;
    border:1px solid #dce5e2;
    border-radius:9px;
    padding:24px;
}

footer {
    border-top:1px solid #dce5e2;
    font-size:14px;
    color:#52636b;
}

fieldset {
    margin:18px 0;
}

legend {
    font-weight:650;
}

label {
    display:block;
    padding:5px 0;
}

input {
    accent-color:#176d70;
}

progress {
    width:100%;
    accent-color:#176d70;
}

small {
    color:#52636b;
}

.result {
    background:white;
    padding:24px;
    border:1px solid #dce5e2;
    border-radius:9px;
    margin-top:24px;
}


.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-start;
}

.actions small {
    display: block;
    margin-top: 6px;
}

.button-secondary {
    background: transparent;
    color: #176d70;
    border: 1px solid #176d70;
    padding: 12px 21px;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: #e8f2f0;
}
