@font-face{
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Manrope-Regular.woff2") format("woff2");
}

@font-face{
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Manrope-Medium.woff2") format("woff2");
}

@font-face{
  font-family: "BebasNeue";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/BebasNeue-Bold.woff2") format("woff2");
}

:root {
	--responsive-ratio: calc( (100vw - 375px) / calc(1300px - 375) );
    --error-color: #fc444d;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.ls-profile-btn {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 18px;
    border-radius: 40px;
    border: none;
    outline: none;
    font-size: 24px;
    line-height: 1;
    font-family: "BebasNeue";
    font-weight: 700;
    text-transform: uppercase;
    transition: all .3s;
    background: linear-gradient(180deg, #FFF582 0%, #FFD300 3%, #FFD300 97%, #806A00 100%);
    min-width: 220px;
    text-align: center;
	flex-grow: 1;
}

.ls-profile-btn.sm {
        padding: 13px;
        font-size: 20px;
    }

@media (hover: hover) and (pointer: fine) {
        .ls-profile-btn:hover:not(:disabled) {
            cursor: pointer;
            opacity: .8;
        }

        .ls-profile-btn:disabled {
            cursor: not-allowed;
            opacity: .5;
        }
    }

#ls-profile-wrapper {
    flex-grow: 1;
    color: #202020;
	margin-bottom: 50px;
}

#ls-profile-wrapper * {
        box-sizing: border-box;
        font-family: "Manrope";
    }

#footer {
    display: none !important;
}

#login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 0;
}

@media(min-width: 992px) {

#login-wrapper {
        border-radius: 20px;
        min-height: calc(100svh - 200px);
        background-color: #f9f9f9;
}
    }

/*  */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}
@media(min-width: 992px) {
#login-form {
        max-width: 400px;
}
    }

/*  */

#personal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media(min-width: 769px) {

#personal-form {
        display: grid;
        grid-template-columns: 1fr 1fr 220px;
        align-items: flex-end;
}
    }

.input-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
	padding: 10px;
}

.input-block .label {
        font-weight: 500;
        font-size: 18px;
    }

.site-field {
    padding: 7px 13px;
    font-family: "Manrope";
    font-size: 16px;
    line-height: 150%;
    border-radius: 8px;
    border: 1px solid #CFCFCF;
    color: #2B2B2B;
    width: 100%;
    max-width: 100%;
    transition: all .3s;
}

.site-field:read-only {
        cursor: not-allowed;
        opacity: .5;
    }

.site-field:focus-visible:not(:read-only) {
        border-color: #2B2B2B;
    }

.site-field::placeholder {
        color: #CFCFCF;
    }

.site-field.error {
        border-color: #fc444d !important;
    }

.site-field:-webkit-autofill,.site-field:-webkit-autofill:hover,.site-field:-webkit-autofill:focus {
		-webkit-text-fill-color: #2B2B2B !important;
		-webkit-box-shadow: unset;
		transition: background-color 5000s ease-in-out 0s;
	}

.login-page-title {
    font-size: clamp(28px, calc(28px + 12 * var(--responsive-ratio)), 40px);
    line-height: 125%;
    margin-bottom: 32px;
    font-weight: 500;
}

.profile-page-title {
    font-size: clamp(24px, calc(24px + 4 * var(--responsive-ratio)), 28px);
    line-height: 125%;
    margin-bottom: 25px;
    font-weight: 500;
}

.profile-page-subtitle {
    font-size: clamp(19px, calc(19px + 4 * var(--responsive-ratio)), 18px);
    line-height: 125%;
    font-weight: 600;
}

/*  */
.account-page-note {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        text-align: center;
        line-height: 140%;
        color: #000000;
        background-color: #F6FDE8;
        z-index: 3;
    }
.account-page-note a {
        text-decoration: underline;
        font-weight: 500;
        cursor: pointer;
    }
.account-page-note.error {
        background-color: var(--error-color);
        color: #fff;
    }
.account-page-note.success {
        background-color: lightgreen;
        color: #000;
    }

.site-field-password-wrap {
		position: relative;
	}

.site-field-password-wrap input {
		padding-right: 50px;
	}

.site-field-password-wrap .icon {
		position: absolute;
		padding: 0 12px;
		width: 44px;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		background-image: url('../images/eye-off.svg');
		background-size: 20px;
		background-position: center;
		background-repeat: no-repeat;
		transition: all .3s;
	}

.visible:is(.site-field-password-wrap .icon) {
			background-image: url('../images/eye-on.svg');
		}

@media (hover: hover) and (pointer: fine) {
		.site-field-password-wrap .icon:hover {
			cursor: pointer;
		}
	}

/*  */
.account-grid {
        display: grid;
        gap: 20px;
    }
@media(min-width: 992px) {
        .account-grid {
            grid-template-columns: 290px 1fr;
            align-items: flex-start;
        }
    }
@media(max-width: 992px) {
        .account-grid {
            margin-left: calc( 15px * -1 ) !important;
		    margin-right: calc( 15px * -1 ) !important;
        }
    }

#account-navigation {
        background-color: #fff;
        display: flex;
    }

#account-navigation .account-navigation-link {
        opacity: .7;
    }

.current:is(#account-navigation .account-navigation-link) {
            opacity: 1;
            background-color: #FFD300;
        }

@media (hover: hover) and (pointer: fine) {
        #account-navigation .account-navigation-link:hover {
            opacity: 1;
            background-color: #FFD300;
            cursor: pointer;
        }
    }

@media(min-width: 992px) {
        #account-navigation {
            padding: 24px;
            /*height: calc(100svh - 200px);*/
            overflow-y: auto;
            border-radius: 16px;
            flex-direction: column;
            position: sticky;
            top: 152px;
            z-index: 9;
        }

        #account-navigation .account-navigation-link {
            display: grid;
            grid-template-columns: 20px 1fr; 
            gap: 10px;
            align-items: center;
            padding: 14px;
            border-radius: 6px;
            transition: all .3s;
        }

		.account-navigation-link--margin:is(#account-navigation .account-navigation-link) {
			margin-top: 40px;
		}

        #account-navigation .account-navigation-link__text {
            font-weight: 500;
            font-size: 14px;
            line-height: 140%;
        }

        #account-navigation .account-navigation__title {
            margin-bottom: 20px;
            font-weight: 500;
            font-size: 20px;
        }

        #account-navigation .account-navigation-link.mobile-tab {
            display: none;
        }
    }

@media(max-width: 991px) {
        #account-navigation {
            position: fixed;
            z-index: 50;
            left: 0;
            right: 0;
            bottom: 0;
            align-items: center;
        }

        #account-navigation .account-navigation-link__text,#account-navigation .account-navigation__title {
            display: none;
        }

        #account-navigation .account-navigation-link {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 60px;
            flex-grow: 1;
        }

        #account-navigation .account-navigation-link.mobile-tab {
            display: flex;
        }
    }

#account-main {
		position: relative;
        padding: 32px 15px 92px;
        background-color: #fff;
        min-height: calc(100svh - 120px);
        container-name: account-main;
        container-type: inline-size;
    }

@media(min-width: 992px) {

	#account-main {
        padding: 32px 40px;
        background-color: #fff;
        border-radius: 16px;
        min-height: auto;
    }
}

.account-tab:not(.active) {
    display: none;
}

.account-deals {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.profile-docs {
    display: flex;
    flex-direction: column;
    gap: 20px;
	margin: 20px 10px;
}
/*
.profile-docs .doc-item {
        display: flex;
        flex-direction: row;
        gap: 5px;
    }
*/
.profile-docs .doc-title {
        font-weight: 500;
		text-decoration: underline;
    }
	
.profile-docs a.doc-title {
		text-decoration: underline;
    }
.profile-docs a.doc-title:hover {
        color: #555;
		text-decoration: none;
    }

.profile-docs .doc-meta {
        color: #8696a4;
        font-size: 14px;
    }

.profile-docs .doc-link-download {
    color: #0063c4;
    margin-left: 6px;
	vertical-align: sub;
}

.profile-docs .doc-link-download:hover {
    color: #004282;
}


@media(max-width: 991px) {
    body #header {
        margin-bottom: 0;
    }

    .lb-widget {
        display: none !important;
    }
}


#auth-form-container {
	min-width: 40%;
	position: relative;
}

#phone-auth-form {
	display: flex;
	flex-direction: column;
}

#phone-auth-form label {
	padding: 15px 50px 25px;
	text-align: center;
	max-width: 500px;
}

#phone-auth-form label a {
	color: blue;
	text-decoration: none;
}
#phone-auth-form label a:hover {
	text-decoration: underline;
}

#code-verify-form {
	display: none;
	flex-direction: column;
	gap: 10px;
}

#code-verify-form .mg-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

#auth-messages {
	position: absolute;
}

/* StatusBar */
.wrapper-status {
	padding: 10px;
	min-height: auto;
	margin-bottom: 18px;
	margin-top: 20px;
	background-color: #fff;
	border-radius: 16px;
}

.progress-bar {
	display: flex;
	border-radius: 8px;
	width: 100%;
	height: 48px;
}

@media(max-width: 992px) {
	.progress-bar {
		margin-top: 20px;
		margin-left: calc( 15px * -1 ) !important;
		margin-right: calc( 15px * -1 ) !important;
	}
	
	.wrapper-status {
		display: none;
	}
}

.status-block {
	flex: 1;
	align-items: center;
	text-align: center;
	padding: 0 20px 0 24px;
	border-radius: 10px;
	white-space: nowrap;
	text-overflow: ellipsis;
	min-width: 10px;
	display: flex;
	transition: 
		flex 0.4s ease,
		background-color 0.5s ease;
	cursor: pointer;
	position: relative;
	font-weight: 500;
	color: #1a1a1a;
}

.status-block::after {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	right: 0;
	border-top: 28px solid #fff;
	border-bottom: 28px solid #fff;
	border-left: 28px solid rgba(0,0,0,0);
}

@media(max-width: 992px) {
	.status-block::after {
		border-top: 24px solid #fff;
		border-bottom: 24px solid #fff;
	}
}

.status-block:first-child::before {
	display: none;
}
.status-block:last-child::after {
	display: none;
}

.status-block:hover {
	flex: 3;
}

/* Базовые цвета (исходное состояние) */
.status-1 { background-color: #a8d4f7; }
.status-2 { background-color: #ddb0db; }
.status-3 { background-color: #f5d699; }
.status-4 { background-color: #a8ddb2; }
.status-5 { background-color: #7ad3e6; }
.status-6 { background-color: #7CD500; }

/* Цвета, которые будут применяться при наведении */
.hover-color-1 { background-color: #7ec0f0 !important; }
.hover-color-2 { background-color: #cc8fca !important; }
.hover-color-3 { background-color: #f0c46e !important; }
.hover-color-4 { background-color: #82cc90 !important; }
.hover-color-5 { background-color: #52c4da !important; }
.hover-color-6 { background-color: #7ED500 !important; }

.status-block.active {
	font-weight: 700;
	box-shadow:
		inset 2px 0 0 rgba(0,0,0,0.14),
		inset 0 2px 0 rgba(0,0,0,0.14),
		inset 0 -2px 0 rgba(0,0,0,0.14);
}
.status-block.active:last-child {
	box-shadow: inset 0 0 0 2px rgba(0,0,0,0.14);
}

.status-block span {
	width: 100%;
	padding: 0 10px;
	text-align: left;
}

.status-block span.fade-right {
  --fd-width: 22px;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    black 0%,
    black calc(100% - var(--fd-width)),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black calc(100% - var(--fd-width)),
    transparent 100%
  );
}

.status-block:hover span.fade-right {
  --fd-width: 0px;
}

.status-block.future  { background-color: #f5f4f4; }

/* Mobile StatusBar */
.wrapper-status-mobile {
	margin-top: 10px;
	min-height: auto;
	margin-bottom: 10px;
	font-weight: 700;
	background-color: #fff;
	padding: 10px 15px 1px;
	border-radius: 16px;
	margin-left: calc( 15px * -1 ) !important;
	margin-right: calc( 15px * -1 ) !important;
}

.progress-bar-mobile {
	width: 100%;
	height: 100px;
	padding: 20px 0;
	margin: 10px 0px 10px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: y mandatory;
	border: solid 1px #eae5e5;
	border-radius: 10px;
}

@media(min-width: 992px) {
	.wrapper-status-mobile {
		display: none;
	}
}

.progress-bar-mobile::-webkit-scrollbar {
	display: none;
}

.progress-bar-mobile .status-track {
	display: flex;
	align-items: center;
	flex-direction: column;
	min-height: 100%;
	padding: 142px 0;
}

.progress-bar-mobile .status-item {
	width: 100%;
	min-height: 20px;
	font-size: 15px;
	color: #333;
	line-height: 1.4;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6px 10px;
	border: 1px solid #e3e3e5;
	opacity: 0.9;
	flex-shrink: 0;
	scroll-snap-align: center;
}

.progress-bar-mobile .status-item.active {
	opacity: 1;
	color: #444;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	border-color: #fafafa;
	z-index: 2;
}

.status-item.future  { background-color: #f4f4f4; }

/* Tooltip */
.status-block .tooltiptext {
	visibility: hidden;
	width: 220px;
	text-align: center;
	padding: 8px 12px;
	border-radius: 6px;
	background-color: #fff;
	color: #444;
	font-size: 14px;
	font-weight: 500;
	transform: translateX(-50%);
	margin-top: 10px;
	opacity: 0;
	position: absolute;
	z-index: 10;
	box-shadow: 0 2px 2px rgba(0,0,0,0.16);
	top: 100%;
	left: 50%;
	transition: opacity 0.3s;
	pointer-events: none;
}

.status-block .tooltiptext::after {
	content: "";
	border-width: 6px;
	border-style: solid;
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -6px;
	border-color: transparent transparent #fff transparent;
}

.status-block:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* Акции */
.akcii-blocks {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.akcia-block {
    display: flex;
    gap: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.25s;
}

.akcia-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.akcia-left {
    flex: 0 0 40%;
    max-width: 40%;
}

.akcia-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.akcia-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
}

.akcia-right h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
}

.akcia-desc {
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .akcia-block {
        flex-direction: column;
    }
    .akcia-left {
        max-width: 100%;
    }
}

/* Invoices */
.invoices-list {
	display: flex;
	flex-direction: column;
	padding: 8px;
	max-width: 100%;
	gap: 12px;
}

.invoice-card {
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	overflow: hidden;
	border-radius: 12px;
	border-left: 4px solid #ccc;
}

.invoice-card[data-status="paid"]    { border-left-color: #36c759; }
.invoice-card[data-status="overdue"] { border-left-color: #fa3b30; }
.invoice-card[data-status="unpaid"]  { border-left-color: #fa9500; }

.invoice-header {
	display: flex;
	padding: 14px 16px 10px;
	justify-content: space-between;
	align-items: center;
}

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

.invoice-number {
	font-size: 16px;
	font-weight: 600;
	color: #1e1c1e;
}

.invoice-amount {
	font-size: 17px;
	font-weight: 700;
	color: #1e1c1e;
}

.status-badge {
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	white-space: nowrap;
}

.invoice-card[data-status="paid"]    .status-badge { background: #36c75922; color: #36c759; }
.invoice-card[data-status="overdue"] .status-badge { background: #fa3b3022; color: #fa3b30; }
.invoice-card[data-status="unpaid"]  .status-badge { background: #fa950022; color: #fa9500; }

.invoice-date {
	font-size: 13px;
	padding: 0 16px 14px;
	color: #8e8e93;
}

@media (max-width: 380px) {
	.invoice-header {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}
	.status-badge {
		align-self: flex-start;
	}
}


/* Просмотр документов */
.doc-modal {
    display: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    inset: 0;
    z-index: 99;
}

.doc-modal-content {
    position: relative;
    margin: 30px auto;
    height: calc(100vh - 60px);
    background: #ffffff;
    width: 95%;
    max-width: 1280px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.doc-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 40px;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
}

.doc-modal-close:hover, .doc-modal-close:focus {
    color: #e94c3c;
}

#doc-viewer-container {
    width: 100%;
    height: 100%;
}

#doc-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .doc-modal-content {
        width: 96%;
        height: calc(100vh - 80px);
        margin: 50px auto 30px;
    }
    
    .doc-modal-close {
        right: 15px;
        top: 8px;
        font-size: 30px;
    }
}

/* Блок "Ответственный" */
.resp-block {
  border: 1px solid #e0e0e0;
  font-size: 0.8rem;
  margin-top: 50px;
  padding: 1rem 1rem;
  color: #444;
  border-radius: 15px;
}

.resp-person {
  align-items: center;
  gap: 1rem;
  display: flex;
  margin-top: 0.8rem;
}

.resp-photo {
  object-fit: cover;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.resp-info .fio {
  margin: 0 0 0.4rem 0;
  font-size: 0.95rem;
}

.resp-info .phone {
  margin: 0;
  color: #2a7be0;
}
.resp-info .phone a:hover {
  text-decoration: underline;
}

@media(max-width: 991px) {
	#account-navigation .resp-block {
		display: none;
	}
}

/* Выбор контакта  */
.contact-selector {
    max-width: 300px;
    margin: 0px 0px 20px;
}
.contact-selector-mobile {
    margin-top: 10px;
    margin-bottom: 10px;
	margin-left: calc( 10px * -1 ) !important;
	margin-right: calc( 10px * -1 ) !important;
}
.contact-selector select, .contact-selector-mobile select {
    width: 100%;
    padding: 12px 16px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
	font-family: "Manrope", 'Segoe UI' !important;
}
.contact-selector-mobile select {
    font-size: 0.9rem;
}
.contact-selector option {
    padding: 8px;
	font-family: "Manrope", 'Segoe UI' !important;
    font-size: 0.9rem;
}
.contact-selector-mobile option {
    padding: 8px;
	font-family: "Manrope", 'Segoe UI' !important;
    font-size: 1rem;
}
.contact-selector-mobile {
	display: none;
}

@media(max-width: 992px) {
	.contact-selector {
		display: none;
	}
	.contact-selector-mobile {
		display: block;
	}
}

/* Оверлей загрузки */
.loading-overlay {
    position: absolute;
    top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 16px;
}
.loading-overlay.active {
    display: flex;
}

/* Спиннер загрузки */
.spinner {
    width: 42px;
    height: 42px;
    animation: spinner 1s linear infinite;
    margin-bottom: 12px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
}
@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* === Контраст и читаемость === */
#ls-profile-wrapper {
    background-color: #d8dde5;
}

#account-navigation {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

#account-main {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.account-navigation__title {
    font-weight: 700;
    color: #1a1a1a;
}

#account-navigation .account-navigation-link {
    opacity: 1;
    color: #333;
}

#account-navigation .account-navigation-link:not(.current) {
    opacity: 0.8;
}

.input-block .label {
    font-weight: 600;
    color: #1a1a1a;
}

.site-field {
    border-color: #999;
    color: #1a1a1a;
    background-color: #fafafa;
}

.site-field:focus {
    border-color: #333;
    background-color: #fff;
}

.account-tab h3,
.account-tab .account-tab-title,
#account-main h3 {
    font-weight: 700;
    color: #1a1a1a;
}

/* === Фикс прогресс-бар стрелки === */
.wrapper-status {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.status-block {
    height: 48px;
    font-size: 13px;
}

.status-block::after {
    border-top-width: 24px;
    border-bottom-width: 24px;
    border-left-width: 16px;
    z-index: 1;
}

.status-block span {
    position: relative;
    z-index: 2;
}
