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

:root {
    --red: #F0363D;
    --light-red: #FF8286;
    --white: #FFFFFF;
    --background: #F3EEE5;
    --green: #206C04;
    --orange: #F59E0BFF;
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --timeline-height: 200px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: .3s ease-in-out;
}

ul, ol, li {
    list-style-type: none;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.content {
    min-height: calc(100vh - 94px);
}

.site-header {
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1100;
}

.logo img {
    height: 50px;
}

.desktop-nav,
.desktop-auth {
    display: flex;
    gap: 20px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1101;
    position: relative;
}

.burger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav,
.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.menu-links,
.menu-auth {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.user_nav {
    display: flex;
    gap: 20px;
}

.register_buttons {
    display: flex;
    gap: 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
}

header {
    padding: 30px 0;
}

header .container {
    position: relative;
    z-index: 2;
}

.promo {
    height: 100vh;
    margin-top: -94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('/img/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    background-attachment: fixed;
}

.promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3);
}

.promo .container {
    width: 100%;
    z-index: 2;
}

h1, h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.promo h1 {
    font-size: 60px;
    text-transform: uppercase;
}

.promo_content {
    max-width: 700px;
}

.mini_hr {
    width: 50px;
    height: 2px;
    background: var(--red);
}

.promo .mini_hr {
    margin-top: 25px;
    margin-bottom: 30px;
}

.promo_desc {
    font-size: 25px;
    font-weight: 300;
}

.btn {
    border: none;
    font-family: 'Oswald', sans-serif;
    padding: 10px 50px;
    width: 100%;
    border-radius: 250px;
    display: block;
    text-align: center;
    cursor: pointer;
}

.btn_primary {
    background: var(--red);
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    border-bottom: 5px solid var(--light-red);
}

.promo .btn {
    width: fit-content;
}

.promo_buttons {
    margin-top: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.promo_buttons_list {
    display: flex;
    gap: 20px;
}

.promo_button_item {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100%;
}

.z-2 {
    position: relative;
    z-index: 2;
}

.promo_additional {
    margin-top: -200px;
    position: relative;
    z-index: 5;
}

.promo_additional_list {
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, .1);
    padding: 70px;
    display: flex;
    user-select: none;
    position: relative;
}

.swiper-container {
    overflow: hidden;
}

.timeline .btn {
    width: fit-content;
    margin: 30px auto 0;
}

.promo_additional_list .swiper-button-prev,
.promo_additional_list .swiper-button-next {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background: var(--white);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, .1);
    color: var(--red);
    font-size: 30px !important;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    opacity: 0.3;
    margin: 0 8px !important;
}

.swiper-pagination-bullet-active {
    opacity: 0.75;
    background: #000;
}

.promo_additional_item {
    flex: 1 0 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.promo_add_title {
    font-size: 20px;
}

.promo_add_desc {
    opacity: .8;
    margin-top: 20px;
}

h2 {
    font-size: 50px;
}

.main_products {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
    background-image: url('/img/tomato.png'), url('/img/leavs.png'), url('/img/vegg.png');
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: right -90px top calc(-116px + 50%),
    right -114px top calc(-260px + 50%),
    left -10px top 0, left -162px top calc(301px + 50%);
    background-size: 186px auto, auto, auto, 364px auto;
    background-attachment: scroll, scroll, scroll, scroll;
}

.main_products .mini_hr {
    margin: 15px auto;
}

.subtitle {
    opacity: .8;
}

.main_products_list {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.main_product_item {
    flex: 0 0 calc(50% - 40px);
}

.cuisine-recipes .receipt_title {
    text-align: center;
}

.main_product_img {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    display: block;
}

.main_product_img:hover img {
    transform: scale(1.1);
}

.main_product_img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: .5s ease-in-out;
}

.main_product_info {
    width: calc(100% - 50px);
    margin: -30px auto 0;
    background: var(--white);
    padding: 30px;
    z-index: 2;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, .1);
}

.main_product_title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.main_product_info .btn {
    width: fit-content;
    margin: 30px auto 0;
}

.about {
    padding: 220px 0 100px;
    background-image: url('/img/main_additionaly_bg.png'),
    linear-gradient(rgba(242, 242, 242, 0.95) 0%, rgba(242, 242, 242, 0.95) 100%),
    url('/img/about_bg.png'),
    none;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: left calc(-471px + 50%) top calc(36px + 50%), left 0px top 0px, center center, left calc(903px + 50%) top calc(103px + 50%);
    background-size: 979px auto, auto, cover, 536px auto;
    background-attachment: fixed, scroll, fixed, scroll;
    background-color: rgba(247, 246, 244, 1);
    margin-top: -120px;
}

.about_row {
    display: flex;
    gap: 100px;
}

.about_img {
    border-radius: 15px;
    overflow: hidden;
}

.about_col_img {
    position: relative;
}

.about_col_img .about_img_content {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    background: var(--white);
    padding: 30px;
    min-width: 190px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, .1);
}

.about_col_desc {
    white-space: pre-line;
    color: rgba(0, 0, 0, .6);
    margin-top: 20px;
}

.about_img_title {
    font-size: 70px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: var(--green);
}

.about_col_content .mini_hr {
    margin: 15px 0;
}

.about_col_content .btn {
    width: fit-content;
    margin-top: 30px;
}

.receipts {
    padding: 100px 0;
    text-align: center;
    background-image: url('/img/tomato.png'), url('/img/leavs.png'), url('/img/vegg.png');
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: right -90px top calc(-116px + 50%),
    right -114px top calc(-260px + 50%),
    left -10px top 0, left -162px top calc(301px + 50%);
    background-size: 186px auto, auto, auto, 364px auto;
    background-attachment: scroll, scroll, scroll, scroll;
}

.receipts_list {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.receipt_item {
    flex: 0 0 calc(50% - 40px);
    background: rgba(255, 255, 255, 0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, .1);
    border-radius: 15px;
    background: white;
}

.receipts .mini_hr {
    margin: 20px auto;
}

.receipt_ingredients_name {
    text-align: center;
    margin-bottom: 10px;
}

.receipts_subtitle {
    font-size: 20px;
}

.receipt_title {
    font-size: 20px;
    margin-bottom: 15px;
}

.receipt_ingredients {
    margin-bottom: 20px;
}

.receipt_ingredients {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 auto;
}

.receipt_ingredients_item {
    display: flex;
    padding: 8px 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
}

.receipt_ingredients_list {
    text-align: left;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.receipt_ingredients_list::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
}

.ingredient_name {
    font-weight: bold;
    flex: 1;
}

.ingredient_weight {
    color: rgba(0, 0, 0, 0.6);
    flex-basis: 80px;
    text-align: right;
    margin-left: 20px;
}

.ingredient_kbju {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.ingredient_kbju span {
    white-space: nowrap;
}

.receipt_kbju {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid black;
    margin: 15px auto 0;
}

.receipt_kbju h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.receipt_kbju p {
    font-size: 14px;
    margin: 2px 0;
}

.receipt_content .btn {
    width: fit-content;
    margin: 0 auto;
    margin-top: 30px;
}

.form_control {
    border: 1px solid rgba(0, 0, 0, .2);
    width: 100%;
    padding: 20px;
    border-radius: 250px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    outline: none;
    transition: .3s ease-in-out;
}

.form_control:focus {
    border-color: var(--light-red);
}

fieldset {
    border: none;
}

.form_group {
    display: flex;
    gap: 20px;
}

.form_content {
    padding: 70px 170px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, .1);
}

.form {
    text-align: center;
    padding: 100px 0;
}

.form .mini_hr {
    margin: 15px auto;
}

.form_form {
    margin-top: 30px;
}

.checkbox_label {
    display: flex;
    gap: 10px;
}

.form_form .checkbox_label {
    margin: 30px auto;
    width: fit-content;
}

.form_form .btn {
    width: fit-content;
    margin: 0 auto;
}

.form {
    background-image: url('/img/veg_4.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
    background-attachment: fixed;
}

.red {
    color: var(--red);
}

.promo_timeline {
    background-image: url('/img/main_additionaly_bg.png'), url('/img/timeline_bg.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left calc(-401px + 50%) top calc(-39px + 50%), left calc(450px + 50%) top calc(-13px + 50%);
    background-size: 910.47px auto, 929.11px auto;
}

.user_nav a:hover {
    color: var(--red);
}

#timeline-container {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
}

#map {
    height: 500px;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.vis-item {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.vis-item:hover {
    background-color: #2980b9;
}

.vis-item.vis-selected {
    background-color: var(--red);
}

.leaflet-popup-content {
    font-size: 14px;
}

.leaflet-popup h3 {
    margin: 0 0 5px;
    color: var(--red);
}

.leaflet-popup p {
    margin: 0;
    line-height: 1.5;
}

.map {
    padding: 100px 0;
}

.map_content {
    text-align: center;
}

.map_content .mini_hr {
    margin: 15px auto;
}

.map_content .subtitle {
    margin-bottom: 30px;
}

.timeline_description h3 {
    margin-top: 30px;
}

.timeline_description p {
    margin-top: 10px;
    white-space: pre-line;
}

.receipt_img {
    max-width: 800px;
    margin: 0 auto;
    height: 450px;
}

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

.receipt_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
}

.receipt_container {
    max-width: 1000px;
}

.receipt_desc {
    line-height: 140%;
    font-size: 18px;
}

.receipt_calories {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.receipt_calories_item {
    padding: 10px;
    background: #FFDE00FF;
    text-align: center;
    border-radius: 10px;
}

.receipt_calories_desc {
    background: var(--white);
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 10px;
}

.receipt_calories_desc p:first-of-type {
    font-size: 20px;
    font-weight: 500;
}

.receipt_title {
    margin-top: 20px;
}

.ingredients_list {
    margin-top: 30px;
}

.ingredients_item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(0, 0, 0, .3);
    padding: 10px;
}

.receipt_inst p {
    margin-top: 20px;
}

.receipt_content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-top: 40px;
}

.register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100vh - 94px);
    width: 700px;
    margin: 0 auto;
}

figcaption {
    display: none;
}

.form_label .form_control {
    margin-top: 10px;
}

.register h2 {
    text-align: center;
    margin-bottom: 40px;
}

.register_form .form_control {
    margin-bottom: 20px;
}

.auth_sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    border-right: 1px solid rgba(0, 0, 0, .1);
    z-index: 1000;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, .25);
}

.sidebar_logo {
    width: 100%;
    padding: 20px;
}

.auth_header .header_row {
    justify-content: flex-end;
    display: flex;
}

#avatar {
    width: 40px;
    height: 40px;
    line-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #000;
    color: var(--white);
    border-radius: 100%;
}

.auth_header {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.sidebar_links {
    padding: 20px;
}

.sidebar_links a {
    padding: 10px;
    border-radius: 10px;
    display: block;
    font-size: 14px;
}

.sidebar_links a.active {
    background: var(--orange);
    color: var(--white);
}

.auth_main {
    padding-left: 300px;
    min-height: calc(100vh - 101px);
    background: #FAFAFA;
    padding-top: 50px;
}

.auth_main .container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.auth_main * {
    font-family: 'Montserrat', sans-serif;
}

.auth_main_title_div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn_auth {
    background: var(--orange);
    color: var(--white);
    width: fit-content;
    border-radius: 10px;
    padding: 10px 20px;
}

a:hover {
    opacity: .8;
}

.orange {
    color: var(--orange);
}

.receipt_description {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.table_search {
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 10px;
    background: var(--white);
    padding-bottom: 20px;
}

.table_search .search {
    padding: 10px;
}

.auth_form_control {
    border: 1px solid rgba(0, 0, 0, .3);
    padding: 10px;
    border-radius: 10px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.select2 {
    border: 1px solid rgba(0, 0, 0, .3);
    padding: 3px 10px;
    border-radius: 10px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.select2-container--default .select2-selection--single {
    height: unset !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

.auth_form_control:focus {
    border-color: var(--orange);
}

.search {
    display: flex;
    gap: 30px;
}

.data_table thead tr:first-of-type {
    background: hsla(220, 9%, 46%, .05);
    color: rgb(75 85 99);
    text-align: left;
}

.data_table th {
    font-weight: 500;
    padding: 5px 10px;
    font-size: 14px;
}

.data_table td {
    padding: 10px;
}

.data_table {
    border-collapse: collapse;
}

.btn_danger {
    background: var(--red);
}

.ingredient-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.calories_group {
    display: flex;
    margin: 20px 0;
    align-items: center;
    gap: 20px;
}

.form-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

#add-ingredient {
    margin-top: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .5);
    z-index: 100000;
    display: none;
}

.modal_content {
    width: 500px;
    background: var(--white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    border-radius: 20px;
}

.modal_body {
    padding: 0 2rem 2rem;
}

.modal_header {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, .1);
    font-weight: 500;
    margin-bottom: 20px;
}

.btn_info {
    background: var(--green);
    font-size: 14px;
}

.flex {
    display: flex;
}

.gap-20 {
    gap: 20px;
}

.mt-1 {
    margin-top: .25rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-3 {
    margin-top: .75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: .25rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-3 {
    margin-bottom: .75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.green {
    color: var(--green);
}

.table_filters {
    display: flex;
    gap: 20px;
}

.blue {
    color: #2980b9;
}

.instructions {
    line-height: 150%;
    margin-top: 30px;
    margin-bottom: 30px;
}

blockquote {
    background-color: #f9f9f9;
    border-left: 5px solid #ccc;
    padding: 10px 20px;
    margin: 10px 0;
    font-style: italic;
}

blockquote p {
    margin: 0;
    line-height: 1.6;
}

figure.table {
    display: inline-block;
    width: 100%;
    overflow: auto;
    margin: 20px 0;
}

figure.table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

figure.table table td,
figure.table table th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

figure.table table tr:nth-child(even) {
    background-color: #f2f2f2;
}

figure.table table tr:hover {
    background-color: #ddd;
}

figure.table table th {
    background-color: #f2f2f2;
    color: black;
}

.avatar {
    position: relative;
}

.avatar .sidebar_info {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    width: 250px;
    padding: .5rem;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 10px;
}

.sidebar_info::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--white);
    z-index: 1;
}

.sidebar_info::after {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 11px solid rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.sidebar_info p {
    font-size: 14px;
    margin-bottom: .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    padding-bottom: .5rem;
}

trix-editor .attachment__progress {
    display: none;
}

#product-list {
    display: flex;
    flex-direction: column;
}

.data_table {
    width: 100%;
}

#results-container {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
}

#product-list li {
    padding: 0.25rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .4);
    cursor: pointer;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .2rem;
}

.table_product_name {
    font-weight: 500;
}

.chat-container {
    margin: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.chat-box {
    height: 650px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.chat-message {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-block;
}

.sent {
    align-self: flex-end;
    background: #007bff;
    color: #fff;
    text-align: right;
    border-bottom-right-radius: 2px;
}

.received {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    text-align: left;
    border-bottom-left-radius: 2px;
}

.message-info {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 4px;
    color: #555;
}

.timestamp {
    margin-right: 5px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-input button {
    background: #007bff;
    border: none;
    color: white;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.double_check {
    display: flex;
}

.double_check svg:last-of-type {
    margin-left: -4px;
}

.chat-partner {
    padding: 10px 20px;
    background: #FFFFFF;
}

.chat_avatar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.text-small {
    font-size: 12px;
}

.hidden {
    display: none;
}

.gray {
    color: rgba(0, 0, 0, .7);
}

.input_fields {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.receipt h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
}

.favorites_button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 13px;
    background: rgb(255, 255, 255);
    box-shadow: 0 0 4px rgb(0, 0, 0, .1);
    color: rgb(36, 31, 32);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
}

.btn_icon {
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.favorites_btnText {
    margin-right: 16px;
    position: relative;
}

.favorites_button svg {
    margin-top: -2px;
    color: rgb(255, 82, 82);
}

.favorites_count {
    margin-left: 4px;
}

.favorites_btnText:after {
    display: block;
    position: absolute;
    top: 50%;
    right: -8px;
    width: 1px;
    height: 14px;
    transform: translateY(-50%);
    background-color: rgb(237, 237, 237, .5);
    content: "";
}

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

.timeline-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    height: 700px;
    overflow: hidden;
}

.timeline-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    height: 100%;
    cursor: grab;
}

.timeline-wrapper:active {
    cursor: grabbing;
}

#timeline-strip {
    position: relative;
    height: 600px;
    background-image: url('/img/header.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    cursor: grab;
    overflow: visible;
    margin-top: 50px;
    width: 100%;
}

.timeline-axis {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
    z-index: 2;
}

.year-marker {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
}

.marker-line {
    width: 2px;
    height: 10px;
    background: white;
}

.year-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    color: white;
}

.event-card {
    position: absolute;
    min-height: 80px;
    max-height: 90px;
    padding: 10px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}

#event-details h3 {
    margin-bottom: 30px;
    margin-top: 40px;
}

#event-details p {
    line-height: 150%;
}

.event-card:hover {
    transform: scale(1.05);
    z-index: 100;
    max-height: none;
}

.event-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card p {
    font-size: 12px;
    margin: 0;
}

.event-card.civilization {
    background: #FFE0B2;
}

.event-card.war {
    background: #FFCDD2;
}

.event-card.science {
    background: #C8E6C9;
}

.event-card.culture {
    background: #B3E5FC;
}

.nav-btn {
    display: none;
}

.admin_receipt_img {
    max-width: 760px;
    margin: 0 auto;
    display: block;
}

.receipt_container {
    max-width: 1000px;
    margin: 0 auto;
}

.receipt_description_page {
    margin-top: 30px;
    line-height: 150%;
}

.instructions p {
    margin: 8px 0;
    line-height: 150%;
}

.kitchen-slider {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.slider-item {
    position: relative;
    padding: 10px;
    text-align: center;
}

.slider-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-item h3 {
    margin-top: 20px;
    font-size: 24px;
    color: #333;
}

.slider-item p {
    font-size: 16px;
    color: #666;
}

.slick-prev, .slick-next {
    background-color: #333;
    border-radius: 50%;
    padding: 10px;
    font-size: 20px;
    color: white;
}

/* Позиция стрелок */
.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:hover, .slick-next:hover {
    background-color: #666;
}

.slider-img {
    display: block;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.timeline .container > h2, .timeline .container > p {
    text-align: center;
}

.timeline .mini_hr {
    margin: 15px auto;
}

.timeline {
    margin-top: 40px;
}

.catalog_row {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.catalog_filters {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 280px;
    flex: 1 0 0;
}

.catalog_filter_group select,
.catalog_filter_group > span,
.catalog_filter_group {
    width: 100% !important;
}

.form_select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.form_select {
    position: relative;
}

.form_select::after {
    content: '';
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 5px;
    right: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% + 15px));
    width: 8px;
}

.form_select select, .form_select option {
    font-family: 'Montserrat', sans-serif;
}

.select2-hidden-accessible {
    display: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    font-size: 14px !important;
}

.catalog_filter_group > span {
    display: inline-block;
    margin-bottom: 10px;
}

.catalog_catalog .main_products_list {
    margin-top: 0;
}

.catalog_catalog {
    flex: 1 0 0;
}

.main_product_subtitle {
    font-size: 16px;
    line-height: 1.2;
    max-height: calc(1.2 * 3em);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.catalog_catalog .main_product_img {
    height: 300px;
}

.catalog h1 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn_mnt {
    font-family: 'Montserrat', sans-serif !important;
}

#instructions {
    height: 700px;
}

textarea {
    resize: none;
}

.form_textarea_medium {
    height: 100px;
}

.receipt_table_img {
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt_table_img_container {
    width: 60px;
    height: 60px;
}

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

.table_actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flex-1 {
    flex: 1 0 0;
}

.items-center {
    align-items: center;
}

.pagination nav {
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.pagination li button,
.pagination li span {
    display: block;
    background: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: .3s ease-in-out;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, .1);
}

.pagination li button:hover {
    background: #f1f1f1;
}

.pagination li.active span {
    background: #333;
    color: #fff;
}

.pagination li.disabled {
    opacity: .5;
    pointer-events: none;
}

.cuisine_header {
    height: 50vh;
    margin-top: -94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.cuisine_header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
    backdrop-filter: blur(5px);
}

.cuisine_header h1 {
    font-size: 56px;
}

.cuisine_header .container {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
}

.cuisine_desc {
    margin-top: 20px;
    font-size: 20px;
}

.cuisine_description,
.cuisine_history,
.popular_dishes,
.cuisine-facts,
.cuisine-recipes {
    margin-top: 50px;
}

.cuisine_description p,
.cuisine_history p {
    line-height: 150%;
}

.cuisine_history h2,
.popular_dishes h2 {
    margin-bottom: 20px;
}

.popular_dishes_desc {
    margin-top: 10px;
    line-height: 130%;
}

.cuisine_description p:last-of-type {
    margin-top: 10px;
}

.cuisine_facts_list {
    display: flex;
    gap: 30px;
}

.cuisine_facts_list li {
    flex: 1 0 0;
}

.popular_dishes .receipts_list {
    justify-content: center;
}

.cuisine-facts {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 2px solid #eaeaea;
}

.cuisine-facts .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cuisine-facts h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cuisine_facts_list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.cuisine_facts_list li {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cuisine_facts_list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cuisine-recipes h2 {
    text-align: center;
}

#comment {
    background: none;
}

#comment input {
    border-radius: 15px;
    margin-bottom: 20px;
}

#comment textarea {
    border-radius: 15px;
}

#comment button {
    margin-top: 30px;
}

.user-reviews {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.user-reviews .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок */
.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Сообщение, если отзывов нет */
.no-reviews {
    font-size: 18px;
    color: #555;
    text-align: center;
    padding: 20px;
}

/* Список отзывов */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recipe-name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.review-date {
    font-size: 14px;
    color: #999;
}

.review-text {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-actions {
    display: flex;
    gap: 10px;
}

.review-actions > * {
    width: fit-content;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    border: none;
}

.btn-round {
    border-radius: 15px;
}

.btn-md {
    padding: 10px 20px;
}

.btn-edit:hover {
    background-color: #e67e22;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: .3s ease-in-out;
}

.btn-receipt {
    background-color: #3498db;
    color: white;
    border: none;
    transition: .3s ease-in-out;
}

.btn-receipt:hover {
    background-color: #2980b9;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.delete-form {
    display: inline;
}

.review-content {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-img {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
}

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


.edit-form-container {
    margin-top: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: none; /* Скрыто по умолчанию */
}

/* Стили для текста в форме редактирования */
.edit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Кнопки внутри формы редактирования */
.edit-form button {
    margin-top: 10px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-cancel {
    background-color: #e74c3c;
    color: white;
    margin-left: 10px;
}

.btn-cancel:hover {
    background-color: #c0392b;
}

.reviews-list {
    margin-top: 20px;
}

.review-card {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    color: var(--white);
}

.user-name {
    font-size: 16px;
    font-weight: bold;
}

.review-text {
    font-size: 16px;
    color: #555;
}

.review-date {
    font-size: 14px;
    color: #777;
    align-self: flex-start;
}

.receipt_table_title {
    flex: 1 0 0;
}

/* Стили для формы добавления отзыва */
.add-review {
    margin-top: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-review textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 15px;
}

.add-review button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.add-review button:hover {
    background-color: #2980b9;
}

.table_comment_text {
    line-height: 150%;
}

.td_table_comment_text {
    max-width: 700px;
}

.map h2 {
    font-size: 2rem;
    text-align: center;
}

.map .mini_hr {
    margin: 20px auto;
}

.map p {
    text-align: center;
}

#search-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu_form .flex {
    gap: 20px;
    margin-bottom: 20px;
}

.menu_form .flex .form-group label {
    margin-bottom: 10px;
}

.menu_content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Стили для текста внутри блока */
.intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-text strong {
    color: #e74c3c;
    font-weight: 600;
}

.intro-text ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.intro-text ul li {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10"%3E%3Cpath d="M0 5L4 9L9 0L0 5Z" fill="%23e74c3c"%3E%3C/path%3E%3C/svg%3E') no-repeat left center;
    padding-left: 20px;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.intro-text ul li strong {
    color: #2c3e50;
}

.form_menu {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    transition: transform 0.3s ease;
    margin: 50px auto 0;
}

.form_menu:hover {
    transform: scale(1.02);
}

/* Стиль заголовка h2 внутри .form_menu */
.form_menu h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Стили для кнопки внутри .form_menu */
.form_menu .btn_primary {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form_menu .btn_primary:hover {
    background-color: #45a049;
}

.form_menu .btn_primary:active {
    background-color: #3e8e41;
}

.menu_receipt_title a {
    display: block;
    width: fit-content;
}

.menu_receipt_title a:not(:last-of-type) {
    margin-bottom: 10px;
}

.footer {
    background: #fafafa;
    height: auto;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-content h3 {
    font-size: 2.1rem;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 3rem;
}

.footer-content p {
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
    color: rgba(0, 0, 0, .8);
}

.socials {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
}

.socials li {
    margin: 0 10px;
}

.footer-bottom {
    background: #dcdcdc;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
}

.footer-menu ul {
    display: flex;
    gap: 10px;
}


.timeline_page {
    height: 100%;
    position: relative;
    margin-top: -94px;
}

.timeline_item {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    transition: transform 0.5s ease;
}

.timeline_item {
    background-image: url('/img/periods/1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.timeline_item > * {
    position: relative;
    z-index: 2;
}

.timeline_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 1;
}

.timeline_item:nth-child(2) {
    background-image: url('/img/periods/2.jpg');
}

.timeline_item:nth-child(3) {
    background-image: url('/img/periods/3.jpg');
}

.timeline_item:nth-child(4) {
    background-image: url('/img/periods/4.jpg');
}

.timeline_item:nth-child(5) {
    background-image: url('/img/periods/5.jpg');
}

.timeline_item img {
    max-width: 220px;
    height: auto;
    margin-bottom: 20px;
}

.timeline_item h1 {
    font-size: 2.5em;
    margin: 10px 0;
}

.timeline_item .content {
    font-size: 1.5em;
}

.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
    padding: 0;
    z-index: 5;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin: 10px 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-dot.active {
    opacity: 1;
}

.timeline_page .timeline_item:first-of-type {
    height: 100vh;
}

.map-container {
    width: 70%;
    height: 50vh;
    margin: 20px auto;
}

.period_description {
    line-height: 150%;
}

.kitchen_list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kitchen_item {
    flex: 0 0 calc(20% - 20px);
    position: relative;
    transition: .3s;
}

.kitchen_description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 90%;
    color: white;
    opacity: 0;
    user-select: none;
    transition: .3s;
}

.kitchen_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: .3s;
}

.kitchen_item:hover::before {
    opacity: 1;
}

.kitchen_item:hover .kitchen_description {
    opacity: 1;
}

.kitchen_link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kitchens h2,
.kitchens .container > p {
    text-align: center;
}

.kitchens .container > p {
    margin-bottom: 50px;
}

.kitchens .mini_hr {
    margin: 0 auto 15px;
}

.kitchens {
    padding: 50px 0;
}

.timeline_teaser {
    margin: 20px 0;
}

.timeline_teaser p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

.teaser_items {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.teaser_item {
    text-align: center;
    cursor: pointer;
}

.modal-years {
    font-weight: 600;
    color: #666;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.teaser_item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.teaser_item:hover img {
    transform: scale(1.1);
}

.teaser_item span {
    display: block;
    font-size: 1em;
    color: #333;
}

.index_timeline .btn_primary {
    width: fit-content;
    margin: 30px auto 0;
}

.index_timeline h2,
.index_timeline .index_timeline_subtitle {
    text-align: center;
}

.receipt_author {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.index_timeline .mini_hr {
    margin: 15px auto;
}

.fw-400 {
    font-weight: 400;
}

.index_timeline {
    padding: 50px 0;
}

.timeline_teaser p {
    text-align: center;
}

.catalog_link {
    width: fit-content;
    margin: 50px auto 0;
}

.faq_section h2 {
    margin-bottom: 30px;
}

.faq_list {
    max-width: 800px;
    margin: 0 auto;
}

.faq_item {
    border-bottom: 1px solid #ddd;
}

.faq_question {
    padding: 20px;
    font-size: 1.2em;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    position: relative;
}

.faq_question:hover {
    background: #f5f5f5;
}

.faq_question::after {
    content: '↩';
    font-size: 1em;
    opacity: 0.6;
    transition: transform 0.3s ease;
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: .5em;
    height: .5em;
}

/*.faq_item.active .faq_question::after {*/
/*    transform: rotate(180deg);*/
/*}*/

.faq_answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 1em;
    color: #555;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq_item.active .faq_answer {
    max-height: 200px;
    padding: 20px;
}

.faq_section h2 {
    text-align: center;
}

.faq_section {
    padding: 50px 0;
}

.checkbox_label {
    margin-top: 20px;
}

.review-subdescription {
    display: flex;
    flex-direction: column;
}

.review-status {
    font-size: 14px;
    margin-top: 5px;
}

.map .form_subtitle {
    margin-bottom: 20px;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;

    &.open {
        display: flex;
    }

    .modal-content {
        background: #fff;
        padding: 30px;
        border-radius: 10px;
        max-width: 600px;
        width: 90%;
        position: relative;
        animation: fadeIn 0.3s ease;
    }

    .modal-close {
        position: absolute;
        top: 10px; right: 15px;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }
}

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

.avatar {
    width: 40px;
    height: 40px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.tag.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.menu_form {
    display: flex;
    gap: 40px;
}

.menu_form > * {
    flex: 0 0 calc(50% - 40px);
}

@media (max-width: 1300px) {
    .container {
        max-width: 900px;
    }

    .promo_additional_list {
        padding: 30px;
    }

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

    .about_row {
        gap: 50px;
    }

    .about_col_img .about_img_content {
        padding: 20px;
        right: -30px;
    }

    .receipt_img {
        height: 300px;
    }

    .catalog_catalog .main_product_img {
        height: 200px;
    }

    .main_product_title {
        font-size: 15px;
    }

    .main_product_info {
        padding: 15px;
        width: calc(100% - 20px);
    }

    .main_product_subtitle {
        font-size: 12px;
    }

    .table_search {
        overflow-x: auto;
    }

    .data_table {
        min-width: 800px; /* Минимальная ширина таблицы */
    }

    .receipt_container .form-group .data_table tr {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        background-color: #fff;
        box-sizing: border-box;
    }

    .receipt_container .form-group .data_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border-bottom: none;
    }

    .receipt_container .form-group .data_table td:nth-child(1):before { content: "Название:"; }
    .receipt_container .form-group .data_table td:nth-child(2):before { content: "Вес:"; }
    .receipt_container .form-group .data_table td:nth-child(3):before { content: "Калории:"; }
    .receipt_container .form-group .data_table td:nth-child(4):before { content: "Белки:"; }
    .receipt_container .form-group .data_table td:nth-child(5):before { content: "Жиры:"; }
    .receipt_container .form-group .data_table td:nth-child(6):before { content: "Углеводы:"; }

    .receipt_container .form-group .data_table {
        width: 100%;
        min-width: unset;
    }

    .auth_main .receipt_container img {
        width: 100% !important;
    }
}

@media (max-width: 1000px) {
    .container {
        max-width: 600px;
    }

    .promo_content {
        text-align: center;
    }

    .promo .mini_hr {
        margin: 25px auto;
    }

    .promo_buttons {
        justify-content: center;
    }

    .about_col_img {
        display: none;
    }

    .about_col_desc {
        white-space: unset;
    }

    .kitchen_item {
        flex: 0 0 calc(33.333% - 20px);
    }

    .receipt_item {
        flex: 0 0 100%;
    }

    .form_content {
        padding: 50px;
    }

    .form_group {
        flex-direction: column;
    }

    .burger {
        display: flex;
    }

    .header_menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: white;
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 5;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .header_menu.active {
        display: flex;
    }

    .user_nav,
    .register_buttons {
        flex-direction: column;
        width: 100%;
    }

    .desktop-nav,
    .desktop-auth {
        display: none;
    }

    .burger {
        display: flex;
    }

    header .container {
        position: relative;
        z-index: 1101;
    }

    .catalog_row {
        flex-direction: column;
        margin-top: 20px;
    }

    .catalog_filters {
        flex: 0 0 100%;
        max-width: unset;
        gap: 10px;
    }

    .catalog h1 {
        font-size: 32px;
    }

    .form_content h2 {
        font-size: 32px;
    }

    .register {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .auth_sidebar {
        width: 250px;
    }

    .auth_main {
        padding-left: 250px;
    }

    .auth_main .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: unset;
    }
.menu_form {
flex-direction: column;
gap: 20px;
}

@media (max-width: 768px) {

    .data_table {
        display: block;
        min-width: unset;
    }

    .data_table thead {
        display: none; /* Скрываем заголовки таблицы */
    }

    .table_search {
        overflow-x: visible; /* Убираем прокрутку для карточного вида */
        padding: 0;
    }

    .data_table tr {
        display: block;
        width: 100%; /* Явно задаем полную ширину */
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        background-color: #fff;
        box-sizing: border-box;
    }

    .data_table tbody {
        display: block;
        margin: 0 20px;
    }

    .data_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border-bottom: none;
    }

    .data_table td:before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
        color: #333;
    }

    .data_table td .receipt_table_img,
    .data_table td .receipt_description,
    .data_table td .table_actions {
        flex: 2;
    }

    /* Названия столбцов для карточек */
    .data_table td:nth-child(1):before { content: "Название:"; }
    .data_table td:nth-child(2):before { content: "Описание:"; }
    .data_table td:nth-child(3):before { content: "Статус:"; }
    .data_table td:nth-child(4):before { content: "Дата создания:"; }
    .data_table td:nth-child(5):before { content: "Действия:"; }


    .admin_comments .data_table td:nth-child(1):before { content: "Имя:"; }
    .admin_comments .data_table td:nth-child(2):before { content: "Отзыв:"; }
    .admin_comments .data_table td:nth-child(3):before { content: "Дата создания:"; }
    .admin_comments .data_table td:nth-child(4):before { content: "Статус:"; }
    .admin_comments .data_table td:nth-child(5):before { content: "Действия:"; }

    .auth_menu .data_table td:nth-child(1):before { content: "Описание:"; }
    .auth_menu .data_table td:nth-child(2):before { content: "Рецепты:"; }
    .auth_menu .data_table td:nth-child(3):before { content: "Действия:"; }

    .table_comment_text {
        text-align: right;
    }

    /* Увеличим изображение в карточном виде */
    .receipt_table_img_container {
        width: 80px;
        height: 80px;
    }

    .receipt_description {
        white-space: normal; /* Разрешаем перенос текста */
        max-width: none;
    }

    .timeline-container {
        --timeline-height: 150px;
    }

    .container {
        max-width: unset;
        padding: 0 20px;
    }

    .promo h1 {
        font-size: 42px;
    }

    .teaser_items {
        flex-wrap: wrap;
    }

    .teaser_item {
        flex: 0 0 33.333%;
    }

    h2 {
        font-size: 32px;
    }

    .kitchen_item {
        flex: 0 0 calc(50% - 20px);
    }

    .receipt_img {
        height: 250px;
    }

    .receipt_title {
        font-size: 20px;
    }

    .receipt_item {
        padding: 15px;
    }

    .receipt_content .btn {
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .receipt_desc {
        font-size: 16px;
    }

    .input_fields {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 20px 0;
    }

    .receipt_ingredients_item {
        flex-direction: column;
    }

    .ingredient_weight {
        flex-basis: unset;
    }

    .instructions img {
        width: 100% !important;
        height: auto !important;
    }

    .receipt h2 {
        font-size: 26px;
    }

    .cuisine_facts_list {
        flex-wrap: wrap;
        display: flex;
    }

    .cuisine_facts_list li {
        flex: 0 0 100%;
    }

    .hamburger {
        display: block;
    }

    .auth_sidebar {
        transform: translateX(-100%); /* Скрываем меню слева */
        width: 250px;
    }

    .auth_sidebar.active {
        transform: translateX(0); /* Показываем меню */
    }

    main {
        margin-left: 0; /* Контент на всю ширину */
    }

    /* Уменьшаем логотип и отступы */
    .sidebar_logo {
        padding: 15px;
    }

    .sidebar_links {
        padding: 15px;
    }

    .sidebar_links a {
        font-size: 16px;
        padding: 8px;
        margin-bottom: 8px;
    }

    .sidebar_avatar {
        padding: 15px;
    }

    .auth_main {
        padding-left: 0;
    }

    .data_table tfoot {
        display: block;
        margin: 0 20px;
    }
}

@media (max-width: 600px) {
    .main_product_item {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    #map {
        height: 400px;
    }

    .vis-item {
        font-size: 12px;
        padding: 3px 8px;
    }
}
