:root {
  --navy: #07183a;
  --navy-2: #102a52;
  --blue: #1769aa;
  --amber: #b99358;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ec;
  --soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(7, 24, 58, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  padding: 0 18px 0 22px;
  color: var(--white);
  background: rgba(7, 24, 58, .92);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(7, 24, 58, .18);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  background: var(--white);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, .88);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav .ifu-link {
  color: rgba(255, 255, 255, .88);
  background: transparent;
}

.site-nav .ifu-link::after {
  display: block;
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../img/오션메디컴_로고.jpg");
  background-repeat: no-repeat;
  background-size: min(48vw, 520px) auto;
  background-position: right 10% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 44%, rgba(255, 255, 255, .72) 67%, rgba(255, 255, 255, .88) 100%),
    linear-gradient(120deg, rgba(245, 248, 251, .92), rgba(217, 225, 236, .55));
}

.hero::after {
  position: absolute;
  right: -5%;
  bottom: -70px;
  left: -5%;
  height: 150px;
  background: var(--white);
  transform: rotate(-2.2deg);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
  border-radius: 4px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--amber);
}

.button-secondary {
  color: var(--navy);
  border: 1px solid var(--line);
}

.button-secondary.dark {
  color: var(--navy);
  border-color: var(--line);
}

.quick-panel {
  position: relative;
  z-index: 2;
  margin-top: -78px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-grid article {
  min-height: 144px;
  padding: 30px;
  background: var(--white);
}

.quick-grid strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
}

.quick-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 120px 0;
}

.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 72px;
  align-items: center;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-label {
  margin: 0 0 20px;
  color: var(--amber);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-copy,
.section-heading p:not(.section-label) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.org-box {
  margin-top: 42px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.org-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.org-grid span {
  padding: 12px 14px;
  color: var(--navy);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.history-list {
  padding: 38px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.history-list h3 {
  margin: 0 0 28px;
  font-size: 28px;
}

.history-list ol {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
}

.history-list time {
  color: var(--amber);
  font-weight: 900;
}

.history-list span {
  color: rgba(255, 255, 255, .86);
}

.product-section {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
}

.product-section .section-heading h2 {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.product-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 24, 58, .07);
}

.product-visual {
  position: relative;
  height: 150px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #eef3f8, #ffffff);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-visual::before,
.product-visual::after,
.product-visual span {
  position: absolute;
  display: block;
  content: "";
}

.product-visual::before {
  inset: 28px 32px auto;
  height: 16px;
  background: var(--navy);
  border-radius: 999px;
  opacity: .9;
}

.product-visual::after {
  right: 32px;
  bottom: 28px;
  left: 32px;
  height: 2px;
  background: var(--amber);
}

.product-visual span {
  top: 72px;
  left: 38px;
  width: 62%;
  height: 34px;
  border: 3px solid var(--blue);
  border-right-width: 10px;
  border-radius: 999px;
}

.product-visual.catheter span {
  width: 76%;
  height: 26px;
  border-color: var(--amber);
  border-right-width: 3px;
}

.product-visual.trocar span {
  left: 42px;
  width: 58%;
  height: 40px;
  border-color: var(--navy-2);
  border-right-width: 18px;
}

.product-code {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.product-card h3 {
  min-height: 70px;
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.28;
}

.product-card p:not(.product-code) {
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 24, 58, .95), rgba(16, 42, 82, .95)),
    var(--navy);
}

.contact-section h2,
.contact-section .section-copy,
.contact-section .section-label {
  color: var(--white);
}

.product-section .section-label {
  color: #64748b;
}

.contact-section .section-copy {
  opacity: .82;
}

.contact-card {
  display: block;
  padding: 34px;
  color: var(--ink);
  font-style: normal;
  background: var(--white);
  border-radius: 8px;
}

.contact-card span {
  display: block;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.contact-card a {
  display: inline-block;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-card hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, .76);
  background: #041126;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-header {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding-right: 14px;
    padding-left: 14px;
    transform: none;
  }

  .brand span:last-child {
    max-width: calc(100vw - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    position: absolute;
    top: 13px;
    right: 54px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(7, 24, 58, .98);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .ifu-link {
    padding: 14px 12px;
    color: var(--white);
    background: transparent;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .86));
  }

  .hero-media {
    background-size: min(74vw, 360px) auto;
    background-position: right -20px top 110px;
    opacity: .28;
  }

  .quick-grid,
  .product-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .contact-layout {
    gap: 40px;
  }

  .product-card h3 {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 540px;
  }

  .hero-inner {
    width: min(300px, calc(100% - 56px));
  }

  .hero h1 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.18;
    word-break: break-all;
  }

  .section h2,
  .section-copy,
  .section-heading p:not(.section-label) {
    max-width: 300px;
    font-size: 24px;
    word-break: break-all;
  }

  .section-copy,
  .section-heading p:not(.section-label) {
    font-size: 16px;
  }

  .hero-copy {
    font-size: 16px;
    word-break: break-all;
  }

  .quick-panel {
    margin-top: -42px;
  }

  .quick-grid article {
    min-height: 110px;
    padding: 24px;
  }

  .section {
    padding: 82px 0;
  }

  .org-grid {
    grid-template-columns: 1fr;
  }

  .history-list,
  .contact-card {
    padding: 26px;
  }

  .history-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
