* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-color: #f4f6f3;
    color: #26322b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dce3dc;
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #245c38;
    font-size: 25px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation a {
    padding: 10px 0;
    color: #46534b;
    font-weight: 600;
}

.main-navigation a:hover {
    color: #27834b;
}

.main-content {
    padding: 48px 0;
}

.hero-label {
    margin: 0 0 12px;
    color: #27834b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 10px;
    background-color: #27834b;
    color: #ffffff;
    font-weight: 700;
}

.button:hover {
    background-color: #206c3e;
}


@media (max-width: 760px) {
    .header-content {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-navigation {
        width: 100%;
        gap: 16px;
        overflow-x: auto;
    }

    .hero {
        padding: 42px 24px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* menu */
.page-header {
    margin-bottom: 38px;
}

.page-header h1 {
    margin: 0 0 12px;
    font-size: 42px;
}

.page-header p:last-child {
    margin: 0;
    color: #637068;
    font-size: 18px;
}

.menu-category {
    margin-bottom: 48px;
}

.category-heading {
    margin-bottom: 20px;
}

.category-heading h2 {
    margin: 0;
    color: #245c38;
    font-size: 30px;
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dish-card {
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 61, 42, 0.06);

    display: flex;
    flex-direction: column;
}

/* фото блюд */
.dish-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;

    object-position: center;
    flex-shrink: 0;
}

.dish-image-placeholder {
    display: flex;
    width: 100%;
    height: 210px;
    align-items: center;
    justify-content: center;
    background-color: #e9efe9;
    font-size: 54px;
    flex-shrink: 0;
}

/*  */

.dish-card-content {
    display: flex;
    min-height: 260px;
    padding: 24px;
    flex-direction: column;
}

.dish-card h3 {
    margin: 0 0 12px;
    font-size: 23px;
}

.dish-description {
    margin-bottom: 20px;
    color: #637068;
}

.dish-details {
    display: flex;
    gap: 14px;
    margin-top: auto;
    margin-bottom: 22px;
    color: #6d786f;
    font-size: 14px;
}

.dish-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dish-price {
    color: #245c38;
    font-size: 22px;
}

.dish-card .button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 900px) {
    .dish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dish-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 34px;
    }
}

/* доп. инф. (карточка товара) */
.dish-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 48px;
    align-items: start;
}

.dish-detail-image-wrapper {
    overflow: hidden;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(31, 61, 42, 0.08);
}

.dish-detail-image {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
}

.dish-detail-placeholder {
    display: flex;
    height: 520px;
    align-items: center;
    justify-content: center;
    background-color: #e9efe9;
    font-size: 90px;
}

.dish-detail-content {
    padding-top: 20px;
}

.dish-detail-content h1 {
    margin: 0 0 20px;
    font-size: 46px;
    line-height: 1.1;
}

.dish-detail-description {
    margin: 0 0 30px;
    color: #637068;
    font-size: 18px;
}

.dish-detail-info {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.dish-detail-info div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dish-detail-info span {
    color: #7b857e;
    font-size: 14px;
}

.dish-detail-info strong {
    font-size: 18px;
}

.dish-detail-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}

.dish-detail-price {
    color: #245c38;
    font-size: 30px;
}

.dish-detail-footer .button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.back-link {
    color: #27834b;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}

.dish-card h3 a:hover {
    color: #27834b;
}

@media (max-width: 820px) {
    .dish-detail {
        grid-template-columns: 1fr;
    }

    .dish-detail-image {
        height: 380px;
    }

    .dish-detail-placeholder {
        height: 380px;
    }

    .dish-detail-content h1 {
        font-size: 38px;
    }
}

/* Корзина */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 61, 42, 0.06);
}

.cart-item-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.cart-item-image {
    display: block;
    width: 140px;
    height: 110px;
    object-fit: cover;
}

.cart-item-placeholder {
    display: flex;
    width: 140px;
    height: 110px;
    align-items: center;
    justify-content: center;
    background-color: #e9efe9;
    font-size: 36px;
}

.cart-item-content h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.cart-item-content p {
    margin: 5px 0;
    color: #637068;
}

.cart-item-price {
    display: flex;
    min-width: 120px;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.cart-item-price strong {
    color: #245c38;
    font-size: 21px;
}

.remove-link {
    color: #b43e3e;
    font-weight: 700;
}

.remove-link:hover {
    text-decoration: underline;
}

.cart-summary {
    display: flex;
    margin-top: 28px;
    padding: 24px;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 16px;
}

.cart-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-summary span {
    color: #637068;
    font-size: 14px;
}

.cart-summary strong {
    font-size: 22px;
}

.cart-summary .button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.empty-cart {
    padding: 50px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 20px;
}

.empty-cart h2 {
    margin-top: 0;
}

.empty-cart p {
    margin-bottom: 26px;
    color: #637068;
}

@media (max-width: 700px) {
    .cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .cart-item-image,
    .cart-item-placeholder {
        width: 90px;
        height: 90px;
    }

    .cart-item-price {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cart-summary {
        align-items: stretch;
        flex-direction: column;
    }
}
/* корзина энд */

/* колво */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quantity-button {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dfd8;
    border-radius: 8px;
    background-color: #ffffff;
    color: #245c38;
    font-size: 20px;
    font-weight: 700;
}

.quantity-button:hover {
    background-color: #eef4ef;
}

.quantity-control span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}
/* колво энд */

/* счетчик */
.cart-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: #27834b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}
/* счетчик энд*/

/* Формы заказ */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.checkout-form,
.checkout-summary {
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 61, 42, 0.06);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ccd7ce;
    border-radius: 9px;
    background-color: #ffffff;
    color: #26322b;
    font: inherit;
}

.form-control:focus {
    border-color: #27834b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 131, 75, 0.12);
}

.errorlist {
    margin: 7px 0 0;
    padding: 0;
    color: #b43e3e;
    list-style: none;
    font-size: 14px;
}

.checkout-form .button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.checkout-summary h2 {
    margin-top: 0;
}

.checkout-item {
    display: flex;
    padding: 13px 0;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e1e7e1;
}

.checkout-total {
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
    align-items: center;
    font-size: 21px;
}

.checkout-total strong {
    color: #245c38;
}


@media (max-width: 850px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}
/* формы энд */

/* рег */
.auth-container {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    padding: 36px;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(31, 61, 42, 0.08);
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 28px;
}

.auth-card .button {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.auth-footer {
    margin: 25px 0 0;
    text-align: center;
    color: #637068;
}

.auth-footer a {
    color: #27834b;
    font-weight: 700;
}

.login-error {
    padding: 12px 14px;
    border-radius: 8px;
    background-color: #fff0f0;
    color: #b43e3e;
}

.username {
    color: #27834b;
    font-weight: 700;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;
    border: 0;
    background: none;
    color: #46534b;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.logout-button:hover {
    color: #27834b;
}
/* регЭнд */

/* история заказов */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-card {
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 61, 42, 0.06);
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.order-card-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.order-card-header p {
    margin: 0;
    color: #6d786f;
}

.order-status {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.order-status-new {
    background-color: #eef0f2;
    color: #5f6972;
}

.order-status-accepted {
    background-color: #e8f1ff;
    color: #1f64b5;
}

.order-status-cooking {
    background-color: #fff3df;
    color: #b46900;
}

.order-status-ready {
    background-color: #e6f7eb;
    color: #218548;
}

.order-status-completed {
    background-color: #edf3ef;
    color: #557062;
}

.order-status-cancelled {
    background-color: #fdeaea;
    color: #b43e3e;
}

.order-info {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}

.order-info div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-info span {
    color: #6d786f;
    font-size: 14px;
}

.order-items {
    border-top: 1px solid #e1e7e1;
    border-bottom: 1px solid #e1e7e1;
}

.order-item-row {
    display: flex;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.order-comment {
    margin-top: 20px;
}

.order-comment p {
    margin-bottom: 0;
    color: #637068;
}

.empty-orders {
    padding: 50px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 20px;
}

.empty-orders h2 {
    margin-top: 0;
}

.empty-orders p {
    margin-bottom: 25px;
    color: #637068;
}

@media (max-width: 650px) {
    .order-card-header {
        flex-direction: column;
    }

    .order-info {
        flex-direction: column;
        gap: 15px;
    }
}
/* историяЭнд */

/* фильтр меню */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.category-filter-link {
    display: inline-flex;
    padding: 10px 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e0d7;
    border-radius: 999px;
    background-color: #ffffff;
    color: #46534b;
    font-weight: 700;
    transition: 0.2s;
}

.category-filter-link:hover {
    border-color: #27834b;
    color: #27834b;
}

.category-filter-link.active {
    border-color: #27834b;
    background-color: #27834b;
    color: #ffffff;
}

.dish-category {
    margin: 0 0 8px;
    color: #27834b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.empty-menu {
    padding: 50px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 20px;
}

.empty-menu h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

/* фильрт менюЭнд */

/* =========================
   ГЛАВНАЯ СТРАНИЦА
   ========================= */



/* Заголовки секций */

.section-heading {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: 34px;
}

.section-link {
    color: #27834b;
    font-weight: 700;
}

.section-link:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}





/* =========================
   ВЫБОР ДАТЫ МЕНЮ
   ========================= */

.date-filter {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.date-filter-link {
    display: flex;
    min-height: 82px;
    padding: 12px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    background-color: #ffffff;
    border: 1px solid #d6e0d7;
    border-radius: 14px;

    color: #46534b;
    text-align: center;
    text-decoration: none;

    transition: 0.2s;
}

.date-filter-link:hover {
    border-color: #27834b;
    color: #27834b;
}

.date-filter-link.active {
    background-color: #27834b;
    border-color: #27834b;
    color: #ffffff;
}

.date-weekday {
    font-size: 13px;
    text-transform: uppercase;
}

.date-filter-link strong {
    font-size: 17px;
}

.date-filter-link small {
    font-size: 11px;
    opacity: 0.8;
}


@media (max-width: 750px) {

    .date-filter {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .date-filter-link {
        min-width: 85px;
    }

}

/* message */
.messages {
    margin-bottom: 24px;
}

.message {
    padding: 14px 18px;
    border-radius: 10px;
}

.message.warning {
    border: 1px solid #efd8a8;
    background-color: #fff3df;
    color: #8e5700;
}
/* mesEnd */

/* дата */
.pickup-date-display {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8e0d9;
    border-radius: 9px;
    background-color: #f3f6f3;
    color: #26322b;
    font-weight: 700;
}

/* если нет в наличии */
.button-disabled {
    background-color: #aab3ac;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.8;
}
.dish-base-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}


/* выравнивание цены */
.dish-detail-price-label {
    display: block;
    margin-bottom: 4px;
    color: #637068;
    font-size: 15px;
}

.dish-detail-price {
    display: block;
}

.dish-detail-actions {
    display: flex;
    margin-top: 24px;
    align-items: center;
    gap: 18px;
}

/* ошибка остатка */
.form-errors {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #efc3c3;
    border-radius: 10px;
    background-color: #fff0f0;
    color: #b43e3e;
}


.dish-stock {
    margin: 10px 0 0;
    color: #637068;
    font-size: 14px;
}

.dish-stock strong {
    color: #245c38;
}

/* + */
.quantity-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-stock {
    margin: 8px 0 0;
    color: #637068;
    font-size: 13px;
}

/* Кнопки в оформлении */
.fulfillment-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.fulfillment-option {
    cursor: pointer;
}

.fulfillment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fulfillment-option span {
    display: inline-flex;
    min-height: 46px;
    padding: 0 20px;

    align-items: center;
    justify-content: center;

    border: 1px solid #d6e0d7;
    border-radius: 12px;

    background-color: #ffffff;
    color: #26322b;

    font-weight: 600;

    transition:
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.fulfillment-option span:hover {
    border-color: #27834b;
    color: #27834b;
}

.fulfillment-option input:checked + span {
    background-color: #27834b;
    border-color: #27834b;
    color: #ffffff;
}
/* кнопки офф */

/* Order_success */

.order-success {
    padding: 60px 30px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e1e7e1;
    border-radius: 20px;
}

.success-icon {
    display: flex;
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background-color: #27834b;
    color: #ffffff;

    font-size: 38px;
    font-weight: 700;
}

.order-success h1 {
    margin: 0 0 18px;
}

.success-order-number {
    margin-bottom: 0;
    color: #637068;
}

.success-details {
    width: 100%;
    max-width: 520px;
    margin: 30px auto 0;

    border-top: 1px solid #dfe5df;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    padding: 14px 0;

    border-bottom: 1px solid #dfe5df;
}

.success-detail-row span {
    color: #66736b;
    text-align: left;
}

.success-detail-row strong {
    text-align: right;
}

.success-items {
    width: 100%;
    max-width: 520px;
    margin: 32px auto 0;

    text-align: left;
}

.success-items h2 {
    margin: 0 0 16px;
    text-align: center;
}

.success-item-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    padding: 12px 0;

    border-bottom: 1px solid #dfe5df;
}

.success-total {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    margin-top: 16px;
    padding-top: 16px;

    font-size: 20px;
}

.success-total strong {
    color: #176b38;
}

.success-message {
    margin: 28px 0 0;
    color: #637068;
}

.success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    margin-top: 28px;
}

.success-actions .button {
    margin-top: 0;
}

.success-orders-link {
    color: #176b38;
    font-weight: 600;
    text-decoration: none;
}

.success-orders-link:hover {
    text-decoration: underline;
}

/* Order_success_END */

/* кнопка отмены заказа пользователем */
.order-cancel-form {
    margin-top: 20px;
}

.order-cancel-button {
    padding: 10px 16px;

    border: 1px solid #d45a5a;
    border-radius: 10px;

    background-color: #ffffff;
    color: #b43e3e;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.order-cancel-button:hover {
    background-color: #fdeaea;
}
/* кнопка отмены заказа пользователем_END */


/* Стиль отмены заказа */
.cancel-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 1000;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.cancel-modal-open {
    display: flex;
}

.cancel-modal-backdrop {
    position: absolute;
    inset: 0;

    background-color: rgba(20, 30, 25, 0.55);
}

.cancel-modal-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 440px;

    padding: 32px;

    text-align: center;

    background-color: #ffffff;

    border: 1px solid #e1e7e1;
    border-radius: 18px;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.cancel-modal-icon {
    display: flex;

    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #fdeaea;
    color: #b43e3e;

    font-size: 30px;
    font-weight: 700;
}

.cancel-modal-dialog h2 {
    margin: 0 0 12px;
}

.cancel-modal-dialog p {
    margin: 0;

    color: #637068;
}

.cancel-modal-note {
    margin-top: 12px !important;

    font-size: 14px;
}

.cancel-modal-actions {
    display: flex;
    gap: 12px;

    margin-top: 26px;
}

.cancel-modal-back,
.cancel-modal-confirm {
    flex: 1;

    padding: 12px 16px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.cancel-modal-back {
    border: 1px solid #d7ded8;

    background-color: #ffffff;
    color: #25332b;
}

.cancel-modal-back:hover {
    background-color: #f3f6f3;
}

.cancel-modal-confirm {
    border: 1px solid #c94b4b;

    background-color: #c94b4b;
    color: #ffffff;
}

.cancel-modal-confirm:hover {
    background-color: #ad3f3f;
}

.cancel-modal-dialog {
    max-width: 420px;
}
/* Стиль отмены заказа_END */


/* Детальная страница заказа */

.order-detail-card {
    max-width: 900px;

    padding: 32px;
    margin-bottom: 40px;

    background-color: #ffffff;

    border: 1px solid #e1e7e1;
    border-radius: 20px;
}

.order-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;

    padding-bottom: 24px;

    border-bottom: 1px solid #dfe5df;
}

.order-detail-header h2 {
    margin: 0 0 8px;
}

.order-detail-header p {
    margin: 0;

    color: #637068;
}


/* Основная информация */

.order-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;

    padding: 26px 0;

    border-bottom: 1px solid #dfe5df;
}

.order-detail-info > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-detail-info span {
    color: #637068;
}

.order-detail-info strong {
    font-size: 16px;
}


/* Отдельные блоки */

.order-detail-section {
    padding: 24px 0;

    border-bottom: 1px solid #dfe5df;
}

.order-detail-section h3 {
    margin: 0 0 16px;
}

.order-detail-section p {
    margin: 0;

    color: #4f5d55;
}


/* Блюда */

.order-detail-items {
    width: 100%;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    padding: 14px 0;

    border-bottom: 1px solid #edf0ed;
}

.order-detail-item:first-child {
    padding-top: 0;
}

.order-detail-item:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

.order-detail-total {
    display: flex;
    justify-content: space-between;
    gap: 30px;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #dfe5df;

    font-size: 20px;
}

.order-detail-total strong {
    color: #176b38;
}


/* Кнопки */

.order-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;

    padding-top: 26px;
}

.order-detail-link {
    color: #172c24;
    text-decoration: none;
}

.order-detail-link:hover {
    color: #27834b;
    text-decoration: underline;
}


.order-status-history {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order-status-history-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.order-status-history-marker {
    width: 12px;
    height: 12px;
    margin-top: 5px;

    border-radius: 50%;

    background-color: #27834b;

    flex-shrink: 0;
}

.order-status-history-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-status-history-item span {
    color: #637068;
    font-size: 14px;
}

.order-status-history-marker-new {
    background-color: #6c757d;
}

.order-status-history-marker-accepted {
    background-color: #0d6efd;
}

.order-status-history-marker-cooking {
    background-color: #fd7e14;
}

.order-status-history-marker-ready {
    background-color: #198754;
}

.order-status-history-marker-completed {
    background-color: #557062;
}

.order-status-history-marker-cancelled {
    background-color: #dc3545;
}

/* Детальная страница заказа_END */

/* Счетчик "мои заказы" */
.nav-orders-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-orders-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;

    align-items: center;
    justify-content: center;

    padding: 0 6px;

    border-radius: 999px;

    background-color: #27834b;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.order-card-unread {
    border-color: #8fc9a4;

    box-shadow:
        0 0 0 2px rgba(39, 131, 75, 0.08),
        0 10px 28px rgba(39, 131, 75, 0.08);
}

.order-card-unread::before {
    content: "Обновлено";

    display: inline-flex;

    margin-bottom: 14px;
    padding: 5px 10px;

    border-radius: 999px;

    background-color: #e6f7eb;
    color: #218548;

    font-size: 12px;
    font-weight: 700;
}

/* Счетчик "мои заказы"_END */

/*  РАБОЧАЯ ПАНЕЛЬ СОТРУДНИКА */

.staff-orders-list {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.staff-order-card {
    background: #ffffff;
    border: 1px solid #dfe5df;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.staff-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.staff-order-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.staff-order-header p {
    margin: 0;
    color: #68756c;
}

.staff-order-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 30px;

    padding: 20px 0;
    border-top: 1px solid #e1e6e1;
    border-bottom: 1px solid #e1e6e1;
}

.staff-order-info > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff-order-info span {
    font-size: 14px;
    color: #68756c;
}

.staff-order-info strong {
    font-size: 16px;
}

.staff-order-address {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f5f8f5;
    border-radius: 10px;
}

.staff-order-items {
    margin-top: 18px;
}

.staff-order-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 0;
    border-bottom: 1px solid #e1e6e1;
}

.staff-order-item:last-child {
    border-bottom: 0;
}


/* Статусы */

.staff-order-card .order-status {
    display: inline-flex;
    align-items: center;

    padding: 8px 13px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.staff-order-card .order-status-new {
    background: #f1f3f5;
    color: #59636b;
}

.staff-order-card .order-status-accepted {
    background: #e8f1ff;
    color: #2463b5;
}

.staff-order-card .order-status-cooking {
    background: #fff2df;
    color: #c46a00;
}

.staff-order-card .order-status-ready {
    background: #e5f7ec;
    color: #16834c;
}


/* Нет активных заказов */

.empty-orders {
    margin-top: 32px;
    padding: 40px;

    background: #ffffff;
    border: 1px solid #dfe5df;
    border-radius: 18px;

    text-align: center;
}

.empty-orders h2 {
    margin-top: 0;
}

.empty-orders p {
    margin-bottom: 0;
    color: #68756c;
}


/* Адаптация */

@media (max-width: 700px) {

    .staff-order-card {
        padding: 20px;
    }

    .staff-order-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .staff-order-header {
        align-items: flex-start;
    }
}

.staff-orders-date {
    margin-top: 8px;
    font-weight: 600;
    color: #248b50;
}


.staff-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid #e1e6e1;
}

.staff-order-actions form {
    margin: 0;
}

.staff-action-button {
    padding: 11px 18px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.staff-action-primary {
    border: 1px solid #27834b;

    background-color: #27834b;
    color: #ffffff;
}

.staff-action-primary:hover {
    background-color: #1f6f3e;
}

.staff-action-cancel {
    border: 1px solid #d45a5a;

    background-color: #ffffff;
    color: #b43e3e;
}

.staff-action-cancel:hover {
    background-color: #fdeaea;
}

.staff-archive {
    margin-top: 48px;
}

.staff-archive-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.staff-archive-header h2 {
    margin: 4px 0 0;
}

.staff-archive-header > span {
    display: inline-flex;

    min-width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background-color: #eef1ee;
    color: #57635b;

    font-weight: 700;
}

.staff-order-card-archived {
    opacity: 0.88;
}

.staff-archive-empty {
    padding: 24px;

    background-color: #ffffff;
    border: 1px solid #e1e6e1;
    border-radius: 14px;

    color: #68756c;
}

.staff-archive-link {
    color: #27834b;
    font-weight: 700;
    text-decoration: none;
}

.staff-archive-link:hover {
    text-decoration: underline;
}

.staff-order-link {
    color: #172c24;
    text-decoration: none;
}

.staff-order-link:hover {
    color: #27834b;
    text-decoration: underline;
}

.staff-active-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-orders-count {
    display: inline-flex;

    min-width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border-radius: 999px;

    background-color: #e7f4eb;
    color: #218548;

    font-weight: 700;
}
/*  РАБОЧАЯ ПАНЕЛЬ СОТРУДНИКА_END */

/* Архив */
.staff-archive-filters {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );

    gap: 18px;
    align-items: end;

    margin-bottom: 30px;
    padding: 22px;

    background-color: #ffffff;
    border: 1px solid #dfe5df;
    border-radius: 16px;
}

.staff-filter-field:first-child {
    grid-column: span 2;
}

.staff-filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.staff-filter-field label {
    font-size: 14px;
    font-weight: 700;
}

.staff-filter-field input,
.staff-filter-field select {
    min-height: 44px;

    padding: 9px 12px;

    border: 1px solid #ccd6cf;
    border-radius: 10px;

    background-color: #ffffff;

    font: inherit;
}

.staff-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-filter-reset {
    color: #637068;
    font-weight: 600;
    text-decoration: none;
}

.staff-filter-reset:hover {
    color: #27834b;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .staff-archive-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .staff-archive-filters {
        grid-template-columns: 1fr;
    }
}

/* Архив_END */

/* пгинация */
.staff-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-top: 24px;
}

.staff-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 8px 14px;

    border: 1px solid #d7e0d9;
    border-radius: 10px;

    background-color: #ffffff;
    color: #27834b;

    font-weight: 700;
    text-decoration: none;
}

.staff-pagination-link:hover {
    background-color: #edf7f0;
}

.staff-pagination-current {
    color: #637068;
    font-size: 14px;
}
/* пагинация_END */

/* Фильтр */
.archive-stats {
    display: grid;
    grid-template-columns: repeat(
        4,
        minmax(150px, 1fr)
    );

    gap: 16px;

    margin-bottom: 28px;
}

.archive-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 18px 20px;

    background-color: #ffffff;
    border: 1px solid #dfe5df;
    border-radius: 14px;
}

.archive-stat-card span {
    color: #68756c;
    font-size: 14px;
}

.archive-stat-card strong {
    font-size: 22px;
}

@media (max-width: 800px) {
    .archive-stats {
        grid-template-columns: repeat(
            2,
            minmax(140px, 1fr)
        );
    }
}

@media (max-width: 500px) {
    .archive-stats {
        grid-template-columns: 1fr;
    }
}
/* Фильтр_END */

/* Активные Заказы на неделю */
.staff-date-tabs {
    display: flex;
    gap: 12px;

    margin: 24px 0 30px;

    overflow-x: auto;
    padding-bottom: 4px;
}

.staff-date-tab {
    position: relative;

    display: flex;
    min-width: 110px;
    min-height: 88px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 12px 16px;

    border: 1px solid #d7e0d9;
    border-radius: 14px;

    background-color: #ffffff;
    color: #26352e;

    text-decoration: none;
}

.staff-date-tab:hover {
    border-color: #27834b;
}

.staff-date-tab-active {
    background-color: #27834b;
    border-color: #27834b;
    color: #ffffff;
}

.staff-date-weekday {
    font-size: 12px;
    text-transform: uppercase;
}

.staff-date-tab strong {
    font-size: 17px;
}

.staff-date-tab small {
    font-size: 11px;
}

.staff-date-count {
    position: absolute;

    top: 7px;
    right: 7px;

    display: inline-flex;

    min-width: 21px;
    height: 21px;

    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 999px;

    background-color: #e6f7eb;
    color: #218548;

    font-size: 11px;
    font-weight: 700;
}

.staff-date-tab-active .staff-date-count {
    background-color: #ffffff;
    color: #27834b;
}
/* Активные Заказы на неделю_END */

/* карточка */

.dish-cart-quantity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dish-cart-quantity form {
    margin: 0;
}

.quantity-button {
    display: inline-flex;
    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid #27834b;
    border-radius: 10px;

    background-color: #ffffff;
    color: #27834b;

    font-size: 22px;
    font-weight: 700;

    cursor: pointer;
}

.quantity-button:hover {
    background-color: #edf7f0;
}

.quantity-value {
    min-width: 28px;

    text-align: center;

    font-size: 18px;
    font-weight: 700;
}
/* карточка_END */

/* Отмена в стафф */
.staff-cancel-modal {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 2000;
}

.staff-cancel-modal-open {
    display: flex;
}

.staff-cancel-modal-overlay {
    position: absolute;
    inset: 0;

    background-color: rgba(20, 30, 24, 0.58);
    backdrop-filter: blur(2px);
}

.staff-cancel-modal-window {
    position: relative;

    width: min(440px, calc(100% - 32px));

    padding: 32px;

    background-color: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.22);

    text-align: center;

    z-index: 1;
}

.staff-cancel-modal-icon {
    display: flex;

    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #fde8e8;
    color: #c93e3e;

    font-size: 30px;
    font-weight: 700;
}

.staff-cancel-modal-window h2 {
    margin: 0 0 14px;

    font-size: 26px;
}

.staff-cancel-modal-text {
    margin: 0 0 10px;

    color: #4f5f56;
    line-height: 1.5;
}

.staff-cancel-modal-customer {
    margin: 0 0 18px;

    color: #2c3b33;
}

.staff-cancel-modal-warning {
    margin: 0 0 26px;

    padding: 14px 16px;

    border-radius: 12px;

    background-color: #fff6e9;
    color: #8a5b13;

    font-size: 14px;
    line-height: 1.5;
}

.staff-cancel-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.staff-cancel-modal-back,
.staff-cancel-modal-confirm {
    min-height: 44px;

    padding: 10px 14px;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;
}

.staff-cancel-modal-back {
    border: 1px solid #d7dfd9;

    background-color: #ffffff;
    color: #28372f;
}

.staff-cancel-modal-back:hover {
    background-color: #f3f6f4;
}

.staff-cancel-modal-confirm {
    border: 1px solid #cf4b4b;

    background-color: #cf4b4b;
    color: #ffffff;
}

.staff-cancel-modal-confirm:hover {
    background-color: #ba3f3f;
}

@media (max-width: 520px) {
    .staff-cancel-modal-actions {
        grid-template-columns: 1fr;
    }
}

.staff-cancel-button {
    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid #d94b4b;
    border-radius: 10px;

    background-color: #ffffff;
    color: #c63f3f;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.staff-cancel-button:hover {
    background-color: #fdeaea;
    border-color: #c63f3f;
    color: #b53030;
}

.staff-cancel-button:active {
    transform: translateY(1px);
}

.staff-order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Отмена в стафф_END */


/* Изменение Главной */

.benefits-section {
    margin-bottom: 54px;
}

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.benefit-card {
    padding: 28px 22px;

    border: 1px solid #e2e9e3;
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #fbfdfb 0%,
            #f5faf6 100%
        );

    text-align: center;
}

.benefit-icon {
    display: flex;

    width: 58px;
    height: 58px;

    margin: 0 auto 16px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #dff1e4;

    font-size: 27px;
}

.benefit-card h3 {
    margin: 0 0 8px;

    font-size: 18px;
}

.benefit-card p {
    margin: 0;

    color: #68766e;

    line-height: 1.5;
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}




/* замена HERO SLIDER */

.hero-full-slider {
    position: relative;

    height: 500px;
    padding: 0;
    border: 0;

    margin-bottom: 28px;

    overflow: hidden;

    border-radius: 24px;

    background-color: #1f3028;

    box-shadow:
        0 20px 50px rgba(25, 55, 35, 0.12);
}


/* Картинки */

.hero-full-slides {
    position: absolute;
    inset: 0;
}

.hero-full-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.hero-full-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-full-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* Затемнение слева */

.hero-full-shade {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(16, 29, 22, 0.78) 0%,
            rgba(16, 29, 22, 0.60) 28%,
            rgba(16, 29, 22, 0.20) 55%,
            rgba(16, 29, 22, 0.02) 100%
        );
}


/* Текст */

.hero-full-content {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;
}

.hero-full-text {
    position: absolute;

    top: 50%;
    left: 7%;

    width: min(520px, 44%);

    transform:
        translateY(-46%)
        translateX(-14px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        visibility 0.55s ease;
}

.hero-full-text.active {
    transform:
        translateY(-50%)
        translateX(0);

    opacity: 1;
    visibility: visible;
}

.hero-full-text .hero-label {
    margin-bottom: 14px;

    color: #d9f3df;
}

.hero-full-text h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: clamp(
        40px,
        4vw,
        62px
    );

    line-height: 1.04;

    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.25);
}

.hero-full-description {
    max-width: 430px;

    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 18px;
    line-height: 1.55;
}


/* Кнопка */

.hero-full-slider .hero-button {
    background-color: #279052;
    color: #ffffff;

    box-shadow:
        0 8px 22px rgba(20, 100, 55, 0.28);
}

.hero-full-slider .hero-button:hover {
    background-color: #217d46;
}


/* Стрелки */

.hero-arrow {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;

    background-color: rgba(255,255,255,0.92);
    color: #218148;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 4px 16px rgba(0,0,0,0.15);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.hero-arrow:hover {
    background-color: #ffffff;

    transform:
        translateY(-50%)
        scale(1.06);
}

.hero-arrow-left {
    left: 18px;
}

.hero-arrow-right {
    right: 18px;
}


/* Точки */

.hero-full-dots {
    position: absolute;

    left: 50%;
    bottom: 18px;

    z-index: 5;

    display: flex;

    gap: 9px;

    transform: translateX(-50%);
}

.hero-full-dots .hero-dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: rgba(255,255,255,0.65);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.hero-full-dots .hero-dot.active {
    background-color: #269351;

    transform: scale(1.15);
}


/* Адаптив */

@media (max-width: 900px) {

    .hero-full-slider {
        height: 480px;
    }

    .hero-full-text {
        left: 8%;

        width: 64%;
    }

    .hero-full-shade {
        background:
            linear-gradient(
                90deg,
                rgba(16,29,22,0.82) 0%,
                rgba(16,29,22,0.65) 50%,
                rgba(16,29,22,0.20) 100%
            );
    }

}


@media (max-width: 600px) {

    .hero-full-slider {
        height: 500px;

        border-radius: 18px;
    }

    .hero-full-text {
        left: 26px;
        right: 26px;

        width: auto;
    }

    .hero-full-text h1 {
        font-size: 38px;
    }

    .hero-full-description {
        font-size: 16px;
    }

    .hero-full-shade {
        background:
            linear-gradient(
                90deg,
                rgba(16,29,22,0.80),
                rgba(16,29,22,0.48)
            );
    }

    .hero-arrow {
        width: 38px;
        height: 38px;

        font-size: 26px;
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

}

/* =========================================
   FEATURE ICONS
========================================= */

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background-color: #e1f3e7;
    color: #24894d;
}

.feature-icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =========================================
   HEADER LOGO FIX
========================================= */

.logo {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    text-decoration: none;
}

.site-logo {
    display: block;

    height: 66px;
    width: auto;

    object-fit: contain;
}


/* Шапка */

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

    min-height: 72px;

    gap: 30px;
}

.main-navigation {
    display: flex;
    align-items: center;

    margin-left: auto;
}

/* ==================================================
   ГЛАВНАЯ — КАРТОЧКИ БЛЮД
   ================================================== */

.featured-section {
    margin-top: 64px;
    margin-bottom: 0;
}

.featured-section .section-heading {
    margin-bottom: 28px;
}

.featured-section .dish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* Карточка */

.featured-section .dish-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e9e3;
    border-radius: 20px;

    box-shadow:
        0 8px 24px rgba(27, 64, 43, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.featured-section .dish-card:hover {
    transform: translateY(-5px);

    border-color: #cfe0d3;

    box-shadow:
        0 16px 34px rgba(27, 64, 43, 0.11);
}


/* Фотография */

.featured-section .dish-card > a {
    display: block;
    overflow: hidden;
}

.featured-section .dish-image {
    display: block;

    width: 100%;
    height: 260px;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.featured-section .dish-card:hover .dish-image {
    transform: scale(1.035);
}


/* Содержимое */

.featured-section .dish-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 24px 24px 22px;
}


/* Категория */

.featured-section .dish-category {
    margin: 0 0 10px;

    color: #168447;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* Название */

.featured-section .dish-card h3 {
    margin: 0 0 16px;

    font-size: 23px;
    line-height: 1.25;
}

.featured-section .dish-card h3 a {
    color: #17251e;
    text-decoration: none;

    transition: color 0.2s ease;
}

.featured-section .dish-card h3 a:hover {
    color: #168447;
}


/* Описание */

.featured-section .dish-description {
    margin: 0 0 22px;

    color: #637169;

    font-size: 15px;
    line-height: 1.6;
}


/* Вес и калории */

.featured-section .dish-details {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: auto;
    margin-bottom: 20px;

    color: #69766f;

    font-size: 13px;
}

.featured-section .dish-details span + span::before {
    content: "•";

    margin-right: 10px;

    color: #b3beb7;
}


/* Низ карточки */

.featured-section .dish-card-footer {
    padding-top: 18px;

    border-top: 1px solid #edf1ee;
}

.featured-section .dish-card-footer .back-link {
    color: #168447;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

.featured-section .dish-card-footer .back-link:hover {
    color: #0e6535;
}


/* Адаптация */

@media (max-width: 900px) {

    .featured-section .dish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .featured-section {
        margin-top: 45px;
    }

    .featured-section .dish-grid {
        grid-template-columns: 1fr;
    }

    .featured-section .dish-image {
        height: 230px;
    }

}

/* Категория поверх фото — главная */

.featured-section .dish-image-wrapper {
    position: relative;
    overflow: hidden;
}

.featured-section .dish-image-wrapper > a {
    display: block;
}

.featured-section .dish-category-badge {
    position: absolute;

    left: 18px;
    bottom: 18px;

    display: inline-flex;
    align-items: center;

    width: auto;

    padding: 7px 12px;

    background: #198b4c;
    color: #ffffff;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    z-index: 5;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    margin-top: 36px;

    background: #f0f6f2;
    border-top: 1px solid #dce7df;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr;

    gap: 60px;

    padding: 25px 0 6px;
}


/* Логотип */

.footer-logo {
    display: inline-block;
    margin-bottom: -3px;
}

.footer-logo img {
    display: block;

    width: 190px;
    height: auto;
}


/* Описание */

.footer-brand p {
    margin: 0;

    max-width: 290px;

    color: #657269;

    font-size: 15px;
    line-height: 1.5;
}


/* Колонки */

.footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 5px;
}

.footer-column h3 {
    margin: 0 0 8px;

    color: #1f3027;

    font-size: 16px;
}

.footer-column p {
    margin: 0;

    color: #657269;

    font-size: 14px;
    line-height: 1.5;
}

.footer-column a {
    color: #657269;

    font-size: 14px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #168a4b;
}


/* Нижняя линия */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 14px 0;

    border-top: 1px solid #d9e4dc;
}

.footer-bottom p {
    margin: 0;

    color: #78847c;

    font-size: 12px;
}

.footer-bottom-text {
    text-align: right;
}


/* Адаптация */

@media (max-width: 900px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 35px;

        padding: 40px 0;
    }

}


@media (max-width: 600px) {

    .footer-main {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .footer-bottom-text {
        text-align: left;
    }

}


/* =========================================
   MENU PAGE — HEADER
========================================= */

.page-header {
    margin-bottom: 28px;
}

.page-header .hero-label {
    margin-bottom: 8px;
}

.page-header h1 {
    margin: 0 0 10px;

    font-size: 40px;
    line-height: 1.15;

    color: #1f3027;
}

.page-header p:last-child {
    margin: 0;

    color: #68766e;

    font-size: 16px;
}


/* =========================================
   MENU PAGE — DATE FILTER
========================================= */

.date-filter {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 24px;
}

.date-filter-link {
    position: relative;

    display: flex;
    min-height: 92px;

    padding: 14px 10px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    background: #ffffff;

    border: 1px solid #dde7df;
    border-radius: 16px;

    color: #34463b;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.date-filter-link:hover {
    transform: translateY(-2px);

    border-color: #9fc7ad;

    box-shadow:
        0 8px 20px rgba(28, 78, 48, 0.07);
}

.date-filter-link.active {
    background: #24894d;
    border-color: #24894d;

    color: #ffffff;

    box-shadow:
        0 9px 22px rgba(36, 137, 77, 0.17);
}

.date-weekday {
    font-size: 12px;
    text-transform: uppercase;

    opacity: 0.8;
}

.date-filter-link strong {
    font-size: 18px;
}

.date-filter-link small {
    margin-top: 2px;

    font-size: 11px;

    opacity: 0.85;
}


/* =========================================
   MENU PAGE — CATEGORY FILTER
========================================= */

.category-filter {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}

.category-filter-link {
    display: inline-flex;

    min-height: 42px;

    padding: 0 18px;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #dce6de;
    border-radius: 999px;

    color: #3f5147;

    font-size: 14px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.category-filter-link:hover {
    border-color: #24894d;
    color: #24894d;
}

.category-filter-link.active {
    background: #24894d;
    border-color: #24894d;

    color: #ffffff;
}


/* Адаптация */

@media (max-width: 760px) {

    .date-filter {
        display: flex;
        overflow-x: auto;

        padding-bottom: 8px;
    }

    .date-filter-link {
        min-width: 92px;
    }

    .page-header h1 {
        font-size: 34px;
    }
}

/* =========================================
   MENU PAGE — DISH CARDS
========================================= */

.menu-page .dish-grid,
.dish-grid {
    gap: 24px;
}

.menu-page .dish-card,
.dish-grid .dish-card {
    border-radius: 20px;

    border: 1px solid #e1e9e3;

    background: #ffffff;

    box-shadow:
        0 8px 24px rgba(27, 64, 43, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.menu-page .dish-card:hover,
.dish-grid .dish-card:hover {
    transform: translateY(-4px);

    border-color: #cfe0d3;

    box-shadow:
        0 16px 32px rgba(27, 64, 43, 0.10);
}


/* фото */

.dish-card .dish-image {
    height: 250px;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.dish-card:hover .dish-image {
    transform: scale(1.025);
}


/* содержимое */

.dish-card-content {
    padding: 22px;
}

.dish-category {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    color: #218548;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dish-card h3 {
    margin-bottom: 12px;

    font-size: 22px;
    line-height: 1.25;
}

.dish-description {
    color: #66736b;

    font-size: 14px;
    line-height: 1.55;
}


/* вес и калории */

.dish-details {
    margin-top: 16px;
    margin-bottom: 16px;

    font-size: 13px;
}


/* остаток */

.dish-stock {
    margin-top: 4px;
    margin-bottom: 12px;

    font-size: 13px;
}

.dish-stock strong {
    color: #19874a;
}


/* нижняя часть */

.dish-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: auto;
    padding-top: 16px;

    border-top: 1px solid #edf1ee;
}

.dish-price {
    font-size: 22px;

    color: #176b38;
}


/* кнопка в корзину */

.dish-card-footer .button {
    min-width: 116px;

    text-align: center;
}


/* количество */

.dish-card-footer .quantity-control {
    margin-top: 0;

    gap: 10px;
}

.dish-card-footer .quantity-button {
    width: 38px;
    height: 38px;

    border-color: #a9cdb4;

    color: #218548;
}

.dish-card-footer .quantity-button:hover {
    background: #edf7f0;
}

.dish-card-footer .quantity-control span {
    min-width: 24px;

    font-size: 15px;
}

/* не прилепай) */
.dish-card {
    scroll-margin-top: 90px;
}

/* =========================================
   DISH DETAIL — CART
========================================= */

.dish-detail-cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dish-detail-cart .quantity-button {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #a9cdb4;
    border-radius: 10px;

    background: #ffffff;
    color: #19874a;

    font-size: 20px;
    font-weight: 700;

    cursor: pointer;
}

.dish-detail-cart .quantity-button:hover {
    background: #edf7f0;
}

.dish-detail-cart .cart-item-quantity {
    min-width: 24px;

    text-align: center;

    font-size: 16px;
    font-weight: 700;
}

.cart-item {
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.remove-link {
    border: 0;
    background: transparent;

    color: #d14343;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.remove-link:hover {
    color: #aa2929;
}

/* =========================================
   CHECKOUT
========================================= */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);

    gap: 28px;

    align-items: start;
}


/* Форма */

.checkout-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #e0e8e2;
    border-radius: 20px;

    box-shadow:
        0 10px 28px rgba(27, 64, 43, 0.06);
}

.checkout-form .form-group {
    margin-bottom: 24px;
}

.checkout-form .form-group > label {
    display: block;

    margin-bottom: 8px;

    color: #25372d;

    font-size: 14px;
    font-weight: 700;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="time"],
.checkout-form textarea,
.checkout-form select {
    width: 100%;

    min-height: 46px;

    padding: 11px 13px;

    border: 1px solid #d8e3dc;
    border-radius: 12px;

    background: #ffffff;

    color: #223229;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.checkout-form textarea {
    min-height: 110px;
    resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
    outline: none;

    border-color: #55a773;

    box-shadow:
        0 0 0 3px rgba(36, 137, 77, 0.10);
}


/* Получение / время */

.fulfillment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.fulfillment-option {
    position: relative;

    cursor: pointer;
}

.fulfillment-option input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.fulfillment-option span {
    display: flex;

    min-height: 52px;

    align-items: center;
    justify-content: center;

    padding: 10px 14px;

    border: 1px solid #d8e3dc;
    border-radius: 14px;

    background: #ffffff;

    color: #425248;

    font-size: 14px;
    font-weight: 700;

    text-align: center;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.fulfillment-option:hover span {
    border-color: #9bc8aa;
}

.fulfillment-option input:checked + span {
    background: #e8f5ed;

    border-color: #24894d;

    color: #17733d;

    box-shadow:
        0 0 0 2px rgba(36, 137, 77, 0.08);
}


/* Блок "когда получить" содержит 2 варианта */

.checkout-form .form-group:nth-of-type(4) .fulfillment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* Дата */

.pickup-date-display {
    display: inline-flex;

    min-height: 44px;

    align-items: center;

    padding: 0 14px;

    border-radius: 12px;

    background: #f3f7f4;

    color: #294236;

    font-weight: 700;
}


/* Ошибки */

.form-errors,
.errorlist {
    margin: 0 0 14px;
    padding: 12px 14px;

    border: 1px solid #efc7c7;
    border-radius: 12px;

    background: #fff2f2;

    color: #b73939;

    font-size: 13px;
}

.errorlist {
    list-style: none;
}

.errorlist li {
    margin: 0;
}


/* Кнопка */

.checkout-submit {
    width: 100%;

    min-height: 50px;

    margin-top: 6px;

    font-size: 15px;
}


/* =========================================
   CHECKOUT SUMMARY
========================================= */

.checkout-summary {
    position: sticky;
    top: 88px;

    padding: 26px;

    background: #ffffff;

    border: 1px solid #e0e8e2;
    border-radius: 20px;

    box-shadow:
        0 10px 28px rgba(27, 64, 43, 0.06);
}

.checkout-summary h2 {
    margin: 0 0 20px;

    font-size: 22px;
}

.checkout-item {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 13px 0;

    border-bottom: 1px solid #edf1ee;

    font-size: 14px;
}

.checkout-item:last-of-type {
    border-bottom: none;
}

.checkout-item-last {
    border-bottom: none;
}

.checkout-item span {
    color: #4f5f56;

    line-height: 1.45;
}

.checkout-item strong {
    flex-shrink: 0;

    color: #26392f;
}

.checkout-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid #dce5df;
}

.checkout-total span {
    font-size: 15px;
    font-weight: 700;
}

.checkout-total strong {
    color: #17733d;

    font-size: 22px;
}


/* Адаптация */

@media (max-width: 900px) {

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

}


@media (max-width: 640px) {

    .checkout-card {
        padding: 22px;
    }

    .fulfillment-options {
        grid-template-columns: 1fr;
    }

    .checkout-form .form-group:nth-of-type(4) .fulfillment-options {
        grid-template-columns: 1fr;
    }

}

/* Плавное появление дополнительных полей в оформлении*/

#pickup-time-group,
#delivery-address-group {
    overflow: hidden;

    max-height: 180px;

    opacity: 1;

    transform: translateY(0);

    transition:
        max-height 0.28s ease,
        opacity 0.22s ease,
        transform 0.22s ease,
        margin 0.28s ease;
}

#pickup-time-group.is-hidden,
#delivery-address-group.is-hidden {
    max-height: 0;

    opacity: 0;

    transform: translateY(-8px);

    margin-bottom: 0;

    pointer-events: none;
}

/* =========================================
   ORDER SUCCESS
========================================= */

.order-success-page {
    display: flex;
    justify-content: center;

    padding: 20px 0 30px;
}

.order-success-card {
    width: 100%;
    max-width: 760px;

    padding: 34px;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(27, 64, 43, 0.07);
}


/* Иконка */

.success-icon {
    display: flex;

    width: 58px;
    height: 58px;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: #e4f4e9;
    color: #23894d;

    font-size: 28px;
    font-weight: 700;
}


/* Заголовок */

.order-success-card h1 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.2;
}

.success-order-number {
    margin: 0 0 12px;

    color: #5f6d64;

    font-size: 16px;
}

.success-order-number strong {
    color: #1e3226;

    font-size: 18px;
}

.success-message {
    margin: 0 0 28px;

    color: #66736b;

    line-height: 1.55;
}


/* Детали */

.success-details {
    margin-bottom: 28px;

    border-top: 1px solid #edf1ee;
}

.success-detail-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 14px 0;

    border-bottom: 1px solid #edf1ee;
}

.success-detail-row span {
    color: #6a776f;

    font-size: 14px;
}

.success-detail-row strong {
    color: #27382f;

    text-align: right;
}


/* Состав заказа */

.success-items {
    padding: 22px;

    background: #f7faf8;

    border: 1px solid #e3ebe5;
    border-radius: 16px;
}

.success-items h2 {
    margin: 0 0 12px;

    font-size: 20px;
}

.success-item-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid #e5ebe7;
}

.success-item-name {
    font-weight: 600;
}

.success-item-quantity {
    margin-left: 5px;

    color: #718078;
}

.success-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid #d8e4db;
}

.success-total span {
    font-weight: 700;
}

.success-total strong {
    color: #18723c;

    font-size: 22px;
}


/* Кнопки */

.success-actions {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 26px;
}

.success-orders-link {
    color: #19874a;

    font-weight: 700;

    text-decoration: none;
}

.success-orders-link:hover {
    text-decoration: underline;
}


/* Адаптация */

@media (max-width: 640px) {

    .order-success-card {
        padding: 24px;
    }

    .success-detail-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

    .success-detail-row strong {
        text-align: left;
    }

    .success-actions {
        align-items: stretch;
        flex-direction: column;
    }

}

/* =========================================
   MY ORDERS
========================================= */

.orders-list {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.order-card {
    position: relative;

    padding: 26px;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 20px;

    box-shadow:
        0 8px 24px rgba(27, 64, 43, 0.05);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);

    border-color: #cddfd2;

    box-shadow:
        0 12px 28px rgba(27, 64, 43, 0.08);
}


/* Непрочитанное изменение статуса */

.order-card-unread {
    border-color: #65aa7c;

    box-shadow:
        0 0 0 2px rgba(36, 137, 77, 0.08),
        0 10px 26px rgba(27, 64, 43, 0.07);
}


/* Шапка заказа */

.order-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid #edf1ee;
}

.order-card-header h2 {
    margin: 0 0 6px;

    font-size: 22px;
}

.order-card-header p {
    margin: 0;

    color: #768078;

    font-size: 13px;
}

.order-detail-link {
    color: #1f3027;

    text-decoration: none;
}

.order-detail-link:hover {
    color: #19874a;
}


/* Статус */

.order-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 0 12px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}


/* Новый */

.order-status-new {
    background: #eef1f0;
    color: #536057;
}


/* Принят */

.order-status-accepted {
    background: #e4f2e9;
    color: #1d7540;
}


/* Готовится */

.order-status-cooking {
    background: #fff4db;
    color: #9a6818;
}


/* Готов */

.order-status-ready {
    background: #e1f2ff;
    color: #246d9b;
}


/* Завершён */

.order-status-completed {
    background: #e8f5ed;
    color: #207542;
}


/* Отменён */

.order-status-cancelled {
    background: #fde8e8;
    color: #b84a4a;
}


/* Основная информация */

.order-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    padding: 20px 0;
}

.order-info > div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.order-info span {
    color: #78837c;

    font-size: 12px;
}

.order-info strong {
    color: #24362c;

    font-size: 14px;
}


/* Позиции заказа */

.order-items {
    padding: 14px 0;

    border-top: 1px solid #edf1ee;
}

.order-item-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 8px 0;
}

.order-item-row span {
    color: #46564d;
}

.order-item-row strong {
    color: #26382f;
}


/* Адрес / комментарий */

.order-comment {
    margin-top: 16px;

    padding: 14px 16px;

    background: #f7faf8;

    border: 1px solid #e4ebe6;
    border-radius: 12px;
}

.order-comment strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}

.order-comment p {
    margin: 0;

    color: #66736b;

    line-height: 1.5;
}


/* Отмена */

.order-cancel-form {
    margin-top: 20px;
}

.order-cancel-button {
    min-height: 40px;

    padding: 0 16px;

    border: 1px solid #e08a8a;
    border-radius: 10px;

    background: #ffffff;

    color: #c34242;

    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.order-cancel-button:hover {
    background: #fff1f1;
    border-color: #d65c5c;
}


/* Пустая история */

.empty-orders {
    padding: 40px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 20px;
}

.empty-orders h2 {
    margin-top: 0;
}


/* Адаптация */

@media (max-width: 760px) {

    .order-card-header {
        flex-direction: column;
    }

    .order-info {
        grid-template-columns: 1fr;
    }

}

/* Размеры текста в "Мои заказы" */

.order-card-header h2 {
    font-size: 33px;
}

.order-card-header p {
    font-size: 14px;
}

.order-info span {
    font-size: 17px;
}

.order-info strong {
    font-size: 19px;
}

.order-item-row {
    font-size: 16px;
}

.order-item-row strong {
    font-size: 16px;
}

.order-status {
    font-size: 13px;
    min-height: 36px;
    padding: 0 14px;
}

.order-cancel-button {
    font-size: 14px;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    gap: 40px;

    padding: 22px 0;
}

/* =========================================
   ORDER DETAIL
========================================= */

.order-detail-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 20px;

    box-shadow:
        0 10px 28px rgba(27, 64, 43, 0.06);
}


/* Шапка */

.order-detail-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 20px;

    border-bottom: 1px solid #edf1ee;
}

.order-detail-header h2 {
    margin: 0 0 6px;

    font-size: 24px;
}

.order-detail-header p {
    margin: 0;

    color: #748078;

    font-size: 14px;
}


/* Основная информация */

.order-detail-info {
    display: grid;
    grid-template-columns: repeat(3, 220px);

    gap: 40px;

    padding: 24px 0;
}

.order-detail-info > div {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.order-detail-info span {
    color: #758078;

    font-size: 13px;
}

.order-detail-info strong {
    color: #25372d;

    font-size: 15px;
}


/* Секции */

.order-detail-section {
    margin-top: 22px;

    padding-top: 22px;

    border-top: 1px solid #edf1ee;
}

.order-detail-section h3 {
    margin: 0 0 14px;

    font-size: 18px;
}


/* Состав заказа */

.order-detail-items {
    display: flex;
    flex-direction: column;
}

.order-detail-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 0;

    border-bottom: 1px solid #edf1ee;
}

.order-detail-item span {
    color: #46564d;

    font-size: 15px;
}

.order-detail-item strong {
    font-size: 15px;
}


/* Итого */

.order-detail-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid #dce5df;
}

.order-detail-total span {
    font-weight: 700;
}

.order-detail-total strong {
    color: #17733d;

    font-size: 22px;
}


/* История статусов */

.order-status-history {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.order-status-history-item {
    position: relative;

    display: flex;

    gap: 14px;

    padding: 10px 0;
}

.order-status-history-item > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.order-status-history-item strong {
    font-size: 14px;
}

.order-status-history-item span {
    color: #78837c;

    font-size: 12px;
}

.order-status-history-marker {
    width: 12px;
    height: 12px;

    flex: 0 0 auto;

    margin-top: 4px;

    border-radius: 50%;

    background: #c7d1ca;
}


/* Цвета истории */

.order-status-history-marker-new {
    background: #8b9790;
}

.order-status-history-marker-accepted {
    background: #2f9a59;
}

.order-status-history-marker-cooking {
    background: #e5a83a;
}

.order-status-history-marker-ready {
    background: #3b91c8;
}

.order-status-history-marker-completed {
    background: #237847;
}

.order-status-history-marker-cancelled {
    background: #d55656;
}


/* Действия */

.order-detail-actions {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 26px;

    padding-top: 22px;

    border-top: 1px solid #edf1ee;
}


/* Адаптация */

@media (max-width: 760px) {

    .order-detail-header {
        flex-direction: column;
    }

    .order-detail-info {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .order-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

}

/* =========================================
   PROFILE
========================================= */

.profile-layout {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 100%;
    max-width: 680px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 20px;

    box-shadow:
        0 10px 28px rgba(27, 64, 43, 0.06);
}


/* Поля */

.profile-card .form-group {
    margin-bottom: 22px;
}

.profile-card .form-group > label {
    display: block;

    margin-bottom: 8px;

    color: #25372d;

    font-size: 14px;
    font-weight: 700;
}

.profile-card input {
    width: 100%;

    min-height: 46px;

    padding: 11px 13px;

    border: 1px solid #d8e3dc;
    border-radius: 12px;

    background: #ffffff;

    color: #223229;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-card input:focus {
    outline: none;

    border-color: #55a773;

    box-shadow:
        0 0 0 3px rgba(36, 137, 77, 0.10);
}


/* Ошибки */

.profile-card .errorlist {
    margin: 8px 0 0;
    padding: 10px 12px;

    list-style: none;

    border: 1px solid #efc7c7;
    border-radius: 10px;

    background: #fff2f2;

    color: #b73939;

    font-size: 13px;
}


/* Кнопка */

.profile-save-button {
    width: 100%;

    min-height: 48px;

    margin-top: 4px;
}


/* Адаптация */

@media (max-width: 640px) {

    .profile-card {
        padding: 22px;
    }

}

/* =========================================
   AUTH — LOGIN / REGISTER
========================================= */

.auth-container {
    display: flex;
    justify-content: center;

    padding: 20px 0 30px;
}

.auth-card {
    width: 100%;
    max-width: 520px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid #dfe8e2;
    border-radius: 20px;

    box-shadow:
        0 10px 28px rgba(27, 64, 43, 0.06);
}

.auth-card h1 {
    margin: 0 0 10px;

    font-size: 34px;
}

.auth-description {
    margin: 0 0 26px;

    color: #66736b;

    font-size: 15px;
    line-height: 1.55;
}


/* Поля */

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group label {
    display: block;

    margin-bottom: 8px;

    color: #25372d;

    font-size: 14px;
    font-weight: 700;
}

.auth-card .form-control {
    width: 100%;

    min-height: 46px;

    padding: 11px 13px;

    border: 1px solid #d8e3dc;
    border-radius: 12px;

    background: #ffffff;

    color: #223229;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
    outline: none;

    border-color: #55a773;

    box-shadow:
        0 0 0 3px rgba(36, 137, 77, 0.10);
}


/* Ошибка */

.login-error {
    margin: 0 0 20px;

    padding: 12px 14px;

    border: 1px solid #efc7c7;
    border-radius: 12px;

    background: #fff2f2;

    color: #b73939;

    font-size: 13px;
}


/* Кнопка */

.auth-submit-button {
    width: 100%;

    min-height: 48px;

    margin-top: 4px;
}


/* Низ карточки */

.auth-footer {
    margin: 24px 0 0;

    text-align: center;

    color: #69756e;

    font-size: 14px;
}

.auth-footer a {
    color: #19874a;

    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.main-navigation a {
    position: relative;

    color: #21352b;
    font-weight: 600;
    text-decoration: none;

    transition: color 0.2s ease;
}


/* Линия под пунктом меню */

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 4px;

    width: 0;
    height: 2px;

    background: #178748;
    border-radius: 999px;

    transform: translateX(-50%);

    transition:
        width 0.25s ease,
        background-color 0.2s ease;
}


/* Наведение */

.main-navigation a:hover {
    color: #178748;
}

.main-navigation a:hover::after {
    width: 100%;
}


/* Текущая страница */

.main-navigation a.active {
    color: #178748;
}

.main-navigation a.active::after {
    width: 100%;
}

.username {
    display: inline-flex;

    align-items: center;

    min-height: 34px;

    padding: 0 12px;

    border-radius: 999px;

    background: #eef7f1;

    color: #25613c;

    font-size: 13px;
    font-weight: 700;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;

    border: none;
    background: none;

    color: #8f3f3f;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.logout-button:hover {
    color: #c64747;
}

/* =========================================
   MOBILE HEADER
========================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: #21352b;

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* Открытое состояние */

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 900px) {

    .header-content {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;

        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 18px 18px;

        background: #ffffff;

        border-top: 1px solid #edf1ee;
        border-bottom: 1px solid #dfe8e2;

        box-shadow:
            0 12px 24px rgba(27, 64, 43, 0.08);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        pointer-events: none;

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;

        z-index: 1000;
    }

    .main-navigation.is-open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .main-navigation > a,
    .main-navigation .username,
    .logout-form {
        width: 100%;
    }

    .main-navigation > a {
        padding: 13px 4px;

        border-bottom: 1px solid #edf1ee;
    }

    .main-navigation > a::after {
        display: none;
    }

    .main-navigation .username {
        margin-top: 12px;

        justify-content: center;
    }

    .logout-form {
        margin-top: 8px;
    }

    .logout-button {
        width: 100%;

        padding: 12px;

        text-align: center;
    }
}

/* Стоимость доставки в итогах заказа */

.checkout-delivery {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid #dfe8e1;
}

.checkout-delivery.is-hidden {
    display: none;
}

/* -линия */
.success-item-row.success-item-last {
    border-bottom: none;
}

.success-heading {
    text-align: center;
}

/* Страница 404 */

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 65vh;

    padding: 40px 20px;
}

.error-card {
    width: 100%;
    max-width: 620px;

    padding: 48px 36px;

    background: #ffffff;

    border: 1px solid #dfe8e1;
    border-radius: 20px;

    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);

    text-align: center;
}

.error-code {
    margin-bottom: 12px;

    color: #178748;

    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.error-card h1 {
    margin-bottom: 16px;
}

.error-message {
    max-width: 480px;

    margin: 0 auto 28px;

    color: #66736d;

    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;

    flex-wrap: wrap;
}

@media (max-width: 700px) {

    .order-info {
        grid-template-columns: 1fr;
        gap: 16px;

        padding: 18px 0;
    }

    .order-info span {
        font-size: 15px;
    }

    .order-info strong {
        font-size: 17px;
    }
}