/* NKBK — modern pink theme (dark pink primary) */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap');
@import url('/v2.css?v=46');

:root {
  --kb-primary: #c2185b;
  --kb-primary-dark: #880e4f;
  --kb-primary-mid: #d81b60;
  --kb-primary-light: #fce4ec;
  --kb-accent: #ff6b8a;
  --kb-accent-soft: #ffb3c6;
  --kb-tier1: #2d0a1e;
  --kb-navy: #3d1028;
  --kb-text: #3a2a32;
  --kb-muted: #6b5a62;
  --kb-border: #f0d9e2;
  --kb-bg: #fdf6f8;
  --kb-white: #ffffff;
  --kb-shadow: 0 8px 32px rgba(194, 24, 91, 0.1);
  --kb-shadow-soft: 0 4px 24px rgba(136, 14, 79, 0.08);
  --kb-radius: 20px;
  --kb-radius-sm: 12px;
  --kb-gradient: linear-gradient(135deg, #880e4f 0%, #c2185b 48%, #e91e8c 100%);
  --kb-gradient-warm: linear-gradient(90deg, #ad1457 0%, #d81b60 45%, #ff6b8a 100%);
  --kb-font: 'Noto Sans Thai', 'Noto Sans', system-ui, sans-serif;
  --kb-container: 1200px;
  /* legacy aliases */
  --kb-green: var(--kb-primary);
  --kb-green-dark: var(--kb-primary-dark);
  --kb-green-light: var(--kb-primary-light);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.kb-site {
  margin: 0;
  font-family: var(--kb-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--kb-text);
  background: var(--kb-bg);
  position: relative;
}
body.kb-site::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 40% at 8% 12%, rgba(255, 107, 138, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 92% 8%, rgba(233, 30, 140, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 30% at 50% 95%, rgba(255, 179, 198, 0.12), transparent 70%);
}
body.kb-site.kb-home::before {
  display: none;
}

a {
  color: var(--kb-primary-dark);
  text-decoration: none;
}

/* KBank-style underline: เส้นวิ่งซ้าย → ขวา */
body.kb-site .kb-footer-body ul a,
body.kb-site .kb-sidebar a,
body.kb-site .kb-prose a,
body.kb-site .kb-news-card-cta,
body.kb-site .kb-link-more,
body.kb-site .kb-tier1-links a,
body.kb-site .kb-contact-card-value a,
body.kb-site .kb-contact-map-link,
body.kb-site .kb-contact-form-privacy a,
body.kb-site .kb-team-modal-link {
  position: relative;
  display: inline-block;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
body.kb-site .kb-footer-body ul a {
  color: rgba(255, 255, 255, 0.95) !important;
}
body.kb-site .kb-footer-body ul a::after,
body.kb-site .kb-sidebar a::after,
body.kb-site .kb-prose a::after,
body.kb-site .kb-news-card-cta::after,
body.kb-site .kb-link-more::after,
body.kb-site .kb-tier1-links a::after,
body.kb-site .kb-contact-card-value a::after,
body.kb-site .kb-contact-map-link::after,
body.kb-site .kb-contact-form-privacy a::after,
body.kb-site .kb-team-modal-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.kb-site .kb-footer-body ul a::after,
body.kb-site .kb-tier1-links a::after {
  background: #fff;
}
body.kb-site .kb-sidebar a::after,
body.kb-site .kb-prose a::after,
body.kb-site .kb-news-card-cta::after,
body.kb-site .kb-link-more::after,
body.kb-site .kb-contact-card-value a::after,
body.kb-site .kb-contact-map-link::after,
body.kb-site .kb-contact-form-privacy a::after,
body.kb-site .kb-team-modal-link::after {
  background: var(--kb-primary);
}
body.kb-site .kb-footer-body ul a:hover {
  color: #fff !important;
}
body.kb-site .kb-sidebar a:hover,
body.kb-site .kb-prose a:hover,
body.kb-site .kb-news-card:hover .kb-news-card-cta,
body.kb-site .kb-link-more:hover,
body.kb-site .kb-contact-card-value a:hover,
body.kb-site .kb-contact-map-link:hover,
body.kb-site .kb-contact-form-privacy a:hover,
body.kb-site .kb-team-modal-link:hover {
  color: var(--kb-primary) !important;
}
body.kb-site .kb-footer-body ul a:hover::after,
body.kb-site .kb-sidebar a:hover::after,
body.kb-site .kb-prose a:hover::after,
body.kb-site .kb-news-card:hover .kb-news-card-cta::after,
body.kb-site .kb-link-more:hover::after,
body.kb-site .kb-tier1-links a:hover::after,
body.kb-site .kb-contact-card-value a:hover::after,
body.kb-site .kb-contact-map-link:hover::after,
body.kb-site .kb-contact-form-privacy a:hover::after,
body.kb-site .kb-team-modal-link:hover::after {
  width: 100%;
}

.kb-container {
  width: min(100% - 2rem, var(--kb-container));
  margin-inline: auto;
}

/* Header — KBank two-tier */
.kb-header-wrap,
.kb-header-wrap * {
  font-family: var(--kb-font) !important;
}

.kb-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
}

.kb-tier1 {
  background: linear-gradient(180deg, var(--kb-tier1) 0%, #3d1028 100%);
  color: #fff;
  font-size: 0.875rem;
}
.kb-tier1-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}
.kb-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.kb-brand:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}
.kb-brand-logo-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
}
.kb-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  mix-blend-mode: normal;
}
.kb-footer-brand .kb-brand-logo {
  mix-blend-mode: normal;
}
.kb-brand-name {
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  max-width: min(420px, 42vw);
  line-height: 1.35;
  white-space: nowrap;
}
/* header pill brand — ขนาดเท่ากันทั้ง TH/EN (กำหนดใน v2.css) */
html[lang='en'] .kb-header-pill .kb-brand-name {
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
html[lang='en'] .kb-tier1-links {
  gap: 0.65rem 1rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}
html[lang='en'] .kb-tier1-right {
  flex-shrink: 0;
}
html[lang='en'] .kb-brand {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}
.kb-tier1-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.kb-hotline {
  color: rgba(255, 255, 255, 0.88);
}
.kb-hotline a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.kb-tier1-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
}
.kb-tier1-links a:hover {
  color: #fff;
  text-decoration: none;
}
.kb-tier1-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kb-tier1-login {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.kb-tier1-login:hover {
  text-decoration: none !important;
  color: #fff !important;
  opacity: 0.85;
}

.kb-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.kb-lang-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-family: inherit !important;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 50%;
  line-height: 1;
  min-width: 28px;
  min-height: 28px;
}
.kb-lang-btn.is-active,
.kb-lang-btn:hover {
  background: var(--kb-primary);
  border-color: var(--kb-primary);
}

.kb-tier2-wrap {
  background: linear-gradient(180deg, #3d1028 0%, #4a1528 100%);
  padding: 0 0 0.65rem;
}
.kb-menubar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  background: var(--kb-gradient-warm);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 6px 24px rgba(194, 24, 91, 0.35);
}
.kb-menu-item,
.kb-menu-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  font-family: inherit !important;
}
.kb-menu-item:hover,
.kb-menu-trigger:hover,
.kb-menu-item.is-active,
.kb-has-drop.is-active > .kb-menu-trigger {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
}
.kb-menu-sep {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 0.35rem;
  flex-shrink: 0;
}
.kb-has-drop {
  position: relative;
}
.kb-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  z-index: 60;
  padding-top: 8px;
  background: transparent;
  box-shadow: none;
}
.kb-header-nav .kb-drop {
  z-index: 120;
}
.kb-drop > ul {
  background: #fff;
  border-radius: var(--kb-radius);
  box-shadow: var(--kb-shadow);
  border: 1px solid var(--kb-border);
  padding: 0.35rem 0;
}
.kb-drop ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kb-drop a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--kb-text) !important;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.kb-drop a:hover {
  background: var(--kb-primary-light);
}
@media (min-width: 993px) {
  .kb-has-drop:hover .kb-drop,
  .kb-has-drop:focus-within .kb-drop,
  .kb-has-drop .kb-drop:hover {
    display: block;
  }
}
.kb-has-drop.is-open .kb-drop {
  display: block;
}

.kb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  margin-left: auto;
  padding: 0.5rem;
  cursor: pointer;
}
.kb-header-pill .kb-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--kb-primary-dark);
}

/* Page body */
.kb-page-body {
  background: var(--kb-bg);
  padding: 1.5rem 0 3rem;
}
#cms-page-content {
  min-height: 200px;
}

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.kb-btn:hover {
  text-decoration: none;
}
.kb-btn:focus {
  outline: none;
}
.kb-btn:focus-visible {
  outline: 2px solid var(--kb-primary-mid);
  outline-offset: 2px;
}
.kb-btn-primary {
  background: var(--kb-gradient-warm);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  box-shadow: 0 4px 16px rgba(194, 24, 91, 0.35);
}
.kb-btn-primary:hover {
  background: linear-gradient(90deg, #9f1249 0%, #c2185b 45%, #ff7a96 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(136, 14, 79, 0.4);
}
.kb-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.kb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.kb-btn-secondary {
  background: #fff;
  color: var(--kb-primary, #c2185b);
  border: 1px solid var(--kb-border, #dbe3ef);
  box-shadow: none;
}
.kb-btn-secondary:hover {
  background: #fdf2f8;
  color: var(--kb-primary-dark, #9f1249);
  border-color: rgba(194, 24, 91, 0.35);
  box-shadow: none;
}
.kb-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Hero — full-width banner */
.kb-home #cms-page-content {
  padding: 0;
}
.kb-hero {
  position: relative;
  width: 100%;
  min-height: min(88vh, 760px);
  background-color: #f5e6ec;
  background-position: 72% center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
}
.kb-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 28%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.12) 62%,
    transparent 78%
  );
  pointer-events: none;
}
.kb-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(88vh, 760px);
  padding: 2.5rem 0 2rem;
  max-width: 620px;
}
.kb-hero-tagline {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kb-primary-mid);
  letter-spacing: 0.02em;
}
.kb-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: #6b1238;
}
.kb-hero-desc {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4a3a42;
  max-width: 520px;
}
.kb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.kb-btn-hero-primary {
  background: var(--kb-gradient-warm);
  color: #fff !important;
  border: none;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.35);
  gap: 0.5rem;
}
.kb-btn-hero-primary:hover {
  background: linear-gradient(90deg, #9f1249 0%, #c2185b 45%, #ff7a96 100%);
  color: #fff !important;
  transform: translateY(-1px);
}
.kb-btn-hero-secondary {
  background: #fff;
  color: var(--kb-primary) !important;
  border: 2px solid var(--kb-primary-mid);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  gap: 0.5rem;
}
.kb-btn-hero-secondary:hover {
  background: var(--kb-primary-light);
  color: var(--kb-primary-dark) !important;
  transform: translateY(-1px);
}
.kb-btn .kb-icon,
.kb-link-more .kb-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0;
}
.kb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.kb-icon-svg {
  display: block;
  flex-shrink: 0;
}
.kb-social-link .kb-icon-svg,
.kb-footer-social a .kb-icon-svg {
  width: 22px;
  height: 22px;
}
.kb-social-link--line .kb-icon-svg {
  color: #06c755;
}
.kb-social-link--line:hover .kb-icon-svg {
  color: #05b34c;
}
.kb-back-top .kb-icon-svg {
  width: 20px;
  height: 20px;
}
.kb-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: auto;
  padding-top: 1rem;
}
.kb-hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 200px;
}
.kb-hero-feature-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 24, 91, 0.12);
  border-radius: 10px;
  color: var(--kb-primary-dark);
}
.kb-hero-feature strong {
  display: block;
  font-size: 0.9rem;
  color: var(--kb-primary-dark);
  margin-bottom: 0.15rem;
}
.kb-hero-feature span {
  display: block;
  font-size: 0.8rem;
  color: var(--kb-muted);
  line-height: 1.35;
}

/* Services grid */
.kb-section {
  padding: 3rem 0;
}
.kb-section--white {
  background: var(--kb-white);
  border-radius: var(--kb-radius);
  margin: 0 1rem;
  box-shadow: var(--kb-shadow-soft);
}
@media (min-width: 769px) {
  .kb-section--white .kb-container {
    padding-block: 0.5rem;
  }
}
.kb-section-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kb-navy);
}
.kb-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.kb-service-card {
  background: var(--kb-white);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 1.125rem;
  padding: 1.65rem 1.15rem 1.45rem;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 18px rgba(15, 52, 96, 0.06);
}
.kb-service-card:hover {
  border-color: rgba(194, 24, 91, 0.22);
  box-shadow: 0 14px 32px rgba(15, 52, 96, 0.1);
  transform: translateY(-4px);
  text-decoration: none;
}
.kb-service-icon {
  margin: 0 auto 0.95rem;
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.125rem;
  position: relative;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.kb-service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.18;
  transform: scale(1.08);
  filter: blur(10px);
  z-index: -1;
}
.kb-service-icon .kb-icon-svg--service {
  transition: transform 0.22s ease;
}
.kb-service-card:hover .kb-service-icon {
  transform: scale(1.06);
}
.kb-service-card:hover .kb-service-icon .kb-icon-svg--service {
  transform: scale(1.05);
}
.kb-service-icon--payment {
  background: linear-gradient(145deg, #fff0f6 0%, #ffd6e7 100%);
  color: #c2185b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(194, 24, 91, 0.14);
}
.kb-service-icon--payment::before {
  background: #f06292;
}
.kb-service-icon--download {
  background: linear-gradient(145deg, #e0f7fa 0%, #b2ebf2 100%);
  color: #00838f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(0, 131, 143, 0.14);
}
.kb-service-icon--download::before {
  background: #26c6da;
}
.kb-service-icon--news {
  background: linear-gradient(145deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(230, 81, 0, 0.12);
}
.kb-service-icon--news::before {
  background: #ffb74d;
}
.kb-service-icon--contact {
  background: linear-gradient(145deg, #e8eaf6 0%, #c5cae9 100%);
  color: #3949ab;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(57, 73, 171, 0.14);
}
.kb-service-icon--contact::before {
  background: #7986cb;
}
.kb-service-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--kb-navy);
  letter-spacing: -0.01em;
}

/* Rates */
.kb-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.kb-rate-table {
  background: var(--kb-white);
  border-radius: var(--kb-radius);
  border: 1px solid var(--kb-border);
  overflow: hidden;
}
.kb-rate-table h3 {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--kb-gradient-warm);
  color: #fff;
  font-size: 1rem;
}
.kb-rate-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.kb-rate-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--kb-border);
}
.kb-rate-table tr:last-child td {
  border-bottom: none;
}
.kb-rate-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--kb-primary-dark);
}

/* News cards */
.kb-news-grid,
.kb-news-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}
.kb-news-card {
  background: var(--kb-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--kb-border);
  box-shadow: var(--kb-shadow-soft);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  height: 100%;
  min-height: 360px;
}
.kb-news-card:hover {
  box-shadow: 0 12px 28px rgba(15, 52, 96, 0.12);
  transform: translateY(-3px);
  border-color: rgba(0, 120, 193, 0.25);
}
.kb-news-card-hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}
.kb-news-card-media {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #f4f7fb;
  line-height: 0;
  height: 200px;
}
.kb-news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease;
}
.kb-news-card:hover .kb-news-card-media img {
  transform: scale(1.02);
}
.kb-news-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--kb-primary);
  opacity: 0.45;
  background: linear-gradient(145deg, #e8f4fc 0%, #f4f7fb 55%, #eef2f7 100%);
  line-height: normal;
}
.kb-news-card-body {
  padding: 1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.kb-news-card-cat {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--kb-primary-dark);
  background: rgba(0, 120, 193, 0.1);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.kb-news-date {
  font-size: 0.78rem;
  color: var(--kb-muted);
}
.kb-news-views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--kb-muted);
  white-space: nowrap;
}
.kb-news-views .kb-icon {
  color: var(--kb-primary);
  opacity: 0.85;
}
.kb-news-views-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.kb-news-card-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--kb-navy);
}
.kb-news-card-excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--kb-muted);
  line-height: 1.55;
  flex: 1;
}
.kb-news-card-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--kb-primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.kb-news-card--compact {
  min-height: 300px;
}
.kb-news-card--compact .kb-news-card-media {
  height: 160px;
}
.kb-news-card--compact .kb-news-card-placeholder {
  min-height: 160px;
}
.kb-news-card-hit {
  cursor: pointer;
}
.kb-news-card-hit:focus-visible {
  outline: 2px solid var(--kb-primary);
  outline-offset: 2px;
}
.kb-news-card--compact .kb-news-card-title {
  font-size: 0.95rem;
}
.kb-link-more {
  color: var(--kb-primary) !important;
}

.kb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kb-section-head h2 {
  margin: 0;
}

/* Page head — ความสูง/ระดับกำหนดใน v2.css */
.kb-page-head {
  background: var(--kb-gradient-warm);
  color: #fff;
}
.kb-page-head h1 {
  margin: 0;
  font-size: 1.75rem;
  color: #fff;
  font-weight: 700;
}
.kb-page-head-sub {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

/* Layout with sidebar */
.kb-page-body {
  padding: 2.5rem 0 3rem;
}
.kb-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.kb-layout--news {
  grid-template-columns: 1fr 280px;
}
.kb-layout--news .kb-news-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.kb-layout--news #newsSidebar,
.kb-layout--news .kb-sidebar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.kb-layout #newsList {
  grid-column: 1;
}
.kb-layout .kb-news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--kb-border);
}
.kb-news-pagination--empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.kb-news-pagination-info {
  font-size: 0.9rem;
  color: var(--kb-muted, #64748b);
  text-align: center;
  flex: 1;
}
.kb-news-pagination-spacer {
  flex: 0 0 88px;
}
.kb-layout #newsSidebar,
.kb-layout .kb-sidebar {
  grid-column: 2;
}
.kb-sidebar {
  background: var(--kb-white);
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius);
  padding: 1.25rem;
}
.kb-sidebar h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--kb-navy);
}
.kb-news-search {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--kb-border);
}
.kb-news-search-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kb-navy);
}
.kb-news-search-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kb-news-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--kb-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
}
.kb-news-search-input:focus {
  outline: 2px solid rgba(194, 24, 91, 0.25);
  border-color: var(--kb-primary, #c2185b);
}
.kb-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kb-sidebar li {
  margin-bottom: 0.35rem;
}
.kb-sidebar li.active a {
  color: var(--kb-primary);
  font-weight: 600;
}
.kb-sidebar a {
  display: block;
  padding: 0.4rem 0;
  color: var(--kb-text);
  font-size: 0.9rem;
}

/* Article */
.kb-article {
  background: var(--kb-white);
  border-radius: var(--kb-radius);
  border: 1px solid var(--kb-border);
  padding: 2rem;
}
.kb-article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--kb-radius);
  margin-bottom: 1.5rem;
}
.kb-article h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--kb-navy);
}
.kb-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  color: var(--kb-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kb-border);
}
.kb-article-meta .kb-news-views {
  font-size: 0.9rem;
}
.kb-prose {
  line-height: 1.75;
}
.kb-prose .elementor,
.kb-prose .elementor-section,
.kb-prose .e-con,
.kb-prose .elementor-widget-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 0 !important;
}
.kb-prose .elementor-section-wrap,
.kb-prose .elementor-widget-container {
  max-width: 100%;
}
.kb-prose img {
  max-width: 100%;
  height: auto;
}
.kb-prose table {
  width: 100%;
  border-collapse: collapse;
}
.kb-prose table td,
.kb-prose table th {
  border: 1px solid var(--kb-border);
  padding: 0.5rem;
}

.kb-news-list--grid {
  width: 100%;
}

/* News page sidebar polish */
.kb-layout .kb-sidebar {
  box-shadow: var(--kb-shadow-soft);
  z-index: 2;
  background: var(--kb-white);
}
@media (min-width: 993px) {
  .kb-layout .kb-sidebar,
  .kb-layout--news #newsSidebar {
    position: sticky;
    top: var(--kb-header-sticky-top, calc(var(--kb-header-offset, 102px) + 0.75rem));
  }
  .kb-legal-sidebar {
    position: sticky;
    top: var(--kb-header-sticky-top, calc(var(--kb-header-offset, 102px) + 0.75rem));
    height: fit-content;
    max-height: calc(100vh - var(--kb-header-sticky-top, 114px) - 1.5rem);
    z-index: 2;
  }
  .kb-legal-sidebar-card {
    max-height: calc(100vh - var(--kb-header-sticky-top, 114px) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.kb-layout .kb-sidebar li a {
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  margin: 0 -0.35rem;
}
.kb-layout .kb-sidebar li.active a {
  background: rgba(0, 120, 193, 0.08);
}

/* Footer */
.kb-footer {
  margin-top: 2rem;
  color: #fff;
}
.kb-footer-body {
  background: var(--kb-gradient-warm);
  padding: 2rem 0 2.25rem;
  overflow: visible;
}
.kb-footer-app-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(-4.5rem, -10vw, -6rem);
}
.kb-footer-app-showcase {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 0.35rem 0.5rem 0;
}
.kb-footer-app-showcase::before,
.kb-footer-app-showcase::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.kb-footer-app-showcase::before {
  width: 88%;
  height: 72%;
}
.kb-footer-app-showcase::after {
  width: 108%;
  height: 88%;
  opacity: 0.55;
}
.kb-footer-phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  min-height: clamp(150px, 22vw, 200px);
}
.kb-footer-phones .kb-footer-phone {
  display: block;
  width: clamp(96px, 14vw, 128px);
  height: auto;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.42))
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}
.kb-footer-phone--left {
  transform: rotate(-11deg);
  margin-right: -0.65rem;
  z-index: 1;
}
.kb-footer-phone--right {
  transform: rotate(9deg);
  z-index: 2;
}
.kb-footer-store-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.85rem;
}
.kb-footer-store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.85rem 0.5rem 0.65rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(26, 10, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.kb-footer-store:hover {
  transform: translateY(-2px);
  background: rgba(26, 10, 20, 0.5);
  box-shadow: 0 8px 20px rgba(26, 10, 20, 0.25);
  color: #fff !important;
  background-image: none !important;
}
.kb-footer-store--ios {
  background: #fff;
  color: #1a0a14 !important;
  border-color: transparent;
}
.kb-footer-store--ios:hover {
  background: #fff;
  color: #1a0a14 !important;
  opacity: 0.92;
}
.kb-footer-store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kb-footer-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.kb-footer-store-hint {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.02em;
}
.kb-footer-store-name {
  font-size: 0.92rem;
  font-weight: 700;
}
.kb-footer-phonebar {
  background: linear-gradient(135deg, #2d0a1e 0%, #5c1235 55%, #880e4f 100%);
  padding: 1.75rem 0;
  position: relative;
  overflow: hidden;
}
.kb-footer-phonebar::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -20px;
  width: 280px;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 120 80'%3E%3Cpath stroke='rgba(255,255,255,0.08)' stroke-width='2' d='M10 70V30l20-15 20 10 20-20 20 15 20-10v40'/%3E%3Crect x='8' y='8' width='24' height='40' rx='2' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Crect x='40' y='20' width='28' height='48' rx='2' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}
.kb-footer-phonebar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.kb-footer-phonebar .kb-footer-phone {
  text-align: right;
  flex-shrink: 0;
}
.kb-footer-social .kb-social-link--line .kb-icon-svg,
.kb-footer-social .kb-social-link--line:hover .kb-icon-svg {
  color: #fff;
}
.kb-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.kb-footer-social-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-right: 0.25rem;
}
.kb-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.kb-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  background-image: none !important;
}
.kb-footer-phone-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.2rem;
}
.kb-footer-phone-num {
  display: inline-block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.kb-footer-phone-num:hover {
  opacity: 0.9;
  background-image: none !important;
}
.kb-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.kb-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-self: center;
  align-items: start;
  justify-items: start;
  text-align: left;
}
.kb-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1rem;
}
.kb-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kb-footer li {
  margin-bottom: 0.4rem;
}
.kb-footer-brand p {
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.kb-footer-tagline {
  background: #fff;
  padding: 0.85rem 0;
  text-align: center;
}
.kb-footer-tagline p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.kb-footer-bottom {
  background: #f5eef1;
  padding: 0.85rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--kb-muted);
}
.kb-footer-bottom p {
  margin: 0;
}

/* Loading — โลโก้กลางจอ */
.kb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 4rem 1rem;
  min-height: min(50vh, 360px);
}
.kb-loading-logo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}
.kb-loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--kb-primary-light);
  border-top-color: var(--kb-primary);
  border-right-color: var(--kb-accent);
  animation: kb-spin 0.9s linear infinite;
}
.kb-loading-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  animation: kb-logo-pulse 1.4s ease-in-out infinite;
}
.kb-loading-text {
  margin: 0;
  color: var(--kb-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
@keyframes kb-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes kb-logo-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.88;
  }
}

.kb-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kb-gradient-warm);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  z-index: 90;
  box-shadow: var(--kb-shadow);
}
.kb-back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.pdf-viewer {
  margin: 1.25rem auto;
  max-width: min(100%, 794px);
  width: 100%;
  border: 1px solid var(--kb-border);
  border-radius: var(--kb-radius);
  overflow: hidden;
  background: #f4f6f8;
  box-shadow: var(--kb-shadow);
}
.pdf-viewer--a4:not(.pdf-viewer--canvas):not(.pdf-viewer--mobile-scale),
.pdf-viewer:has(iframe[src*='.pdf']):not(.pdf-viewer--canvas) {
  aspect-ratio: 210 / 297;
  background: #525659;
}
.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}
.pdf-viewer-loading,
.pdf-viewer-error {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--kb-muted);
}
.pdf-viewer-open {
  display: block;
  margin: 0;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kb-primary, #c2185b);
  background: #fff;
  border-top: 1px solid var(--kb-border);
  text-decoration: none !important;
}
.pdf-viewer-open:hover {
  background: #fdf6f8;
}
.pdf-viewer--canvas {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
  background: #e8eaed;
}
.pdf-viewer-pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.pdf-viewer-page {
  display: block;
  width: 100% !important;
  height: auto !important;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}
.pdf-viewer--mobile-scale {
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
  background: #525659;
}
.pdf-viewer-scaler {
  transform-origin: top left;
  will-change: transform;
}
.pdf-viewer--mobile-scale .pdf-viewer-scaler iframe {
  min-height: 0;
  border: 0;
  display: block;
}
.kb-prose iframe,
.kb-prose embed,
.kb-prose object {
  max-width: 100%;
  width: 100%;
  border: 0;
}
@media (min-width: 768px) {
  .pdf-viewer iframe {
    min-height: 0;
  }
}
@media (max-width: 767px) {
  .kb-article {
    padding: 1rem;
    overflow-x: clip;
  }
  .kb-container:has(.kb-article) {
    padding-inline: 0.75rem;
  }
  .pdf-viewer {
    max-width: 100%;
    margin-inline: 0;
    border-radius: 10px;
  }
  .pdf-viewer--a4:not(.pdf-viewer--canvas):not(.pdf-viewer--mobile-scale) {
    aspect-ratio: auto;
    min-height: calc((100vw - 2rem) * 297 / 210);
    height: calc((100vw - 2rem) * 297 / 210);
  }
  .pdf-viewer--a4:not(.pdf-viewer--canvas):not(.pdf-viewer--mobile-scale) iframe {
    min-height: 0;
    height: 100%;
  }
  .pdf-viewer-pages {
    padding: 6px;
    gap: 6px;
  }
}

.muted {
  color: var(--kb-muted);
}
.error {
  color: #c0392b;
}
.text-center {
  text-align: center;
}

@media (max-width: 992px) {
  .kb-nav-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  .kb-brand-name {
    max-width: calc(100vw - 7rem);
    font-size: 0.72rem;
    line-height: 1.3;
  }
  html[lang='en'] .kb-header-pill .kb-brand-name {
    font-size: 0.85rem;
    max-width: calc(100vw - 6.5rem);
  }
  .kb-header-pill .kb-brand-logo,
  .kb-header-pill .kb-brand-logo-wrap {
    width: 40px;
    height: 40px;
  }
  .kb-tier1-links {
    display: none;
  }
  .kb-tier1-inner {
    flex-wrap: wrap;
  }
  .kb-tier2-wrap .kb-container {
    padding: 0;
    width: 100%;
  }
  .kb-menubar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    padding: 0.75rem;
    gap: 0;
  }
  .kb-menubar.is-open {
    display: flex;
  }
  .kb-menu-item,
  .kb-menu-trigger {
    justify-content: flex-start;
    border-radius: 6px;
  }
  .kb-menu-sep {
    display: none;
  }
  .kb-menubar .kb-drop,
  .kb-tier2-wrap .kb-drop {
    position: static;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 0 0.5rem 0.5rem;
  }
  .kb-menubar .kb-drop a,
  .kb-tier2-wrap .kb-drop a {
    color: #fff !important;
  }
  .kb-hero {
    min-height: auto;
  }
  .kb-hero-content {
    min-height: auto;
    max-width: 100%;
    padding: 2rem 0 1.5rem;
  }
  .kb-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.75) 55%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }
  .kb-hero-features {
    flex-direction: column;
    gap: 0.85rem;
  }
  .kb-hero-feature {
    max-width: 100%;
  }
  .kb-services {
    grid-template-columns: repeat(2, 1fr);
  }
  .kb-news-grid,
  .kb-news-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kb-rates {
    grid-template-columns: 1fr;
  }
  .kb-layout {
    grid-template-columns: 1fr;
  }
  .kb-layout--news {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .kb-layout--news .kb-news-main {
    order: 2;
    width: 100%;
    min-width: 0;
    grid-column: auto;
    grid-row: auto;
  }
  .kb-layout--news #newsSidebar,
  .kb-layout--news .kb-sidebar {
    order: 1;
    width: 100%;
    grid-column: auto;
    grid-row: auto;
  }
  .kb-layout .kb-sidebar {
    position: static;
    top: auto;
  }
  .kb-news-main,
  .kb-news-list--grid {
    min-width: 0;
    overflow: hidden;
  }
  .kb-footer-body {
    padding: 1.75rem 0 1.5rem;
  }
  .kb-footer-body > .kb-container {
    padding-inline: 1rem;
  }
  .kb-footer-app-block {
    grid-column: 1 / -1;
    margin-top: clamp(-2.5rem, -6vw, -3.5rem);
    padding-inline: 0.25rem;
  }
  .kb-footer-app-showcase {
    max-width: 240px;
  }
  .kb-footer-phones {
    min-height: 140px;
  }
  .kb-footer-phones .kb-footer-phone {
    width: clamp(72px, 22vw, 100px);
  }
  .kb-footer-store-badges {
    max-width: 100%;
    gap: 0.5rem;
  }
  .kb-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .kb-footer-links {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
  }
  .kb-footer-links > div {
    max-width: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .kb-footer h4 {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.95;
  }
  .kb-footer li {
    margin-bottom: 0.3rem;
  }
  .kb-footer li:last-child {
    margin-bottom: 0;
  }
  .kb-footer-contact li {
    line-height: 1.55;
    font-size: 0.92rem;
    opacity: 0.95;
  }
  .kb-footer-phonebar {
    padding: 1.35rem 0 1.5rem;
  }
  .kb-footer-phonebar::after {
    opacity: 0.4;
    width: 200px;
    height: 140px;
  }
  .kb-footer-phonebar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .kb-footer-social {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }
  .kb-footer-social-label {
    grid-column: 1 / -1;
    margin: 0 0 0.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
  }
  .kb-social-link {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    text-align: center;
  }
  .kb-social-link .kb-icon-svg {
    width: 22px;
    height: 22px;
  }
  .kb-footer-phonebar .kb-footer-phone {
    text-align: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 1rem 1.1rem;
  }
  .kb-footer-phone-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
  }
  .kb-footer-phone-num {
    font-size: 1.75rem;
    display: block;
    width: 100%;
  }
  .kb-news-grid,
  .kb-news-list--grid {
    grid-template-columns: 1fr;
  }
  .kb-news-card {
    min-height: 320px;
  }
}

@media (max-width: 576px) {
  .kb-services {
    grid-template-columns: 1fr;
  }
  .kb-footer-body {
    padding: 1.5rem 0 1.25rem;
  }
  .kb-footer-links > div {
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }
  .kb-footer h4 {
    font-size: 0.78rem;
  }
  .kb-footer li a,
  .kb-footer-contact li {
    font-size: 0.88rem;
  }
  .kb-footer-store-badges {
    flex-wrap: nowrap;
  }
  .kb-footer-store {
    padding: 0.45rem 0.5rem;
  }
  .kb-footer-store-hint {
    font-size: 0.58rem;
  }
  .kb-footer-store-name {
    font-size: 0.82rem;
  }
  .kb-social-link span {
    font-size: 0.68rem;
  }
  .kb-footer-phone-num {
    font-size: 1.55rem;
  }
  .kb-footer-tagline {
    padding: 0.75rem 0;
  }
  .kb-footer-tagline p {
    font-size: 0.88rem;
  }
  .kb-footer-bottom {
    padding: 0.75rem 0;
    font-size: 0.8rem;
  }
}
