:root {
  color-scheme: light;
  --ink: #19231d;
  --muted: #506057;
  --dark: #18261f;
  --green: #264d36;
  --lime: #d6ed7b;
  --line: #dbe3db;
  --surface: #f5f7f3;
  --white: #fff;
  --radius: 14px;
  --font: Pretendard, 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #78a936; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.container { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 9; top: 12px; left: 12px; padding: 10px 16px; background: var(--lime); }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 1px solid #e7ebe5; }
.header-inner { height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: Arial, var(--font); font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -.085em; white-space: nowrap; }
.wordmark-accent { color: var(--green); }
.logo-mark { flex: none; display: flex; align-items: center; justify-content: center; gap: 3px; width: 34px; height: 34px; border-radius: 7px; background: var(--dark); }
.logo-mark i { width: 3px; height: 16px; transform: skewX(-24deg); background: var(--lime); border-radius: 1px; }
.logo-mark i:first-child { height: 10px; transform: translateY(3px) skewX(-24deg); }
.logo-mark i:last-child { height: 10px; transform: translateY(-3px) skewX(-24deg); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 750; white-space: nowrap; }
.site-nav a:not(.header-order):hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.header-order { border-radius: 7px; background: var(--dark); color: var(--white); padding: 9px 16px; white-space: nowrap; }
.header-order:hover { background: var(--green); }
.hero { min-height: 570px; display: grid; align-items: center; color: var(--white); background: #26382d; position: relative; isolation: isolate; }
.hero::before { position: absolute; content: ''; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 27, 18, .86) 0%, rgba(14, 29, 19, .71) 29%, rgba(14, 28, 19, .25) 66%, rgba(17, 29, 21, .10) 100%), url('assets/landscape.webp') center 55% / cover no-repeat; }
.hero-inner { padding-block: 83px 92px; }
.hero-label { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: .96rem; letter-spacing: .035em; margin-bottom: 20px; }
.hero-label span { display: inline-block; width: 28px; height: 2px; background: var(--lime); }
.hero h1 { font-size: clamp(3rem, 5.15vw, 5.45rem); font-weight: 850; line-height: 1.11; letter-spacing: -.068em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-copy { margin-top: 22px; color: #eef3ed; font-size: clamp(1.05rem, 1.45vw, 1.24rem); line-height: 1.65; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 7px; font-size: .96rem; font-weight: 800; line-height: 1.4; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #e7f5b3; }
.button-outline { border-color: #b7c5b9; color: var(--white); background: rgba(16, 31, 21, .2); }
.button-outline:hover { background: #314738; }
.button-dark { background: var(--dark); color: var(--white); }
.button-dark:hover { background: var(--green); }
.brands { padding: 58px 0 64px; border-bottom: 1px solid var(--line); }
.brand-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand-link { display: flex; flex-direction: column; gap: 11px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; }
.brand-link:hover, .brand-link[data-active="true"] { background: #f1f6eb; border-color: #a5b7a7; }
.brand-title { display: flex; flex-direction: column; gap: 5px; }
.brand-title strong { font-family: Arial, var(--font); font-size: clamp(1.3rem, 2.05vw, 1.61rem); line-height: 1.08; font-weight: 900; letter-spacing: -.047em; }
.brand-title span { color: var(--green); font-size: .94rem; line-height: 1.4; font-weight: 800; }
.brand-link p { color: var(--muted); line-height: 1.6; }
.brand-action { margin-top: auto; padding-top: 3px; color: var(--green); font-size: .89rem; font-weight: 800; }
.brand-link:hover .brand-action { text-decoration: underline; text-underline-offset: 4px; }
.catalog { background: var(--surface); padding: 70px 0 82px; min-height: 520px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 28px; margin-bottom: 27px; }
.section-label { color: var(--green); font-size: .92rem; font-weight: 800; letter-spacing: .015em; margin-bottom: 5px; }
h2 { font-weight: 850; font-size: clamp(2.05rem, 3.5vw, 3.2rem); line-height: 1.17; letter-spacing: -.055em; }
.section-description { color: var(--muted); padding-bottom: 2px; }
.catalog-bar { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.catalog-controls { display: flex; gap: 8px; }
.brand-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { min-height: 42px; padding: 6px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .91rem; font-weight: 800; white-space: nowrap; }
.filter-button:hover { border-color: var(--green); }
.filter-button[aria-pressed="true"] { color: var(--white); background: var(--dark); border-color: var(--dark); }
.category-wrap, .search-wrap { border: 1px solid var(--line); border-radius: 7px; background: var(--white); min-height: 42px; display: flex; align-items: center; }
.category-wrap:focus-within, .search-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.category-wrap { min-width: 128px; position: relative; }
.category-wrap::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-72%) rotate(45deg); position: absolute; right: 13px; top: 50%; pointer-events: none; }
.category-wrap select { appearance: none; width: 100%; background: transparent; color: var(--ink); border: 0; outline: none; padding: 8px 29px 8px 11px; min-height: 40px; font-size: .91rem; font-weight: 750; cursor: pointer; }
.search-wrap { width: 245px; gap: 12px; padding: 0 12px; }
.search-icon { width: 13px; height: 13px; flex: none; border: 1.6px solid var(--muted); border-radius: 50%; position: relative; margin-right: 2px; }
.search-icon::after { position: absolute; content: ''; width: 6px; height: 1.5px; background: var(--muted); rotate: 44deg; transform-origin: left; left: 8px; top: 9px; }
.search-wrap input { min-width: 0; flex: 1; color: var(--ink); border: 0; outline: none; background: transparent; padding: 7px 0; font-size: 1rem; }
.search-wrap input::placeholder { color: #5c6b62; font-size: .9rem; }
.results-count { margin: 13px 0 12px; min-height: 21px; font-size: .86rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); transition: border-color .16s, box-shadow .16s; }
.product-card:hover { border-color: #95ac97; box-shadow: 0 6px 19px rgba(30, 50, 36, .08); }
.product-open { display: flex; flex-direction: column; width: 100%; height: 100%; background: transparent; color: inherit; padding: 0; text-align: left; border: 0; border-radius: inherit; }
.product-photo { width: 100%; aspect-ratio: 1.6; display: grid; place-items: center; background: #fff; overflow: hidden; border-radius: 13px 13px 0 0; padding: 21px; }
.product-photo img, .dialog-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-content { flex: 1; display: flex; flex-direction: column; width: 100%; border-top: 1px solid #edf0ed; padding: 15px 18px 17px; }
.product-meta { color: var(--green); font-weight: 800; font-size: .87rem; letter-spacing: .009em; }
.product-content h3 { font-size: 1.17rem; font-weight: 800; letter-spacing: -.038em; line-height: 1.4; margin: 4px 0 2px; }
.product-model { color: var(--muted); font-weight: 550; font-size: .92rem; line-height: 1.42; }
.product-details { color: var(--green); font-weight: 750; font-size: .88rem; padding-top: 13px; margin-top: auto; }
.product-open:hover .product-details { text-decoration: underline; text-underline-offset: 4px; }
.catalog-more { display: flex; justify-content: center; margin-top: 25px; }
.button-catalog { color: var(--green); background: var(--white); border-color: #a5b7a7; min-width: 180px; }
.button-catalog:hover { background: #e9f0e6; }
.empty-state { padding: 38px 14px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state .button { margin-top: 13px; }
.about { padding: 67px 0 72px; background: var(--white); }
.about-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 38px; align-items: start; }
.about-detail { display: grid; gap: 14px; color: #354a3d; line-height: 1.79; }
.engine-parts { padding: 50px 0 57px; background: #e9f0e6; border-block: 1px solid var(--line); }
.engine-parts h2 { font-size: clamp(1.8rem, 3.1vw, 2.62rem); }
.parts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.parts-group { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 19px; }
.parts-group h3, .parts-inquiry h3 { line-height: 1.4; font-size: 1.10rem; font-weight: 800; letter-spacing: -.025em; }
.parts-group p, .parts-inquiry p { color: var(--muted); margin-top: 5px; }
.parts-inquiry { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding: 16px 0 0; }
.parts-inquiry .button { flex: none; }
.contact { padding: 62px 0 68px; background: var(--dark); color: var(--white); }
.contact h2 { color: var(--white); }
.contact h2 + p { margin-top: 12px; color: #dce5dd; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer { padding: 24px 0 25px; color: var(--muted); font-size: .84rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 25px; align-items: center; }
.footer-wordmark { color: var(--ink); font-size: 1.24rem; }
.footer-wordmark .logo-mark { width: 28px; height: 28px; }
.footer-info p:first-child { display: flex; flex-wrap: wrap; gap: 0 10px; }
body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(750px, calc(100% - 28px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 15px; padding: 0; color: var(--ink); box-shadow: 0 18px 70px #0c19135c; }
dialog::backdrop { background: #101c15ad; }
.dialog-inner { display: grid; grid-template-columns: 1fr 1.1fr; position: relative; }
.dialog-close { position: absolute; right: 11px; top: 11px; z-index: 1; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); font-size: 1.65rem; line-height: 1; }
.dialog-close:hover { background: var(--surface); }
.dialog-photo { display: grid; place-items: center; padding: 38px 22px; min-height: 284px; }
.dialog-photo img { max-height: 330px; }
.dialog-content { padding: 54px 26px 33px; background: var(--surface); }
.dialog-content h2 { font-size: clamp(1.5rem, 3.3vw, 2.28rem); margin: 4px 0 8px; }
#detail-description { color: var(--ink); margin-top: 15px; }
.detail-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-top: 19px; }
@media (max-width: 900px) {
  .container { width: calc(100% - 64px); }
  .site-nav { gap: 17px; }
  .nav-contact { display: none; }
  .hero { min-height: 535px; }
  .hero::before { background-position: center, 63% center; }
  .catalog-bar { flex-wrap: wrap; }
  .catalog-controls { flex: 1; }
  .search-wrap { flex: 1; min-width: 160px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-inner, .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 690px) {
  :root { scroll-padding-top: 70px; }
  .container { width: calc(100% - 36px); }
  .header-inner { height: 62px; gap: 12px; }
  .wordmark { font-size: 1.29rem; gap: 7px; }
  .logo-mark { width: 27px; height: 27px; }
  .site-nav { gap: 13px; font-size: .87rem; }
  .nav-about, .nav-parts, .nav-brands { display: none; }
  .header-order { padding: 8px 10px; }
  .hero { min-height: 478px; }
  .hero::before { background-image: linear-gradient(90deg, rgba(12, 26, 17, .89), rgba(16, 31, 21, .63) 54%, rgba(15, 30, 19, .30)), url('assets/landscape.webp'); background-position: center, 88% center; }
  .hero-inner { padding-block: 66px 73px; }
  .hero h1 { font-size: clamp(2.05rem, 10.2vw, 3.65rem); }
  .hero-label { font-size: .9rem; margin-bottom: 16px; }
  .hero-copy { margin-top: 18px; font-size: 1rem; }
  .hero-actions { margin-top: 24px; }
  .button { padding-inline: 15px; }
  .brand-inner { gap: 8px; }
  .brand-link { padding: 13px 12px; gap: 8px; }
  .brand-title strong { font-size: 1.18rem; }
  .brand-link p { font-size: .9rem; }
  .catalog { padding: 49px 0 56px; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-description { margin-top: 8px; font-size: .94rem; }
  .catalog-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .catalog-controls { flex-wrap: wrap; }
  .category-wrap { flex: 0 0 113px; min-width: 0; }
  .search-wrap { width: auto; min-width: 150px; }
  .brand-filters { gap: 5px; }
  .filter-button { padding-inline: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-photo { padding: 10px; aspect-ratio: 1.38; }
  .product-content { padding: 10px 10px 11px; }
  .product-content h3 { font-size: 1rem; }
  .product-meta, .product-model, .product-details { font-size: .82rem; }
  .product-details { padding-top: 9px; }
  .about, .engine-parts, .brands, .contact { padding: 44px 0 50px; }
  .about-inner { grid-template-columns: 1fr; gap: 14px; }
  .parts-grid { grid-template-columns: 1fr; gap: 8px; }
  .parts-group { padding: 12px 14px; }
  .parts-inquiry { flex-direction: column; align-items: start; margin-top: 11px; }
  .contact-inner { align-items: start; flex-direction: column; gap: 17px; }
  .contact-actions { flex-direction: row; }
  .footer-inner { gap: 12px 15px; }
  .dialog-inner { grid-template-columns: minmax(0, 1fr); }
  .dialog-photo { min-height: 0; height: 200px; padding: 24px 40px 12px; }
  .dialog-content { padding: 20px 17px 24px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 28px); }
  .header-inner { gap: 7px; }
  .wordmark { font-size: 1.09rem; gap: 6px; }
  .logo-mark { width: 24px; height: 24px; }
  .site-nav { gap: 8px; font-size: .81rem; }
  .header-order { padding-inline: 8px; }
  .filter-button { padding-inline: 8px; font-size: .82rem; }
  .search-wrap { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
