/* ==========================================================================
   Bootstrap 4 Reboot, Grid & Utilities (Оптимизированный базовый срез)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

img {
    vertical-align: middle;
    border-style: none;
}

svg:not(:root) {
    overflow: hidden;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, html [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* --- Container & Grid --- */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    flex: 1;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.col, .col-auto {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

.col-auto {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

/* --- Navbar & Base Utilities --- */
.navbar {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar > .container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: inherit;
    flex-wrap: inherit;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}


.d-inline-block {
    display: inline-block !important;
}

.align-top {
    vertical-align: top !important;
}

.text-center {
    text-align: center !important;
}

.text-white {
    color: #fff !important;
}

.text-light {
    color: #f8f9fa !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.sr-only, .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ctr-text {
    margin-top: 2rem;
}
.navtext {
    display: flex;
    flex-direction: column;
    color: #fff;
    justify-content: center;
    text-wrap: nowrap;
}
.navtext:hover {
    color: #fff;
}

.hdr-logo {
    font-weight: 800;
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}
.hdr-prefix {
    font-weight: 300;
    font-size: 10px;
    line-height: 1.15;
}
.hdr-text {
    font-weight: 300;
    font-size: 10px;
    line-height: 1.15;
}

.hero-section {
    text-align: center;
}

#searchform {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

#searchform input[type="text"] {
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 0;
    border: none;
    border-radius: 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    outline: none;
    transition: all 0.3s ease;
}

#searchform input[type="text"]:focus {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

#searchform button {
    font-weight: 800;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#searchform button:hover {
    transform: translateY(-2px);
}

#searchform button:focus {
    outline: none;
}

.btn-download {
    background-color: #2b8a3e;
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(43, 138, 62, 0.2);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #237032;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 138, 62, 0.3);
}

.btn-download:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(43, 138, 62, 0.2), 0 0 0 4px rgba(43, 138, 62, 0.4);
}


.renewal {
    font-size: 13px;
    color: #666;
    margin: 0 auto 1rem;
}

.page-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

footer {
    font-size: 13px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.header-link {
    display: flex;
    justify-content: flex-end;
}
.header-link a {
    font-size: 0.9em;
    cursor: pointer;
    height: 36px;
    border-radius: 16px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,0.75);
    display: inline-flex;
    color: #fff;
}
.header-link a:hover {
    background-color: rgba(255,255,255,0.75);
    color: #000;
}
.navbarfix {
    margin-top: 90px;
}
.iplink-mobile {
    display: none;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #424448;
    border: 1px solid var(--header-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.iplink-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

@media only screen and (max-width: 991px) {
    .header-link {
        display: none;
    }
    .iplink-mobile {
        display: inline-flex;
    }
}
@media only screen and (max-width: 575px) {
    body {
        font-size: 14px;
    }
    .navlogo {
        padding: 0;
    }
    .ctr-text {
        margin-top: 1rem;
    }
    .navtext {
        text-wrap:wrap;
    }
    .hdr-logo {
        line-height: 1.35;
        font-size: 22px;
    }
    form {
        max-width: 100%;
    }

    footer {
        font-size: 10px;
    }

}



.preloader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: preloaderFadeIn 0.2s ease-out forwards;
}

.preloader__card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    animation: preloaderScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader__percent {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 2px;
}

.preloader__progress-track {
    background: #f1f5f9;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    margin: 18px 0 14px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.preloader__progress-bar {
    background: linear-gradient(90deg, #fce000 0%, #eab308 100%);
    height: 100%;
    border-radius: 999px;
    width: 0%;
    transition: width 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.45);
}

.preloader__text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    min-height: 22px;
    transition: color 0.2s ease;
}

.preloader__subtext {
    font-size: 12.5px;
    font-weight: 400;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

@keyframes preloaderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes preloaderScaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




.alert {
    padding: 20px 24px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    animation: fadeInUp 0.4s forwards ease-out;
}

.alert-danger {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.alert-warning {
    background-color: #fff3bf;
    color: #e67700;
}

.alert-info {
    background-color: #e7f5ff;
    color: #1864ab;
}

.result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 24px;
    margin: 20px auto;
    max-width: 600px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.5s forwards ease-out;
}

.result-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f5;
}

.result-card-header-vehicle {
    justify-content: center;
}

.region-emblem {
    height: 96px;
    width: auto;
    object-fit: contain;
}

.result-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-card-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    /* margin-bottom: 20px; */
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f5;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    color: #212529;
    font-weight: 600;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-active {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.badge-inactive {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.badge-carrier {
    background-color: #fff3bf;
    color: #e67700;
}

.card-separator {
    height: 16px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-copyright-text {
    margin-bottom: 0.5em;
    font-size: 13px;
}
.footer-disclaimer-text {
    margin-bottom: 0;
    font-size: 10px;
}