body{
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
}
.page{
display: flex;
justify-content: space-between;
flex-direction: column;
width: 100%;
}
.header{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: center;
  align-items: center;
  background: linear-gradient(black, #3a558e);
  margin: 3px;
  border-radius: 10px;
}
.header a{
  text-decoration: none;
  color: aliceblue;
}
.hbg-logo{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.logo img{
  height: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  min-width: 250px;
}
.hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: aliceblue;
}

.hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}
/* Sidebar (мобильное меню) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.open {
  visibility: visible;
  opacity: 1;
}
.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: #1b1b2f;
  box-shadow: 2px 0 12px rgba(0,0,0,0.4);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}
.sidebar-overlay.open .sidebar-panel {
  transform: translateX(0);
}
.sidebar-close {
  display: block;
  text-align: right;
  font-size: 32px;
  color: #e9fcfa;
  text-decoration: none;
  margin-bottom: 10px;
}
.sidebar-close:hover {
  color: #89c4ec;
}
.sidebar-links a {
  display: block;
  padding: 12px 8px;
  font-size: 1.2rem;
  color: #e9fcfa;
  text-decoration: none;
  border-bottom: 1px solid rgba(137, 196, 236, 0.2);
}
.sidebar-links a:hover {
  color: #89c4ec;
  background: rgba(137, 196, 236, 0.08);
}
.main{
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 220px);
  margin: 0 3px;
  
}
.nav{
  display:block;
  width: 250px;
  background-color: #3a558e;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  border-radius: 10px;
}
.menu{
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items:stretch;
  flex-direction: column;
  font-size: 1.3rem;
}

.menu a{
  display:block;
  padding: 1rem;
  text-decoration: none;
  position: relative;
  color: #e9fcfa;
  background: #3a558e;
  border-bottom: 1px solid #1b1b2f;
  border-radius: 10px 10px 0 0;
}

.menu  a::before{
  content:'';
  display:block;
  position: absolute;
  top:0;
  left:0;
  height: 100%;
  width: 5px;
  background: #e9fcfa;
  opacity: 0;
  transition: all .5s;
}

.menu  a:hover{
  padding-left: calc(1rem + 15px);
  background: #1b1b2f;
  background: linear-gradient(#3b3b76, #282847);
	color: #89c4ec;
  border-top-right-radius: 10%;
  border-bottom-right-radius: 10%;
}

.menu  a:hover::before{
  opacity: 1;
}
.item:target {
  max-height: 20rem;
}

.articl{
  background-color: #e9f4fc;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  width: 100%;
  margin-left: 3px;
  border-radius: 10px;
}

.card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  background: #e9fcfa;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 15px 15px;
  margin: 20px 20px ;
  
}
.card-title{
  font-size: 1.5rem;
  font-weight: bold;
}
.card-text{
  font-size: 1.3rem;
}
.card-text-2{
  font-size: 0.3rem;
}
.card:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
.collapse {
  background: #e9fcfa;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.collapse a {
  display: block;
  font-size: 1rem;
  color: #1b1b2f;
  position: relative;
  font-family: 'Chakra Petch', sans-serif;
}

.collapse a:hover{
text-shadow: 0 0 10px #89c4ecec;
}

.content {
  max-height: 0em;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
  margin: 10px 10px;
}
.content.open {
  max-height: 500em;
  transition: max-height 0.3s ease-in;
}
.inner-content p{
  font-size: 1.2rem;
}
.collapse + .collapse a {
  border-top: 1px solid rgba(101, 130, 135, 0.282);
}

/* Error accordion */
.error-item {
  background: #e9fcfa;
  border: 1px solid #d0dce8;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}
.error-header {
  display: block;
  padding: 10px 40px 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: #1b1b2f;
  text-decoration: none;
  position: relative;
  user-select: none;
}
.error-header-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d0dce8;
}
.error-header-row .error-header {
  flex: 1;
}
.error-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  text-decoration: none;
  color: #3a558e;
  font-size: 1.2rem;
  border-left: 1px solid #d0dce8;
  transition: background 0.2s, color 0.2s;
}
.error-open:hover {
  background: #3a558e;
  color: #fff;
}
.error-header:hover {
  background: #dcecf5;
}
.error-header .error-code {
  font-family: 'Chakra Petch', monospace;
  color: #3a558e;
  margin-right: 8px;
}
.error-header::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: bold;
  color: #3a558e;
  transition: transform 0.3s;
}
.error-header.active::after {
  content: "−";
}
.error-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 14px;
}
.error-body.open {
  max-height: 500em;
  padding: 0 14px 14px;
}
.error-body p {
  margin: 8px 0 4px;
  line-height: 1.5;
}
.error-body .label {
  font-weight: 600;
  color: #3a558e;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.error-body .solution {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  border-radius: 4px;
  font-size: 0.95rem;
}
.error-desc ul,
.error-desc ol,
.solution ul,
.solution ol,
.info-text ul,
.info-text ol {
  margin: 6px 0 6px 20px;
  padding: 0;
}
.error-link-more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #d0dce8;
}
.error-link-more a {
  color: #3a558e;
  font-weight: 600;
  text-decoration: none;
}
.error-link-more a:hover {
  text-decoration: underline;
}
.error-desc li,
.solution li,
.info-text li {
  margin-bottom: 4px;
}
.error-desc p,
.solution p,
.info-text p {
  margin: 8px 0;
}
.info-text {
  line-height: 1.6;
}

.collapse a {
  display: block;
  font-size: 1rem;
  color: #1b1b2f;
  position: relative;
  font-family: 'Chakra Petch', sans-serif;
}

.collapse a:hover{
text-shadow: 0 0 10px #89c4ecec;
}

/*.collapse a:before {
  content: "";
  border-top: 7px solid #1b1b2f;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  position: absolute;
  top: 20px;
  right: 20px;
}*/



.content {
  max-height: 0em;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
  margin: 10px 10px;
}
.content.open {
  max-height: 500em;
  transition: max-height 0.3s ease-in;
}
.inner-content p{
  font-size: 1.2rem;
}
.collapse + .collapse a {
  border-top: 1px solid rgba(101, 130, 135, 0.282);
}
    
.search-block{
margin-top: 15px;
margin-left: 2px;
margin-bottom: 10px;
}



.search-block form {
display: inline-block;
font-size: 0px;
padding: 2px;
position: relative;
z-index: 1;

}

.search-block input {
background: #3a558e;	
border: 1px solid #141923;
border-radius: 5px 0 0 5px;
color: #89c4ecec;
display: block;
float: left;
font-size: 13px;
font-weight: 400;
height: 40px;
margin: 0px;
padding: 10px 10px;
text-shadow: 0 -1px 0 #000;
width: 200px;
}

.ie .search-block input {
line-height: 40px;
}

.search-block input::-webkit-input-placeholder {
 color: #89c4ecec;
}

.search-block input:-moz-placeholder {
 color: #89c4ecec;
}

.search-block input:focus {
animation: glow 800ms ease-out infinite alternate;
background: #e9fcfa;
border-color: #89c4ecec;
box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;
color: #1b1b2f;
outline: none;
}

.search-block input:focus::-webkit-input-placeholder { 
color: #1b1b2f;
}

.search-block input:focus:-moz-placeholder {
color: #1b1b2f;
}

.search-block button {
background: #1b1b2f;
box-sizing: border-box;
border: 1px solid #444;
border-left-color: #000;
border-radius: 0 5px 5px 0;
color: #e9fcfa;
display: block;
float: left;
font-size: 13px;
height: 40px;
line-height: 40px;
margin: 0;
padding: 0;
position: relative;
text-shadow: 0 -1px 0 #000;
width: 80px;
}	

.search-block button:hover,
.search-block button:focus {
background: linear-gradient(#3b3b76, #282847);
color: #89c4ec;
outline: none;
}

.search-block button:active {
background: linear-gradient(#393939, #292929);
box-shadow: 0 1px 0 #000, inset 1px 0 1px #222;
top: 1px;
}

.content-text{
  padding: 15px;
}

.dashboard {
  padding: 10px;
}
.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat-card {
  flex: 1;
  min-width: 120px;
  background: #e9fcfa;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #1b1b2f;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}
.dash-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dash-row .dash-card {
  flex: 1;
  min-width: 280px;
}
.dash-card {
  background: #e9fcfa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.dash-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #1b1b2f;
  border-bottom: 2px solid #3a558e;
  padding-bottom: 6px;
}
.dash-card h4 {
  margin: 0 0 8px 0;
  color: #1b1b2f;
}
.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.error-list li {
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}
.error-list li:last-child {
  border-bottom: none;
}
.error-list a {
  text-decoration: none;
  color: #333;
  display: block;
}
.error-list a:hover {
  color: #06acf9;
}
.muted {
  color: #777;
  font-size: 0.95rem;
}
.mfr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mfr-tile {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  background: #f5fafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.mfr-tile:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #3a558e;
}
.mfr-tile small {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

@media only screen and (max-width: 600px) {
  .stats-row {
    gap: 8px;
  }
  .stat-card {
    min-width: calc(50% - 8px);
    padding: 12px 8px;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .dash-row {
    flex-direction: column;
  }
  .dash-row .dash-card {
    min-width: auto;
  }
  .mfr-tile {
    min-width: 100%;
  }
}

.footer{
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(#3a558e, black);
  height: 80px;
  margin: 3px;
  border-radius: 10px;
}

.footer a{
  color: #e9fcfa;
  text-decoration: none;
}

.footer a:hover{
color: #89c4ec;
}

/* Планшеты и мелкие ноуты */
@media only screen and (max-width: 900px) {
  .logo img {
    height: 80px;
    min-width: 200px;
  }
  .section-nav a {
    margin-bottom: 6px;
  }
  .card {
    margin: 15px 10px;
    padding: 12px 10px;
  }
}
/* Телефоны */
@media only screen and (max-width: 600px) {

  .hamburger-lines{
    display: flex;
  }
  .nav{
    display: none;
  }
  .logo img {
    height: 60px;
    min-width: 160px;
    padding-left: 10px;
  }
  .hbg-logo {
    width: 100%;
    justify-content: space-between;
  }
  .hamburger-lines {
    margin-left: 10px;
  }
  .articl {
    margin-left: 0;
    border-radius: 5px;
  }
  .card {
    margin: 10px 5px;
    padding: 10px 8px;
  }
  .sidebar-links a {
    font-size: 20px;
  }
  .section-nav a {
    display: block;
    margin: 0 0 6px 0;
    text-align: center;
  }
  .search-form input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
  }
  .search-form button {
    width: 100%;
    box-sizing: border-box;
  }
  .search-block {
    width: 100%;
  }
  .search-block form {
    display: flex;
    width: 100%;
  }
  .search-block input {
    width: 100%;
    flex: 1;
  }
  .search-block button {
    width: 60px;
  }
  .content-text {
    padding: 10px;
    word-wrap: break-word;
  }
  .footer {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 8px;
  }
}
/* Админ-таблица на мобилках */
@media only screen and (max-width: 600px) {
  .import-form table,
  .import-form thead,
  .import-form tbody,
  .import-form th,
  .import-form td,
  .import-form tr {
    display: block;
  }
  .import-form thead tr {
    display: none;
  }
  .import-form td {
    padding: 8px 4px;
    border-bottom: 1px solid #ddd;
  }
  .import-form td::before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    width: 90px;
  }
}
/* Если высота экрана меньше 450 пикселей, измените размер шрифта ссылок и снова установите кнопку закрыть, чтобы они не перекрывались */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.section-nav {
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 2px solid #ddd;
}
.section-nav a {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 4px;
  color: #333;
  background: #f0f0f0;
}
.section-nav a:hover {
  background: #ddd;
}
.section-nav a.active {
  background: #4a90d9;
  color: #fff;
}
.search-form {
  margin: 16px 0;
}
.search-form input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 260px;
}
.search-form button {
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  background: #4a90d9;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* Pagination */
.pagination {
  margin: 20px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #ccc;
  color: #333;
  background: #fff;
  font-size: 0.9rem;
}
.pagination a:hover {
  background: #4a90d9;
  color: #fff;
  border-color: #4a90d9;
}
.pagination .current {
  background: #4a90d9;
  color: #fff;
  border-color: #4a90d9;
  font-weight: bold;
}
.pagination .step-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

