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

/* ============================================
   СТИЛЬ S.T.A.L.K.E.R. — ЗОНА
   ============================================ */
:root {
    --primary: #d98a3d;
    --primary-dark: #a8602a;
    --secondary: #d9b42e;
    --accent: #8f2d1d;
    --bg: linear-gradient(165deg, #171a10 0%, #1c1f13 45%, #0f110a 100%);
    --card-bg: linear-gradient(145deg, #23231a, #191a12), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px);
    --card-solid: #191a12;
    --text: #cfcec1;
    --text-light: #83816f;
    --border-metal: #4f4d39;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 36px rgba(217, 138, 61, 0.16);
    --grad-primary: linear-gradient(135deg, #e0a14a, #b5543a);
    --grad-header: linear-gradient(135deg, #0d0d09, #15150e);
    --grad-hero: linear-gradient(135deg, rgba(13, 14, 10, 0.93), rgba(34, 28, 14, 0.85));
    --grad-footer: linear-gradient(135deg, #050505, #10120a);
    --footer-text: #6f6e5c;
    --chip-bg: linear-gradient(135deg, #2a2a1f, #1e1e15);
    --chip-border: #555341;
    --hazard: repeating-linear-gradient(45deg, #d9b42e 0 10px, #0d0d08 10px 20px);
    --img-buns: linear-gradient(135deg, #5a4a1e, #33270e);
    --img-pies: linear-gradient(135deg, #5a2418, #30110a);
    --img-pancakes: linear-gradient(135deg, #5a4a16, #322807);
    --img-bread: linear-gradient(135deg, #4a4223, #262011);
    --img-cookies: linear-gradient(135deg, #4f2c13, #291505);
    --img-cakes: linear-gradient(135deg, #4a2430, #25101a);
}

/* ===== BASE ===== */
body {
    font-family: 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
    background: var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}

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

/* ===== ЛЕТАЮЩИЕ ЧЕРЕПА ===== */
.skull {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    font-size: 3rem;
    line-height: 1;
    opacity: 0;
    filter: drop-shadow(0 0 14px rgba(170, 220, 90, 0.75));
    animation-name: skull-fly;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}

.skull.s1 { left: -90px; top: 10%; animation-duration: 26s; animation-delay: -7s; font-size: 3.2rem; }
.skull.s2 { left: -90px; top: 34%; animation-duration: 33s; animation-delay: -15s; font-size: 2rem; }
.skull.s3 { left: -90px; top: 58%; animation-duration: 29s; animation-delay: -21s; font-size: 3.6rem; }
.skull.s4 { left: -90px; top: 80%; animation-duration: 23s; animation-delay: -5s; font-size: 2.4rem; }
.skull.s5 { left: -90px; top: 94%; animation-duration: 36s; animation-delay: -28s; font-size: 1.8rem; }

@keyframes skull-fly {
    0%   { transform: translateX(0)      translateY(0)     rotate(0deg)  scale(0.8); opacity: 0; }
    8%   { opacity: 0.3; }
    20%  { transform: translateX(23vw)   translateY(-14px) rotate(10deg) scale(1);   opacity: 0.26; }
    40%  { transform: translateX(48vw)   translateY(12px)  rotate(-8deg) scale(1.05); opacity: 0.24; }
    60%  { transform: translateX(72vw)   translateY(-10px) rotate(6deg)  scale(0.95); opacity: 0.24; }
    80%  { transform: translateX(92vw)   translateY(14px)  rotate(-6deg) scale(0.9);  opacity: 0.22; }
    92%  { opacity: 0; }
    100% { transform: translateX(120vw)  translateY(0)     rotate(0deg)  scale(0.8); opacity: 0; }
}

@media (max-width: 768px) {
    .skull.s2,
    .skull.s5 { display: none; }
    .skull.s1,
    .skull.s3,
    .skull.s4 { font-size: 2.2rem; }
}

/* ===== HEADER ===== */
header {
    background: var(--grad-header);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0px;
    height: 5px;
    background: var(--hazard);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-metal);
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 3s ease-in-out infinite;
}

.logo .logo-mark {
    color: var(--secondary);
    font-size: 1.3rem;
}

.logo span {
    background: linear-gradient(90deg, #e0a14a, #f4d27a, #b5543a, #e0a14a);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    color: #bcbaa6;
    font-size: 0.9rem;
    padding: 7px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    color: #f0d27a;
    border-color: var(--border-metal);
    background: rgba(217, 138, 61, 0.12);
    text-shadow: 0 0 8px rgba(217, 138, 61, 0.5);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 70%;
}

nav a.menu-site {
    color: #f0d27a;
    border: 1px solid rgba(224, 161, 74, 0.55);
    background: rgba(217, 138, 61, 0.16);
}

nav a.menu-site:hover {
    border-color: var(--secondary);
    background: rgba(217, 138, 61, 0.28);
    box-shadow: 0 0 12px rgba(217, 138, 61, 0.45);
}

/* ===== HERO ===== */
.hero {
    background: var(--grad-hero);
    color: #fff;
    text-align: center;
    padding: 95px 20px 85px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '☢';
    position: absolute;
    font-size: 9rem;
    color: var(--secondary);
    opacity: 0.14;
    top: 10px;
    left: 30px;
    text-shadow: 0 0 30px rgba(217, 180, 46, 0.6);
    animation: spin 30s linear infinite;
}
.hero::after {
    content: '⌖';
    position: absolute;
    font-size: 7rem;
    color: var(--primary);
    opacity: 0.16;
    bottom: 15px;
    right: 45px;
    text-shadow: 0 0 26px rgba(217, 138, 61, 0.6);
    animation: pulse-mark 5s ease-in-out infinite;
}

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

@keyframes pulse-mark {
    0%, 100% { transform: scale(1); opacity: 0.16; }
    50% { transform: scale(1.12); opacity: 0.4; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: #f0d27a;
    text-shadow: 0 0 20px rgba(217, 138, 61, 0.5), 3px 3px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 620px;
    margin: 0 auto;
    color: #bcbaa6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero .hero-emoji-row {
    font-size: 2.4rem;
    margin-top: 22px;
    letter-spacing: 10px;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== SECTIONS ===== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 20px;
    position: relative;
    z-index: 1;
}

h2.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 45px;
    color: #f0d27a;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    position: relative;
    text-shadow: 0 0 12px rgba(217, 138, 61, 0.35);
    animation: fadeInUp 0.6s ease;
}

h2.section-title::before {
    content: '☢';
    display: block;
    font-size: 0.9em;
    color: var(--secondary);
    margin-bottom: 6px;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 110px;
    height: 4px;
    margin: 14px auto 0;
    background: var(--hazard);
    animation: growWidth 0.8s ease;
}

@keyframes growWidth {
    from { width: 0; }
    to { width: 110px; }
}

/* ===== CATEGORY CARDS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.category-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-metal);
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--hazard);
    opacity: 0.55;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover), 0 0 20px rgba(143, 45, 29, 0.3);
    border-color: var(--primary);
}

.category-card .card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: transform 0.4s ease;
    border-bottom: 1px solid var(--border-metal);
}

.category-card:hover .card-img {
    transform: scale(1.1) rotate(-2deg);
}

.category-card .card-body {
    padding: 20px;
    text-align: center;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-img.buns { background: var(--img-buns); }
.card-img.pies { background: var(--img-pies); }
.card-img.pancakes { background: var(--img-pancakes); }
.card-img.bread { background: var(--img-bread); }
.card-img.cookies { background: var(--img-cookies); }
.card-img.cakes { background: var(--img-cakes); }

/* ===== RECIPE CARDS ===== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.recipe-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-metal);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
    animation: fadeInUp 0.6s ease both;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--hazard);
    opacity: 0.45;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.recipe-card .recipe-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    border-bottom: 1px solid var(--border-metal);
}

.recipe-card .recipe-img .time-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #f0d27a;
    padding: 4px 12px;
    border-radius: 3px;
    border: 1px solid var(--border-metal);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.recipe-card .recipe-body {
    padding: 20px 25px 25px;
}

.recipe-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.recipe-card .recipe-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.recipe-card .recipe-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.recipe-card .recipe-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    padding: 4px 10px;
    border-radius: 3px;
}

.recipe-card .card-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s, color 0.3s;
}

.recipe-card .card-link:hover {
    gap: 12px;
    color: #f0d27a;
}

/* ===== FULL RECIPE ===== */
.recipe-full {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-metal);
    border-top: 5px solid var(--primary);
    margin-bottom: 40px;
    position: relative;
    transition: box-shadow 0.3s, border-color 0.3s;
    animation: fadeInUp 0.6s ease both;
}

.recipe-full:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.recipe-full h2 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.recipe-full:hover h2 {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recipe-full .recipe-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.recipe-full .recipe-info-bar {
    display: flex;
    gap: 13px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.recipe-full .recipe-info-bar .info-item {
    background: var(--chip-bg);
    padding: 12px 22px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--chip-border);
    transition: transform 0.3s, border-color 0.3s;
    flex: 1;
    min-width: 110px;
}

.recipe-full .recipe-info-bar .info-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.recipe-full .recipe-info-bar .info-item .label {
    font-size: 0.68rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.recipe-full .recipe-info-bar .info-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.recipe-full h3 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
    color: #f0d27a;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipe-full h3::before {
    content: '☢';
    color: var(--secondary);
}

.recipe-full h3.ingredients-head::before { content: '◈'; }
.recipe-full h3.steps-head::before { content: '⌖'; }

.recipe-full ul,
.recipe-full ol {
    padding-left: 28px;
    margin-bottom: 15px;
}

.recipe-full li {
    margin-bottom: 8px;
    line-height: 1.8;
    transition: color 0.2s;
}

.recipe-full li:hover {
    color: var(--primary);
}

.recipe-full ol li {
    counter-increment: step;
}

.recipe-full ul li::marker {
    color: var(--secondary);
    font-size: 1.1em;
}

.recipe-full ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #1d1f12, #0d0f08);
    color: #fff;
    text-align: center;
    padding: 70px 20px 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-metal);
}

.page-header::before {
    content: '☢';
    position: absolute;
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.22;
    top: 10px;
    right: 45px;
    animation: spin 20s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--hazard);
}

.page-header h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
    color: #f0d27a;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Stencil', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-shadow: 0 0 16px rgba(217, 138, 61, 0.4);
    animation: fadeInUp 0.6s ease;
}

.page-header p {
    opacity: 0.92;
    font-size: 1.02rem;
    color: #bcbaa6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ===== FOOTER ===== */
footer {
    background: var(--grad-footer);
    color: var(--footer-text);
    text-align: center;
    padding: 35px 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    border-top: 5px solid var(--hazard);
}

footer p {
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

footer .footer-emoji {
    font-size: 1.4rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    padding: 9px 20px;
    background: var(--card-solid);
    border: 1px solid var(--border-metal);
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.92rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.back-link:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-hover);
    color: #f0d27a;
    border-color: var(--primary);
}

/* ===== STAGGER ANIMATIONS ===== */
.recipe-full:nth-child(even),
.recipe-card:nth-child(even) {
    animation-delay: 0.15s;
}

/* ===== SCROLL-REVEAL SETUP ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE / MOBILE ===== */
@media (max-width: 900px) {
    .hero h1 { font-size: 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    .header-inner { justify-content: center; }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }

    .nav-scroll {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    .nav-scroll::-webkit-scrollbar { display: none; }

    nav {
        width: max-content;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    nav a {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 7px 11px;
    }

    .hero {
        padding: 60px 16px;
    }
    .hero h1 { font-size: 1.55rem; line-height: 1.3; }
    .hero p { font-size: 1rem; }
    .hero .hero-emoji-row { font-size: 1.8rem; }

    section { padding: 35px 14px; }
    h2.section-title { font-size: 1.35rem; }

    .categories-grid,
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .recipe-full {
        padding: 24px 18px;
    }

    .recipe-full h2 { font-size: 1.25rem; }

    .recipe-full .recipe-info-bar {
        gap: 8px;
    }
    .recipe-full .recipe-info-bar .info-item {
        padding: 10px 12px;
        min-width: 80px;
    }
    .recipe-full .recipe-info-bar .info-item .value { font-size: 0.95rem; }

    .recipe-card .recipe-img { height: 170px; }

    .page-header {
        padding: 50px 15px;
    }
    .page-header h1 { font-size: 1.45rem; }

    .logo { font-size: 1.25rem; }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 400px) {
    .hero h1 { font-size: 1.35rem; }
    .recipe-full .recipe-info-bar .info-item { min-width: 100%; }
}