:root {
  --bg: #f5f7fb;
  --bg-dark: #0f1420;
  --panel: #ffffff;
  --panel-2: #f2f5fb;
  --line: #d7dde8;
  --text: #10223f;
  --muted: #5f6a82;
  --primary: #0d4d9e;
  --primary-2: #0a2f66;
  --accent: #00a3ff;
  --shadow: 0 16px 38px rgba(13, 54, 124, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.modal-open,
body.noscroll {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

#wrap {
  min-height: 100vh;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 200;
}

.skip:focus {
  top: 12px;
}

.top-floating {
  position: fixed;
  right: 16px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 120;
}

.top-floating a,
.top-floating button,
.top-floating .floating-item {
  border: none;
  background: var(--primary);
  color: #fff;
  min-width: 42px;
  border-radius: 999px;
  font-size: 12px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 700;
}

.top-floating .top-scroll {
  border-radius: 999px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
}

.brand {
  font-size: 28px;
  letter-spacing: 0.35em;
  font-weight: 700;
  color: var(--primary-2);
}

.utility-links {
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #2c3a58;
}

.utility-kakao,
.contact-info {
  font-size: 12px;
}

.utility-kakao {
  color: #fff;
  font-weight: 700;
  background: #f9ca24;
  padding: 6px 10px;
  border-radius: 999px;
  justify-self: end;
}

.contact-info {
  justify-self: end;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-info dl {
  margin: 0;
  display: flex;
  gap: 0;
}

.contact-info dd {
  margin: 0;
}

.contact-info dt {
  font-weight: 700;
}

.contact-info dt::after {
  content: ':';
}

.gnb {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.gnb > ul {
  margin: 0;
  display: flex;
  align-items: center;
}

.gnb > ul > li {
  position: relative;
}

.gnb > ul > li > a {
  display: block;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #1b2b4a;
  text-transform: uppercase;
}

.gnb > ul > li > a:hover,
.gnb .sub-menu a:hover {
  color: var(--primary);
}

.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.gnb > ul > li:hover .sub-menu,
.gnb > ul > li:focus-within .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gnb > ul > li.is-open .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-menu a {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid #eef1f6;
  font-size: 13px;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search input {
  width: 200px;
  border: 1px solid #c6d0e0;
  border-radius: 999px;
  padding: 7px 12px;
  outline: none;
}

.search button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 20px;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: 0.04em;
}

.sub-title {
  margin: -10px 0 22px;
  color: var(--muted);
  letter-spacing: 0.14em;
  font-weight: 600;
}

.hero-slider {
  position: relative;
  max-width: 1220px;
  margin: 14px auto;
  border-radius: 14px;
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 8;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  left: 8%;
  bottom: 16%;
  background: rgba(8, 20, 38, 0.65);
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  max-width: min(460px, 80%);
}

.slide-overlay p {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.slide-overlay a {
  background: #fff;
  color: #13284b;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
}

.slider-btn,
.pill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  background: rgba(9, 31, 63, 0.75);
  cursor: pointer;
}

.slider-btn.prev,
.pill.prev {
  left: 14px;
}

.slider-btn.next,
.pill.next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: flex;
  transform: translateX(-50%);
  gap: 8px;
  z-index: 5;
}

.slider-dots button {
  border: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.5;
  cursor: pointer;
}

.slider-dots .active {
  opacity: 1;
}

.intro p {
  margin: 0;
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2f4465;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.solution-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.solution-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.solution-text {
  padding: 12px;
}

.solution-text h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.solution-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.partner-track-wrap,
.newsletter-wrap {
  position: relative;
}

.partner-track,
.newsletter-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.partner-track::-webkit-scrollbar,
.newsletter-track::-webkit-scrollbar {
  display: none;
}

.partner-track figure,
.newsletter-track article {
  flex: 0 0 calc((100% - 36px) / 4);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.partner-track figure .logo {
  height: 86px;
  border-radius: 12px;
  background: linear-gradient(130deg, #eef3fb, #f7f9fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d3f7a;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.partner-track h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #38527a;
}

.newsletter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.newsletter-head button,
.notice-side button,
.footer a {
  border: 0;
}

.newsletter-head button {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.newsletter-track article {
  width: 24%;
}

.newsletter-track .thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}

.newsletter-track h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #173b67;
  line-height: 1.55;
}

.media-links,
.media-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.media-links a,
.media-list article {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.media-links img,
.media-list img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.media-links span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: #1f3a5f;
}

.media-list .meta {
  padding: 12px 4px;
  font-weight: 600;
  color: #203a61;
  line-height: 1.55;
}

.energy {
  text-align: center;
}

.energy img {
  margin: 0 auto;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.download-row {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-row a {
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.solution-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.solution-tile {
  border-radius: 12px;
  min-height: 130px;
  padding: 26px;
  background: linear-gradient(135deg, #081e42, #114a88);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.solution-tile p {
  margin: 0;
  opacity: 0.9;
}

.support-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.notice-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.notice-tabs button {
  border: 0;
  background: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

.notice-tabs button.active {
  background: var(--primary);
  color: #fff;
}

.tab-panel {
  display: none;
  margin-top: 16px;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}

.tab-panel ul li a {
  color: #243e64;
  font-weight: 500;
}

.tab-panel ul li span {
  color: #6d7c97;
  white-space: nowrap;
}

.notice-side {
  display: grid;
  gap: 14px;
}

.notice-side .card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.notice-side .card h3 {
  margin: 0 0 8px;
}

.notice-side .card p {
  margin: 0;
  color: #4f6385;
  line-height: 1.6;
}

.notice-side .actions {
  display: grid;
  gap: 12px;
}

.notice-side button {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  background: #07172e;
  color: #d8e1f2;
  margin-top: 28px;
  padding: 24px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer p {
  color: #9eb0cf;
}

.footer a {
  color: #7ec8ff;
  text-decoration: underline;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 35, 0.62);
  opacity: 0;
  visibility: hidden;
  z-index: 130;
  transition: opacity 0.18s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 35, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 16px;
}

.modal.show {
  display: flex;
}

.modal-inner {
  width: min(560px, 95%);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-height: 92vh;
  overflow: auto;
}

.modal-close {
  margin-left: auto;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-form label {
  display: block;
  font-weight: 600;
  color: #1d3358;
}

.modal-form input,
.modal-form textarea,
.modal-form button {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid #ccd6e6;
  outline: none;
  font: inherit;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.inline-field.email {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.inline-field.email span {
  text-align: center;
  color: #6e7f9e;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
  margin-top: 0;
}

.modal-form button {
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-links,
  .media-list,
  .solution-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .topbar {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .utility-links,
  .utility-kakao,
  .contact-info,
  .gnb > ul,
  .search {
    display: none;
  }

  .mobile-menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #cad3e4;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    padding: 9px;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #1f3558;
  }

  .mobile-menu-btn.active {
    background: #1f4b8f;
  }

  .mobile-menu-btn.active span {
    background: #fff;
  }

  .gnb {
    display: none;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 70px 0 auto 0;
    background: #f7fafe;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    z-index: 70;
    max-height: calc(100vh - 80px);
    overflow: auto;
    padding: 16px;
  }

  .mobile-nav.show {
    display: block;
  }

  .mobile-nav ul > li {
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }

  .mobile-nav button,
  .mobile-nav a {
    border: 0;
    width: 100%;
    text-align: left;
    background: transparent;
    font: inherit;
    padding: 12px 10px;
    font-weight: 700;
    color: #21385e;
  }

  .mobile-nav .panel {
    display: none;
    padding: 0 10px 14px;
  }

  .mobile-nav .panel.active {
    display: block;
  }

  .mobile-nav .panel p {
    margin: 0;
  }

  .mobile-nav .panel a {
    display: block;
    padding: 8px 0;
    color: #3e5578;
    font-size: 14px;
  }

  .mobile-search {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
  }

  .mobile-search input {
    flex: 1;
    border: 1px solid #d5deec;
    border-radius: 999px;
    padding: 8px 12px;
  }

  .mobile-search button {
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
  }

  .slide {
    aspect-ratio: 4 / 3;
  }

  .solution-grid,
  .media-links,
  .media-list,
  .solution-links,
  .newsletter-track article,
  .partner-track figure {
    grid-template-columns: 1fr;
  }

  .newsletter-track article,
  .partner-track figure {
    flex-basis: calc(100% - 0px);
  }

  .partner-track figure {
    width: 75%;
  }

  .slider-btn,
  .pill {
    display: none;
  }

  .newsletter-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 28px 14px;
  }

  .top-floating {
    right: 10px;
    bottom: 14px;
  }

  .top-floating a,
  .top-floating button {
    min-width: auto;
    padding: 8px 10px;
    font-size: 11px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .slide-overlay p {
    font-size: 1rem;
  }
}
