:root {
    --color-background: #f8f5ee;
    --color-surface: #fffdf8;
    --color-surface-soft: #f3eee4;

    --color-text: #18251a;
    --color-text-light: #6d716b;

    --color-green: #466b3c;
    --color-green-dark: #28452b;
    --color-green-light: #e8efe1;

    --color-orange: #f56f0a;
    --color-orange-dark: #da5900;

    --color-border: #e8e1d6;

    --shadow-small: 0 4px 14px rgba(39, 43, 35, 0.06);
    --shadow-medium: 0 10px 30px rgba(39, 43, 35, 0.1);

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;

    --container-width: 1440px;

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    width: min(100% - 32px, var(--container-width));
    margin: 16px auto;
    overflow: hidden;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-medium);
}

.site-header {
    min-height: 96px;
    padding: 16px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    border-bottom: 1px solid var(--color-border);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 320px;
    height: auto;
}

.brand-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: var(--color-green);
    color: white;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1;
}

.brand-text span {
    margin-top: 4px;
    color: var(--color-text-light);
    font-size: 11px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    min-height: 42px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--color-orange);
    color: white;
    box-shadow: 0 7px 18px rgba(245, 111, 10, 0.24);
}

.button-primary:hover {
    background: var(--color-orange-dark);
}

.button-secondary {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.icon-button {
    width: 42px;
    height: 42px;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    background: var(--color-surface);
    cursor: pointer;
}

.hero {
    min-height: 600px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    background:
        linear-gradient(
            90deg,
            rgba(255, 253, 248, 1) 0%,
            rgba(255, 253, 248, 0.96) 45%,
            rgba(255, 253, 248, 0.25) 70%
        );
}

.hero-content {
    z-index: 2;
    padding: 68px 30px 0 54px;
}

.hero h1 {
    max-width: 600px;

    font-family: var(--font-heading);
    font-size: clamp(48px, 5vw, 76px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--color-orange);
}

.hero-description {
    max-width: 460px;
    margin-top: 24px;

    color: var(--color-text-light);
    font-size: 17px;
}

.hero-image {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-search {
    width: min(100%, 580px);
    min-height: 58px;
    margin-top: 34px;
    padding: 6px 7px 6px 18px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: white;
    border: 1px solid var(--color-border);
    border-radius: 14px;

    box-shadow: var(--shadow-small);
}

.hero-search input {
    flex: 1;
    min-width: 0;

    border: 0;
    outline: 0;
    background: transparent;
}

.hero-search button {
    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 11px;

    background: var(--color-orange);
    color: white;

    cursor: pointer;
}

.hero-statistics {
    width: min(100%, 720px);
    margin-top: 26px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.statistic {
    min-height: 92px;
    padding: 18px;

    display: flex;
    align-items: center;
    gap: 14px;
}

.statistic + .statistic {
    border-left: 1px solid var(--color-border);
}

.statistic-icon {
    color: var(--color-green);
    font-size: 28px;
}

.statistic div {
    display: flex;
    flex-direction: column;
}

.statistic strong {
    font-size: 21px;
}

.statistic div span {
    color: var(--color-text-light);
    font-size: 12px;
}

.homepage-content {
    margin: -20px 32px 20px;
    padding: 30px;

    position: relative;
    z-index: 3;

    background: rgba(255, 253, 248, 0.97);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.section-heading {
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 24px;
}

.section-heading a {
    font-size: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 105px;
    padding: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid var(--color-border);
    border-radius: 16px;

    background: var(--color-surface);
    color: var(--color-text);

    cursor: pointer;
    box-shadow: var(--shadow-small);
}

.category-card span {
    font-size: 28px;
}

.category-card strong {
    font-size: 13px;
}

.category-card-active {
    background: var(--color-green);
    color: white;
}

.quick-find {
    margin-top: 26px;
}

.quick-find h2 {
    margin-bottom: 12px;

    font-family: var(--font-heading);
    font-size: 22px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    padding: 8px 14px;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    background: var(--color-surface);
    cursor: pointer;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.recipe-card {
    min-width: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-small);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}


.recipe-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15 / 1;
    overflow: hidden;
}

.recipe-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--color-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.favorite-button {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-orange);
    font-size: 20px;
    cursor: pointer;
}

.recipe-card-content {
    padding: 14px;
}

.recipe-card-content h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.25;
}

.recipe-card-content p {
    margin-top: 4px;
    color: var(--color-text-light);
    font-size: 12px;
}

.recipe-card-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
}

.recipe-card-meta span:first-child {
    color: var(--color-orange);
}










@media (max-width: 1100px) {
    .recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .brand-logo {
        width: 145px;
    }
}