:root {
    --teal: #087f85;
    --dark: #163337;
    --bg: #f5f8f8
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    font: 16px/1.55 system-ui,Segoe UI,Arial;
    color: #263a3c
}

a {
    color: var(--teal)
}

header {
    background: white;
    border-bottom: 1px solid #dce7e7
}

    header .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0
    }

.wrap {
    max-width: 1120px;
    margin: auto;
    padding: 0 20px
}

.brand {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--dark)
}

    .brand span {
        color: var(--teal)
    }

.hero {
    padding: 45px 0 25px
}

h1 {
    font-size: clamp(28px,4vw,42px);
    line-height: 1.2;
    margin: 0 0 10px
}

h2 {
    margin: 10px 0 16px
}

.muted {
    color: #60777a
}

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

.card, .panel {
    background: white;
    border: 1px solid #dce7e7;
    border-radius: 16px;
    padding: 23px;
    box-shadow: 0 4px 20px #1233 0
}

.card {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.product-icon {
    display: grid;
    place-items: center;
    background: #edf7f6;
    border-radius: 12px;
    height: 110px;
    font-size: 44px
}

.price {
    font-size: 24px;
    font-weight: 750;
    color: var(--dark)
}

.button, button {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    background: var(--teal);
    color: white;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    padding: 10px 17px;
    cursor: pointer
}

    .button:hover, button:hover {
        background: #05646a
    }

.secondary {
    background: #e8f1f1;
    color: #153b3d
}

    .secondary:hover {
        background: #d7e7e7
    }

.qty {
    width: 75px;
    padding: 9px;
    border: 1px solid #b9cdcd;
    border-radius: 8px
}

.pill {
    font-size: 13px;
    color: #087f85;
    font-weight: 700
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px
}

    .field.full {
        grid-column: 1/-1
    }

input[type=text], input[type=email], textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #b9cdcd;
    border-radius: 8px;
    font: inherit
}

label {
    font-weight: 600
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0eaea;
    padding: 15px 0;
    gap: 12px
}

.notice {
    background: #e9f4f4;
    padding: 15px;
    border-radius: 10px;
    margin: 18px 0
}

.error {
    color: #a02a24
}

.totals {
    max-width: 400px;
    margin: 22px 0 25px auto
}

    .totals div {
        display: flex;
        justify-content: space-between;
        padding: 6px 0
    }

    .totals .grand {
        border-top: 2px solid #aacccc;
        font-size: 20px;
        font-weight: 800
    }

.small {
    font-size: 13px
}

.space {
    margin: 25px 0
}

footer {
    padding: 40px 0;
    color: #667b7c
}

@media(max-width:650px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .cart-line {
        align-items: flex-start;
        flex-direction: column
    }
}
