/* ===== 16.11.2026: «Як буде твоє ім'я корейською» (кольори бренд-кіту) ===== */
.kname { padding: clamp(56px, 7vw, 96px) 0; background: #FFF6EB; color: #4B1D6B; font-family: "Manrope", system-ui, sans-serif; }
.kname [lang="ko"] { font-family: "Noto Sans KR", sans-serif; }
.kname__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.kname__title { margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: #4B1D6B; }
.kname__lead { margin: 0 0 20px; font-size: 17px; line-height: 1.55; }
.kname__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.kname__row { display: flex; gap: 10px; }
.kname__input { flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 12px 18px; font: 600 18px/1.3 "Manrope", system-ui, sans-serif; color: #4B1D6B; background: #FFFDF9; border: 2px solid rgba(75, 29, 107, .18); border-radius: 999px; }
.kname__input::placeholder { color: #78558E; opacity: 1; }
.kname__input:focus { outline: none; border-color: #8C56D9; }
.kname__btn, .kname__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 24px; font: 700 17px/1.2 "Manrope", system-ui, sans-serif; color: #FFFFFF; background: #8C56D9; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
.kname__btn:hover, .kname__cta:hover { background: #7E49C1; }
.kname__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kname__chip { min-height: 40px; padding: 6px 14px; font: 600 15px/1.2 "Manrope", system-ui, sans-serif; color: #4B1D6B; background: #FFFDF9; border: 1px solid rgba(75, 29, 107, .14); border-radius: 999px; cursor: pointer; }
.kname__chip:hover { background: #E9D7FF; }
.kname button:focus-visible, .kname a:focus-visible, .kname__input:focus-visible { outline: 3px solid #FFD55C; outline-offset: 3px; }
.kname__result { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: #FFFDF9; border: 1px solid rgba(75, 29, 107, .14); border-radius: 28px; box-shadow: 0 12px 36px rgba(75, 29, 107, .08); }
.kname__result[hidden] { display: none; }
.kname__ko { font-size: clamp(44px, 6vw, 72px); line-height: 1.1; font-weight: 700; letter-spacing: .06em; color: #4B1D6B; word-break: keep-all; }
.kname__play { min-height: 44px; padding: 8px 18px; font: 700 16px/1.2 "Manrope", system-ui, sans-serif; color: #4B1D6B; background: #E9D7FF; border: 0; border-radius: 999px; cursor: pointer; }
.kname__play:hover { background: #DCC4FA; }
.kname__play[hidden] { display: none; }
.kname__syllables { display: flex; flex-wrap: wrap; gap: 8px; }
.kname__syl { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; background: #FFF6EB; border-radius: 14px; }
.kname__syl b { font-size: 26px; line-height: 1.2; }
.kname__syl small { font-size: 12px; color: #78558E; white-space: nowrap; }
.kname__note { margin: 0; font-size: 14px; color: #78558E; }
.kname__note:empty { display: none; }
.kname__cta-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.kname__why, .kname__popular { grid-column: 1 / -1; }
.kname__subtitle { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: #4B1D6B; }
.kname__rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.55; }
.kname__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kname__pick { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 10px 14px; font: 600 15px/1.3 "Manrope", system-ui, sans-serif; color: #4B1D6B; text-align: left; background: #FFFDF9; border: 1px solid rgba(75, 29, 107, .14); border-radius: 14px; cursor: pointer; }
.kname__pick span { font-size: 14px; color: #78558E; }
.kname__pick b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.kname__pick:hover { border-color: #8C56D9; }
@media (max-width: 860px) {
  .kname__inner { grid-template-columns: 1fr; }
  .kname__result { grid-column: 1; grid-row: auto; padding: 20px; }
  .kname__row { flex-direction: column; }
  .kname__btn { width: 100%; }
}
.kname__for { margin: 0; font-size: 15px; font-weight: 700; color: #78558E; }

/* ===== 17.11.2026: плашка «Ім'я корейською» у першому екрані, між текстом і Хорі ===== */
.khero { position: relative; z-index: 5; width: 300px; margin-top: 18px; padding: 16px 16px 14px; font-family: "Manrope", system-ui, sans-serif; color: #4B1D6B; text-align: left; background: #FFFDF9; border: 1px solid rgba(75, 29, 107, .12); border-radius: 22px; box-shadow: 0 14px 36px rgba(75, 29, 107, .16); }
.khero [lang="ko"] { font-family: "Noto Sans KR", sans-serif; }
.khero__q { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 1.25; color: #4B1D6B; }
.khero__ko { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 14px; font-weight: 700; background: #FFD55C; border-radius: 50%; }
.khero__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.khero__row { display: flex; gap: 6px; }
.khero__input.kname__input { min-height: 42px; padding: 8px 14px; font-size: 15px; border-width: 1.5px; }
.khero__btn { flex: 0 0 auto; width: 42px; height: 42px; font: 700 20px/1 "Manrope", system-ui, sans-serif; color: #FFFFFF; background: #8C56D9; border: 0; border-radius: 50%; cursor: pointer; }
.khero__btn:hover { background: #7E49C1; }
.khero .kname__result { margin-top: 12px; padding: 0; gap: 6px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.khero__line { display: flex; align-items: center; gap: 10px; }
.khero .kname__ko { font-size: 34px; letter-spacing: .04em; }
.khero .kname__play { min-height: 36px; width: 36px; padding: 0; font-size: 13px; border-radius: 50%; }
.khero .kname__syllables { display: none; }
.khero .kname__note { font-size: 13px; }
.khero__more { font-size: 13px; font-weight: 700; color: #8C56D9; text-decoration: none; }
.khero__more:hover { text-decoration: underline; }
.khero button:focus-visible, .khero a:focus-visible, .khero .kname__input:focus-visible { outline: 3px solid #FFD55C; outline-offset: 2px; }
/* десктоп: плашка в порожньому місці між текстом і Хорі, з «хвостиком» до Хорі */
@media (min-width: 1200px) {
  .khero { position: absolute; left: calc(100% + 28px); top: 150px; margin: 0; }
  .khero::after { content: ""; position: absolute; right: -9px; top: 34px; width: 18px; height: 18px; background: #FFFDF9; border-top: 1px solid rgba(75, 29, 107, .12); border-right: 1px solid rgba(75, 29, 107, .12); transform: rotate(45deg); }
}
@media (max-width: 1199px) { .khero { display: none; } }
/* мобільна версія: маленька плашка-«бульбашка» праворуч від Хорі, веде на сторінку імен */
.hero-hori-wrap { display: none; }
@media (max-width: 1060px) {
  .hero-hori-wrap { position: relative; display: block; width: fit-content; margin: 0 auto; }
  .khero-m { position: absolute; left: calc(100% - 14px); top: 14px; display: flex; align-items: center; gap: 6px; width: max-content; max-width: max(84px, calc(50vw - 76px)); padding: 6px 10px 6px 6px; font: 700 12px/1.2 "Manrope", system-ui, sans-serif; color: #4B1D6B; text-align: left; text-decoration: none; background: #FFFDF9; border-radius: 16px; box-shadow: 0 8px 22px rgba(75, 29, 107, .18); }
  .khero-m .khero__ko { width: 30px; height: 30px; font-family: "Noto Sans KR", sans-serif; font-size: 11px; }
  .khero-m::before { content: ""; position: absolute; left: -5px; top: 16px; width: 10px; height: 10px; background: #FFFDF9; transform: rotate(45deg); }
}

/* сторінка /lessons/korean/imya-koreyskoyu */
.kname--page { padding-top: 24px; }
.kname--page .kname__title { font-size: clamp(30px, 3.4vw, 46px); }
.kname__faq { grid-column: 1 / -1; }
.kname__faq h3 { margin: 18px 0 6px; font-size: 18px; color: #4B1D6B; }
.kname__faq p { margin: 0; font-size: 16px; line-height: 1.6; }
.kname__faq a { color: #8C56D9; }
@media (max-width: 360px) {
  .khero-m { left: calc(100% - 44px); max-width: 112px; font-size: 11px; padding: 5px 8px 5px 5px; }
  .khero-m .khero__ko { width: 26px; height: 26px; font-size: 10px; }
}

.kname__src { margin: -4px 0 12px; font-size: 14px; color: #78558E; }
.kname__subtitle--sm { margin: 16px 0 8px; font-size: 17px; }
