/* Прибрати стрілки в Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #F8FAFB;
    color: #0F2A3D;
    font-family: Rubik, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none;
}

.auth-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    padding: 20px 30px;
    background: #FFF;
    z-index: 1000;
}

.auth-header__inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-header__logo img {
    height: 42px;
    width: auto;
}

.auth-header__lang select {
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    color: #0F2A3D;
    background: #FFF;
    cursor: pointer;
}

.auth-header__lang select:focus {
    outline: none;
}

.stage {
    max-width: 1230px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 48px 16px 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.col-left,
.col-right {
    flex: 1 1 0;
}

.col-left {
    display: none;
}

.left-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

.logo {
    margin-right: 60px;
    width: 250px;
    height: 250px;
}

.vline {
    width: 1px;
    height: 60vh;
    background: #E6EBF1;
    opacity: 0.9;
}

.card-auth {
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 140px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 50px 0 24px;
    background: transparent;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-left: 30px;
}

.h-auth {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
}

.back {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back:hover {
    background: #F8FAFB;
}

.back-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.form-scroll {
    flex: 1;
    overflow: auto;
    padding-left: 30px;
    padding-right: 50px;
    scrollbar-width: thin;
    scrollbar-color: #FFB800 #EEF2F5;
}

.form-scroll::-webkit-scrollbar {
    width: 8px;
}

.form-scroll::-webkit-scrollbar-track {
    background: #EEF2F5;
    border-radius: 8px;
}

.form-scroll::-webkit-scrollbar-thumb {
    background: #FFB800;
    border-radius: 8px;
}

.ts {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.ts-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 40px 0 10px;
    border: 1px solid #EAEFF4;
    border-radius: 8px;
    background: #FFF;
    cursor: pointer;
}

.ts-text {
    font-size: 14px;
}

.ts-icon {
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 6px;
    background: #FFE08A;
    padding: 6px;
}

.ts-icon img {
    width: 24px;
    height: 24px;
}

.ts-icon.phys {
    background: #90E4FF;
}

.ts-icon.jur {
    background: #FFB46F;
}

.ts-icon.fop {
    background: #FFD465;
}

.ts-caret {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    transition: transform .15s;
}

.ts-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #FFF;
    border: 1px solid #E4E8EE;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
    z-index: 20;
}

.ts-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.ts-item:hover {
    background: #F8FAFB;
}

#ts-open:checked~.ts-control .ts-caret {
    transform: rotate(180deg);
}

#ts-open:checked~.ts-menu {
    display: block;
}

.ts-current {
    display: none;
    align-items: center;
    gap: 10px;
}

.ts-phys {
    display: flex;
}

.ts:has(#pt-jur:checked) .ts-phys,
.ts:has(#pt-fop:checked) .ts-phys {
    display: none;
}

.ts:has(#pt-jur:checked) .ts-jur {
    display: flex;
}

.ts:has(#pt-fop:checked) .ts-fop {
    display: flex;
}

#pt-phys:checked~.ts-menu,
#pt-jur:checked~.ts-menu,
#pt-fop:checked~.ts-menu {
    display: none;
}

.pane {
    display: none;
}

.pane.active {
    display: block;
}

.card-auth:has(#pt-phys:checked) #pane-phys {
    display: block;
}

.card-auth:has(#pt-jur:checked) #pane-jur {
    display: block;
}

.card-auth:has(#pt-fop:checked) #pane-fop {
    display: block;
}

#pane-jur-address {
    display: none;
}

.form-label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 400;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 10px 12px 10px 16px;
    border: 1px solid #EAEFF4;
    border-radius: 8px;
    font-size: 14px;
}

.form-control::placeholder {
    color: #8AA3B9;
}

.input-affix {
    position: relative;
}

.affix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.affix.flag {
    left: 8px;
    height: 28px;
    padding: 4px 8px;
    gap: 6px;
    background: #F2F6FA;
    color: #4A5B6C;
    font-size: 12px;
    font-weight: 500;
}

.affix-flag img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

.pl-flag {
    padding-left: 90px;
}

.affix.pen,
.affix.eye {
    right: 10px;
    width: 24px;
    height: 24px;
}

.affix.eye {
    background: #FFF;
    cursor: pointer;
}

.affix.pen::before,
.affix.eye::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: #EAEFF4;
}

.select-wrap {
    position: relative;
}

.custom-select {
    width: 100%;
    height: 44px;
    padding: 10px 44px 10px 56px;
    border: 1px solid #E4E8EE;
    border-radius: 8px;
    background: #FFF;
    color: #0F2A3D;
    font-size: 14px;
    appearance: none;
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6B7785;
    border-bottom: 2px solid #6B7785;
    transform: translateY(-60%) rotate(45deg);
}

.select-wrap::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #CFE6FF;
    box-shadow: inset 0 0 0 1px #BBD6F5;
}

.card-auth:has(#type option[value="jur"]:checked) .select-wrap::before {
    background: #FFE08A;
    box-shadow: inset 0 0 0 1px #FFD35A;
}

.card-auth:has(#type option[value="fop"]:checked) .select-wrap::before {
    background: #FFF1C7;
    box-shadow: inset 0 0 0 1px #FFD35A;
}

.phone-group {
    display: flex;
    gap: 6px;
}

.phone-prefix,
.phone-number {
    height: 44px;
    border: 1px solid #E4E8EE;
    border-radius: 6px;
    font-size: 14px;
}

.phone-prefix {
    width: 40%;
    color: #0F2A3D;
}

.phone-number {
    flex: 1;
    padding: 10px 12px;
}

.btn-submit {
    height: 44px;
    margin-top: 30px;
    border-radius: 6px;
    border: 1px solid #E29500;
    background: #FFB800;
    color: #0F2A3D;
    font-weight: 500;
}

.btn-submit:hover {
    background: #FFCF4D;
}

.btn-submit:disabled {
    border-color: #EAEFF4;
    background: #EAEFF4;
    color: #94A2AF;
}

.pane .btn-submit {
    margin-bottom: 40px;
}

.btn-find {
    height: 44px;
    border-radius: 6px;
    border: 1px solid #FFD35A;
    background: #FFB800;
    font-weight: 500;
}

.btn-find-index {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #FFB800;
    background: #FFF8E1;
    color: #0F2A3D;
    font-weight: 400;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, border-color .15s;
}

.btn-find-index:hover {
    background: #FFF3CC;
    border-color: #E6A600;
}

.btn-find-index .icon-external {
    width: 24px;
    height: 24px;
}

.tiny-note {
    margin: 0;
    font-size: 12px;
    color: #7B8794;
}

.steps3 {
    width: 250px;
    margin: 10px 0 25px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steps3 .track {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
}

.steps3 .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #D8DEE6;
    background: #FFF;
}

.steps3 .bar {
    height: 2px;
    background: #D4DCE3;
    border-radius: 2px;
}

.steps3 .labels {
    width: 100%;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.steps3 .labels .lbl {
    color: #8B99A7;
    font-weight: 400;
}

.steps3[data-step="personal"] .dot:first-child {
    border-color: #FFB800;
}

.steps3[data-step="personal"] .labels .lbl:first-child {
    color: #0F2A3D;
    font-weight: 600;
}

.steps3[data-step="address"] .dot:first-child {
    background: #FFB800;
    border-color: #FFB800;
    position: relative;
}

.steps3[data-step="address"] .dot:first-child::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 3px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    transform: rotate(-45deg);
    border-radius: 1px;
}

.steps3[data-step="address"] .dot:last-child {
    background: #FFF;
    border-color: #FFB800;
}

.steps3[data-step="address"] .labels .lbl:first-child {
    color: #0F2A3D;
    font-weight: 400;
}

.steps3[data-step="address"] .labels .lbl:last-child {
    color: #0F2A3D;
    font-weight: 700;
}

.scroll-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 56px;
    background: #FFB800;
    border-radius: 3px;
}

#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 300px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.lock-alert {
    display: flex;
    align-items: flex-start;
    min-width: 280px;
    gap: 10px;
    max-width: 400px;
    padding: 12px 14px 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #0E2B44;
    background: #FEECEC;
    border: 1px solid #F76F6F;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    animation: fadeIn .3s ease-in-out;
}

.lock-alert.hide {
    opacity: 0;
    transform: translateX(100%);
    transition: transform .5s ease-in-out, opacity .5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-wrap {
    width: 100%;
    background: #FFF;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 39px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    background: #FFF;
    font-size: 12px;
    color: #7B8794;
    z-index: 100;
}

.footer span:first-child {
    font-weight: 700;
    margin-right: 20px;
}

.mobile-bar {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 20px;
    background: #FFF;
}

.mobile-bar img {
    width: 140px;
    height: 38px;
}

@media (max-width: 991px) {
    .stage {
        justify-content: center;
        align-items: center;
        padding: 16px 12px 72px;
    }

    .card-auth {
        max-width: 560px;
        margin: 0 auto;
        background: none;
    }

    .form-scroll {
        padding: 0 10px;
    }

    .footer {
        position: static;
        margin-top: 20px;
    }
}

@media (min-width: 992px) {
    .col-left {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 40px;
    }

    .footer-wrap .mobile-bar {
        display: none;
    }
}


/* ===== Mini top banner above header ===== */
.top-mini-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #FFFBF1;
  border-bottom: 1px solid #E6EDF1;
  z-index: 1031;
  display: flex;
  align-items: center;
}

.top-mini-banner__link {
  width: 100%;
  height: 12px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0E2B44;
  font-size: 13px;
  line-height: 1;
}

.top-mini-banner__link:hover {
  background: #F3F6F8;
}

.top-mini-banner__ico,
.top-mini-banner__arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.top-mini-banner__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-header {
  top: 28px;
}

.main-wrapper {
  padding-top: calc(32px + 90px + 28px);
}

/* 3) sidebar також опускаємо */
.sidebar {
  top: calc(90px + 28px);
}

/* 4) якщо хочеш щоб тости не налазили на банер */
#toast-container {
  top: calc(100px + 28px);
}

/* Mobile: менший горизонтальний паддінг */
@media (max-width: 575.98px) {
  .top-mini-banner__link {
    padding: 0 16px;
  }
}