/* ============================================================
   KyTuHay Footer
   ============================================================ */

#kh-footer {
  --kh-footer-text: #202124;
  --kh-footer-muted: #5f6878;
  --kh-footer-pink: #fff6f8;
  color: var(--kh-footer-text);
  background: var(--kh-footer-pink);
  border-top: 1px solid #f3e8eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  text-align: left;
}

#kh-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#kh-footer a:hover {
  color: #e91e63;
}

#kh-footer a:focus-visible {
  outline: 2px solid #e91e63;
  outline-offset: 3px;
  border-radius: 2px;
}

.kh-footer-main {
  max-width: 1720px;
  margin: 0 auto;
  padding: 58px 42px 52px;
}

.kh-footer-grid {
  display: grid;
  grid-template-columns: minmax(170px, .85fr) minmax(210px, .95fr) minmax(220px, .95fr) minmax(310px, 1.45fr);
  gap: clamp(34px, 5vw, 90px);
  align-items: start;
}

.kh-footer-column {
  min-width: 0;
}

.kh-footer-title {
  margin: 0 0 24px;
  color: var(--kh-footer-text);
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  text-transform: none;
}

.kh-footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.kh-footer-menu a {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.35;
}

.kh-nickdep-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  text-decoration: none !important;
}

.kh-nickdep-mark {
  width: 44px;
  height: 44px;
  color: #f11658;
  flex: 0 0 auto;
}

.kh-nickdep-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.kh-nickdep-name {
  position: relative;
  color: #222;
  font-size: 25px;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.kh-nickdep-name strong {
  color: #f11658;
  font-weight: 800;
}

.kh-nickdep-name small {
  position: absolute;
  right: 1px;
  bottom: -12px;
  color: #222;
  font-size: 11px;
  font-style: normal;
}

.kh-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  color: var(--kh-footer-muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.4;
}

.kh-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

a.kh-contact-item {
  color: var(--kh-footer-muted) !important;
  text-decoration: none !important;
}

a.kh-contact-item:hover {
  color: #e91e63 !important;
}

.kh-contact-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 22px;
}

.kh-icon-email {
  color: #4b76e8;
}

.kh-icon-time {
  color: #e93494;
}

.kh-footer-related {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 54px;
  line-height: 1.9;
}

.kh-footer-related strong {
  font-size: 18px;
  white-space: nowrap;
}

.kh-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.kh-footer-bottom {
  padding: 28px 20px;
  background: #f0f0f0;
  text-align: center;
}

.kh-footer-bottom p {
  margin: 0;
  font-size: 16px;
}

.kh-footer-bottom a {
  text-decoration: none !important;
}

/* ── Floating buttons ── */
.kh-floating {
  position: fixed;
  right: 16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

/* ── Copy confirmation (circle outline, appears on copy) ── */
.kh-float-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.75) translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.kh-float-copy-wrap.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.kh-float-copy-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e91e63;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(233,30,99,0.18);
}

.kh-float-copy-label {
  font-size: 11px;
  font-weight: 600;
  color: #e91e63;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  white-space: nowrap;
}

/* ── Heart button (circle outline) ── */
.kh-float-heart {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e91e63;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(233,30,99,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
}

.kh-float-heart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(233,30,99,0.3);
}

/* ── Scroll-to-top (rounded square, solid) ── */
.kh-float-top {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  background: #e91e63;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(233,30,99,0.3);
  transition: opacity 0.3s, transform 0.15s, box-shadow 0.15s;
  opacity: 0;
  pointer-events: none;
  padding: 0;
}

.kh-float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.kh-float-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(233,30,99,0.45);
  background: #c2185b;
}

/* Responsive */
@media (max-width: 1100px) {
  .kh-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #kh-footer {
    font-size: 15px;
  }

  .kh-footer-main {
    padding: 38px 24px 34px;
  }

  .kh-footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .kh-footer-title {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .kh-footer-menu {
    gap: 12px;
  }

  .kh-footer-menu a,
  .kh-contact-list {
    font-size: 15px;
  }

  .kh-footer-related {
    display: block;
    margin-top: 42px;
  }

  .kh-footer-related strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
  }

  .kh-footer-bottom {
    padding: 24px 18px;
  }

  .kh-footer-bottom p {
    font-size: 14px;
  }
}
