.public-footer{--footer-ink:#f4f8ff;--footer-muted:#aebfdb;--footer-line:rgba(194,214,244,.17);padding:54px 0 26px;color:var(--footer-ink);background:#061b4e;font-family: Onest, Manrope, Inter,Aptos,"Segoe UI",Arial,sans-serif}
.public-footer *{box-sizing:border-box}
.public-footer a{color:inherit;text-decoration:none;transition:color .15s ease}
.public-footer a:hover{color:#ffffff;text-decoration:underline;text-underline-offset:3px}
.public-footer a:focus-visible{border-radius:4px;outline:3px solid #55d97c;outline-offset:3px}
.public-footer__container{width:100%;max-width:min(1360px,100%);margin-inline:auto;padding-inline:clamp(14px,3.5vw,32px);box-sizing:border-box}
.public-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1.15fr 1fr 1.1fr;gap:36px}
.public-footer__brand{display:inline-flex;align-items:center;gap:12px;margin-bottom:18px;color:#fff;text-decoration:none}
.public-footer__brand strong{font-size:22px;font-weight:900;letter-spacing:-.03em;color:#fff;line-height:1.1}
.public-footer__brand small{font-size:8px;font-weight:800;letter-spacing:.08em;color:#9eb2d8;text-transform:uppercase;margin-top:3px}
.public-footer__mark{width:42px;height:42px;min-width:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.public-footer__mark svg{width:100%;height:100%;display:block}
.public-footer__identity>p{max-width:320px;margin:0 0 18px;color:#fff;font-size:13px;line-height:1.55}
.public-footer__details{display:grid;gap:8px;margin:0}
.public-footer__details div{display:grid;grid-template-columns:92px 1fr;gap:8px}
.public-footer__details dt,.public-footer__details dd{margin:0;color:var(--footer-muted);font-size:12px;line-height:1.45}
.public-footer__details dt{font-weight:700}
.public-footer__column{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:10px}
.public-footer__column>strong{margin-bottom:6px;color:#fff;font-size:14px;font-weight:750;letter-spacing:-.01em}
.public-footer__column>a,.public-footer__column>p{margin:0;color:var(--footer-muted);font-size:13px;line-height:1.55}
.public-footer__column>a{display:inline-flex;min-height:28px;align-items:center}
.public-footer__column p a{color:#fff;font-weight:800}
.public-footer__addresses p{overflow-wrap:anywhere}
.public-footer__bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:38px;padding-top:22px;border-top:1px solid var(--footer-line);color:var(--footer-muted);font-size:12px;line-height:1.5}
.public-footer__bottom nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:18px}

@media(max-width:1100px){
  .public-footer__grid{grid-template-columns:1.4fr repeat(2,1fr);gap:32px 24px}
  .public-footer__addresses{grid-column:2/-1}
}
.public-footer__partners{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
  margin-bottom:12px;
}
.partner-badge{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 11px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
  border-radius:9px;
  text-decoration:none;
  transition:all .2s ease;
}
.partner-badge:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(56,189,248,.4);
  transform:translateX(2px);
}
.partner-badge__logo-box{
  width:86px;
  height:26px;
  min-width:86px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-shrink:0;
}
.partner-badge__logo{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.partner-badge__logo--kase{
  max-height:18px;
}
.partner-badge__desc{
  font-size:10.5px;
  font-weight:700;
  color:#a5bfe8;
  white-space:nowrap;
}
.partner-badge:hover .partner-badge__desc{color:#38bdf8}

.public-footer__antifraud{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:14px;
  padding:12px 14px;
  background:linear-gradient(135deg,rgba(234,179,8,.12) 0%,rgba(202,138,4,.05) 100%);
  border:1px solid rgba(234,179,8,.32);
  border-radius:11px;
  text-decoration:none;
  transition:all .2s ease;
}
.public-footer__antifraud:hover{
  background:linear-gradient(135deg,rgba(234,179,8,.2) 0%,rgba(202,138,4,.1) 100%);
  border-color:#eab308;
  transform:translateY(-1px);
}
.antifraud-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  margin-top:2px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.antifraud-svg{
  width:20px;
  height:20px;
  display:block;
}
.antifraud-text{display:flex;flex-direction:column;gap:4px}
.antifraud-text strong{color:#fef08a;font-size:12px;font-weight:800;line-height:1.25}
.antifraud-text small{color:#fef9c3;opacity:.88;font-size:10.5px;line-height:1.4}

@media(max-width:760px){
  .public-footer{padding:36px 0 24px}
  .public-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}
  .public-footer__identity{grid-column:1/-1;margin-bottom:6px}
  .public-footer__identity>p{max-width:100%}
  .public-footer__column>a{min-height:36px;padding:3px 0}
  .public-footer__protection{grid-column:1/-1;border-top:1px solid var(--footer-line);padding-top:20px}
  .public-footer__partners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .public-footer__addresses{grid-column:1/-1;border-top:1px solid var(--footer-line);padding-top:20px}
  .public-footer__bottom{flex-direction:column;align-items:flex-start;gap:14px;margin-top:28px;padding-top:18px}
  .public-footer__bottom nav{flex-direction:column;gap:8px;width:100%}
  .public-footer__bottom nav a{min-height:34px;display:inline-flex;align-items:center}
}

@media(max-width:560px){
  .public-footer__partners{grid-template-columns:1fr}
}

@media(max-width:380px){
  .public-footer__details div{grid-template-columns:80px 1fr}
  .public-footer__brand strong{font-size:19px}
  .public-footer__column>strong{font-size:13px}
  .public-footer__column>a{font-size:12px}
}

/* ==========================================================================
   Mobile Bottom Tab Bar (Release P12)
   ========================================================================== */
.v2-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .public-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .v2-tabbar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(210, 225, 245, 0.85);
    box-shadow: 0 -4px 18px rgba(7, 29, 84, 0.06);
    font-family: Onest, Manrope, Inter, Aptos, "Segoe UI", Arial, sans-serif;
  }

  .v2-tabbar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 58px;
    align-items: center;
    max-width: 540px;
    margin: 0 auto;
  }

  .v2-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #55719d;
    text-decoration: none !important;
    background: none;
    border: none;
    padding: 5px 0 4px;
    gap: 3px;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .v2-tabbar__item:active,
  .v2-tabbar__item.is-active {
    color: #075ef7;
  }

  .v2-tabbar__icon {
    width: 22px;
    height: 22px;
    display: block;
    stroke-width: 2;
    transition: transform 0.15s ease;
  }

  .v2-tabbar__item:active .v2-tabbar__icon {
    transform: scale(0.92);
  }

  .v2-tabbar__label {
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1;
  }

  .v2-tabbar__item--calc {
    color: #075ef7;
  }

  .v2-tabbar__item--calc .v2-tabbar__label {
    font-weight: 850;
  }

  @media (max-height: 480px) {
    .v2-tabbar {
      display: none !important;
    }
  }
}

/* ==========================================================================
   Halyk-Style Off-Canvas Side Drawer (Release P13)
   ========================================================================== */
.v2-drawer-backdrop,
.v2-drawer {
  display: none;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 768px) {
  /* Hide legacy dropdown menus in favor of side drawer */
  .v2-mobile-nav,
  .inner-mobile-nav {
    display: none !important;
  }

  .v2-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(6, 27, 78, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .v2-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .v2-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    width: min(340px, 86vw);
    height: 100dvh;
    max-height: 100dvh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(6, 27, 78, 0.18);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    visibility: hidden;
    font-family: Onest, Manrope, Inter, Aptos, "Segoe UI", Arial, sans-serif;
  }

  .v2-drawer.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .v2-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f8;
    flex-shrink: 0;
    background: #ffffff;
  }

  .v2-drawer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
  }

  .v2-drawer__logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .v2-drawer__logo svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .v2-drawer__titles {
    display: flex;
    flex-direction: column;
  }

  .v2-drawer__titles strong {
    font-size: 16px;
    font-weight: 850;
    color: #071d54;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .v2-drawer__titles small {
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #50688f;
    text-transform: uppercase;
    margin-top: 2px;
  }

  .v2-drawer__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e1ecf8;
    background: #f4f8fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #50688f;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .v2-drawer__close:active {
    background: #e5effd;
    color: #075ef7;
    transform: scale(0.92);
  }

  .v2-drawer__close svg {
    width: 18px;
    height: 18px;
  }

  .v2-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .v2-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #071d54;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 650;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .v2-drawer__link:active {
    background: #f0f5fc;
    color: #075ef7;
  }

  .v2-drawer__link.is-active {
    background: rgba(7, 94, 247, 0.07);
    color: #075ef7;
    font-weight: 750;
  }

  .v2-drawer__link--accent {
    background: linear-gradient(135deg, rgba(7, 94, 247, 0.08) 0%, rgba(18, 189, 74, 0.08) 100%);
    border: 1px solid rgba(7, 94, 247, 0.16);
    margin-bottom: 4px;
  }

  .v2-drawer__link--accent:active {
    background: linear-gradient(135deg, rgba(7, 94, 247, 0.14) 0%, rgba(18, 189, 74, 0.14) 100%);
  }

  .v2-drawer__link-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
  }

  .v2-drawer__link-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .v2-drawer__icon {
    width: 20px;
    height: 20px;
    color: #55719d;
    flex-shrink: 0;
    stroke-width: 2;
  }

  .v2-drawer__link.is-active .v2-drawer__icon,
  .v2-drawer__link--accent .v2-drawer__icon {
    color: #075ef7;
  }

  .v2-drawer__badge {
    font-size: 10.5px;
    font-weight: 750;
    color: #075ef7;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(7, 94, 247, 0.22);
    flex-shrink: 0;
  }

  .v2-drawer__chevron {
    width: 16px;
    height: 16px;
    color: #a4b7d3;
    flex-shrink: 0;
    stroke-width: 2.5;
  }

  .v2-drawer__footer {
    flex-shrink: 0;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #edf2f8;
    background: #f9fbfe;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .v2-drawer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .v2-drawer__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #071d54;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 800;
    white-space: nowrap;
  }

  .v2-drawer__phone svg {
    width: 18px;
    height: 18px;
    color: #12bd4a;
    flex-shrink: 0;
  }

  .v2-drawer__schedule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #0d8234;
    font-weight: 600;
    white-space: nowrap;
    background: #eaf6ed;
    padding: 3px 8px;
    border-radius: 6px;
  }

  .v2-drawer__schedule.is-closed {
    color: #475569;
    background: #f1f5f9;
  }

  .v2-drawer__schedule .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .v2-drawer__schedule .status-dot--open {
    background: #12bd4a;
    box-shadow: 0 0 0 2px rgba(18, 189, 74, 0.25);
    animation: drawerPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .v2-drawer__schedule .status-dot--closed {
    background: #94a3b8;
  }

  @keyframes drawerPulse {
    0%, 100% {
      box-shadow: 0 0 0 2px rgba(18, 189, 74, 0.25);
      opacity: 1;
    }
    50% {
      box-shadow: 0 0 0 5px rgba(18, 189, 74, 0);
      opacity: 0.85;
    }
  }

  .v2-drawer__controls {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .v2-drawer__lang {
    display: inline-flex;
    padding: 2px;
    border-radius: 8px;
    background: #e9eff8;
    border: 1px solid #dce6f4;
  }

  .v2-drawer__lang button {
    padding: 4px 10px;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 11.5px;
    font-weight: 750;
    color: #50688f;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .v2-drawer__lang button.is-active {
    background: #075ef7;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(7, 94, 247, 0.25);
  }

  .v2-drawer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    background: #075ef7;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 750;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .v2-drawer__cta:active {
    background: #054ecf;
    transform: scale(0.98);
  }
}


