@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

a:hover,
a {
    text-decoration: none;
}

:focus {
    outline: 0;
}

ul {
    list-style-type: none;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
html {
    height: 100%;
}

body {
    font-family: "Onest", sans-serif;
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    color: rgb(26, 26, 26);
    -webkit-text-size-adjust: 100%;
    background: #fff url(../images/bg.svg) 50% 50% no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-weight: 400;
}
@media (max-width: 680px) {
    body {
        background: transparent;
    }
}

.wrapper {
    padding: 64px 0;
}
.wrapper--center {
    display: flex;
    align-items: center;
    min-height: 100vh;
}
@media (max-width: 680px) {
    .wrapper {
        padding: 0;
    }
}

.wrap {
    max-width: 740px;
    background: rgb(255, 255, 255);
    -webkit-backdrop-filter: blur(27px);
    backdrop-filter: blur(27px);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.07);
    padding: 48px 64px;
    margin: 0 auto;
    border-radius: 16px;
}
.wrap--sm {
    max-width: 636px;
}

.wrap--xs {
    width: 100%;
    max-width: 636px;
    padding: 64px 48px;
    box-sizing: border-box;
    margin: 0 auto;
}
@media (max-width: 680px) {
    .wrap {
        padding: 48px 16px;
        box-shadow: none;
    }
}

h1 {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 24px;
}
@media (max-width: 680px) {
    h1 {
        font-size: 32px;
    }
}

p {
    font-size: 24px;
    font-weight: 600;
    line-height: 150%;
    text-align: center;
    margin-bottom: 16px;
}
p br {
    display: none;
}
@media (max-width: 680px) {
    p {
        font-size: 18px;
        margin-bottom: 24px;
    }
    p br {
        display: block;
    }
    .wrap {
        padding: 48px 16px;
        box-shadow: none;
    }

    .wrap--xs {
        padding: 32px 16px;
    }
}

.back {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}
.back:before {
    content: "";
    width: 100%;
    height: 1px;
    background: rgb(229, 229, 229);
    position: absolute;
    top: 17px;
    left: 0;
}
.back span {
    position: relative;
    z-index: 9;
    display: inline-block;
    padding: 0 8px;
    background: #fff;
}
.back a {
    position: relative;
    z-index: 9;
    padding: 0 12px;
    background: #fff;
    border: 1px solid rgb(229, 229, 229);
    height: 36px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: rgb(26, 26, 26);
    border-radius: 12px;
    transition: 0.5s;
}
@media (max-width: 680px) {
    .back a {
        font-size: 14px;
    }
}
.back a:hover {
    border-color: rgb(26, 26, 26);
}

.project-start {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    line-height: 150%;
    text-align: center;
    margin-bottom: 24px;
}
@media (max-width: 680px) {
    .project-start {
        font-size: 14px;
    }
}
.project-start:before {
    content: "";
    width: 100%;
    height: 1px;
    background: rgb(229, 229, 229);
    position: absolute;
    top: 12px;
    left: 0;
}
.project-start span {
    position: relative;
    z-index: 9;
    display: inline-block;
    padding: 0 8px;
    background: #fff;
}

.gift {
    padding: 16px;
    background: rgb(255, 247, 237);
    margin-bottom: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-left: 52px;
}
@media (max-width: 680px) {
    .gift {
        padding: 12px 12px 12px 48px;
    }
}
.gift .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 680px) {
    .gift .icon {
        left: 10px;
    }
}
.gift .icon img {
    display: block;
}
.gift span {
    color: rgb(248, 68, 22);
    font-weight: 700;
}

.bonus {
    padding: 16px;
    background: rgb(242, 250, 235);
    position: relative;
    margin-bottom: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    padding-left: 52px;
}
@media (max-width: 680px) {
    .bonus {
        padding: 12px 12px 12px 48px;
    }
}
.bonus .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 680px) {
    .bonus .icon {
        left: 10px;
    }
}
.bonus .icon img {
    display: block;
}
.bonus span {
    color: rgb(22, 163, 74);
    font-weight: 700;
}

.form {
    padding: 16px 0px 0 0px;
}
.form--main {
    padding: 16px 32px 0 32px;
}
@media (max-width: 680px) {
    .form--main {
        padding: 16px 0px 0 0px;
    }
}

.form-group {
    margin-bottom: 16px;
    width: 100%;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}
.form-group label span {
    color: rgb(248, 68, 22);
}
.form-group--adress {
    margin-bottom: 48px;
}
.form-group--adress .form-item {
    padding-top: 24px;
}
.form-group--adress .form-item:first-child {
    padding-top: 0;
}
.form-group--radio {
    margin-bottom: 24px;
}
.form-group--checkbox {
    margin-bottom: 0px;
}
.form-group--checkbox .checkbox-label {
    font-size: 14px !important;
}
.form-group--experience {
    padding-bottom: 0px;
}
.form-group--experience label {
    font-size: 18px;
    margin-bottom: 16px;
}

.form-item {
    width: 100%;
}
.form-item__date {
    position: relative;
}
.form-item__date:before {
    content: "";
    width: 24px;
    height: 24px;
    background: url(../images/calendar-icon.svg) 50% 50% no-repeat;
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 9;
}
@media (max-width: 680px) {
    .form-item__date:before {
        top: 14px;
    }
}
.form-item__description {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: rgb(118, 118, 118);
    margin-top: -10px;
    max-width: 400px;
}
.form-item__password {
    position: relative;
    margin-bottom: 20px;
}
.form-item__password input {
    margin-bottom: 0 !important;
}
.form-item__password-show {
    display: block;
    width: 28px;
    height: 28px;
    background: url(../images/eye-hide.svg) 50% 50% no-repeat;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.5s;
}
.form-item__password-show.show {
    background: url(../images/eye-icon.svg) 50% 50% no-repeat;
}
.form-item__password-show:hover {
    opacity: 1;
}
.form-item__adress {
    position: relative;
}
.form-item__adress-add {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: rgb(59, 130, 246);
    cursor: pointer;
    margin-top: -6px;
    transition: 0.5s;
}

.form-item__adress input[type="text"] {
    text-overflow: ellipsis;
}

.pvz-item input[type="text"] {
    padding-right: 50px;
}

.form-item__adress-add .icon {
    margin-right: 6px;
    width: 20px;
    height: 20px;
    color: rgb(59, 130, 246);
    transition: 0.5s;
}
.form-item__adress-add:hover {
    color: rgb(248, 68, 22);
}
.form-item__adress-add:hover .icon {
    color: rgb(248, 68, 22);
}
.form-item__adress-add.disabled {
    pointer-events: none;
    color: rgb(118, 118, 118);
}
.form-item__adress-add.disabled .icon {
    color: rgb(118, 118, 118);
}
.form-item__delete {
    display: block;
    width: 24px;
    height: 24px;
    background: url(../images/delete-icon.svg) 50% 50% no-repeat;
    position: absolute;
    right: 16px;
    top: 12px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.5s;
}
.form-item__delete:hover {
    opacity: 1;
}
.form-item input {
    font-family: "Onest", sans-serif;
    margin-bottom: 16px;
    width: 100%;
    height: 48px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(229, 229, 229);
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    color: rgb(26, 26, 26);
    transition: 0.5s;
}
@media (max-width: 680px) {
    .form-item input {
        height: 52px;
    }
}
.form-item input:focus {
    border-color: rgb(248, 68, 22);
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 68, 22, 0.2);
}
.form-item input::-moz-placeholder {
    color: rgb(165, 165, 165);
}
.form-item input::placeholder {
    color: rgb(165, 165, 165);
}
.form-item.error input {
    border-color: rgb(239, 68, 68);
    color: rgb(239, 68, 68);
}
.form-item.error .error-text {
    display: block;
}

.error-text {
    display: none;
    margin-top: -10px;
    font-size: 14px;
    color: rgb(239, 68, 68);
}

button,
.btn {
    font-family: "Onest", sans-serif;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    height: 56px;
    background: rgb(248, 68, 22);
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.5s;
}
button:disabled,
.btn:disabled,
button.disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: #e5e5e5;
    color: #767676;
}
button:hover,
.btn:hover {
    background: rgb(234, 76, 0);
}

.radio {
    margin-bottom: 14px;
}
.radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.radio input[type="radio"] + .radio-label {
    font-weight: 400;
    font-size: 16px;
    position: relative;
    padding-left: 32px;
}
.radio input[type="radio"] + .radio-label::-moz-selection {
    background: transparent;
    color: inherit;
}
.radio input[type="radio"] + .radio-label::selection {
    background: transparent;
    color: inherit;
}
.radio input[type="radio"] + .radio-label:before {
    content: "";
    background: transparent;
    border-radius: 100%;
    border: 2px solid rgb(229, 229, 229);
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 2px;
    vertical-align: top;
    cursor: pointer;
    text-align: center;
}
.radio input[type="radio"]:checked + .radio-label:before {
    background-color: transparent;
    border: 6px solid rgb(248, 68, 22);
}

.checkbox {
    margin-bottom: 14px;
}
.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}
.checkbox input[type="checkbox"] + .checkbox-label {
    font-weight: 400;
    font-size: 16px;
    position: relative;
    padding-left: 32px;
}
.checkbox input[type="checkbox"] + .checkbox-label::-moz-selection {
    background: transparent;
    color: inherit;
}
.checkbox input[type="checkbox"] + .checkbox-label::selection {
    background: transparent;
    color: inherit;
}
.checkbox input[type="checkbox"] + .checkbox-label a {
    color: rgb(26, 26, 26);
    border-bottom: 1px solid transparent;
    transition: 0.5s;
}
.checkbox input[type="checkbox"] + .checkbox-label a:hover {
    border-color: rgb(26, 26, 26);
}
.checkbox input[type="checkbox"] + .checkbox-label:before {
    content: "";
    background: transparent url(../images/check.svg) 50% 50% no-repeat;
    border: 2px solid rgb(229, 229, 229);
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 2px;
    margin-right: 12px;
    vertical-align: top;
    cursor: pointer;
    text-align: center;
}
.checkbox input[type="checkbox"]:checked + .checkbox-label:before {
    background-color: rgb(248, 68, 22);
    border-color: rgb(248, 68, 22);
}

.btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-size: 18px;
    color: #fff;
    background: rgb(59, 130, 246);
    border-radius: 12px;
    transition: 0.5s;
}
@media (max-width: 680px) {
    .btn-telegram {
        font-size: 16px;
    }
}
.btn-telegram:hover {
    background: rgb(31, 116, 255);
}
.btn-telegram .icon {
    display: block;
    margin-right: 10px;
}
.btn-telegram .icon img {
    display: block;
}

.small-text {
    display: block;
    text-align: center;
    color: rgb(87, 87, 87);
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
}
@media (max-width: 680px) {
    .small-text {
        font-size: 14px;
    }
    .small-text br {
        display: none;
    }
}

.code-time {
    display: block;
    text-align: center;
    color: rgb(87, 87, 87);
    font-size: 16px;
    line-height: 24px;
    padding-top: 24px;
}

.code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}
.code .input {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(229, 229, 229);
    transition: 0.5s;
    border-radius: 12px;
}
@media (max-width: 680px) {
    .code .input {
        border-radius: 8px;
    }
}
.code .input input {
    font-family: "Onest", sans-serif;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid transparent;
    text-align: center;
    font-size: 32px;
    color: rgb(26, 26, 26);
    transition: 0.5s;
}
@media (max-width: 680px) {
    .code .input input {
        width: 44px;
        font-size: 24px;
        height: 54px;
        border-radius: 8px;
    }
}
@media (max-width: 374px) {
    .code .input input {
        width: 35px;
        font-size: 20px;
        height: 45px;
    }
}
.code .input input:focus {
    outline: none;
    border-color: rgb(248, 68, 22);
    box-shadow: 0 0 0 3px rgba(248, 68, 22, 0.2);
}
.code .sep {
    width: 4px;
    height: 4px;
    min-width: 4px;
    border-radius: 50%;
    margin: 0 10px;
    background: rgb(118, 118, 118);
}
@media (max-width: 680px) {
    .code .sep {
        margin: 0 0;
    }
} /*# sourceMappingURL=styles.css.map */

.code-error {
    color: rgb(239, 68, 68);
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

.resend-link {
    background: none;
    border: none;
    color: rgb(248, 68, 22);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    margin-left: 5px;
}
.resend-link.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}
.resend-link:hover:not(.disabled) {
    color: rgb(234, 76, 0);
    text-decoration: underline;
}

.form-error {
    color: #e53935;
    font-size: 14px;
    margin-top: 8px;
}

.is-error {
    border-color: #e53935;
}

.flatpickr-day.selected {
    background-color: #f84416 !important;
    border-color: #f84416 !important;
    color: #fff;
}

.flatpickr-day.selected:hover {
    background-color: #f84416 !important;
    border-color: #f84416 !important;
}

.suggestions-suggestions {
    border-radius: 12px !important;
    padding: 10px !important;
    border: 1px solid rgb(229, 229, 229) !important;
    box-shadow: none !important;
    margin-top: -15px;
}

.suggestions-promo {
    display: none !important;
}

.suggestions-suggestion {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.suggestions-suggestion:last-child {
    border-bottom: none;
}
.suggestions-suggestion:hover {
    background-color: #f5f5f5;
}

.fio-input {
    margin-top: 15px !important;
}

.logo_block {
    display: flex;
    justify-content: center;
}

.logo {
    transform: scale(0.7);
}

.logout-mobile {
    display: none;
}

@media (max-width: 768px) {
    .logout-desktop {
        display: none;
    }
    .logout-mobile {
        display: block;
    }
}

.city-suggestions {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    width: 74%;
    display: none;
    margin-top: -14px;
}

.city-suggestion {
    padding: 8px 12px;
    cursor: pointer;
}

.city-suggestion:hover {
    background-color: #f5f5f5;
}

.city-suggestion span {
    display: block;
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .city-suggestions {
        width: 92%;
    }
}

input.error {
    border-color: rgb(239, 68, 68);
}

.form-item input[name="first_name"].error ~ input {
    margin-top: 10px;
}

.register-link:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

.card {
    padding-top: 24px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem;
}

.search-container .btn {
    width: 20%;
    min-width: fit-content;
    white-space: nowrap;
    text-align: center;
    padding: 0.75rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.search-container .btn:hover {
    background: #5a67d8;
}

.search-input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-wrapper {
    overflow-x: none;
    padding: 0 1.5rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

th {
    text-align: left;
    padding: 1rem 0.75rem;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

th.sortable:hover {
    background: #e9ecef;
}

th.active-sort {
    background: #f0f2f5;
}

.th-content {
    display: inline-block;
    font-size: 16px;
}

.sort-icon {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

tr:hover td {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.city-name {
    font-weight: 500;
    display: inline-block;
    padding: 0.25rem 0;
    word-break: break-word;
}

.city-active {
    font-weight: 600;
    position: relative;
    cursor: pointer;
}

.city-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.city-active:hover::after {
    transform: scaleX(1);
}

.city-inactive {
    color: #6b7280;
    font-style: italic;
}

.stat-number {
    font-size: 1rem;
    white-space: nowrap;
}

.stat-number.highlight {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

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

.city-row {
    animation: fadeIn 0.3s ease-out;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem 0.75rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }

    .stats-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin: 1rem;
    }

    .search-container .btn {
        width: 100%;
        order: 1;
    }

    .search-input {
        max-width: 100%;
        width: 100%;
        order: 2;
        font-size: 16px;
        padding: 0.7rem 0.75rem;
    }

    .table-wrapper {
        padding: 0 !important;
    }

    th,
    td {
        padding: 16px;
    }

    .th-content {
        font-size: 14px;
    }

    .sort-icon {
        font-size: 0.7rem;
        margin-left: 0.25rem;
    }

    .stat-number {
        font-size: 0.9rem;
    }

    .stat-number.highlight {
        font-size: 1rem;
    }

    .empty-state {
        padding: 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem 0.5rem;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .stats-summary {
        padding: 0.75rem;
    }

    .stat-item {
        padding: 0.6rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .search-container {
        margin: 0.75rem;
        gap: 0.6rem;
    }

    .search-container .btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .search-input {
        padding: 0.6rem 0.75rem;
        font-size: 15px;
    }

    th {
        padding: 16px;
    }

    td {
        padding: 16px;
    }

    .th-content {
        font-size: 12px;
    }

    .city-name {
        font-size: 0.85rem;
    }

    .sort-icon {
        font-size: 0.6rem;
        width: 12px;
    }

    .stat-number {
        font-size: 0.85rem;
    }

    .stat-number.highlight {
        font-size: 0.9rem;
    }

    .empty-state {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .city-active::after {
        height: 1px;
    }
}

@media (max-width: 360px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .header p {
        font-size: 0.8rem;
    }

    .th-content {
        font-size: 11px;
    }

    .city-name {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 0.8rem;
    }

    .sort-icon {
        margin-left: 0.15rem;
    }

    .search-container {
        margin: 0.5rem;
        gap: 0.5rem;
    }

    .search-container .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .search-input {
        padding: 0.5rem 0.6rem;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.5rem 0.25rem;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .header p {
        font-size: 0.75rem;
    }

    .stats-summary {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .table-wrapper {
        padding: 0;
    }

    .th-content {
        font-size: 10px;
    }

    .city-name {
        font-size: 0.7rem;
    }

    .sort-icon {
        font-size: 0.5rem;
        width: 10px;
        margin-left: 0.1rem;
    }

    .stat-number {
        font-size: 0.7rem;
    }

    .stat-number.highlight {
        font-size: 0.8rem;
    }

    .empty-state {
        padding: 1rem;
        font-size: 0.8rem !important;
        text-align: start;
    }

    th[data-sort="total"] .th-content {
        display: none;
    }
    th[data-sort="total"]::before {
        content: "ПВЗ";
        font-size: 10px;
    }

    th[data-sort="workers"] .th-content {
        display: none;
    }
    th[data-sort="workers"]::before {
        content: "Сотрудники";
        font-size: 10px;
    }

    .search-container {
        margin: 0.5rem 0.25rem;
    }

    .search-container .btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .search-input {
        padding: 0.5rem;
        font-size: 14px;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .container {
        padding: 0.75rem;
    }

    .header {
        margin-bottom: 1rem;
    }

    .stats-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-container {
        margin: 0.75rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .table-wrapper {
        padding: 0;
    }

    .th-content {
        font-size: 10px;
    }

    .city-name {
        font-size: 0.7rem;
    }

    .sort-icon {
        font-size: 0.5rem;
        width: 10px;
        margin-left: 0.1rem;
    }

    .stat-number {
        font-size: 0.7rem;
    }

    .stat-number.highlight {
        font-size: 0.8rem;
    }

    .empty-state {
        padding: 1rem;
        font-size: 0.8rem !important;
        text-align: start;
    }
}

@media (hover: none) and (pointer: coarse) {
    th.sortable {
        padding: 0.75rem 0.5rem;
    }

    .sort-icon {
        padding: 4px;
    }

    .city-active {
        padding: 2px 0;
    }
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: #f5f5f5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    position: relative;
    min-height: 500px;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    margin-top: 15px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.city-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.city-stats span {
    font-size: 14px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        width: auto;
    }

    .map-container {
        height: 400px;
    }

    .filter-buttons {
        justify-content: center;
    }
}

#statsTable {
    width: 100%;
    table-layout: fixed;
}

.col-city {
    width: 100px;
}

.col-total {
    width: 70px;
}

.col-workers {
    width: 90px;
}

#statsTable td:first-child,
#statsTable th.col-city {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.under_text {
    margin-top: -10px;
    margin-bottom: 30px;
    font-size: 16px;
}

.share_stat {
    text-align: center;
    padding: 24px;
    width: 100%;
}
.share_stat span {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .col-city {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .col-city {
        width: 140px;
    }

    .col-total {
        width: 90px;
    }

    .col-workers {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .col-city {
        width: 120px;
    }

    .col-total {
        width: 50px;
    }

    .col-workers {
        width: 90px;
    }

    .under_text,
    .share_stat {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .table-wrapper {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
    }

    .stat-page-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .logo_block,
    .wrap > p,
    .wrap > .under_text,
    .search-container,
    .share_stat {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .search-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto !important;
    }

    th.sortable {
        padding: 16px;
    }
}

@media (min-width: 740px) and (max-width: 768px) {
    .wrap {
        max-width: calc(100% - 32px);
        padding-left: 16px;
        padding-right: 16px;
    }

    .table-wrapper {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: auto !important;
    }
}

@media (max-width: 481px) {
    .table-wrapper {
        padding: 0 !important;
    }

    th.sortable {
        padding: 16px;
    }
}

@media (max-width: 320px) {
    .table-wrapper {
        padding: 0 !important;
    }
    th.sortable {
        padding: 16px;
    }
}

.text-success {
    color: rgb(22, 163, 74);
}

.stat-btn {
    background: rgb(81, 188, 64);
}

.stat-btn:hover {
    background: rgb(75, 175, 60);
}

.underform-text {
    font-size: 12px;
    text-align: center;
    font-weight: 200;
    margin-top: 30px;
    padding-bottom: 20px;
}

.btnDobule {
    font-family: "Onest", sans-serif;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    height: 56px;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.5s;
}

.btnDobule:hover {
    filter: brightness(0.9);
}
.buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    text-transform: uppercase;
}

.btn--max {
    background: linear-gradient(90deg, #385afb, #8750db);
    font-size: 15px;
}

.btn--telegram {
    background: linear-gradient(90deg, #229ed9, #0088cc);
    font-size: 15px;
}

.buttons-row .icon {
    display: flex;
    align-items: center;
    margin-right: 6px;
}

@media (max-width: 383px) {
    .form-links {
        justify-content: center !important;
    }
}

@media (max-width: 450px) {
    .form-links {
        flex-direction: column;
        align-items: center !important;
    }
}

@media (max-width: 680px) {
    .buttons-row {
        display: flex;
        gap: 12px;
        justify-content: center;
        text-transform: uppercase;
        flex-direction: column;
    }
}
