/* ==========================================================================
   R&D page
   - 섹션 순서 = rnd.html 주석 [S01]~[S05] (상단 비주얼·CTA 는 common.css 공통)
   - 각 섹션 블록 안에 반응형(1600 / 1280 / 1024 / 768)까지 함께 작성
   - 시안 기준 폭 1920px
   ========================================================================== */

.ic { display: block; width: 100%; height: 100%; }

/* [S01] R&D Intro -------------------------------------------------------- */
.sec-lead { padding: 154px 0 160px; }
.sec-lead__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-lead__eyebrow { font-size: 17px; line-height: 28px; font-weight: 600; color: var(--c-primary); }
.sec-lead__title { margin-top: 40px; font-size: 44px; font-weight: 700; line-height: 1.45; letter-spacing: -.03em; color: #000; }
.sec-lead__title em { color: var(--c-primary); }
.sec-lead__desc { padding-bottom: 8px; font-size: 18px; line-height: 1.7; letter-spacing: -.02em; color: #555; }
.sec-lead__img { margin-top: 62px; aspect-ratio: 3828 / 1323; overflow: hidden; border-radius: 8px; }
.sec-lead__img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1600px) {
  .sec-lead { padding: 120px 0 120px; }
  .sec-lead__title { margin-top: 30px; font-size: 38px; }
  .sec-lead__img { margin-top: 48px; }
}
@media (max-width: 1280px) {
  .sec-lead__title { font-size: 34px; }
}
@media (max-width: 1024px) {
  .sec-lead { padding: 80px 0 80px; }
  .sec-lead__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .sec-lead__title { margin-top: 20px; font-size: 30px; }
  .sec-lead__desc { padding-bottom: 0; }
  .sec-lead__img { margin-top: 36px; }
}
@media (max-width: 768px) {
  .sec-lead { padding: 56px 0; }
  .sec-lead__title { font-size: 24px; }
  .sec-lead__desc br { display: none; }
  .sec-lead__img { aspect-ratio: 4 / 3; }
}

/* [S02] Core Technology -------------------------------------------------- */
.sec-tech { padding: 160px 0 150px; background: #f9faf4; }
.sec-tech__head { text-align: center; }
.sec-tech__eyebrow { font-size: 17px; line-height: 28px; font-weight: 600; color: var(--c-primary); }
.sec-tech__title { margin-top: 26px; font-size: 48px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #000; }
.sec-tech__list { display: flex; gap: 27px; margin-top: 40px; }
.sec-tech__item { flex: 1 1 0; min-width: 0; text-align: center; }
.sec-tech__img { aspect-ratio: 1236 / 741; overflow: hidden; border-radius: 8px; }
.sec-tech__img img { width: 100%; height: 100%; object-fit: cover; }
.sec-tech__tit { display: block; margin-top: 30px; font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #000; }
.sec-tech__desc { margin-top: 22px; font-size: min(18px, calc((100vw - var(--inner-pad) * 2 - 54px) / 3 / 26)); white-space: nowrap; line-height: 1.72; letter-spacing: -.02em; color: #555; }
.sec-tech__desc mark { padding: 3px 8px; background: #c8e38a; color: #000; }

@media (max-width: 1600px) {
  .sec-tech { padding: 120px 0 110px; }
  .sec-tech__title { font-size: 42px; }
  .sec-tech__tit { font-size: 23px; }
}
@media (max-width: 1200px) {
  .sec-tech__list { flex-direction: column; align-items: center; gap: 48px; margin-top: 32px; }
  .sec-tech__item { width: 100%; max-width: 640px; }
  .sec-tech__tit { margin-top: 20px; font-size: 22px; }
  .sec-tech__desc { margin-top: 14px; font-size: min(18px, calc((100vw - var(--inner-pad) * 2) / 26)); }
}
@media (max-width: 1024px) {
  .sec-tech { padding: 80px 0 70px; }
  .sec-tech__title { margin-top: 18px; font-size: 34px; }
  .sec-tech__list { flex-direction: column; align-items: center; gap: 48px; margin-top: 32px; }
  .sec-tech__item { width: 100%; max-width: 640px; }
  .sec-tech__tit { margin-top: 20px; font-size: 22px; }
  .sec-tech__desc { margin-top: 14px; font-size: min(18px, calc((100vw - var(--inner-pad) * 2) / 26)); }
}
@media (max-width: 768px) {
  .sec-tech { padding: 56px 0; }
  .sec-tech__title { font-size: 28px; }
  .sec-tech__list { gap: 40px; }
  .sec-tech__tit { font-size: 20px; }
}

/* [S03] Research Areas --------------------------------------------------- */
.sec-area { padding: 150px 0 160px; background: #384d40 center / cover no-repeat; color: #fff; }
.sec-area__head { text-align: center; }
.sec-area__eyebrow { font-size: 17px; line-height: 28px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.sec-area__title { margin-top: 36px; font-size: 48px; font-weight: 700; line-height: 1.4; letter-spacing: -.03em; }
.sec-area__list { display: flex; margin-top: 82px; }
.sec-area__item { position: relative; flex: 1 1 0; min-width: 0; padding: 0 10px; text-align: center; }
.sec-area__item + .sec-area__item::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .3); }
.sec-area__ic { display: block; width: 72px; height: 72px; margin: 0 auto; color: #b5db63; }
.sec-area__tit { display: block; margin-top: 36px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.sec-area__desc { margin-top: 20px; font-size: 18px; line-height: 1.85; letter-spacing: -.02em; color: rgba(255, 255, 255, .88); }
html[lang="en"] .sec-area__desc { text-wrap: balance; }   /* 영문: 마지막 줄에 한 단어만 남지 않게 */

@media (max-width: 1600px) {
  .sec-area { padding: 110px 0 120px; }
  .sec-area__title { font-size: 42px; }
  .sec-area__list { margin-top: 64px; }
  .sec-area__tit { font-size: 21px; }
  .sec-area__desc br { display: none; }
}
@media (max-width: 1024px) {
  .sec-area { padding: 80px 0 80px; }
  .sec-area__title { margin-top: 20px; font-size: 32px; }
  .sec-area__title br { display: none; }
  .sec-area__list { flex-wrap: wrap; row-gap: 48px; margin-top: 48px; }
  .sec-area__item { flex: 0 0 50%; }
  .sec-area__item:nth-child(3)::before { display: none; }
  .sec-area__ic { width: 60px; height: 60px; }
  .sec-area__tit { margin-top: 24px; font-size: 20px; }
}
@media (max-width: 768px) {
  .sec-area { padding: 56px 0; }
  .sec-area__title { font-size: 26px; }
  .sec-area__list { flex-direction: column; row-gap: 40px; }
  .sec-area__item { flex: none; }
  .sec-area__item::before { display: none; }
}

/* [S04] Development Items ------------------------------------------------ */
.sec-dev { padding: 150px 0 120px; }
@media (min-width: 1601px) { .sec-dev .inner { max-width: calc(1180px + var(--inner-pad) * 2); } }
.sec-dev__eyebrow { font-size: 17px; line-height: 28px; font-weight: 600; color: var(--c-primary); }
.sec-dev__title { margin-top: 30px; font-size: 38px; font-weight: 700; line-height: 1.4; letter-spacing: -.03em; color: #000; }
.sec-dev__desc { margin-top: 26px; font-size: 18px; line-height: 1.6; letter-spacing: -.02em; color: #555; }
.sec-dev__body { display: grid; grid-template-columns: 634fr 742fr; gap: 30px; margin-top: 48px; }
/* 탭 줄 높이는 오른쪽 이미지 높이에 맞춰 늘어남 (최소값 = 시안 높이) */
.sec-dev__tabs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(92px, 1fr); gap: 16px; }
.sec-dev__tab {
  display: flex; align-items: center; width: 100%; height: 100%; padding: 0 24px 0 28px;
  border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; color: #0b3d20; text-align: left;
  transition: background .25s, color .25s, border-color .25s;
}
.sec-dev__ic { flex: none; display: block; width: 38px; height: 38px; margin-right: 26px; }
.sec-dev__nm { flex: 1 1 auto; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #111; transition: color .25s; }
.sec-dev__go { flex: none; position: relative; width: 14px; height: 14px; }
.sec-dev__go::before { content: ""; position: absolute; top: 50%; left: 30%; width: 10px; height: 10px; border-top: 2px solid #0b3d20; border-right: 2px solid #0b3d20; transform: translate(-50%, -50%) rotate(45deg); transition: border-color .25s; }
.sec-dev__tab.is-active { border-color: #0b3d20; background: #0b3d20; color: #fff; }
.sec-dev__tab.is-active .sec-dev__nm { color: #fff; }
.sec-dev__tab.is-active .sec-dev__go::before { border-color: #fff; }
.sec-dev__tab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* 이미지 영역 = 제품 이미지 원본 비율(1671x1203) 고정 → 확대·잘림 없음 */
.sec-dev__view { position: relative; align-self: start; aspect-ratio: 1671 / 1203; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: #f1ecdf; transition: background .5s var(--ease); }
.sec-dev__ph { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: rgba(11, 61, 32, .35); transition: opacity .3s; }
.sec-dev__ph.is-out { opacity: 0; }
.sec-dev__view.has-img .sec-dev__ph { opacity: 0; }
.sec-dev__view.has-img { background: transparent !important; }   /* 이미지 자체에 둥근 모서리 포함 */
.sec-dev__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease); }
.sec-dev__img.is-active { opacity: 1; }

@media (max-width: 1600px) {
  .sec-dev { padding: 110px 0 100px; }
  .sec-dev__title { font-size: 34px; }
  .sec-dev__tabs { grid-auto-rows: minmax(84px, 1fr); }
  .sec-dev__tab { padding: 0 18px 0 20px; }
  .sec-dev__ic { width: 34px; height: 34px; margin-right: 16px; }
  .sec-dev__nm { font-size: 18px; }
}
@media (max-width: 1280px) {
  .sec-dev__title { font-size: 30px; }
  .sec-dev__tabs { grid-auto-rows: minmax(76px, 1fr); gap: 12px; }
}
@media (max-width: 1024px) {
  .sec-dev { padding: 80px 0 80px; }
  .sec-dev__title { margin-top: 20px; font-size: 30px; }
  .sec-dev__desc { margin-top: 20px; }
  .sec-dev__desc br { display: none; }
  .sec-dev__body { grid-template-columns: 1fr; margin-top: 36px; }
  .sec-dev__view { order: -1; }
  .sec-dev__tabs { grid-auto-rows: 84px; }
}
@media (max-width: 768px) {
  .sec-dev { padding: 56px 0; }
  .sec-dev__title { font-size: 24px; }
  .sec-dev__tabs { grid-auto-rows: 64px; gap: 8px; }
  .sec-dev__tab { padding: 0 12px 0 14px; border-radius: 10px; }
  .sec-dev__ic { width: 28px; height: 28px; margin-right: 10px; }
  .sec-dev__nm { font-size: 16px; }
}

/* [S05] Certifications --------------------------------------------------- */
.sec-cert { padding: 168px 0 150px; background: #f7f7f7; }
.sec-cert__head { text-align: center; }
.sec-cert__eyebrow { font-size: 17px; line-height: 28px; font-weight: 600; color: var(--c-primary); }
.sec-cert__title { margin-top: 26px; font-size: 48px; font-weight: 700; line-height: 1.3; letter-spacing: -.03em; color: #000; }
/* 5개: PC 한 줄 5개, 남는 줄은 가운데 정렬 */
.sec-cert__list { --col: 5; --gap: 27px; display: flex; flex-wrap: wrap; justify-content: center; gap: 52px var(--gap); max-width: 1350px; margin: 60px auto 0; }
.sec-cert__item { width: calc((100% - var(--gap) * (var(--col) - 1)) / var(--col)); }
.sec-cert__img { aspect-ratio: 1 / 1.414; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }   /* 인증서 원본 비율(A4) */
.sec-cert__img img { width: 100%; height: 100%; object-fit: cover; }
.sec-cert__nm { margin-top: 12px; font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-align: center; color: #111; }

@media (max-width: 1600px) {
  .sec-cert { padding: 120px 0 110px; }
  .sec-cert__title { font-size: 42px; }
  .sec-cert__list { margin-top: 48px; row-gap: 44px; }
}
@media (max-width: 1280px) {
  .sec-cert__list { --col: 3; max-width: 900px; }
}
@media (max-width: 1024px) {
  .sec-cert { padding: 80px 0 80px; }
  .sec-cert__title { margin-top: 18px; font-size: 34px; }
  .sec-cert__list { --gap: 16px; row-gap: 32px; }
}
@media (max-width: 768px) {
  .sec-cert { padding: 56px 0; }
  .sec-cert__title { font-size: 26px; }
  .sec-cert__list { --col: 2; --gap: 12px; margin-top: 32px; row-gap: 24px; }
}
