@media screen {
	:root {
	--display-width: 940px;
	--menu-width: 170px;
	--tools-width: 250px;
	--header-height: 45px;

	--font-main: 16px;
	--font-title: 20px;
	--font-subtitle: 18px;
	--font-notice: 14px;
	}
}

@media screen and (max-width:768px) and (orientation:landscape) {
	:root {
	--display-width: 100%; 
	--menu-width: 170px;
	--tools-width: 250px;
	--header-height: 45px;
	
	--font-main: 14px;
	--font-title: 18px;
	--font-subtitle: 16px;
	--font-notice: 12px;
	}
}

@media screen and (max-width:940px) and (min-width:768px) and (orientation:landscape) {
	:root {
	--display-width: 768px; 
	--menu-width: 170px;
	--tools-width: 250px;
	--header-height: 45px;
	
	--font-main: 14px;
	--font-title: 18px;
	--font-subtitle: 16px;
	--font-notice: 12px;
	}
}

@media screen and (max-width:1024px) and (min-width:940px) and (orientation:landscape) {
	:root {
	--display-width: 940px; 
	--menu-width: 170px;
	--tools-width: 250px;
	--header-height: 45px;
	
	--font-main: 14px;
	--font-title: 18px;
	--font-subtitle: 16px;
	--font-notice: 12px;
	}
}

@media screen and (min-width:1024px) and (orientation:landscape) {
	:root {
	--display-width: 1024px; 
	--menu-width: 170px;
	--tools-width: 250px;
	--header-height: 45px;
	
	--font-main: 14px;
	--font-title: 18px;
	--font-subtitle: 16px;
	--font-notice: 12px;
	}
}

:root {
	--font-family: 'Montserrat';
	--color-main: #48038c;
	--color-main-light-100: #e1bbe6;
	--color-addit: #86059C;
	--color-menu: #023342;
	--color-contrast: white;
	--color-background-main: #F8F8Ff;
	--color-background-input: #f6f6f6;
	--color-gray-darkest: #1c1c1c;
	--color-gray-dark: #5e5e5e;
	--color-gray-light: #6B606B;
	--color-gray-lightest: #e3e3e3;
	--color-background-modalnav: #C1DEE3;
	--color-modalnav-active: #FFFFFF;
	--color-modalnav: #F2F3F4;
}

* {
    font-family: var(--font-family);
    text-shadow: none!important;
    outline: 0!important
}

::-webkit-scrollbar {
	width: 7px;
}
::-webkit-scrollbar-track {
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--color-main);
}

input, textarea, [contenteditable] {
	outline:none;
}

[contenteditable][placeholder]:empty:before {
	content: attr(placeholder);
	color: #999; 
}
[contenteditable][placeholder]:empty:focus:before {
	content: '';
}

html {
	background-color: var(--color-background-main);
}

body {
	margin: 0;
	position: relative;
}

a:-webkit-any-link {
    cursor: pointer;
    text-decoration: none;
    text-decoration-color:white;
    color: var(--color-menu);
}

button {
	outline: none !important;
}

.container {
	width: 100%;
	text-align: center;
	overflow-x: hidden;
	margin: auto;
	padding: 0px;
	max-width: var(--display-width);
	color: black;
	font-family: var(--font-family);
	margin-top: 65px;
}

div {
	width: 100%;
	box-sizing: border-box;
}

/* Шапка */
#header-parent {
    padding: 10px 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 6px -4px rgb(0 0 0 / 20%);
    position: fixed;
    top: 0;
    z-index: 10000;
}

#header {
	height: var(--header-height);
	font-size: var(--font-subtitle);
	color: white;
	max-width: var(--display-width);
	margin: auto;
}

.logo {
    display: inline-block;
    height: 100%;
    width: auto;
    margin-left: 13px;
}

@media screen and (orientation: portrait) {
    .logo {
        display: none !important;
    }
}

.logo img {
    height: 100%;
}

#header>a {
	display:inline-block;
	float:right;
	margin: 0 13px;
	height: var(--header-height);
	text-align: center;
}

#header>a>img {
	height: 100%;
	width: auto;
	border-radius: 100%;
}

#header>a>span {
	text-decoration:none;
	color: black;
	font-size: 13px;
	vertical-align: top;
}

div#mobilemenubtn {
    display: none;
    background-image: url(/icons/menu.png);
    background-size: 25px 15px;
    background-repeat: no-repeat;
    background-position-y: 15px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
    padding: 10px;
    padding-left: 0;
}

@media screen and (orientation: portrait) {
    div#mobilemenubtn, .mobilelogo {
        display: inline-block !important;
    }
}



/* Меню */
nav#menu {
	position: sticky;
	top: 20px;
	box-sizing: border-box;
	width: auto;
	display: inline-block;
	float: left;
	margin-top: 20px;
	margin-right: 20px;
	width: var(--menu-width);
}

.top-menu {
	margin:0;
	list-style: none;
	font-size: var(--font-main);
	font-family: var(--font-family);
	text-align: center;
	padding-left: 10px;
	position: fixed;
	top: 85px;
}

.top-menu li {
	margin: 3px auto;
	padding: 10px 10px;
	padding-right: 30px;
	cursor:pointer;
	border-radius: 4px;
	position: relative;
}

.top-menu li:first-child {
	margin-top: 0px;
}

.top-menu li:after {
	content:" ";
	display:table;
	clear:both;
}

.top-menu li:hover {
    background-color: #E6F1FF;
}

.top-menu li>span {
	color: black;
	float:left;
	height: 20px;
}

.top-menu li>span>img {
	width: 20px;
	margin-right: 7px;
}

.top-menu li>span>span {
	vertical-align: top;
	line-height: 20px;
	font-size: 14px;
}

span.countnew {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    padding: 0 7px;
    height: 20px;
    color: white;
    border-radius: 15px;
    line-height: 20px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px !important;
    background-color: #A60703;
    font-weight: bold;
}

/* Контент */
main#content {
	box-sizing:border-box;
	display:inline-block;
	width: calc(100% - var(--menu-width) - var(--tools-width) - 40px);
	max-width: 550px;
	margin-top:20px;
}

/* Стили для хлебных крошек */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #718096;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs a {
    color: #7b2ff2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: #5a1fd9;
}

.breadcrumbs i {
    color: #a0aec0;
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: #2d3748;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        gap: 6px;
        padding: 8px 0;
        flex-wrap: wrap;
    }
}

/* Общие стили для cards и elements */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-main);
    color: white;
}

.btn-primary:hover {
    background: var(--color-addit);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-main);
    color: var(--color-main);
}

.btn-outline:hover {
    background: var(--color-main);
    color: white;
}

.mobilelogo {
    display: none;
    vertical-align: top;
    width: auto;
    margin-left: 10px;
}