* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui,"Malgun Gothic",sans-serif;
    color: #14253b;
    background: #f5f7f9
}

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

header,footer {
    background: white;
    padding: 20px max(4%,calc((100% - 1320px)/2))
}

header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap
}

.logo {
    font-size: 28px;
    font-weight: 900
}

.logo small {
    display: block;
    font-size: 12px;
    color: #486153
}

nav {
    background: #142b42;
    color: white;
    padding: 14px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap
}

main {
    max-width: 1320px;
    margin: auto;
    padding: 16px
}

.hero {
    background: linear-gradient(90deg,#122d40 0%,#122d40 43%,transparent 85%),url('/img/hero.webp') right center/auto 100% no-repeat,#122d40;
    color: white;
    padding: 46px 35px;
    border-radius: 14px;
    min-height: 265px
}

.hero h1 {
    font-size: clamp(26px,4vw,42px);
    margin: 0 0 12px
}

.hero p {
    max-width: 440px
}

.tabs,.tools {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 18px 0
}

button,.btn {
    border: 1px solid #ced7df;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font: inherit;
    color: inherit
}

button.active,.btn:hover {
    background: #18364d;
    color: white
}

.panels,.guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.panel,article {
    background: white;
    border: 1px solid #dce3e9;
    border-radius: 12px;
    padding: 16px
}

.panel h2 {
    margin: 0 0 15px;
    font-size: 20px
}

.coupang {
    border-top: 5px solid #3185c9
}

.ali {
    border-top: 5px solid #e65743
}

.products {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px
}

.product {
    border: 1px solid #e3e8ed;
    border-radius: 8px;
    padding: 7px;
    min-width: 0
}

.product img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain
}

.product span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    min-height: 38px
}

.product strong {
    display: block;
    color: #b72121;
    font-size: 14px;
    margin-top: 8px
}

.guides {
    grid-template-columns: repeat(3,1fr)
}

.tools {
    background: #eaf2e7;
    padding: 15px;
    border-radius: 12px
}

.tools h2 {
    width: 100%;
    margin: 0;
    font-size: 20px
}

input,select {
    padding: 11px;
    border: 1px solid #b8c6d1;
    border-radius: 6px;
    font: inherit;
    max-width: 100%
}

footer {
    margin-top: 24px;
    background: #142b42;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

.footer-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer-description {
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-notice {
    font-size: 12px;
    color: #c5d1dc;
    line-height: 1.6;
}

.notice {
    font-size: 12px;
    color: #586779
}

.wide {
    grid-template-columns: repeat(5,minmax(0,1fr))
}

@media(max-width:850px) {
    .panels,.guides {
        grid-template-columns: 1fr
    }

    .products,.wide {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .hero {
        background: linear-gradient(90deg,#122d40e8,#122d4066),url('/img/hero.webp') center/cover
    }

    .logo {
        font-size: 22px
    }

    nav {
        gap: 14px
    }

}
