/* 김나실 랜딩 — 참고 틀(style.css)에 없는 부분만 덧붙인다. style.css 는 고치지 않는다. */
.intro .lead p + p { margin-top: 14px; }
.intro .lead .kn-sign { margin-top: 24px; text-align: right; color: var(--muted); font-size: 15px; }
.intro .lead .kn-sign b { font-size: 22px; color: var(--navy); margin-left: 8px; }
.kn-why { margin-top: 28px; }
.kn-why > div { grid-template-columns: 96px 1fr; }
.kn-why .k { font-size: 11px; letter-spacing: .1em; }

.kn-badges a { background: var(--beige-light); border: 1px solid var(--gold); padding: 10px 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
.kn-badges a:hover { background: var(--white); }
.kn-badges a:focus-visible, .kn-board-more a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.kn-board-more { padding: 6px 0 14px; }
.kn-board-more a { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.kn-board-more a:hover { color: var(--gold); }

.reviews.kn-one { grid-template-columns: 1fr; }
.field figure { background: var(--white); }
@media (max-width: 560px) {
  .kn-badges { grid-template-columns: 1fr; }
}

/* 첫 화면 사진 가운데 배치(11-10 사용자 요청) — 참고 틀은 justify-self:end */
.hero .portrait { justify-self: center; align-self: center; }

/* 페이지 사진 가운데 정렬(11-10 사용자 요청) — 잘릴 때도 가운데 기준 */
.portrait img, .field img, .kn-scenes img { object-position: center center; }
.field figcaption, .kn-scenes figcaption { left: 0; right: 0; text-align: center; }

/* 프로필 아래 강의 현장 사진 8칸 */
.kn-scenes { background: var(--navy); padding-block: 8px 48px; }
.kn-scenes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1060px; margin: 0 auto; }
.kn-scenes figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-deep); border: 1px solid rgba(214, 185, 133, .25); }
.kn-scenes a { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.kn-scenes img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kn-scenes a:hover img { transform: scale(1.04); }
.kn-scenes a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.kn-scenes figcaption { position: absolute; bottom: 0; background: rgba(18, 29, 53, .82); color: var(--beige); font-size: 12px; padding: 6px 8px; line-height: 1.4; }
@media (max-width: 900px) { .kn-scenes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .kn-scenes img { transition: none; } .kn-scenes a:hover img { transform: none; } }

/* 상담 신청 모달 */
html.kn-lock, html.kn-lock body { overflow: hidden; }
.kn-modal[hidden] { display: none; }
.kn-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kn-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 30, .72); }
.kn-modal__box { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--beige-light); border-top: 4px solid var(--gold); padding: 30px 28px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.kn-modal__close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--navy); cursor: pointer; }
.kn-modal__close:focus-visible { outline: 2px solid var(--gold); }
.kn-modal__head h2 { font-size: 23px; color: var(--navy); margin-top: 6px; }
.kn-modal__head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.kn-form { margin-top: 20px; display: grid; gap: 14px; }
.kn-field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.kn-field > label, .kn-field > legend { font-size: 14px; font-weight: 700; color: var(--navy); padding: 0; }
.kn-field b { color: var(--gold); font-weight: 700; font-size: 12px; }
.kn-hint { font-size: 12px; color: var(--muted); margin-top: -2px; }
.kn-form input[type=text], .kn-form input[type=tel], .kn-form select, .kn-form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--beige-line); padding: 11px 12px; border-radius: 0; min-height: 46px; }
.kn-form textarea { resize: vertical; line-height: 1.6; }
.kn-form input:focus, .kn-form select:focus, .kn-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.kn-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kn-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-radios label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--white); border: 1px solid var(--beige-line); padding: 7px 10px; cursor: pointer; }
.kn-radios input { accent-color: var(--navy); margin: 0; }
#knWriterEtc { margin-top: 4px; }
.kn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.kn-agree { border-top: 1px solid var(--beige-line); padding-top: 12px; display: grid; gap: 8px; font-size: 14px; }
.kn-agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.kn-agree input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); }
.kn-agree__all { color: var(--navy); padding-bottom: 8px; border-bottom: 1px dashed var(--beige-line); }
.kn-agree__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.kn-agree__item details { flex-basis: 100%; }
.kn-agree__item summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.kn-agree__body { margin-top: 6px; padding: 10px 12px; background: var(--white); border: 1px solid var(--beige-line); font-size: 12px; line-height: 1.7; color: var(--muted); }
.kn-form__msg { min-height: 1.4em; color: #B3261E; font-size: 14px; font-weight: 700; }
.kn-form__msg:empty { min-height: 0; }
.kn-form__submit { width: 100%; padding-block: 15px; font-size: 16px; font-weight: 800; }
.kn-form__submit:disabled { opacity: .6; cursor: wait; }
.kn-done[hidden] { display: none; }
.kn-done { text-align: center; padding: 28px 0 8px; }
.kn-done__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 28px; display: grid; place-items: center; }
.kn-done h3 { color: var(--navy); font-size: 20px; }
.kn-done p { color: var(--muted); margin: 8px 0 20px; }
@media (max-width: 560px) {
  .kn-modal { padding: 0; align-items: flex-end; }
  .kn-modal__box { max-height: 92vh; max-height: 92dvh; padding: 26px 18px 22px; }
  .kn-row2 { grid-template-columns: 1fr; }
}

/* 숫자 띠 5칸(11-10 '교육 횟수 1000+회' 추가) — 참고 틀은 4칸 기준 */
.kn-stats5 .wrap { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .kn-stats5 .wrap { grid-template-columns: 1fr 1fr; }
  .kn-stats5 .stat:nth-child(odd) { border-left: 0; }
  .kn-stats5 .stat:nth-child(5) { grid-column: 1 / -1; }
}

/* 프로필 사진 키우기(11-10 사용자 요청) — 머리 위 여백은 사진을 인물 중심으로 다시 잘라 줄임(kimnasil-profile-v2.webp) */
@media (min-width: 901px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero .portrait { max-width: 460px; }
}
@media (max-width: 900px) {
  .hero .portrait { max-width: 380px; }
}
