* {
	padding: 0px;
	margin: 0px;
	font-family: "Montserrat", sans-serif;
}

.wrapp {
	width: 1148px;
	margin: 0 auto;
}

header {
	background: rgba(255, 255, 255, 0.9);
  position: fixed;
  z-index: 9995;
  width: 100%;
  top:0;
}

.header {
	display: flex;
	justify-content: space-between;
	text-align: center;
	align-items: center;
}

.header__logo {
	margin: 10px 10px;
  position: relative;
}

.header__logo img {
  position: absolute;
  width: 60px;
  height: 60px;
  top: -10px;
  left: 0;
}

.header__logo a{
	text-decoration: none;
	font-size: 34px;
	font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  color: #3c3c3c;
  margin-left: 35px; 
}

.header__nav li{
	display: block;
}

.header__nav {

}

.header__nav a{
	text-decoration: none;
	color: #3c3c3c;
	font-size: 15px;
	margin-right: 40px
}

#contakt {
	margin-right: 0px;
}

.header__btn a{
	text-decoration: none;
	color: #fff;
	font-size: 14px;
	padding: 5px 31px 5px 31px;
	background: #fb8a2e;
	border-radius: 9px;
}

.header__btn i {
  font-size: 12px;
  margin-right: 5px;
}

.header__sing a{
  text-decoration: none;
  color: #383838;
  font-size: 24px;
}

.burger {
  display: none;
  margin-right: 10px;
  font-size: 30px;
  color: #3c3c3c;
}

.burger__admin {
  display: none;
  margin: 0px 20px;
}

#slide {
  margin-top: 62px;
}


.box_section {
  display: flex;
  margin-top: 85px;
}

.left {
  flex: 1;
}

.content {
  display: grid;
   grid-template-columns: repeat(2, 1fr);
}

.content__box {
  max-width: 365px;
  margin-right: 30px;
  margin-bottom: 60px;
}

.content__box__cat {
  margin-bottom: 5px;
}

.content__box__cat a {
  text-decoration: none;
  color: #c2aa6f;
  font-size: 14px;
  text-transform: uppercase;
}

.content__box__cat span {
  font-size: 14px;
  text-transform: uppercase;
  color: #6a6a6a;
}

.content__box__title {
  margin-bottom: 10px;
  -webkit-line-clamp: 2; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden; /* Обрезаем всё за пределами блока */
}

.content__box__title h2 > a {
  font-size: 25px;
  color: #3c3c3c;
  text-transform: uppercase;
  text-decoration: none;
}

.content__box__img {
  margin-bottom: 10px;
}

.content__box__img img{
  max-width: 365px;
  min-width: 365px;
  max-height: 244px;
  min-height: 244px;
  border-radius: 5px;
}

.content__box__desc {
  min-height: 60px;
  -webkit-line-clamp: 3; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden; /* Обрезаем всё за пределами блока */
}

.content__box__desc span {
  font-size: 14px;
  color: #6a6a6a;
}

.content__box__btn {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.content__box__btn span{
  font-size: 12px;
  color: #6a6a6a;
  margin-top: 10px;
}

.content__box__btn a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
  padding: 8px 23px;
  background: #fb8a2e;
  border-radius: 30px;
}

.articles {
  width: 756px;
  border-top: 3px solid #f3f3f3;
  border-bottom: 3px solid #f3f3f3;
  position: relative;
  margin-bottom: 50px;
}

.articles__img img {
  width: 100%;
  height: 503px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.cat_articles {
  position: absolute;
  top: 8%;
  left: 3%;
}

.cat_articles span {
  padding: 6px 16px;
  background: #fb8a2e;
  color: #fff;
  border-radius: 8px 18px;
  text-transform: uppercase;
  font-size: 11px;
}

.articles__information {
  position: absolute;
  top: 35%;
  left: 12%;
  width: 570px;
  text-align: center;
}

.articles__information__date {
  margin-bottom: 15px;
}

.articles__information__date span {
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
}

.articles__information__title {
  margin-bottom: 17px;
  -webkit-line-clamp: 2; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden; /* Обрезаем всё за пределами блока */
}

.articles__information__title a{
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 25px;
}

.articles__information__desc {
  margin-bottom: 19px;
  -webkit-line-clamp: 2; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden; /* Обрезаем всё за пределами блока */
}

.articles__information__desc span {
  font-size: 14px;
  color: #fff;
}

.articles__information__btn {

}

.articles__information__btn a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  background: rgba(255,255,255, 0.3);
  padding: 12px 25px;
  border-radius: 15px;
}

.right {
  max-width: 342px;
  min-width: 342px;
}








/* Карточка блока категорий */
.right_cat {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Заголовок с оранжевой линией */
.right_title h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #333;
    border-bottom: 2px solid #d35400;
    padding-bottom: 6px;
    display: inline-block;
}

/* Список категорий */
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Элемент категории */
.cat-item {
    margin-bottom: 12px;
}

/* Кнопка категории */
.cat-block {
    padding-bottom: 12px;
    border-bottom: 1px dashed #e8e0d8;   /* тёплый бежевый — под оранжевую гамму */
    margin-bottom: 12px;
}

.cat-block:last-child {
    border-bottom: none;   /* у последней категории линии нет */
    padding-bottom: 0;
    margin-bottom: 0;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    color: #2b3643;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(43, 54, 67, 0.12); /* тонкая рамка */
    transition: all 0.25s ease;
}

.cat-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 0;
    background: #ff6b6b;
    border-radius: 4px;
    transform: translateY(-50%);
    transition: height 0.25s ease;
}

.cat-link:hover {
    transform: translateX(8px);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.cat-link:hover::before {
    height: 70%;
}

.cat-count {
    transition: transform 0.25s ease;
}

.cat-link:hover .cat-count {
    transform: scale(1.1);
}


/* Счётчик у категории (оранжевая капсула) */
.cat-count {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #d35400;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.subcat-row {
  padding: 15px;
  text-align: center;
}

/* Список подкатегорий — строкой */
.subcat-list {
    list-style: none;
    padding: 8px 0 0 10px;
    margin: 6px 0 0 0;
    border-top: 1px dashed #eee;
}

.subcat-item {
    display: inline;
}

.subcat-link {
    color: #777;
    text-decoration: none;
    font-size: 13px;
    margin-right: 18px;
    transition: color 0.2s;
}

.subcat-link::before {
    content: '\2022';      /* жирная точка •; для тонкой возьми '\00B7' (·) */
    margin-right: 8px;     /* расстояние от точки до текста */
    color: #d35400;        /* оранжевая точка — в тон сайту; можно #ccc для нейтральной */
}

.subcat-link:hover {
    color: #d35400;
    text-decoration: underline;
}

/* Разделитель между подкатегориями (точка) */
.subcat-item:not(:last-child)::after {
    content: '\00B7';
    margin: 0 8px;
    color: #ccc;
}









.right_email {
  padding-bottom: 30px;
  margin-top: 25px;
  text-align: center;


  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.right_email_title {
  margin-top: 40px;
}

.right_email_title h6 {
  text-transform: uppercase;
  font-size: 14px;
  color: #c2aa6f;
}

.right_email_desc {
  width: 270px;
  margin: 23px auto;
}

.right_email_desc span {
  font-size: 14px;
  color: #6a6a6a;
}

.right_email_form {
  margin-top: 20px;
}

#email_right {
  padding: 10px;
  text-align: center;
  text-transform: uppercase;
  border-radius: 20px;
  width: 262px;
  background: rgba(243, 243, 243, 0.9);
  border: none;
  margin-bottom: 15px;
}

#btn_email_right {
  background: #fb8a2e;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  border-radius: 20px;
  width: 276px;
  cursor: pointer;
  padding: 10px 0px;
}

.right_popul {
  border: 2px solid #f3f3f3;
  padding-bottom: 30px;
  margin-top: 25px;
}

.right_popul_title {
  text-align: center;
  margin-top: 40px;
}

.right_popul_title h5 {
  font-size: 14px;
  color: #c2aa6f;
  text-transform: uppercase;
}

.right_popul_box {
  display: flex;
  margin-top: 30px;
}

.right_popul_box_left {
  flex: 1;
  margin-left: 30px;
  margin-right: 15px;
}

.right_popul_box_left img {
  width: 100px;
  height: 76px;
}

.right_popul_box_right {
  margin-right: 20px;
}

.right_popul_box_right span {
  color: #6a6a6a;
  font-size: 11px;
  text-transform: uppercase;
}

.popul_title {
   margin-bottom: 6px;
}

.right_popul_box_right h6 {
  font-size: 11px;
  color: #3c3c3c;
  text-transform: uppercase;
  -webkit-line-clamp: 2; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden; /* Обрезаем всё за пределами блока */
}


footer {
  background: #f3f3f3;
  text-align: center;
  padding: 40px 0px;
}

.footer__logo {
  display: flex;
  justify-content: center; /* центрирование по главной оси (обычно горизонтально) */
  align-items: center;     /* центрирование по поперечной оси (обычно вертикально) */
}

.footer__logo img {
  width: 60px;
  height: 60px;
}

.footer__logo a {
  text-decoration: none;
  font-size: 34px;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  color: #3c3c3c;
}

.footer__nav {
  margin-top: 30px;
  margin-bottom: 30px;
}

.footer__nav li {
  display: block;
}

.footer__nav a {
  text-decoration: none;
  color: #3c3c3c;
  font-size: 18px;
  margin-right: 20px;
}

.footer__desc {
  width: 756px;
  margin: 0 auto;
}

.footer__desc span {
  font-size: 14px;
  color: #6a6a6a;
}

.footer__soc {
  margin-top: 30px;
}

.footer__soc i {
  margin-right: 30px;
  font-size: 21px;
}

.footer__prava {
  margin-top: 20px;
}

.error__404 {
  margin-top: 100px;
  text-align: center;
}

.error__404__title h1 {
  font-size: 150px;
  text-transform: uppercase;
  color: #3c3c3c;
  margin-bottom: 56px;
}

.error__404__h3 h3 {
  font-size: 20px;
  text-transform: uppercase;
  color: #3c3c3c;
  margin-bottom: 40px;
}

.error__404__text span {
  font-size: 15px;
  color: #919191;
  
}

#input_404 {
  margin-top: 35px;
  margin-bottom: 35px;
  padding: 15px;
  border: 1px solid #efefef;
  border-radius: 25px;
  background: #f9f9f9;
  width: 455px;
}

#submit_404 {
  border: none;
  padding: 15px;
  border-radius: 25px;
  width: 100px;
  background: #fb8a2e;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.error__404__home {
  margin-bottom: 156px;
  font-size: 15px;
  color: #919191;
}

.error__404__home a {
  color: #fb8a2e;
}

.category_head {
  padding: 16px 10px;
  text-align: center;
  width: 95%;
  border-radius: 5px;
  margin-bottom: 50px;
  border: 2px solid #f3f3f3;
}

.category_head h4 {
  color: #919191;
  font-size: 25px;
  text-transform: uppercase;
}

.category_head span {
  color: #3c3c3c;
}

.PageSelector {
  text-align: center;
  border: 2px solid #f3f3f3;
  padding: 20px 0px;
  margin-bottom: 100px;
  text-align: center;
  width: 95%;
}

.PageSelector a {
  padding: 8px 15px;
  background: #f3f3f3;
  margin: 5px;
  text-decoration: none;
  font-size: 15px;
  border-radius: 2px;
}

.black_body {
  position: absolute;
  position: fixed;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100vh;
  top: 0;
  display: none;
}

.menu_mob {
  position: absolute;
  z-index: 9999;
  background: #fff;
  max-width: 300px;
  min-width: 300px;
  height: 100vh;
  top: 0;
  right: 0;
  position: fixed;
  overflow-y: auto;
  display: none;
}

.menu_mob__header {
  display: flex;
  justify-content: space-between;
}

.menu_mob__header i {
  font-size: 24px;
  padding: 5px;
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.menu_mob__header__btn {
  text-align: center;
  margin-top: 6px;
  margin-left: 5px;
}

.menu_mob__header__btn a {
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  padding: 5px 25px 5px 5px;
  background: #fb8a2e;
  border-radius: 9px;
}

.menu_mob__header__btn i {
  font-size: 13px;
  margin-right: 2px;
}

.menu_mob__nav {

}

.menu_mob__nav li {
  display: block;
  padding: 10px;
}

.menu_mob__nav a {
  padding: 10px;
  text-align: left;
  margin-left: 50px;
  font-size: 16px;
  color: #3c3c3c;
  text-decoration: none;
  text-transform: uppercase;
}

.bg_logaut {
  height: 100vh;
  background-image: url('/admin/src/img/bg_logaut_admin.jpg');
  background-position: center; /* Центрируем изображение */
  background-repeat: no-repeat; /* Не повторяем картинку */
  background-size: cover; /* Масштабируем так, чтобы заполнить весь блок, обрезая лишнее */
}

.form_logaut {
  background: rgba(20, 65, 121, 0.5);
  width: 512px;
  margin: 180px auto;
  text-align: center;
  padding: 60px 0px;
}

.form_logaut_h1 {
  margin-bottom: 35px;
}

.form_logaut_h1  h1 {
  font-size: 25px;
  color: #fff;
  text-transform: uppercase;
}

#logaut_admin, #password_admin {
  padding: 15px;
  border-radius: 28px;
  color: #fff;
  margin-bottom: 35px;
  background: rgba(68, 87, 122, 0.5);
  border: none;
  width: 373px;
}

#submit_admin {
  padding: 15px;
  border-radius: 28px;
  color: #fff;
  border: none;
  width: 373px;
  background: rgba(32, 4, 93, 0.5);
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
}

.content_AdminPanel {
  display: flex;
}

.left_AdminPanel, .left_AdminPanel_media {
  min-width: 300px;
  max-width: 300px;
  background: #fff;
  height: 100vh;
}

.left_AdminPanel_media {
  display: none;
}

.right_AdminPanel {
  flex: 1;
}

.body_AdminPanel {
  background: #f2edf3;
}

.left_AdminPanel_media {
  position: absolute;
  z-index: 99999;
}

.logo_AdminPanel {
  display: flex;
  align-items: center;
}

.logo_AdminPanel_img {
  
}

.logo_AdminPanel_img img {
  width: 50px;
  height: 50px;
  margin-left: 80px;
}

.logo_AdminPanel_text h1 {
  font-size: 30px;
}

.user_AdminPanel {
  display: flex;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 5px;
}

.user_AdminPanel:hover {
  background: #efeff0;
}

.user_AdminPanel_ava {
  margin-left: 30px;
}

.user_AdminPanel_ava img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.user_AdminPanel_name {
  margin-left: 15px;
}

.user_AdminPanel_name span{
  color: #3e4b5b;
  font-size: 18px;
  font-weight: bold;
}

.user_AdminPanel_name i {
  color: #d8d8db;
  font-size: 12px;
}

.user_AdminPanel_ico {
  margin-left: 35px;
}

.user_AdminPanel_ico i {
  font-size: 20px;
  color: #d8d8db;
}

.menu_AdminPanel {

}

.menu_AdminPanel li {
  display: block;
  display: list-item;
}

.menu_AdminPanel ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #3e4b5b;
  padding-top: 30px;
  padding-bottom: 30px;
  cursor: pointer;
  display: block;
}

.menu_AdminPanel a {
  text-align: left;
  padding-left: 30px;
}

.menu_AdminPanel a:hover {
  color: #fb8a2e;
}

.menu_AdminPanel i {
  padding-right: 10px;
}

.right_AdminPanel_header {
  display: flex;
  align-items: center;
  background: #fff;
}

.left_header {
  flex: 1;
}

.right_header {
  
}

#header_search_AdminPanel {
  padding: 15px;
  border: none;
  width: 90%;
  color: #d8d8db;
}

.header_user {
  display: flex;
  align-items: center;
}

.header_user_ava {
  margin-right: 20px;
}

.header_user_ava img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.header_user_name {
  margin-right: 20px;
}

.header_user_name span {
  font-size: 18px;
  font-weight: bold;
  color: #000007;
}

.mess_AdminPanel {
  margin-right: 30px;
  cursor: pointer;
}

.mess_AdminPanel i {
  font-size: 20px;
  color: #9c9fa6;
}

.exit_AdminPanel {
  margin-right: 20px;
  cursor: pointer;
}

.exit_AdminPanel i {
  font-size: 20px;
  color: #9c9fa6;
}

.right_AdminPanel_content {
  margin: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 9px;
}

.right_AdminPanel_content_recipes h2 {
  margin-bottom: 20px;
}

.table-wrapper {
    width: 65%;
    margin:0 auto;
    overflow-x: auto;              /* горизонтальный скролл при нехватке места */
    -webkit-overflow-scrolling: touch;
}

.admin-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(190, 202, 214, 0.25);
            border-radius: 8px;
            overflow: hidden;
        }

        .admin-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #ffffff;
            text-align: left;
        }

        .admin-table th,
        .admin-table td {
            padding: 18px 20px;
            text-align: center;
        }

        .admin-table tbody tr {
            border-bottom: 1px solid #edf2f7;
        }
        .admin-table tbody tr:last-child {
            border-bottom: none;
        }
        .admin-table tbody tr:hover {
            background-color: rgba(118, 75, 162, 0.04);
        }

        .recipe-img-cell img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            box-shadow: 0 2px 6px rgba(0,0,0,.1);
        }

        .status-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .status-draft { background: #f7fafc; color: #718096; border: 1px solid #e2e8f0; }
        .status-published { background: #ebf8ff; color: #4299e1; border: 1px solid #bee3f8; }

        .btn-delete {
            background-color: #fc8181;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-delete:hover {
            background-color: #fb4747;
            transform: translateY(-1px);
        }

        .id-badge {
            color: #a0aec0;
            font-weight: bold;
            font-size: 0.85rem;
        }



#hide {
  background: #e5dadb;
  color: #fff;
  padding: 5px 40px;
}

#show {
  background: #71d7cd;
  color: #fff;
  padding: 5px 15px;
}

.pagination {
  display: flex;
  margin-top: 30px;
  text-align: center;
}

.pagination li {
  display: block;
}

.pagination a {
  padding: 10px 15px;
  margin: 3px;
  text-decoration: none;
  font-size: 19px;
}

.pagination a:hover {
  background: #fb8a2e;
  color: #fff;
}

.no_page {
  background: #cacaca;
  color: #373737;
}

.active_page {
  background: #fb8a2e;
  color: #fff;
}

.right_AdminPanel_content_add {
  margin-bottom: 30px;
}

.right_AdminPanel_content_add a{
  text-decoration: none;
  color: #fff;
  font-size: 19px;
  background: #fb8a2e;
  padding: 10px 25px;
  border-radius: 8px;
}



#span_get_img, #span_get_desc, #span_get_text, #span_get_cat {
  padding: 10px;
  background: #fb8a2e;
  color: #fff;
  font-size: 18px;
  border-radius: 3px;
  cursor: pointer;
}

#title_form {
  padding: 15px;
  width: 96%;
  border-radius: 9px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#js-file {
  padding: 15px;
  width: 96%;
  border-radius: 9px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#desc_form {
  padding: 15px;
  width: 96%;
  border-radius: 9px;
  margin-top: 10px;
  margin-bottom: 20px;
}

#cat_form {
   padding: 15px;
  width: 96%;
  border-radius: 9px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.vk_groups {
  text-align: center;
  background: red;
}

.lalka {
  text-align: center;
}











/* ---------- Навигация по шагам ---------- */
.box_form {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}

.box_form span {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  z-index: 1;

  /* движение */
  transform: translateY(0);
  transition: background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}

.box_form span:hover {
  color: #2d3748;
  background: #f8fafc;
  transform: translateY(-2px); /* вкладка чуть приподнимается */
}

.box_form span b {
  margin-right: 6px;
  color: inherit;
  font-weight: 700;

  /* цифра слегка пружинит при наведении */
  display: inline-block;
  transition: transform 0.25s ease;
}

.box_form span:hover b {
  transform: scale(1.2);
}

/* ---------- Активная вкладка ---------- */
.box_form span.active {
  background: #fff;
  border-color: #cbd5e0;
  color: #2d3748;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* Синяя полоска вместо белой — теперь она анимированно «выезжает» */
.box_form span.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #2b6cb0;
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  transition: width 0.3s ease; /* полоска растёт от центра */
}
.box_form span.active::after {
  width: 100%;
  left: 0;
  transform: none;
  animation: underlineGrow 0.35s ease;
}

@keyframes underlineGrow {
  from { width: 0; left: 50%; transform: translateX(-50%); }
  to   { width: 100%; left: 0; transform: none; }
}

/* ---------- Пройденные шаги ---------- */
.box_form span.done {
  background: #ebf8ff;
  border-color: #bee3f8;
  color: #2b6cb0;
}

/* ---------- Панели шагов: мягкое появление ---------- */
#first, #cat_form, #img_form, #second, #third, #set {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  width: 93%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);

  animation: panelIn 0.35s ease;
}

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

#first h1, #cat_form h1, #img_form h1, #second h1, #third h1 {
  font-size: 20px;
  margin: 0 0 16px;
  color: #2d3748;
}

/* ---------- Поля ---------- */
#title_form,
#cat_select,
#subcat_select,
#desc_form,
#third textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 15px;
  color: #1a202c;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

#third textarea {
  min-height: 220px;
  resize: vertical;
}

#title_form:focus,
#cat_select:focus,
#desc_form:focus,
#third textarea:focus {
  outline: none;
  border-color: #4299e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
}

/* Кнопка «Далее» — яркая, основная */
.btn-next {
    display: inline-block;
    padding: 10px 24px;
    background-color: #3182ce;       /* синий */
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-next:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
}

.btn-next:active {
    transform: translateY(0);
}

/* Кнопка «Назад» — тихая, второстепенная */
.btn-back {
    display: inline-block;
    margin-right: 12px;
    padding: 10px 20px;
    background-color: transparent;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: #f7fafc;
    border-color: #a0aec0;
    color: #2d3748;
}


/* ---------- Шаг 3: загрузка файла и превью ---------- */
#js-file {
  margin-bottom: 16px;
  font-size: 14px;
}

#previewBox {
  padding: 14px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e0;
  border-radius: 6px;
  margin-bottom: 40px;
}

#previewBox p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
}

#previewImg {
  max-width: 300px;
  max-height: 200px;
  display: block;
  border-radius: 4px;
}

#removeBtn {
  margin-top: 10px;
  padding: 6px 12px;
  background: #ed8936;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
#removeBtn:hover {
  background: #dd6b20;
}

/* ---------- Финальная кнопка ---------- */
#add_recipes {
  width: 100%;
  margin-top: 12px;
  padding: 13px 0;
  background: #38a169;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#add_recipes:hover {
  background: #2f855a;
}


.right_AdminPanel_content_h1 {
  text-align: center;
}

.right_AdminPanel_content_h1 h1 {
  font-size: 20px;
}

.right_AdminPanel_content_form {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

#version_form {
    width: 30%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 15px;
    color: #1a202c;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    text-align: center;
}

#add_save {
  width: 30%;
  margin-top: 12px;
  padding: 13px 0;
  background: #38a169;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#add_save:hover {
  background: #2f855a;
}





.switch-wrapper {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3; /* синий цвет включенного */
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.switch-label {
  margin-left: 20px;
}



.editor-toolbar {
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 6px;
    background: #f8f8f8;
    border-radius: 6px 6px 0 0;
}
.editor-toolbar button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}
.editor-toolbar button:hover { background: #e0e0e0; }

.editor-field {
    border: 1px solid #ddd;
    min-height: 350px;
    padding: 12px;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 0 0 6px 6px;
    overflow-y: auto;
}
.editor-field:focus { outline: 2px solid #2196F3; outline-offset: -2px; }
.editor-field img { max-width: 100%; height: auto; }

.bread_crumbs {
  margin-right: 20px;
  margin-bottom: 20px;
}

.bread_crumbs a {
  text-decoration: none;
  color: #c2aa6f;
  font-size: 14px;
  text-transform: uppercase;
}

.material_text {
  margin-right: 20px;
}

.material_text p {
  margin-bottom: 30px;
}

.editor-img-wrapper {
  margin-bottom: 30px;
  text-align: center;
  padding: 10px;
}

.editor-img-wrapper img {
  width: 80%;
  border-radius: 6px;
}

.article_meta {
  margin-bottom: 32px;
}

.material_text h1 {
  font-size: 35px;
  color: #3c3c3c;
  font-weight: bold;
  margin-bottom: 45px;
}

.author {
  padding: 39px;
  border: 2px solid #f3f3f3;
  margin: 40px 0px;
}