/* ============================================================
   КОСМОБАР «TASTE ONE» — ретро-футуристический кулинарный терминал
   Уникальная дизайн-система: космос + неон + инженерная графика
   ============================================================ */

:root {
    --bg: #07060e;
    --panel: #0d0c16;
    --panel2: #0a0912;
    --line: #2c2b40;
    --line2: #3a3a55;
    --mg: #00f0ff;        /* неон-циан  */
    --mag: #ff2ec4;       /* неон-маджента */
    --sun: #ffe600;       /* кислота-жёлтый */
    --toxic: #b6ff2e;     /* токси-зелёный */
    --paper: #cfcfe8;
    --dim: #8f8fb4;
    --ink: #000000;
    --title: 'Arial Narrow', 'Segoe UI', 'Arial Black', sans-serif;
    --mono: 'Consolas', 'Courier New', monospace;
}

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

html {
    scrollbar-color: var(--mg) var(--bg);
}

body {
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--paper);
    background-color: var(--bg);
    background-image:
        radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, .55), transparent 70%),
        radial-gradient(1px 1px at 22% 38%, rgba(255, 255, 255, .35), transparent 70%),
        radial-gradient(1.5px 1.5px at 34% 8%, rgba(0, 240, 255, .5), transparent 70%),
        radial-gradient(1px 1px at 47% 22%, rgba(255, 255, 255, .4), transparent 70%),
        radial-gradient(1.5px 1.5px at 58% 14%, rgba(255, 46, 196, .45), transparent 70%),
        radial-gradient(1px 1px at 66% 44%, rgba(255, 255, 255, .35), transparent 70%),
        radial-gradient(1px 1px at 74% 30%, rgba(0, 240, 255, .4), transparent 70%),
        radial-gradient(1.5px 1.5px at 83% 58%, rgba(255, 255, 255, .45), transparent 70%),
        radial-gradient(1px 1px at 91% 17%, rgba(255, 46, 196, .4), transparent 70%),
        radial-gradient(1px 1px at 15% 72%, rgba(255, 255, 255, .3), transparent 70%),
        radial-gradient(1px 1px at 42% 86%, rgba(0, 240, 255, .35), transparent 70%),
        radial-gradient(1.5px 1.5px at 71% 92%, rgba(255, 255, 255, .4), transparent 70%);
    overflow-x: hidden;
}

/* CRT-сканлайны поверх всего (не перехватывают клики) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .18) 2px 4px);
    opacity: .3;
}

::selection {
    background: var(--mag);
    color: var(--ink);
}

/* ===== ГЛАВНОЕ РЕЗЕРВИРОВАНИЕ: тени/подсветки ===== */
a {
    color: var(--mg);
}

h1, h2, h3, h4 {
    font-family: var(--title);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
}

/* ===== СТАТУС-СТРОКА (системная) ===== */
.status-strip {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    background: #000;
    border-bottom: 1px solid var(--line);
    padding: 0.3rem 1.2rem;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
}

.status-strip .ss-live {
    color: var(--toxic);
    animation: blink 1.6s steps(2, jump-none) infinite;
}

.status-strip .ss-pos {
    color: var(--mg);
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, .5);
    padding: 0.35rem 0;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sun);
}

.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-inner span {
    padding-right: 2.5rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== ШАПКА ===== */
header {
    position: relative;
    padding: 1.6rem 2rem 1.4rem;
    border-bottom: 1px dashed var(--line);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mag), var(--mg), var(--sun), var(--toxic), var(--mag));
    background-size: 200% 100%;
    animation: spectrum 8s linear infinite;
    filter: saturate(1.5);
}

@keyframes spectrum {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}

header h1 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 46, 196, .9), 0 0 34px rgba(0, 240, 255, .55);
    letter-spacing: 3px;
}

header p {
    margin-top: 0.3rem;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dim);
}

/* ===== НАВИГАЦИЯ (терминал) ===== */
nav {
    padding: 0.7rem 2rem;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, .4);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
}

nav a {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dim);
    padding: 0.2rem 0;
}

nav a:hover {
    color: var(--mg);
    text-shadow: 0 0 8px rgba(0, 240, 255, .7);
}

nav a.active {
    color: var(--sun);
    text-shadow: 0 0 8px rgba(255, 230, 0, .6);
    border-bottom: 2px solid var(--sun);
}

nav a.active::before {
    content: "[ ";
    opacity: .7;
}

nav a.active::after {
    content: " ]";
    opacity: .7;
}

/* ===== ОБЩЕЕ ПРОСТРАНСТВО ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== ГЕРОЙ ===== */
.hero {
    position: relative;
    border: 1px dashed var(--line2);
    background: linear-gradient(135deg, rgba(255, 46, 196, .12), rgba(0, 240, 255, .10));
    box-shadow: inset 0 0 70px rgba(0, 240, 255, .07), 0 0 45px rgba(255, 46, 196, .10);
    border-radius: 6px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
}

.hero::before {
    top: -2px;
    left: -2px;
    border-top: 3px solid var(--mg);
    border-left: 3px solid var(--mg);
}

.hero::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid var(--mag);
    border-right: 3px solid var(--mag);
}

.hero h2 {
    font-size: 2.1rem;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, .8), 0 0 40px rgba(255, 46, 196, .5);
    margin-bottom: 0.9rem;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 13px;
    letter-spacing: 1px;
    color: #a9a9cc;
}

.radar {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, .5);
    background: conic-gradient(from 0deg, rgba(0, 240, 255, .35), transparent 28%, rgba(255, 46, 196, .2), transparent 60%);
    animation: spin 6s linear infinite;
    opacity: .8;
}

.radar::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 3px;
    width: 66px;
    height: 1px;
    background: linear-gradient(90deg, var(--mag), transparent);
    transform-origin: 0 center;
    animation: spin 6s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .radar { display: none; }
}

/* ===== СЕТКИ ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

/* ===== КАРТОЧКА (бортовая карточка индекса) ===== */
.card {
    position: relative;
    background: var(--panel);
    border: 1px dashed var(--line2);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 2;
}

.card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--mg);
    border-left: 2px solid var(--mg);
}

.card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--mag);
    border-right: 2px solid var(--mag);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 26px rgba(0, 240, 255, .18), 0 0 40px rgba(255, 46, 196, .08);
}

.card .img-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--line);
    background: radial-gradient(120% 120% at 50% 0, rgba(0, 240, 255, .16), transparent 60%), var(--panel2);
}

.card.promo-fastfood .img-placeholder {
    background: radial-gradient(120% 120% at 50% 0, rgba(0, 240, 255, .22), transparent 60%), var(--panel2);
}

.card.promo-french .img-placeholder {
    background: radial-gradient(120% 120% at 50% 0, rgba(255, 46, 196, .24), transparent 60%), var(--panel2);
}

.card:hover .img-placeholder {
    filter: brightness(1.25);
}

.card .body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card h3 {
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.card p {
    font-size: 12px;
    color: var(--dim);
    flex: 1;
    margin-bottom: 1rem;
}

.card .country {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mag);
    margin-bottom: 0.3rem;
}

.card.promo-french .country { color: var(--mg); }

/* ===== КНОПКИ (хрустящие терминальные) ===== */
.btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--mg);
    color: var(--ink);
    border: 1px solid #4ff7ff;
    padding: 0.55rem 1.2rem;
    border-radius: 2px;
    box-shadow: 3px 3px 0 0 rgba(0, 0, 0, .9);
    align-self: flex-start;
    transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}

.btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 16px rgba(0, 240, 255, .5), 3px 3px 0 0 rgba(0, 0, 0, .9);
}

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, .9);
}

.btn.blue {
    background: var(--sun);
    border-color: #fff59b;
    color: #1a1000;
}

.btn.blue:hover {
    box-shadow: 0 0 16px rgba(255, 230, 0, .6), 3px 3px 0 0 rgba(0, 0, 0, .9);
}

/* ===== ЗАГОЛОВКИ РАЗДЕЛОВ ===== */
.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 2rem 0 0.3rem;
    letter-spacing: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.05rem;
}

/* ===== ПАНЕЛЬ УПРАВЛЕНИЯ КАТАЛОГА ===== */
.catalog-toolbar {
    background: var(--panel);
    border: 1px dashed var(--line2);
    border-radius: 4px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.catalog-toolbar::before {
    content: "// ПУЛЬТ ЛОКАЦИИ";
    position: absolute;
    top: -9px;
    left: 1rem;
    background: var(--bg);
    padding: 0 0.5rem;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--mg);
}

.sys-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sys-label::before {
    content: "> ";
    color: var(--toxic);
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tab-btn {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--line2);
    background: transparent;
    color: var(--dim);
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, background .15s ease;
}

.tab-btn:hover {
    border-color: var(--mg);
    color: var(--mg);
}

.tab-btn.active {
    background: var(--mg);
    border-color: var(--mg);
    color: var(--ink);
    box-shadow: 0 0 14px rgba(0, 240, 255, .5);
}

.tab-btn.active.french-active {
    background: var(--mag);
    border-color: var(--mag);
    box-shadow: 0 0 14px rgba(255, 46, 196, .5);
}

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-input,
.filter-select {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--panel2);
    color: #fff;
    border: 1px solid var(--line2);
    border-radius: 2px;
    padding: 0.6rem 1rem;
    outline: none;
    caret-color: var(--mg);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.search-input {
    flex: 1;
    min-width: 220px;
}

.search-input:focus,
.filter-select:focus {
    border-color: var(--mg);
    box-shadow: 0 0 12px rgba(0, 240, 255, .3);
}

.filter-select option {
    background: var(--panel2);
    color: #fff;
}

.result-count {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--dim);
    margin: 0.5rem 0 1rem;
}

.result-count strong {
    color: var(--sun);
}

/* ===== БОРТОВАЯ КАРТОЧКА РЕЦЕПТА ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.recipe-card {
    position: relative;
    background: var(--panel);
    border: 1px dashed var(--line2);
    border-radius: 4px;
    overflow: visible;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.recipe-card::before,
.recipe-card::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    z-index: 2;
}

.recipe-card::before {
    top: -2px;
    left: -2px;
    border-top: 2px solid var(--mg);
    border-left: 2px solid var(--mg);
}

.recipe-card::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 2px solid var(--mag);
    border-right: 2px solid var(--mag);
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(0, 240, 255, .15), 0 0 40px rgba(255, 46, 196, .07);
}

.recipe-card .rc-top {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--line);
    background: radial-gradient(130% 130% at 50% 0, rgba(0, 240, 255, .16), transparent 60%), var(--panel2);
}

.recipe-card.fastfood-card .rc-top {
    background: radial-gradient(130% 130% at 50% 0, rgba(0, 240, 255, .20), transparent 62%), var(--panel2);
}

.recipe-card.french-card .rc-top {
    background: radial-gradient(130% 130% at 50% 0, rgba(255, 46, 196, .24), transparent 62%), var(--panel2);
}

/* LED-индикатор статуса */
.recipe-card .rc-top::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    background: var(--mg);
    box-shadow: 0 0 8px var(--mg);
    animation: blink 1.6s steps(2, jump-none) infinite;
}

.recipe-card.french-card .rc-top::before {
    background: var(--mag);
    box-shadow: 0 0 8px var(--mag);
}

/* Голографический блик */
.recipe-card .rc-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .09) 46%, transparent 58%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}

.recipe-card:hover .rc-top::after {
    transform: translateX(100%);
}

.recipe-card .rc-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rc-code {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--mg);
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.french-card .rc-code { color: var(--mag); }

.recipe-card .rc-title {
    font-family: var(--title);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.3rem;
}

.recipe-card .rc-country {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.6rem;
}

.recipe-card .rc-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--dim);
    padding-top: 0.5rem;
    border-top: 1px dashed var(--line);
}

.badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.18rem 0.6rem;
    border: 1px solid;
    border-radius: 2px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.badge-fastfood {
    color: var(--mg);
    border-color: var(--mg);
    background: rgba(0, 240, 255, .08);
}

.badge-french {
    color: var(--mag);
    border-color: var(--mag);
    background: rgba(255, 46, 196, .08);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.page-btn {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line2);
    background: var(--panel);
    color: var(--paper);
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 rgba(0, 0, 0, .8);
    transition: transform .08s ease, box-shadow .08s ease, border-color .15s ease, color .15s ease;
}

.page-btn:hover {
    border-color: var(--mag);
    color: var(--mag);
}

.page-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.page-btn.active {
    background: var(--mag);
    border-color: var(--mag);
    color: var(--ink);
    box-shadow: 0 0 14px rgba(255, 46, 196, .45);
}

.page-btn:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

/* ===== МОДАЛЬНОЕ ОКНО (терминал назначения) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 10, .82);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

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

.modal {
    background: var(--panel);
    border: 1px double var(--line2);
    border-radius: 4px;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    animation: modalIn .18s ease;
    box-shadow: 0 0 45px rgba(255, 46, 196, .18), 0 0 90px rgba(0, 240, 255, .10);
}

.modal::before,
.modal::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
}

.modal::before {
    top: -2px;
    left: -2px;
    border-top: 3px solid var(--mg);
    border-left: 3px solid var(--mg);
}

.modal::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid var(--mag);
    border-right: 3px solid var(--mag);
}

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

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dim);
    line-height: 1;
    transition: color .15s ease, text-shadow .15s ease;
}

.modal-close:hover {
    color: var(--mag);
    text-shadow: 0 0 10px rgba(255, 46, 196, .8);
}

.telemetry {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--toxic);
    border-bottom: 1px dashed var(--line);
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
}

.telemetry::before {
    content: "REC ● ";
    animation: blink 1.4s steps(2, jump-none) infinite;
}

.modal h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding-right: 2rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 46, 196, .4);
}

.modal .modal-country {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mag);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.modal .recipe-meta {
    margin: 0.8rem 0 1.2rem;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--panel2);
    border: 1px dashed var(--line);
    border-radius: 2px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 2rem;
}

.recipe-meta span {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--dim);
}

.recipe-meta strong {
    color: var(--mg);
}

.modal .cols {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.2rem;
}

@media (max-width: 700px) {
    .modal .cols {
        grid-template-columns: 1fr;
    }
}

.ingredients,
.instructions {
    background: var(--panel2);
    border: 1px dashed var(--line);
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ingredients::before {
    content: "ГРУЗ // ИНГРЕДИЕНТЫ";
    position: absolute;
    top: 0.7rem;
    right: 1rem;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--mg);
    opacity: .6;
}

.instructions::before {
    content: "ПРОЦЕДУРА // ШАГИ";
    position: absolute;
    top: 0.7rem;
    right: 1rem;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--mag);
    opacity: .6;
}

.ingredients h2 {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--mg);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    border-bottom: 2px solid var(--mg);
}

.instructions h2 {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--mag);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    border-bottom: 2px solid var(--mag);
}

.ingredients ul {
    list-style: none;
    margin-top: 1.2rem;
}

.ingredients li {
    padding: 0.4rem 0 0.4rem 1.3rem;
    border-bottom: 1px dashed var(--line);
    position: relative;
    font-size: 13px;
    color: var(--paper);
}

.ingredients li::before {
    content: "▸";
    color: var(--mg);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.instructions ol {
    margin-left: 1.4rem;
    margin-top: 1.2rem;
}

.instructions li {
    margin-bottom: 0.9rem;
    padding-left: 0.4rem;
    font-size: 13px;
    color: var(--paper);
}

.tip {
    background: rgba(255, 230, 0, .07);
    border-left: 3px solid var(--sun);
    padding: 0.8rem 1rem;
    border-radius: 0 2px 2px 0;
    margin-top: 1.5rem;
    font-size: 12px;
    color: #e7dcb0;
}

.tip strong {
    color: var(--sun);
}

/* ===== СТРАНИЦА РЕЦЕПТА ===== */
.recipe-page h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 12px rgba(0, 240, 255, .5);
    letter-spacing: 2px;
}

.recipe-cols {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 700px) {
    .recipe-cols {
        grid-template-columns: 1fr;
    }
}

.back-link {
    display: inline-block;
    margin: 1.2rem 0;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--mg);
}

.back-link:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, .6);
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state {
    text-align: center;
    color: var(--dim);
    padding: 3rem 1rem;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ===== ПОДВАЛ ===== */
footer {
    border-top: 2px solid var(--line);
    background: rgba(0, 0, 0, .45);
    color: var(--dim);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2.5rem;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer p {
    margin-bottom: 0.3rem;
}

footer::after {
    content: "▲ СИГНАЛ ПЕРЕДАН ▲";
    display: block;
    color: var(--toxic);
    animation: blink 2s steps(2, jump-none) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: .25; }
}