:root {
  --teal: #0aa896;
  --teal-dark: #087f72;
  --teal-soft: #e6f8f5;
  --ink: #102033;
  --text: #152536;
  --muted: #5f7383;
  --line: #d7e2e8;
  --bg: #f4f7f9;
  --white: #fff;
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: "Noto Sans KR", sans-serif; line-height: 1.6;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a, button { touch-action: manipulation; }
.wrap {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* HEADER — minimal */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
}
.site-nav {
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
}
.brand img { height: 34px; width: auto; }
.brand b {
  font-size: 24px; font-weight: 900; letter-spacing: -.04em;
  color: var(--ink); line-height: 1;
}
.brand b span { color: var(--teal); }
.nav-main { display: flex; gap: 20px; }
.nav-main a { font-size: 13px; font-weight: 800; color: var(--muted); }
.nav-main a:hover, .nav-main a.active { color: var(--teal-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  font-size: 14px; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; white-space: nowrap;
}
.nav-phone:hover { color: var(--teal-dark); }
.nav-site { font-size: 13px; color: var(--muted); font-weight: 600; }
.nav-drawer-phone { display: none; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 1px; transition: transform .2s, opacity .2s;
}
.menu-toggle span + span { margin-top: 4px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 4px;
  font-size: 14px; font-weight: 800; border: 1px solid transparent; transition: .2s;
}
.btn-lg { min-height: 48px; padding: 0 22px; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }

/* HOME — clean gate page */
.home-gate-page {
  min-height: calc(100dvh - 64px);
  padding: 48px 0 56px;
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(10,168,150,.1), transparent 55%),
    radial-gradient(700px 360px at 95% 90%, rgba(70,140,200,.08), transparent 50%),
    linear-gradient(180deg, #f8fbfc 0%, #eef4f7 100%);
}
.home-intro { text-align: center; margin-bottom: 36px; }
.home-intro .site-url {
  display: inline-block; margin-bottom: 14px;
  color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .14em;
}
.home-intro h1 {
  margin: 0 0 12px; font-size: clamp(34px, 6vw, 52px);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.12; color: var(--ink);
}
.home-intro h1 em { font-style: normal; color: var(--teal); }
.home-intro p { margin: 0; color: var(--muted); font-size: 15px; }

.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gate-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: 0 8px 28px rgba(16,32,51,.07);
  overflow: hidden; transition: .25s transform, .25s box-shadow;
}
.gate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(16,32,51,.11);
}
.gate-photo {
  height: 240px; background-size: cover; background-position: center;
}
.gate-renewable .gate-photo { background-image: url("../images/gate-renewable.jpg"); }
.gate-equipment .gate-photo { background-image: url("../images/gate-equipment.jpg"); }
.gate-content { padding: 22px 24px 8px; flex: 1; }
.gate-content small {
  color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .14em;
}
.gate-content h2 {
  margin: 8px 0 10px; font-size: clamp(22px, 3vw, 28px);
  font-weight: 900; color: var(--ink); line-height: 1.2;
}
.gate-content p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.gate-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; background: var(--teal); color: var(--white);
  font-size: 14px; font-weight: 800; margin-top: auto;
}
.gate-card:hover .gate-cta { background: var(--teal-dark); }

/* SEO intro block (home) */
.seo-intro {
  padding: 40px 0; background: var(--white); border-top: 1px solid var(--line);
}
.seo-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; }

/* PRODUCT GRID — equipment page only */
.products-section { padding: 48px 0; background: var(--white); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.section-head.center { text-align: center; max-width: 620px; margin-inline: auto; }
.section-head .eyebrow {
  color: var(--teal-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; margin-bottom: 8px;
}
.section-head h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--ink); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card {
  border: 1px solid var(--line); background: var(--white);
  overflow: hidden; transition: .2s border-color, .2s transform;
}
.product-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.product-card-img { height: 180px; overflow: hidden; background: #f3f6f8; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-card-body { padding: 14px 16px 16px; }
.product-card-body small { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.product-card-body h3 { margin: 8px 0 4px; font-size: 16px; font-weight: 900; }
.product-card-body p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.product-link { font-size: 12px; font-weight: 800; color: var(--teal-dark); }

.value-strip { background: var(--ink); color: var(--white); padding: 36px 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-item b { display: block; color: var(--teal); font-size: 12px; letter-spacing: .1em; margin-bottom: 4px; }
.value-item span { font-size: 13px; color: #9eb3c0; }

.promo-band {
  background: var(--teal-soft); border-top: 1px solid var(--line); padding: 40px 0;
}
.promo-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.promo-kicker { margin: 0 0 8px; color: var(--teal-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.promo-inner h2 { margin: 0 0 8px; font-size: clamp(20px, 3vw, 26px); font-weight: 900; line-height: 1.3; }
.promo-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* PAGE BANNERS */
.page-banner {
  padding: 48px 0 36px; background: var(--white); border-bottom: 1px solid var(--line);
}
.banner-renewable {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.98)),
    url("../images/renewable-bg.jpg") center/cover no-repeat;
}
.banner-equipment {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)),
    url("../images/gate-equipment.jpg") center/cover no-repeat;
}
.banner-rfq { background: var(--teal-soft); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.page-banner h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.banner-lead { margin: 0 0 14px; max-width: 40em; color: var(--muted); }

.page-content { padding: 36px 0 20px; }
.page-visual {
  min-height: 200px; border-radius: 4px; margin-bottom: 20px;
  border: 1px solid var(--line); background-size: cover; background-position: center;
}
.visual-renewable { background-image: url("../images/gate-renewable.jpg"); }

.content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.content-main h2 { margin: 24px 0 10px; font-size: 19px; font-weight: 900; }
.content-main h2:first-child { margin-top: 0; }
.content-main p, .content-main li { color: var(--muted); font-size: 15px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li { padding-left: 22px; position: relative; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 32%; background: var(--teal-soft); font-weight: 700; }
.note { font-size: 13px; color: var(--muted); padding: 12px; background: var(--teal-soft); border-radius: 4px; }

.sidebar-card {
  position: sticky; top: 80px; padding: 20px;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: 0 6px 20px rgba(16,32,51,.05);
}
.sidebar-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 900; }
.sidebar-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.sidebar-card .btn { width: 100%; margin-bottom: 8px; }

.product-hero { padding: 36px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.product-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.product-hero-img {
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line);
  height: 320px; background: #f3f6f8;
}
.product-hero-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-en { margin: 0 0 8px; color: var(--teal-dark); font-weight: 700; font-size: 14px; }
.product-intro { margin: 0 0 16px; color: var(--muted); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.cat-section { padding: 20px 0 40px; background: var(--bg); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
  border: 1px solid var(--line); background: var(--white); transition: .2s border-color;
}
.cat-card:hover { border-color: var(--teal); }
.cat-card-media { height: 120px; overflow: hidden; background: #f3f6f8; }
.cat-card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cat-card-body { padding: 12px; }
.cat-card-body small { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.cat-card-body h3 { margin: 6px 0 2px; font-size: 14px; font-weight: 900; }
.cat-card-body p { margin: 0; font-size: 12px; color: var(--muted); }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lib-card { padding: 18px; border: 1px solid var(--line); background: var(--white); }
.lib-card:hover { border-color: var(--teal); }
.lib-card small { color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.lib-card h3 { margin: 8px 0 6px; font-size: 15px; font-weight: 900; }
.lib-card p { margin: 0; font-size: 13px; color: var(--muted); }
.article-body { max-width: 720px; padding-bottom: 40px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 700; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.site-footer {
  background: var(--ink); color: #8fa8b7; padding: 40px 0 18px; font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.footer-grid b { display: block; color: var(--white); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--teal); }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.footer-brand img { height: 28px; width: auto; }
.footer-brand b {
  font-size: 22px; font-weight: 900; letter-spacing: -.04em;
  color: var(--white); line-height: 1;
}
.footer-brand b span { color: var(--teal); }
.footer-bottom {
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

@media (hover: none) {
  .gate-card:hover, .product-card:hover { transform: none; }
}

@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-nav { height: 56px; gap: 10px; }
  .brand img { height: 28px; }
  .brand b { font-size: 20px; }
  .nav-phone, .nav-site { display: none; }
  .nav-main { display: none; }
  .menu-toggle { display: inline-flex; flex-direction: column; }
  .nav-main.open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    z-index: 120; padding: 8px 16px 20px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(16,32,51,.12);
    max-height: calc(100dvh - 56px - env(safe-area-inset-top));
    overflow-y: auto;
  }
  .nav-main.open a {
    display: flex; align-items: center;
    min-height: 48px; padding: 0 8px;
    font-size: 16px; font-weight: 800; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-main.open a.active { color: var(--teal-dark); }
  .nav-main.open .nav-drawer-phone {
    display: flex; color: var(--teal-dark); border-bottom: 0;
    margin-top: 6px;
  }
  .nav-actions { gap: 4px; }
  .nav-actions .btn {
    min-height: 36px; padding: 0 12px; font-size: 13px;
  }
  .nav-actions .btn-outline { display: none; }

  .home-gate-page { min-height: auto; padding: 28px 0 36px; }
  .home-intro { margin-bottom: 22px; }
  .home-intro h1 { font-size: clamp(28px, 8vw, 40px); }
  .gate-photo { height: 180px; }
  .gate-content { padding: 18px 18px 8px; }
  .gate-cta { min-height: 48px; }

  .page-banner { padding: 28px 0 24px; }
  .products-section { padding: 32px 0; }
  .product-grid, .cat-grid, .value-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card-img { height: 128px; }
  .product-card-body { padding: 12px; }
  .product-card-body h3 { font-size: 14px; }
  .product-card-body p { font-size: 12px; }
  .cat-card-media { height: 96px; }
  .lib-grid, .gate-grid, .content-grid, .form-grid,
  .footer-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }

  .product-hero { padding: 24px 0; }
  .product-hero-img { height: 220px; }
  .hero-btns .btn, .promo-actions .btn, .sidebar-card .btn {
    min-height: 44px; width: 100%;
  }
  .hero-btns, .promo-actions { width: 100%; }

  .promo-inner { flex-direction: column; align-items: stretch; }
  .promo-inner h2 br { display: none; }
  .value-strip { padding: 24px 0; }

  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 8px 10px; }
  .spec-table th { width: 38%; }

  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px; min-height: 44px; padding: 10px 12px;
  }
  .form-group textarea { min-height: 120px; }
  .rfq-form .btn { width: 100%; }

  .footer-grid { gap: 18px; }
  .footer-grid a, .footer-grid p { min-height: 36px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .wrap { width: min(calc(100% - 20px), var(--max)); }
  .product-link { display: none; }
  .seo-intro p { text-align: left; font-size: 13px; }
}
