/* ============================================================
   서브페이지 전용 (home.css 를 먼저 로드한 뒤 이 파일)
   원칙: 텍스트만 나열하지 않는다. 섹션마다 이미지 또는 아이콘 카드.
   ============================================================ */

/* 페이지 헤드 */
.phead {
  background: var(--gd-sky);
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
}
.phead h1 { font-size: 32px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.phead p { margin-top: 10px; font-size: 16px; color: var(--sub); line-height: 1.7; max-width: 720px; }

/* 이미지 + 텍스트 2단 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev .split-img { order: 2; }
.split-img img {
  width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.split-txt h3 { font-size: 22px; font-weight: 800; line-height: 1.4; }
.split-txt p { margin-top: 12px; font-size: 15.5px; color: var(--sub); line-height: 1.85; }
.split-txt ul { margin-top: 16px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.split-txt ul li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.7; }
.split-txt .sign { margin-top: 22px; font-size: 15px; color: var(--sub); text-align: right; }
.split-txt .sign b { font-size: 18px; font-weight: 800; color: var(--ink); margin-left: 6px; }
.split-txt ul li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background: var(--blue-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E93DC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* 단계 카드 (절차) — 번호를 잇는 진행선 위에 카드가 놓인다 */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.steps.rv { opacity: 1; transform: none; }            /* 컨테이너는 그대로, 카드만 순차 등장 */
.steps::before {
  content: ""; position: absolute; z-index: 0; top: 39px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue-soft), var(--sky), var(--blue-soft));
}
.step {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 16px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--sky); box-shadow: var(--shadow-lg); }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 12px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--blue-soft);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.step:hover .step-n { transform: scale(1.12); background: var(--blue-deep); box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--sky); }
.step b { display: block; font-size: 15.5px; }
.step p { margin-top: 6px; font-size: 13px; color: var(--sub); line-height: 1.6; }
/* 순차 등장 (호버 전환과 섞이지 않도록 애니메이션으로 처리) */
.steps:not(.is-in) .step { opacity: 0; }
.steps.is-in .step { animation: stepIn .45s ease backwards; }
.steps.is-in .step:nth-child(2) { animation-delay: .08s; }
.steps.is-in .step:nth-child(3) { animation-delay: .16s; }
.steps.is-in .step:nth-child(4) { animation-delay: .24s; }
.steps.is-in .step:nth-child(5) { animation-delay: .32s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .steps:not(.is-in) .step { opacity: 1; }
  .steps.is-in .step { animation: none; }
  .step, .step-n { transition: none; }
  .step:hover { transform: none; }
}

/* 특징 3분할 카드 */
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.feat3.rv { opacity: 1; transform: none; }        /* 컨테이너는 그대로, 카드만 순차 등장 */
.feat {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) {
  .feat:hover { transform: translateY(-6px); border-color: var(--sky); box-shadow: var(--shadow-lg); }
  .feat:hover img { transform: scale(1.05); }
}
.feat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }

/* 이미지 자리 (사진이 들어오기 전에는 아이콘이 가운데 놓인다) */
.feat-img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #E7F4FE 0%, #F5FAFF 55%, #fff 100%);
}
.feat-img img { position: absolute; inset: 0; height: 100%; }
/* 사진이 채워지면 아이콘은 좌하단 배지로 내려간다 */
.feat-img img + .feat-ic {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  width: 46px; height: 46px; border-radius: 13px; background: #fff; box-shadow: var(--shadow);
}

.feat-b { flex: 1; padding: 20px 20px 24px; }
.feat-b b { font-size: 16.5px; }
.feat-b p { margin-top: 7px; font-size: 14px; color: var(--sub); line-height: 1.75; }
.feat-ic {
  width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--blue);
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
@media (hover: hover) {
  .feat:hover .feat-ic { transform: translateY(-4px) scale(1.06); background: var(--blue); color: #fff; }
  .feat:hover .feat-img img + .feat-ic { transform: scale(1.06); }
}
.feat-img img + .feat-ic { transform: none; }

/* 순차 등장 */
.feat3:not(.is-in) .feat { opacity: 0; }
.feat3.is-in .feat { animation: featIn .45s ease backwards; }
.feat3.is-in .feat:nth-child(2) { animation-delay: .1s; }
.feat3.is-in .feat:nth-child(3) { animation-delay: .2s; }
@keyframes featIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .feat3:not(.is-in) .feat { opacity: 1; }
  .feat3.is-in .feat { animation: none; }
  .feat, .feat img, .feat-ic { transition: none; }
  .feat:hover { transform: none; }
  .feat:hover img, .feat:hover .feat-ic { transform: none; }
}

/* 정보 표 */
.tbl { width: 100%; border-collapse: collapse; margin-top: 18px; background: #fff; border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.tbl th { width: 150px; color: var(--sub); font-weight: 600; background: var(--bg); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* 아코디언 (가이드·FAQ) */
.acc { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.acc details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.acc details:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.acc details[open] { border-color: var(--sky); box-shadow: var(--shadow); }
.acc summary {
  list-style: none; display: flex; align-items: center; gap: 15px; padding: 19px 20px; cursor: pointer;
  font-size: 17px; font-weight: 700; transition: background .2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: #F8FBFE; }
/* 아이콘 상자는 고정 크기 (예전에는 summary span 규칙에 걸려 가로로 늘어났다) */
.acc-ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px;
  background: var(--blue-soft); color: var(--blue); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.acc details[open] .acc-ic { background: var(--blue); color: #fff; }
/* 늘어나는 건 제목뿐 */
.acc-tt { flex: 1 1 auto; min-width: 0; }
.acc-tt em { display: block; font-style: normal; font-size: 13px; font-weight: 500; color: var(--mut); margin-top: 3px; }
.acc-arr {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); color: var(--sub); display: grid; place-items: center;
  transition: transform .25s ease, background .2s, color .2s;
}
.acc summary:hover .acc-arr { background: var(--blue-soft); color: var(--blue); }
.acc details[open] .acc-arr { transform: rotate(180deg); background: var(--blue-soft); color: var(--blue); }
.acc-body { padding: 2px 20px 22px 81px; }
.acc-body > *:first-child { animation: accIn .3s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc-body > *:first-child { animation: none; } }
.acc-body p, .acc-body li { font-size: 14.5px; color: var(--sub); line-height: 1.85; }
.acc-body ul, .acc-body ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.acc-body b { color: var(--ink); }
.acc-body img { margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); }

/* 지역 카드 */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; }
.area img { width: 40%; object-fit: cover; flex-shrink: 0; }
.area-b { padding: 18px 18px 20px; min-width: 0; }
.area-b b { font-size: 17px; }
.area-b .cnt { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 20px; padding: 3px 9px; }
.area-b p { margin-top: 8px; font-size: 13.5px; color: var(--sub); line-height: 1.7; }
.area-b a { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.area-b a:hover { text-decoration: underline; }

/* 폼 */
.formwrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.form h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.form > p { font-size: 14px; color: var(--sub); margin-bottom: 18px; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fff;
  min-height: 48px;
}
.fld textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,147,220,.16);
}
.fld2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agree { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--sub); margin: 4px 0 16px; }
.agree input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--blue); }
.form-submit {
  width: 100%; background: var(--blue); color: #fff; font-size: 16px; font-weight: 800;
  border-radius: 12px; padding: 15px 0;
}
.form-submit:hover { background: var(--blue-deep); }
.form-note { margin-top: 12px; font-size: 12.5px; color: var(--mut); line-height: 1.7; text-align: center; }
.aside-call {
  background: var(--blue-soft); border-radius: 16px; padding: 26px; text-align: center;
}
.aside-call b { display: block; font-size: 17px; margin-bottom: 6px; }
.aside-call p { font-size: 14px; color: var(--sub); line-height: 1.7; margin-bottom: 16px; }
.aside-call .btn-fill { width: 100%; justify-content: center; }
.aside-call .btn-line { width: 100%; justify-content: center; margin-top: 8px; }

/* 사무소 위치 지도 */
.mapwrap {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg);
}
#officeMap { width: 100%; height: 400px; }
.map-fb {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 26px; background: var(--gd-sky);
}
.map-fb p { font-size: 14.5px; color: var(--sub); line-height: 1.8; }
.map-fb b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.mk-office {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 800;
  padding: 9px 14px; border-radius: 22px; box-shadow: var(--shadow-lg);
  transform: translate(-50%, -140%);
}

/* 오시는 길 카드 */
.wayfind {
  border-radius: 18px; border: 1px solid var(--line); padding: 34px 30px;
  background: linear-gradient(180deg, #EAF6FE 0%, #F7FBFF 58%, #fff 100%);
}
.wf-ic {
  width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--blue);
  display: grid; place-items: center; box-shadow: var(--shadow); margin-bottom: 18px;
}
.wf-addr { font-size: 19px; line-height: 1.6; color: var(--sub); }
.wf-addr b { display: inline-block; margin-top: 2px; font-size: 21px; font-weight: 800; color: var(--ink); }
.wf-sub { margin-top: 12px; font-size: 14.5px; color: var(--sub); line-height: 1.75; }
.wf-btns { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.wf-btns .btn-fill, .wf-btns .btn-line { justify-content: center; }

@media (max-width: 1023px) {
  .phead { padding: 30px 0 26px; }
  .phead h1 { font-size: 26px; }
  .phead p { font-size: 15px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.rev .split-img { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feat3 { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .formwrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .phead h1 { font-size: 23px; }
  #officeMap { height: 300px; }
  .acc summary { font-size: 15.5px; padding: 16px 15px; gap: 12px; }
  .acc-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; }
  .acc-body { padding: 2px 16px 20px 67px; }
  .steps::before { display: none; }
  .wayfind { padding: 26px 20px; }
  .wf-addr { font-size: 17px; }
  .wf-addr b { font-size: 19px; }
  .wf-btns .btn-fill, .wf-btns .btn-line { width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { padding: 18px 10px; }
  .step p { font-size: 12.5px; }
  .area { flex-direction: column; }
  .area img { width: 100%; aspect-ratio: 16 / 9; }
  .tbl th { width: 104px; font-size: 13.5px; padding: 12px 12px; }
  .tbl td { font-size: 13.5px; padding: 12px 12px; }
  .form { padding: 20px 16px; }
  .fld2 { grid-template-columns: 1fr; }
}

/* 서브페이지 카테고리 줄도 홈과 동일 규칙 (특정도 맞춤) */
@media (max-width: 767px) {
  .sec .cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ---------- 의뢰 폼 공통 (구해요/팔아요) ---------- */
.req-tabs {
  display: flex; gap: 8px; margin-bottom: 22px;
}
.req-tabs a, .req-tabs button {
  cursor: pointer;
  flex: 1; text-align: center; font-size: 16px; font-weight: 800;
  padding: 14px 0; border-radius: 12px; border: 1.5px solid var(--line);
  color: var(--sub); background: #fff; transition: all .15s;
}
.req-tabs a:hover, .req-tabs button:hover { border-color: var(--sky); color: var(--blue); }
.req-tabs a.is-on, .req-tabs button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

.rad-seg { display: flex; background: var(--bg); border-radius: 11px; padding: 3px; }
.rad-seg label { flex: 1; }
/* 숨김 라디오: .fld input의 width:100%가 그대로 먹으면 가로로 화면을 밀어낸다.
   크기를 없애되 포커스는 살려 둔다. */
.rad-seg input {
  position: absolute; inset: auto; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; margin: 0;
}
.rad-seg span {
  display: block; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--sub);
  padding: 10px 0; border-radius: 9px; cursor: pointer; transition: all .15s;
}
.rad-seg input:checked + span { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.rad-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }

.rad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rad-chips label { position: relative; }
.rad-chips input { position: absolute; opacity: 0; pointer-events: none; }
.rad-chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; transition: all .15s;
}
.rad-chips span:hover { border-color: var(--sky); color: var(--blue); }
.rad-chips input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); font-weight: 700; }
.rad-chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }

@media (max-width: 767px) {
  .req-tabs a, .req-tabs button {
  cursor: pointer; font-size: 15px; padding: 12px 0; }
  .rad-chips span { padding: 0 13px; font-size: 13.5px; }
}

/* 의뢰 폼 우측: 접수 후 진행 안내 (여백 균형용) */
.aside-steps {
  margin-top: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 20px;
}
.aside-steps > b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.aside-steps ol { list-style: none; display: flex; flex-direction: column; }
.aside-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 18px; text-align: left; }
.aside-steps li:last-child { padding-bottom: 0; }
/* 번호를 잇는 세로 연결선 */
.aside-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px;
  width: 2px; background: var(--blue-soft);
}
.as-n {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 800;
}
.aside-steps li b { font-size: 14.5px; }
.aside-steps li p { margin-top: 3px; font-size: 13px; color: var(--sub); line-height: 1.65; }
.as-note {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--mut); text-align: center;
}

/* ---------- 부동산 소개: 인사말 (이미지가 텍스트 높이를 따라감) ---------- */
.greet { align-items: stretch; }
.greet-img { display: flex; }
.greet-img img {
  aspect-ratio: auto; height: 100%; object-fit: cover; object-position: center top;
}
@media (max-width: 1023px) {
  .greet-img img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- 공인중개사 정낙정 ---------- */
/* 공인중개사 소개: 텍스트(좌) + 이미지(우) */
/* 이미지가 왼쪽 텍스트 높이를 그대로 따라간다 (stretch) */
.agent { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: stretch; }
.ag-img {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--bg); display: flex;
}
.ag-img img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  transition: transform .5s ease;
}
.ag-img:hover img { transform: scale(1.04); }

.ag-fields { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agf {
  display: flex; align-items: flex-start; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px 16px;
  /* opacity 를 함께 두어야 .rv 의 페이드가 살아난다 (sub.css 가 home.css 를 덮으므로 여기서 지정) */
  transition: opacity .45s ease, transform .3s ease, border-color .2s ease, box-shadow .2s ease;
}
/* 여러 장이 한꺼번에 들어올 때 잔물결처럼 보이도록 아주 짧은 시차만 준다.
   트랜지션 지연은 "도착 상태"의 값을 쓰므로 .is-in 쪽에 건다.
   혼자 들어올 때는 최대 0.14초라 지연으로 느껴지지 않는다. */
.agf.rv.is-in:nth-child(3n+2) { transition-delay: .07s; }
.agf.rv.is-in:nth-child(3n)   { transition-delay: .14s; }
/* 마우스가 있는 환경에서만 hover — 터치에서 눌린 상태가 남지 않게 한다 */
@media (hover: hover) {
  .agf:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow); transition-delay: 0s; }
}
.agf-ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
@media (hover: hover) {
  .agf:hover .agf-ic { background: var(--blue); color: #fff; }
}
.agf b { font-size: 15px; }
.agf p { margin-top: 3px; font-size: 12.5px; color: var(--sub); line-height: 1.55; }

@media (max-width: 1023px) {
  .agent { grid-template-columns: 1fr; gap: 26px; }
  .ag-img { order: -1; }                      /* 모바일에서는 사진을 위로 */
  .ag-img img { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .ag-fields { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .agf, .agf-ic, .ag-img img { transition: none; }
  .agf:hover { transform: none; }
  .agf.rv.is-in { transition-delay: 0s; }
  .ag-img:hover img { transform: none; }
}

/* ---------- 이미지가 아니라 "텍스트"가 행 높이를 정하게 한다 ----------
   이미지를 absolute 로 띄우면 원본 비율만큼의 높이를 행에 요구하지 않으므로,
   행 높이는 왼쪽(또는 오른쪽) 텍스트 길이만으로 결정되고 사진은 그 높이에 맞춰 축소된다. */
@media (min-width: 1024px) {
  .greet-img, .ag-img { position: relative; }
  .greet-img img, .ag-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
  }
  .greet-img img { object-position: center top; }
  .ag-img img { object-position: center; }
}

/* 카카오톡 문의 버튼 (브랜드 컬러 + 아이콘) */
.btn-kakao-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 48px; margin-top: 8px;
  background: #FEE500; color: #3A2929; font-size: 15px; font-weight: 800;
  border: 0; border-radius: 12px; cursor: pointer; transition: filter .2s;
}
.btn-kakao-line:hover { filter: brightness(.96); }
.btn-kakao-line svg { flex-shrink: 0; }

/* ── 터치 환경 자동 시연: hover 인터랙션을 스크롤 진입 순서대로 재생 ──
   :hover 와 똑같은 모습을 .is-hot 클래스로 켠다 (sub.js 가 붙였다 뗀다) */
.agf.is-hot { transform: translateY(-3px); border-color: var(--sky); box-shadow: var(--shadow); }
.agf.is-hot .agf-ic { background: var(--blue); color: #fff; }
.agf.rv.is-in.is-hot { transition-delay: 0s; }   /* 등장용 시차가 시연을 늦추지 않게 */

.feat.is-hot { transform: translateY(-6px); border-color: var(--sky); box-shadow: var(--shadow-lg); }
.feat.is-hot img { transform: scale(1.05); }
.feat.is-hot .feat-ic { transform: translateY(-4px) scale(1.06); background: var(--blue); color: #fff; }
.feat.is-hot .feat-img img + .feat-ic { transform: scale(1.06); }
