/* =========================================================================
   «Ферма» — a family farm shop with delivery, on top of NewCMS Default.

   ART DIRECTION
   A farmhouse kitchen table on a Saturday morning. The page is milk paper
   (#f8f3e8); hay (#efe2c4) grounds the calm bands; walnut (#3a2a1d) is the
   ink, the shelf under the header and the footer board. Clover green
   (--ferma-accent) is what you press; honey (--ferma-honey) marks price
   tags, «in season», the featured box and the hand-drawn furrows.

   Things the eye should remember: a green gingham tablecloth (ribbon over
   the header, edge over the footer, borders of note cards), round farm
   stamps, kraft price tags with a string hole, wooden boards with names in
   stencil capitals, photographs pinned like snapshots with tape, a dashed
   «stitch» inside cards like on a feed sack.

   Type: Lora — a warm book serif, bold for titles, italic for handwritten
   notes and signatures; narrow capitals (Oswald) for labels, menus, prices
   and stamps; Onest for reading. Corners are almost square
   (--ferma-radius, 6px): crates and paper, not pebbles and pills.

   Loaded after the parent's theme.css / blocks.css / chrome.css and the
   modules' styles, so the rules here re-dress rather than rebuild.

   1. Fonts  2. Tokens  3. Base  4. Header  5. Footer  6. Own blocks
   7. Shared blocks  8. Shop  9. Variants, motion and fit
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fonts — Lora, Onest and Manrope are the parent's; Oswald ships with
   the template (assets/fonts, OFL).
   ------------------------------------------------------------------------- */
@font-face {
    font-family: 'Ferma Lora';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/themes/default/assets/fonts/lora-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Ferma Lora';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/themes/default/assets/fonts/lora-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ferma Lora';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('/themes/default/assets/fonts/lora-cyrillic-wght-italic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Ferma Lora';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('/themes/default/assets/fonts/lora-latin-wght-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ferma Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Ferma Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ferma Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/themes/default/assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Ferma Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/themes/default/assets/fonts/onest-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Ferma Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/themes/default/assets/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Ferma Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/themes/default/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The owner's design settings (theme.json → design.controls). Core prints
   the chosen values as :root{--ferma-…} after this file. */
:root {
    --ferma-accent: #4c6b2a;
    --ferma-honey: #e8b547;
    --ferma-font-display: 'Ferma Lora', Georgia, 'Times New Roman', serif;
    --ferma-font-body: 'Ferma Onest', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --ferma-font-label: 'Ferma Oswald', 'Arial Narrow', Arial, sans-serif;
    --ferma-radius: 6px;
}

/* -------------------------------------------------------------------------
   2. Tokens — palette «Молоко и рожь» by default
   ------------------------------------------------------------------------- */
html:root {
    --fm-paper: #f8f3e8;
    --fm-paper-2: #fffdf7;
    --fm-hay: #efe2c4;
    --fm-kraft: #d9bc8c;
    --fm-kraft-2: #c9a46c;
    --fm-ink: #2c2117;
    --fm-text: #43372a;
    --fm-muted: #6b5f4f;
    --fm-line: #e2d4b8;
    --fm-line-2: #cbb793;
    --fm-walnut: #3a2a1d;
    --fm-wood: #8b6440;
    --fm-wood-2: #75522f;
    --fm-clover: var(--ferma-accent);
    --fm-clover-2: color-mix(in srgb, var(--ferma-accent) 78%, #0c1405);
    --fm-clover-soft: color-mix(in srgb, var(--ferma-accent) 14%, var(--fm-paper));
    --fm-honey: var(--ferma-honey);
    --fm-honey-soft: color-mix(in srgb, var(--ferma-honey) 26%, var(--fm-paper-2));
    --fm-honey-ink: color-mix(in srgb, var(--ferma-honey) 35%, #4a2e05);
    --fm-check: color-mix(in srgb, var(--ferma-accent) 34%, transparent);
    --fm-cloth: #fbf7ec;

    --fm-serif: var(--ferma-font-display);
    --fm-sans: var(--ferma-font-body);
    --fm-label: var(--ferma-font-label);
    --fm-book: 'Ferma Lora', Georgia, 'Times New Roman', serif;
    --fm-r: var(--ferma-radius);
    --fm-ease: cubic-bezier(0.3, 0.7, 0.3, 1);
    --fm-stitch: 1.5px dashed color-mix(in srgb, var(--fm-ink) 30%, transparent);

    --c-bg: var(--fm-paper);
    --c-surface: var(--fm-paper-2);
    --c-surface-sunk: var(--fm-hay);
    --c-text: var(--fm-text);
    --c-text-strong: var(--fm-ink);
    --c-text-muted: var(--fm-muted);
    --c-text-faint: #8c7f6c;
    --c-border: var(--fm-line);
    --c-border-strong: var(--fm-line-2);
    --c-accent: var(--fm-clover);
    --c-accent-hover: var(--fm-clover-2);
    --c-accent-soft: var(--fm-clover-soft);
    --c-accent-contrast: #fffbef;
    --c-link: var(--fm-clover-2);
    --c-link-hover: var(--fm-ink);
    --c-mark: var(--fm-honey);
    --c-mark-text: var(--fm-honey-ink);
    --c-mark-soft: var(--fm-honey-soft);
    --c-slab: var(--fm-walnut);
    --c-slab-text: #f6eedd;
    --c-slab-muted: #d6c7ab;
    --c-danger: #a8392a;
    --c-success: #4c6b2a;

    --font-display: var(--fm-serif);
    --font-ui: var(--fm-sans);
    --font-prose: var(--fm-sans);

    --fw-heading: 700;
    --tr-tight: -0.01em;
    --tr-snug: 0;

    --r-xs: min(var(--ferma-radius), 4px);
    --r-sm: var(--ferma-radius);
    --r-md: var(--ferma-radius);
    --r-lg: calc(var(--ferma-radius) * 1.6);
    --r-btn: var(--ferma-radius);
    --r-pill: 999px;
    --card-radius: var(--ferma-radius);
    --card-bg: var(--fm-paper-2);
    --card-border: 1px solid var(--fm-line);
    --card-shadow: none;
    --shadow-sm: 0 2px 5px -2px rgba(44, 33, 23, 0.14);
    --shadow-md: 0 14px 30px -20px rgba(44, 33, 23, 0.45);
    --shadow-lg: 0 26px 50px -28px rgba(44, 33, 23, 0.5);
    --shadow-lift: 0 22px 40px -24px rgba(44, 33, 23, 0.5);

    --w-container: 76rem;
    --w-wide: 84rem;
    --w-prose: 40rem;
    --gutter: clamp(1rem, 3.4vw, 3rem);

    --sp-xs: 1.5rem;
    --sp-sm: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
    --sp-md: clamp(3.25rem, 2.5rem + 3vw, 5.5rem);
    --sp-lg: clamp(4.25rem, 3.2rem + 4.6vw, 8rem);
    --sp-xl: clamp(5.5rem, 4.2rem + 6.5vw, 10rem);

    --dur: 220ms;
    --ease: var(--fm-ease);

    color-scheme: light;
}

/* The visitor's dark scheme does not turn a sunny kitchen into a cellar. */
@media (prefers-color-scheme: dark) {
    html:root {
        --c-bg: var(--fm-paper);
        --c-surface: var(--fm-paper-2);
        --c-surface-sunk: var(--fm-hay);
        --c-text: var(--fm-text);
        --c-text-strong: var(--fm-ink);
        --c-text-muted: var(--fm-muted);
        --c-border: var(--fm-line);
        --c-border-strong: var(--fm-line-2);
        --c-accent: var(--fm-clover);
        --c-accent-hover: var(--fm-clover-2);
        --c-accent-contrast: #fffbef;
        --c-link: var(--fm-clover-2);
        --c-link-hover: var(--fm-ink);
        --c-mark: var(--fm-honey);
        --c-mark-text: var(--fm-honey-ink);
    }
}

/* Palette «Крафт и сено» — the page itself is light kraft. */
html[data-ferma-palette="kraft"]:root {
    --fm-paper: #f1e6cf;
    --fm-paper-2: #fbf5e7;
    --fm-hay: #e6d3aa;
    --fm-line: #dcc8a0;
    --fm-line-2: #c3a878;
    --fm-cloth: #f7efdc;
}
/* Palette «Луг и роса» — a greener, fresher paper. */
html[data-ferma-palette="meadow"]:root {
    --fm-paper: #f3f4e8;
    --fm-paper-2: #fcfdf5;
    --fm-hay: #e1e8cc;
    --fm-line: #d7dcc0;
    --fm-line-2: #b9c298;
    --fm-ink: #212a17;
    --fm-text: #3a4330;
    --fm-muted: #5f6852;
    --fm-walnut: #2d3620;
    --fm-cloth: #f8faee;
}
/* Palette «Берёста: светлая» — white bark, charcoal lines. */
html[data-ferma-palette="birch"]:root {
    --fm-paper: #fbfaf6;
    --fm-paper-2: #ffffff;
    --fm-hay: #f0ede4;
    --fm-line: #e7e3d8;
    --fm-line-2: #d0cabb;
    --fm-ink: #24211c;
    --fm-text: #3d3a33;
    --fm-muted: #67625a;
    --fm-walnut: #2b2824;
    --fm-cloth: #ffffff;
}

/* Spacing «Плотнее». */
html[data-ferma-density="compact"]:root {
    --sp-sm: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    --sp-md: clamp(2.5rem, 2rem + 2.2vw, 4rem);
    --sp-lg: clamp(3.25rem, 2.6rem + 3vw, 5.5rem);
    --sp-xl: clamp(4.5rem, 3.5rem + 4.5vw, 7rem);
}

/* Section tones: the design layer is not linked, so the theme owns them. */
.cms-tone-soft {
    --section-bg: var(--fm-hay);
    --c-bg: var(--fm-hay);
    --c-surface: var(--fm-paper-2);
    --c-border: color-mix(in srgb, var(--fm-line-2) 70%, var(--fm-hay));
}
.cms-tone-dark,
.cms-tone-primary,
.cms-on-dark {
    --section-bg: var(--fm-walnut);
    --c-bg: var(--fm-walnut);
    --c-surface: color-mix(in srgb, var(--fm-walnut) 86%, #fff);
    --c-surface-sunk: color-mix(in srgb, var(--fm-walnut) 88%, #000);
    --c-text: #eee3cc;
    --c-text-strong: #fff8e8;
    --c-text-muted: #cfbf9f;
    --c-text-faint: #ad9d80;
    --c-border: rgba(255, 244, 220, 0.18);
    --c-border-strong: rgba(255, 244, 220, 0.32);
    --c-accent: var(--ferma-honey);
    --c-accent-hover: color-mix(in srgb, var(--ferma-honey) 80%, #fff);
    --c-accent-contrast: var(--fm-walnut);
    --c-link: var(--ferma-honey);
    --c-link-hover: #fff;
    --c-mark: var(--ferma-honey);
    --c-mark-text: var(--ferma-honey);
    --card-bg: rgba(255, 244, 220, 0.06);
    --card-border: 1px solid rgba(255, 244, 220, 0.18);
    color-scheme: dark;
}
.cms-tone-accent {
    --section-bg: var(--fm-clover);
    --c-bg: var(--fm-clover);
    --c-text: #f2f0e0;
    --c-text-strong: #fffdf2;
    --c-text-muted: #dfe4cf;
    --c-accent: var(--ferma-honey);
    --c-accent-contrast: var(--fm-ink);
    --c-link: #fff;
    --c-border: rgba(255, 255, 255, 0.25);
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
body.fm-body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--fm-sans);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ferma-honey); color: var(--fm-ink); }

.fm-wrap {
    width: min(100% - 2 * var(--gutter), 78rem);
    margin-inline: auto;
}

h1, h2, h3, h4,
.cms-section__title {
    font-family: var(--fm-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--c-text-strong);
}
.cms-section__title {
    font-size: clamp(1.95rem, 1.4rem + 2.1vw, 3.1rem);
    line-height: 1.08;
}
/* A hand-drawn honey furrow under every section title. */
.cms-section__title::after {
    content: "";
    display: block;
    width: 110px;
    height: 12px;
    margin-top: 0.7rem;
    background-color: var(--c-mark);
    -webkit-mask: left center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2 7c9-5 18-5 27 0s18 5 27 0 18-5 27 0 18 5 27 0 6-3 8-2'/%3E%3C/svg%3E");
    mask: left center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M2 7c9-5 18-5 27 0s18 5 27 0 18-5 27 0 18 5 27 0 6-3 8-2'/%3E%3C/svg%3E");
}
.cms-section__head--center .cms-section__title::after { margin-inline: auto; }
.cms-section__subtitle {
    color: var(--c-text-muted);
    font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
    max-width: 40rem;
}
.cms-section__head--center .cms-section__subtitle { margin-inline: auto; }
.cms-section__eyebrow, .cms-eyebrow {
    font-family: var(--fm-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fm-clover-2);
}

.cms-prose h2, .cms-prose h3 { font-family: var(--fm-serif); font-weight: 700; }
.cms-prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.cms-prose blockquote {
    border-left: 4px solid var(--ferma-honey);
    font-family: var(--fm-book);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--c-text-strong);
}
.cms-prose li::marker { color: var(--fm-clover); }

/* Buttons: letterpress blocks — narrow capitals, square corners, a solid
   shadow that the button sinks into when pressed. */
.cms-btn {
    min-height: 50px;
    padding: 0.75rem 1.6rem;
    border-radius: var(--fm-r);
    font-family: var(--fm-label);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cms-btn--primary {
    box-shadow: 0 4px 0 var(--fm-clover-2);
}
.cms-btn--primary:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--fm-clover-2); }
.cms-btn--primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--fm-clover-2); }
.cms-tone-dark .cms-btn--primary, .cms-on-dark .cms-btn--primary { box-shadow: 0 4px 0 color-mix(in srgb, var(--ferma-honey) 55%, #3b2405); }
.cms-btn--ghost {
    border: 2px solid currentColor;
    background: transparent;
    color: var(--c-text-strong);
}
.cms-btn--ghost:hover { color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 7%, transparent); }

.fm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-family: var(--fm-label);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fm-clover-2);
}
.fm-eyebrow__art { width: 22px; height: 22px; flex: none; color: var(--fm-clover); }

.fm-art { display: block; }
:focus-visible { outline-color: var(--c-accent); }

/* A paper note with a gingham border (design toggle «Клетчатая скатерть»:
   off — a plain honey border). */
.fm-note {
    border: 10px solid transparent;
    border-radius: var(--fm-r);
    background-color: var(--fm-cloth);
    background-image:
        linear-gradient(var(--fm-paper-2), var(--fm-paper-2)),
        linear-gradient(90deg, var(--fm-check) 50%, transparent 50%),
        linear-gradient(var(--fm-check) 50%, transparent 50%);
    background-clip: padding-box, border-box, border-box;
    background-origin: padding-box, border-box, border-box;
    background-size: auto, 12px 12px, 12px 12px;
    box-shadow: var(--shadow-md);
}
html[data-ferma-gingham="off"] .fm-note {
    border: 3px solid var(--ferma-honey);
    background: var(--fm-paper-2);
}

/* A kraft price tag with a string hole. */
.fm-tag {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 1.1rem 0.5rem 1.9rem;
    background: var(--fm-kraft);
    color: var(--fm-ink);
    clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
    border-radius: 0 var(--fm-r) var(--fm-r) 0;
}
.fm-tag::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--c-bg);
    box-shadow: inset 0 0 0 1.5px var(--fm-kraft-2);
}

/* Gentle reveals (armed by ferma.js only when the visitor allows motion). */
.fm-motion .fm-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 650ms var(--fm-ease), transform 650ms var(--fm-ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.fm-motion .fm-reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------------- */
.fm-hdr {
    position: relative;
    z-index: 50;
    background: var(--fm-paper);
}
.fm-hdr--sticky { position: sticky; top: 0; }
.fm-hdr.is-scrolled { box-shadow: 0 12px 26px -22px rgba(44, 33, 23, 0.55); }

/* The gingham ribbon. */
.fm-ribbon {
    background-color: var(--fm-cloth);
    background-image:
        linear-gradient(90deg, var(--fm-check) 50%, transparent 50%),
        linear-gradient(var(--fm-check) 50%, transparent 50%);
    background-size: 14px 14px;
    color: var(--fm-ink);
    font-size: 0.84rem;
}
html[data-ferma-gingham="off"] .fm-ribbon { background: var(--fm-clover); color: #fffbef; }
.fm-ribbon__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 42px;
    padding: 6px var(--gutter);
}
.fm-ribbon__zone { display: flex; align-items: center; gap: 0.4rem 0.8rem; flex-wrap: wrap; justify-content: center; }
.fm-ribbon__zone--right { margin-left: auto; }
.fm-ribbon__text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.25rem 0.8rem;
    border-radius: 3px;
    background: var(--fm-paper-2);
    box-shadow: 0 1px 0 rgba(44, 33, 23, 0.12);
    font-weight: 500;
}
html[data-ferma-gingham="off"] .fm-ribbon__text { background: none; box-shadow: none; }
.fm-ribbon .cms-icon, .fm-ribbon svg { width: 15px; height: 15px; color: var(--fm-clover); }
html[data-ferma-gingham="off"] .fm-ribbon svg { color: var(--ferma-honey); }
.fm-ribbon a { color: inherit; }

/* The main row: a ledger rule under it. */
.fm-hdr__main {
    border-bottom: 3px double var(--fm-line-2);
}
.fm-hdr__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    width: min(100% - 2 * var(--gutter), var(--w-wide));
    min-height: 88px;
    margin-inline: auto;
}
.fm-hdr__zone { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.fm-hdr__zone--center { justify-content: center; }
.fm-hdr__zone--right { justify-content: flex-end; gap: 0.5rem; }

.fm-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-text-strong);
    text-decoration: none;
}
.fm-logo__img { height: var(--logo-h, 56px); width: auto; }
.fm-logo__seal {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: none;
    color: var(--fm-clover);
    transform: rotate(-8deg);
    transition: transform 700ms var(--fm-ease);
}
.fm-logo:hover .fm-logo__seal { transform: rotate(6deg); }
.fm-logo__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-logo__wheat { position: relative; width: 16px; height: 38px; color: var(--fm-honey-ink); }
.fm-logo__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.fm-logo__name {
    font-family: var(--fm-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.fm-logo__tagline {
    margin-top: 0.35rem;
    font-family: var(--fm-label);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    white-space: nowrap;
}

/* The menu in narrow capitals, the current item underlined with a furrow. */
.fm-hdr .hdr-nav__list { gap: 0.25rem; }
.fm-hdr .hdr-nav__link {
    padding: 0.6rem 0.9rem;
    border-radius: var(--fm-r);
    font-family: var(--fm-label);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-strong);
    background: none;
    text-decoration: none;
}
.fm-hdr .hdr-nav__link:hover { color: var(--fm-clover-2); }
.fm-hdr .hdr-nav__link.is-active {
    color: var(--fm-clover-2);
    text-decoration: underline wavy var(--ferma-honey) 2px;
    text-underline-offset: 8px;
}
.fm-hdr .hdr-sub {
    border: 1px solid var(--c-border-strong);
    border-radius: var(--fm-r);
    background: var(--fm-paper-2);
    box-shadow: var(--shadow-lg);
}
.fm-hdr .hdr-sub__link { border-radius: var(--fm-r); }
.fm-hdr .hdr-sub__link:hover { background: var(--fm-honey-soft); color: var(--fm-ink); }

.fm-hdr .hdr-phone__number { font-family: var(--fm-serif); font-weight: 700; font-size: 1.1rem; color: var(--c-text-strong); white-space: nowrap; }
.fm-hdr .hdr-phone__caption { font-size: 0.74rem; color: var(--c-text-muted); }
.fm-hdr .hdr-el--phone { margin-right: 0.5rem; }
.fm-hdr .hdr-icon-btn,
.fm-hdr .shop-hlink,
.fm-hdr .shop-minicart {
    border: 2px solid var(--fm-ink);
    border-radius: var(--fm-r);
    background: var(--fm-paper-2);
    color: var(--fm-ink);
}
.fm-hdr .shop-minicart {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    box-shadow: 0 3px 0 var(--fm-ink);
}
.fm-hdr .shop-minicart:hover { background: var(--fm-honey-soft); }
.fm-hdr .shop-minicart__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fm-hdr .shop-minicart__count { position: absolute; top: -8px; right: -8px; background: var(--ferma-honey); color: var(--fm-ink); font-weight: 700; }

/* The section shelf: a wooden board with stencilled labels. */
.fm-shelf {
    background-color: var(--fm-wood);
    background-image:
        repeating-linear-gradient(90deg, transparent 0 211px, rgba(0, 0, 0, 0.14) 211px 213px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12)),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0 2px, transparent 2px 7px);
    border-bottom: 3px solid var(--fm-wood-2);
}
.fm-shelf__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(100% - 2 * var(--gutter), var(--w-wide));
    margin-inline: auto;
}
.fm-shelf__nav { min-width: 0; max-width: 100%; }
.fm-shelf__list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0.35rem 0.1rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.fm-shelf__list::-webkit-scrollbar { display: none; }
.fm-shelf__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.3rem 1rem;
    border-radius: var(--fm-r);
    color: #fbf2de;
    font-family: var(--fm-label);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.fm-shelf__link .cms-icon, .fm-shelf__link svg { width: 16px; height: 16px; color: var(--ferma-honey); }
.fm-shelf__link:hover, .fm-shelf__link.is-active { background: rgba(255, 244, 220, 0.14); color: #fff; }
.fm-shelf__link--hot { background: var(--ferma-honey); color: var(--fm-ink); text-shadow: none; }
.fm-shelf__link--hot svg { color: var(--fm-ink); }
.fm-shelf__link--hot:hover { background: color-mix(in srgb, var(--ferma-honey) 85%, #fff); color: var(--fm-ink); }

/* Header variants. */
html[data-ferma-header="stamp"] .fm-hdr__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "nav brand right";
    min-height: 104px;
}
html[data-ferma-header="stamp"] .fm-hdr__zone--left { grid-area: brand; justify-content: center; }
html[data-ferma-header="stamp"] .fm-hdr__zone--center { grid-area: nav; justify-content: flex-start; }
html[data-ferma-header="stamp"] .fm-hdr__zone--right { grid-area: right; }
html[data-ferma-header="stamp"] .fm-logo { flex-direction: column; gap: 0.35rem; text-align: center; }
html[data-ferma-header="stamp"] .fm-logo__text { align-items: center; }
html[data-ferma-header="stamp"] .fm-logo__seal { width: 64px; height: 64px; }

html[data-ferma-header="compact"] .fm-hdr__inner { min-height: 66px; }
html[data-ferma-header="compact"] .fm-logo__tagline { display: none; }
html[data-ferma-header="compact"] .fm-logo__seal { width: 44px; height: 44px; }
html[data-ferma-header="compact"] .fm-logo__wheat { height: 28px; }
html[data-ferma-header="compact"] .fm-logo__name { font-size: 1.35rem; }
html[data-ferma-header="compact"] .fm-shelf__link { min-height: 34px; font-size: 0.85rem; }

.fm-burger {
    display: none;
    width: 48px;
    height: 48px;
    border: 2px solid var(--fm-ink);
    border-radius: var(--fm-r);
    background: var(--fm-paper-2);
    color: var(--fm-ink);
    place-items: center;
}
.fm-burger__lines { display: grid; gap: 4px; width: 18px; }
.fm-burger__lines span { display: block; height: 2px; border-radius: 1px; background: currentColor; }
.fm-burger__lines span:nth-child(2) { width: 65%; }

.fm-drawer { background: var(--fm-paper); }
.fm-drawer .hdr-drawer__nav a,
.fm-drawer .hdr-drawer__nav button { font-family: var(--fm-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.25rem; }
.fm-drawer__art { display: flex; justify-content: center; padding: 1.5rem 0 2rem; }
.fm-drawer__art svg { width: 44px; height: 110px; color: var(--ferma-honey); }

@media (max-width: 1360px) {
    .fm-hdr .hdr-phone__caption { display: none; }
    .fm-hdr .hdr-nav__link { padding-inline: 0.65rem; }
}
@media (max-width: 1100px) {
    .fm-hdr__inner,
    html[data-ferma-header] .fm-hdr__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: none;
        min-height: 70px;
    }
    html[data-ferma-header] .fm-hdr__zone--left { grid-area: auto; justify-content: flex-start; }
    html[data-ferma-header] .fm-hdr__zone--right { grid-area: auto; }
    .fm-hdr__zone--center { display: none; }
    html[data-ferma-header="stamp"] .fm-logo { flex-direction: row; text-align: left; }
    html[data-ferma-header="stamp"] .fm-logo__text { align-items: flex-start; }
    .fm-burger { display: grid; }
    .fm-hdr__zone--right .hdr-el:not(.hdr-el--mobile) { display: none; }
    .fm-hdr .hdr-el--phone { margin-right: 0; }
    .fm-hdr .hdr-el--phone .hdr-phone { display: none; }
    .fm-hdr .hdr-el--phone .hdr-phone__icon { display: inline-grid; }
    .fm-hdr .hdr-icon-btn, .fm-hdr .shop-hlink { width: 44px; height: 44px; }
    .fm-shelf__inner { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .fm-ribbon__zone .fm-ribbon__text:not(:first-child) { display: none; }
    .fm-ribbon { font-size: 0.76rem; }
    .fm-ribbon__text { padding: 0.2rem 0.55rem; text-align: center; }
    .fm-logo { gap: 0.5rem; }
    .fm-logo__seal { width: 44px; height: 44px; }
    .fm-logo__wheat { width: 12px; height: 28px; }
    .fm-logo__name { font-size: 1.25rem; }
    .fm-logo__tagline { display: none; }
    .fm-hdr__zone--right { gap: 0.3rem; }
    .fm-hdr .shop-minicart, .fm-burger { width: 44px; height: 44px; }
    .fm-shelf__inner { width: 100%; padding-inline: calc(var(--gutter) - 0.5rem); }
    .fm-shelf__link { padding-inline: 0.7rem; font-size: 0.86rem; }
}

/* -------------------------------------------------------------------------
   5. Footer
   ------------------------------------------------------------------------- */
.fm-ftr {
    margin-top: 0;
    background: var(--fm-walnut);
    color: #e9dcc2;
    font-size: 0.95rem;
    --c-text: #e9dcc2;
    --c-text-strong: #fff7e6;
    --c-text-muted: #c9b89a;
    --c-border: rgba(255, 244, 220, 0.16);
    --c-accent: var(--ferma-honey);
    --c-accent-contrast: var(--fm-walnut);
}
.fm-ftr__cloth {
    height: 24px;
    background-color: var(--fm-cloth);
    background-image:
        linear-gradient(90deg, var(--fm-check) 50%, transparent 50%),
        linear-gradient(var(--fm-check) 50%, transparent 50%);
    background-size: 12px 12px;
    border-top: 1px solid color-mix(in srgb, var(--fm-clover) 40%, transparent);
    box-shadow: inset 0 -4px 0 -2px rgba(0, 0, 0, 0.08);
}
html[data-ferma-gingham="off"] .fm-ftr__cloth { height: 6px; background: var(--ferma-honey); border: 0; box-shadow: none; }
.fm-ftr__board { background: var(--fm-walnut); }
.fm-ftr a { color: var(--c-text); text-decoration: none; }
.fm-ftr a:hover { color: var(--ferma-honey); }

.fm-ftr__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    align-items: flex-end;
    padding-block: clamp(3rem, 2.5rem + 3vw, 5rem) 2.5rem;
    border-bottom: 1px dashed var(--c-border);
}
.fm-ftr__mark { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); min-width: 0; }
.fm-ftr__seal {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(84px, 9vw, 128px);
    aspect-ratio: 1;
    flex: none;
    color: var(--ferma-honey);
    transform: rotate(-10deg);
}
.fm-ftr__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-ftr__wheat { position: relative; width: 28%; height: 66%; }
.fm-ftr__word {
    margin: 0;
    font-family: var(--fm-serif);
    font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: #fff7e6;
}
.fm-ftr__tagline {
    margin: 0.8rem 0 0;
    font-family: var(--fm-label);
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ferma-honey);
}
.fm-ftr__furrow { width: min(240px, 60%); height: 14px; margin-top: 0.8rem; color: color-mix(in srgb, var(--ferma-honey) 60%, transparent); }
.fm-ftr__sub { flex: 0 1 26rem; }
.fm-ftr__sub-title { font-size: 1.6rem; margin: 0 0 0.5rem; color: #fff7e6; }
.fm-ftr__sub-lead { color: var(--c-text-muted); margin: 0 0 1rem; }

.fm-ftr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 2.5rem 2rem;
    padding-block: 3rem;
}
.fm-ftr__col--about { grid-column: span 2; max-width: 28rem; }
@media (min-width: 1100px) {
    .fm-ftr__grid { grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(10rem, 1fr)); }
    .fm-ftr__col--about { grid-column: auto; }
}
.fm-ftr__title {
    margin: 0 0 1rem;
    font-family: var(--fm-label);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ferma-honey);
}
.fm-ftr__about, .fm-ftr__text { margin: 0; color: var(--c-text-muted); line-height: 1.7; }
.fm-ftr__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.fm-ftr__menu a { display: inline-block; padding-block: 0.2rem; }
.fm-ftr__contacts { font-style: normal; display: grid; gap: 0.6rem; }
.fm-ftr__contacts p { margin: 0; }
.fm-ftr__phone a { font-family: var(--fm-serif); font-size: 1.45rem; font-weight: 700; color: #fff7e6; white-space: nowrap; }
.fm-ftr__phone span { display: block; font-size: 0.82rem; color: var(--c-text-muted); }
.fm-ftr__line { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--c-text-muted); }
.fm-ftr__line svg { width: 16px; height: 16px; flex: none; margin-top: 0.25rem; color: var(--ferma-honey); }
.fm-ftr__socials { margin-top: 1.3rem; }
.fm-ftr__socials a { border-radius: var(--fm-r); background: rgba(255, 244, 220, 0.08); color: #fff7e6; }
.fm-ftr__pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fm-ftr__pay-item {
    padding: 0.3rem 0.8rem 0.3rem 1.3rem;
    background: var(--fm-kraft);
    color: var(--fm-ink);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    font-family: var(--fm-label);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.fm-ftr__bottom { border-top: 1px dashed var(--c-border); }
.fm-ftr__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2rem;
    padding-block: 1.4rem;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}
.fm-ftr__copy, .fm-ftr__company { margin: 0; }
.fm-ftr__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fm-ftr .site-footer__slot { margin-left: auto; }

@media (max-width: 760px) {
    .fm-ftr__top { gap: 2rem; }
    .fm-ftr__col--about { grid-column: auto; }
    .fm-ftr .site-footer__slot { margin-left: 0; }
    .fm-ftr__mark { align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   6. Own blocks
   ------------------------------------------------------------------------- */

/* 6.1 Farm gate cover ------------------------------------------------------ */
.fm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
}
.fm-hero__eyebrow { margin-bottom: 1.2rem; }
.fm-hero__title {
    margin: 0;
    font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.fm-hero__furrow { width: clamp(150px, 16vw, 220px); height: 16px; margin: 1rem 0 0; color: var(--ferma-honey); }
.fm-hero__lead {
    max-width: 36rem;
    margin: 1.4rem 0 0;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    line-height: 1.6;
    color: var(--c-text-muted);
}
.fm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin: 2rem 0 0; }
.fm-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
    margin: 2.4rem 0 0;
    padding: 1.2rem 0 0;
    list-style: none;
    border-top: 1.5px dashed var(--c-border-strong);
    max-width: 38rem;
}
.fm-hero__facts li { display: grid; gap: 0.2rem; }
.fm-hero__facts li + li { padding-left: 1rem; border-left: 1.5px dashed var(--c-border-strong); }
.fm-hero__facts strong { font-family: var(--fm-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1; color: var(--fm-clover-2); }
.fm-hero__facts span { font-size: 0.88rem; color: var(--c-text-muted); line-height: 1.35; }

.fm-hero__visual { position: relative; padding: 1.5rem 1rem 3.5rem 2rem; }
.fm-hero__photo {
    position: relative;
    margin: 0;
    padding: 12px;
    background: var(--fm-paper-2);
    border-radius: 3px;
    box-shadow: var(--shadow-lg);
    transform: rotate(1.6deg);
}
/* Two strips of tape. */
.fm-hero__photo::before,
.fm-hero__photo::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -14px;
    width: 104px;
    height: 30px;
    background: color-mix(in srgb, var(--ferma-honey) 45%, rgba(255, 250, 235, 0.55));
    box-shadow: 0 1px 2px rgba(44, 33, 23, 0.15);
}
.fm-hero__photo::before { left: 8%; transform: rotate(-7deg); }
.fm-hero__photo::after { right: 8%; transform: rotate(6deg); }
.fm-hero__img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; }
.fm-hero__snap {
    position: absolute;
    z-index: 3;
    left: -0.5rem;
    bottom: 0;
    width: clamp(120px, 13vw, 190px);
    margin: 0;
    padding: 8px 8px 26px;
    background: var(--fm-paper-2);
    box-shadow: var(--shadow-md);
    transform: rotate(-6deg);
}
.fm-hero__snap-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fm-hero__stamp {
    position: absolute;
    z-index: 4;
    top: -0.5rem;
    right: -0.5rem;
    display: grid;
    place-content: center;
    width: clamp(118px, 11vw, 150px);
    aspect-ratio: 1;
    margin: 0;
    padding: 1.4rem;
    text-align: center;
    color: var(--fm-clover-2);
    background: color-mix(in srgb, var(--fm-paper-2) 88%, transparent);
    border-radius: 50%;
    transform: rotate(-12deg);
}
.fm-hero__stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-hero__stamp strong { font-family: var(--fm-label); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1; }
.fm-hero__stamp span { margin-top: 0.25rem; font-family: var(--fm-label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; }
.fm-hero__note {
    position: absolute;
    z-index: 3;
    right: -0.5rem;
    bottom: -0.5rem;
    width: min(290px, 70%);
    padding: 1rem 1.1rem;
    transform: rotate(1.5deg);
}
.fm-hero__note-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    font-family: var(--fm-label);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-ink);
}
.fm-hero__note-sun { width: 20px; height: 20px; color: var(--ferma-honey); flex: none; }
.fm-hero__note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.fm-hero__note-list li { display: flex; align-items: baseline; gap: 0.4rem; }
.fm-hero__note-list i { flex: 1; min-width: 1rem; border-bottom: 1.5px dotted var(--c-border-strong); transform: translateY(-3px); }
.fm-hero__note-list em { font-family: var(--fm-book); font-style: italic; color: var(--fm-clover-2); white-space: nowrap; }

/* Layout «field»: the photograph across the block, text on a paper sheet. */
.fm-hero--field {
    position: relative;
    grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
    min-height: clamp(520px, 60vw, 680px);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: var(--fm-r);
    overflow: hidden;
}
.fm-hero__bg { position: absolute; inset: 0; margin: 0; }
.fm-hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.fm-hero--field .fm-hero__text {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--fm-paper-2);
    border-radius: var(--fm-r);
    box-shadow: var(--shadow-lg);
}
html[data-ferma-stitch="on"] .fm-hero--field .fm-hero__text { outline: var(--fm-stitch); outline-offset: -9px; }
.fm-hero--field .fm-hero__title { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); }
.fm-hero--field .fm-hero__note { position: static; width: auto; margin-top: 1.8rem; transform: none; box-shadow: none; }
.fm-hero__aside { position: relative; align-self: start; justify-self: end; }
.fm-hero--field .fm-hero__stamp { position: relative; top: 0; right: 0; }

/* 6.2 Market stalls ---------------------------------------------------------- */
.fm-aisles__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.fm-aisles--mixed .fm-aisles__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fm-aisles--mixed .fm-aisles__item:first-child { grid-column: span 2; grid-row: span 2; }
.fm-aisles__item { position: relative; display: flex; flex-direction: column; }
.fm-aisles__media {
    position: relative;
    flex: 1;
    margin: 0;
    border: 8px solid var(--fm-wood);
    border-radius: var(--fm-r);
    background: var(--fm-hay);
    box-shadow: inset 0 0 0 2px var(--fm-wood-2), var(--shadow-sm);
    overflow: hidden;
}
.fm-aisles__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 900ms var(--fm-ease);
}
.fm-aisles--mixed .fm-aisles__item:first-child .fm-aisles__img { aspect-ratio: auto; position: absolute; inset: 0; }
.fm-aisles--mixed .fm-aisles__item:first-child .fm-aisles__media { min-height: 18rem; }
.fm-aisles__item:hover .fm-aisles__img { transform: scale(1.05); }
.fm-aisles__tag {
    position: absolute;
    top: 0.8rem;
    left: 0;
    padding: 0.3rem 0.8rem 0.3rem 1.3rem;
    background: var(--fm-kraft);
    color: var(--fm-ink);
    font-family: var(--fm-label);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
    padding-right: 1.4rem;
}
.fm-aisles__board {
    position: relative;
    z-index: 2;
    margin: -1.6rem 0.8rem 0;
    padding: 0.55rem 1rem;
    border-radius: 3px;
    background-color: var(--fm-wood);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.14)),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 6px);
    box-shadow: 0 6px 12px -8px rgba(44, 33, 23, 0.7);
    transform: rotate(-1deg);
}
.fm-aisles__item:nth-child(even) .fm-aisles__board { transform: rotate(0.8deg); }
/* Nail heads. */
.fm-aisles__board::before,
.fm-aisles__board::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #2d2015;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3);
}
.fm-aisles__board::before { left: 7px; }
.fm-aisles__board::after { right: 7px; }
.fm-aisles__title {
    margin: 0;
    font-family: var(--fm-label);
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #fbf2de;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.fm-aisles--mixed .fm-aisles__item:first-child .fm-aisles__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); }
.fm-aisles__link { color: inherit; text-decoration: none; }
.fm-aisles__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.fm-aisles__link:focus-visible { outline: none; }
.fm-aisles__item:has(.fm-aisles__link:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 4px; border-radius: var(--fm-r); }
.fm-aisles__note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.3rem 1rem;
    margin: 0.8rem 0.2rem 0;
    font-size: 0.92rem;
    color: var(--c-text-muted);
}
.fm-aisles__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--fm-label);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fm-clover-2);
}
.fm-aisles__more svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.fm-aisles__item:hover .fm-aisles__more svg { transform: translateX(3px); }

/* 6.3 Box of the week -------------------------------------------------------- */
.fm-box {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 3rem);
}
.fm-box__media {
    margin: 0;
    border: 12px solid var(--fm-wood);
    border-radius: var(--fm-r);
    box-shadow: inset 0 0 0 2px var(--fm-wood-2), var(--shadow-lg);
    background: var(--fm-hay);
    overflow: hidden;
}
.fm-box__img { display: block; width: 100%; height: 100%; min-height: 20rem; aspect-ratio: 4 / 3; object-fit: cover; }
.fm-box__slip {
    position: relative;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    transform: rotate(-0.6deg);
}
.fm-box__stamp {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    margin: 0;
    padding: 0.25rem 0.8rem;
    border: 3px double var(--c-danger);
    border-radius: 4px;
    color: var(--c-danger);
    font-family: var(--fm-label);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.78;
    transform: rotate(-12deg);
}
.fm-box__week {
    margin: 0 0 0.3rem;
    font-family: var(--fm-label);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}
.fm-box__name { margin: 0 0 1rem; padding-right: 7rem; font-family: var(--fm-serif); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 700; line-height: 1.15; color: var(--fm-ink); }
.fm-box__list { list-style: none; counter-reset: box; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.fm-box__row { display: flex; align-items: baseline; gap: 0.5rem; counter-increment: box; }
.fm-box__row::before {
    content: counter(box, decimal-leading-zero);
    flex: none;
    width: 1.8rem;
    font-family: var(--fm-label);
    font-size: 0.8rem;
    color: var(--c-text-faint);
}
.fm-box__what { display: flex; flex-direction: column; min-width: 0; color: var(--fm-ink); font-weight: 500; }
.fm-box__what small { font-family: var(--fm-book); font-style: italic; font-size: 0.82rem; font-weight: 400; color: var(--c-text-muted); }
.fm-box__dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--c-border-strong); transform: translateY(-4px); }
.fm-box__amount { flex: none; font-family: var(--fm-label); font-size: 1rem; letter-spacing: 0.04em; color: var(--fm-clover-2); white-space: nowrap; }
.fm-box__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1.5px dashed var(--c-border-strong);
}
.fm-box__price strong { font-family: var(--fm-label); font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: 0.02em; }
.fm-box__price span { font-size: 0.74rem; line-height: 1.25; }
.fm-box__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.fm-box__note { margin: 1.1rem 0 0; font-family: var(--fm-book); font-style: italic; font-size: 0.92rem; color: var(--c-text-muted); }

/* 6.4 Farm story ------------------------------------------------------------- */
.fm-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.fm-story--right .fm-story__visual { order: 2; }
.fm-story__visual { position: relative; padding: 0 1.5rem 3rem 0; }
.fm-story__photo {
    margin: 0;
    padding: 12px;
    background: var(--fm-paper-2);
    box-shadow: var(--shadow-lg);
    transform: rotate(-1.4deg);
}
.fm-story__img { display: block; width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.fm-story__snap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(140px, 15vw, 210px);
    margin: 0;
    padding: 8px 8px 0;
    background: var(--fm-paper-2);
    box-shadow: var(--shadow-md);
    transform: rotate(4deg);
}
.fm-story__snap-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fm-story__snap figcaption { padding: 0.45rem 0.2rem 0.6rem; font-family: var(--fm-book); font-style: italic; font-size: 0.85rem; text-align: center; color: var(--fm-muted); }
.fm-story__body > p:first-child::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-family: var(--fm-book);
    font-size: 3.6em;
    font-weight: 700;
    line-height: 0.8;
    color: var(--fm-clover);
}
.fm-story__body { font-size: 1.05rem; line-height: 1.7; }
.fm-story__quote { position: relative; margin: 1.8rem 0 0; padding: 0 0 0 1.4rem; border-left: 4px solid var(--ferma-honey); }
.fm-story__quote blockquote { margin: 0; }
.fm-story__quote p { margin: 0; font-family: var(--fm-book); font-style: italic; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.45; color: var(--c-text-strong); }
.fm-story__quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin-top: 0.9rem; }
.fm-story__sign { font-family: var(--fm-book); font-style: italic; font-weight: 700; font-size: 1.15rem; color: var(--fm-clover-2); }
.fm-story__role { font-family: var(--fm-label); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); }
.fm-story__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 1.2rem 0 0;
    list-style: none;
    border-top: 1.5px dashed var(--c-border-strong);
}
.fm-story__facts li { display: grid; gap: 0.2rem; }
.fm-story__facts li + li { padding-left: 1rem; border-left: 1.5px dashed var(--c-border-strong); }
.fm-story__facts strong { font-family: var(--fm-serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1; color: var(--fm-clover-2); }
.fm-story__facts span { font-size: 0.88rem; color: var(--c-text-muted); }
.fm-story__actions { margin: 1.8rem 0 0; }

/* 6.5 Seasonal calendar ---------------------------------------------------- */
.fm-season__list {
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fm-season__month {
    position: relative;
    padding: 1.1rem 1rem 1.2rem;
    border-top: 4px solid var(--fm-line-2);
    border-radius: 0 0 var(--fm-r) var(--fm-r);
    background: var(--c-surface);
}
html[data-ferma-stitch="on"] .fm-season__month { outline: var(--fm-stitch); outline-offset: -6px; }
.fm-season__month.is-now { border-top-color: var(--ferma-honey); background: var(--fm-honey-soft); }
.fm-season__name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-family: var(--fm-label);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-ink);
}
.fm-season__sun { width: 22px; height: 22px; flex: none; color: var(--fm-honey-ink); }
.fm-season__now {
    position: absolute;
    top: -0.85rem;
    right: 0.8rem;
    margin: 0;
    padding: 0.1rem 0.55rem;
    border-radius: 3px;
    background: var(--ferma-honey);
    color: var(--fm-ink);
    font-family: var(--fm-label);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.fm-season__furrow { width: 100%; height: 10px; margin: 0.6rem 0 0.7rem; color: var(--fm-kraft-2); }
.fm-season__produce { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.93rem; color: var(--c-text); }
.fm-season__produce li { position: relative; padding-left: 1rem; }
.fm-season__produce li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50% 0;
    background: var(--fm-clover);
    transform: rotate(-20deg);
}
.fm-season__note { display: flex; align-items: center; gap: 0.6rem; margin: 1.4rem 0 0; font-family: var(--fm-book); font-style: italic; color: var(--c-text-muted); }
.fm-season__note-art { width: 24px; height: 24px; flex: none; color: var(--fm-clover); }
@media (max-width: 1100px) {
    .fm-season__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.4rem; }
}
@media (max-width: 560px) {
    .fm-season__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fm-season__month { padding: 0.9rem 0.8rem 1rem; }
    .fm-season__name { font-size: 1rem; }
}

/* -------------------------------------------------------------------------
   7. Shared blocks, re-dressed
   ------------------------------------------------------------------------- */

/* Delivery schedule: each day is a column under a wooden board. */
.ferma .fm-body .cms-schedule__week { gap: 1rem; }
.ferma .fm-body .cms-schedule__day {
    border: 0;
    border-radius: var(--fm-r);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ferma .fm-body .cms-schedule__day-title {
    margin: 0;
    padding: 0.8rem 1.1rem;
    background-color: var(--fm-wood);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.14)), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 6px);
    color: #fbf2de;
    font-family: var(--fm-label);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.ferma .fm-body .cms-schedule__list { padding: 0.4rem 1.1rem 0.8rem; }
.ferma .fm-body .cms-schedule__item {
    padding-block: 0.9rem;
    border: 0;
    border-bottom: 1.5px dashed var(--c-border-strong);
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.ferma .fm-body .cms-schedule__item:last-child { border-bottom: 0; }
.ferma .fm-body .cms-schedule__item.is-highlight {
    margin-inline: -0.6rem;
    padding-inline: 0.6rem;
    border-radius: var(--fm-r);
    background: var(--fm-honey-soft);
    border-bottom-color: transparent;
}
.ferma .fm-body .cms-schedule__time { font-family: var(--fm-label); font-size: 1rem; letter-spacing: 0.04em; color: var(--fm-clover-2); }
.ferma .fm-body .cms-schedule__time svg { color: var(--fm-clover); }
.ferma .fm-body .cms-schedule__title { font-family: var(--fm-serif); font-size: 1.15rem; font-weight: 700; color: var(--fm-ink); }
.ferma .fm-body .cms-schedule__meta { color: var(--c-text-muted); }
.ferma .fm-body .cms-schedule__meta svg { color: var(--fm-honey-ink); }
.ferma .fm-body .cms-schedule__category {
    display: inline-block;
    padding: 0.1rem 0.7rem 0.1rem 1rem;
    border-radius: 0;
    background: var(--fm-kraft);
    color: var(--fm-ink);
    font-family: var(--fm-label);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%);
}
.ferma .fm-body .cms-schedule__note { font-family: var(--fm-book); font-style: italic; color: var(--c-text-muted); }
.ferma .fm-body .cms-schedule__chip {
    border-radius: var(--fm-r);
    font-family: var(--fm-label);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--fm-ink);
    background: transparent;
    color: var(--fm-ink);
}
.ferma .fm-body .cms-schedule__chip[aria-pressed="true"] { background: var(--fm-ink); color: var(--fm-paper); }

/* Box plans: the featured column is honey, the table is ruled like a ledger. */
.ferma .fm-body .cms-block--pricing_table { --ptable-featured: var(--fm-honey-soft); --ptable-yes: var(--fm-clover); }
.ferma .fm-body .cms-block--pricing_table .is-featured.cms-ptable__plan { box-shadow: inset 0 5px 0 var(--ferma-honey); }
.ferma .fm-body .cms-ptable__table { border-collapse: separate; border-spacing: 0; }
.ferma .fm-body .cms-ptable__plan-inner { border-radius: var(--fm-r) var(--fm-r) 0 0; }
.ferma .fm-body .cms-ptable__plan.is-featured, 
.ferma .fm-body .cms-ptable__cell.is-featured { background: var(--fm-honey-soft); }
.ferma .fm-body .cms-ptable__name { font-family: var(--fm-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-ink); }
.ferma .fm-body .cms-ptable__amount { font-family: var(--fm-serif); font-weight: 700; color: var(--fm-ink); }
.ferma .fm-body .cms-ptable__badge {
    border-radius: 0;
    padding: 0.2rem 0.7rem 0.2rem 1.1rem;
    background: var(--ferma-honey);
    color: var(--fm-ink);
    font-family: var(--fm-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.ferma .fm-body .cms-ptable__row th, .ferma .fm-body .cms-ptable__row td { border-bottom: 1.5px dashed var(--c-border-strong); }
.ferma .fm-body .cms-ptable__group th { font-family: var(--fm-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fm-clover-2); }
.ferma .fm-body .cms-ptable__mark--yes { color: var(--fm-clover); }
.ferma .fm-body .cms-ptable__note { font-family: var(--fm-book); font-style: italic; color: var(--c-text-muted); }
.ferma .fm-body .cms-ptable__card.is-featured { border: 3px solid var(--ferma-honey); background: var(--fm-honey-soft); }

/* Stages: numbered round stamps. */
.ferma .fm-body .cms-stages__marker {
    border: 2px solid var(--fm-clover);
    background: var(--fm-paper-2);
    color: var(--fm-clover-2);
    font-family: var(--fm-label);
    box-shadow: 0 0 0 4px var(--fm-paper-2), 0 0 0 5px color-mix(in srgb, var(--fm-clover) 40%, transparent);
}
.ferma .fm-body .cms-stages__title { font-family: var(--fm-serif); font-weight: 700; }
.ferma .fm-body .cms-stages__meta { font-family: var(--fm-label); letter-spacing: 0.06em; color: var(--fm-clover-2); }
.ferma .fm-body .cms-stages__total-value { font-family: var(--fm-serif); font-weight: 700; color: var(--fm-clover-2); }

.ferma .fm-body .cms-block--faq details, .ferma .fm-body .cms-faq__item { border-color: var(--c-border-strong); border-style: dashed; border-left: 0; border-right: 0; border-top: 0; }
.ferma .fm-body .cms-block--faq summary {
    font-family: var(--fm-serif);
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
    font-weight: 700;
    color: var(--c-text-strong);
}

.ferma .fm-body .cms-block--testimonials .cms-review {
    position: relative;
    border: 0;
    background: var(--fm-paper-2);
    box-shadow: var(--shadow-md);
}
html.ferma[data-ferma-stitch="on"] .fm-body .cms-block--testimonials .cms-review { outline: var(--fm-stitch); outline-offset: -8px; }
.ferma .fm-body .cms-block--testimonials .cms-review:nth-child(odd) { transform: rotate(-0.6deg); }
.ferma .fm-body .cms-block--testimonials .cms-review:nth-child(even) { transform: rotate(0.6deg); }
.ferma .fm-body .cms-review__text { font-family: var(--fm-book); font-style: italic; font-size: 1.08rem; line-height: 1.55; color: var(--c-text-strong); }
.ferma .fm-body .cms-review__initial { background: var(--fm-honey-soft); color: var(--fm-honey-ink); border-radius: 50%; font-family: var(--fm-serif); }
.ferma .fm-body .cms-review__name { font-weight: 700; }
.ferma .fm-body .cms-stars { color: #d99a1f; }

.ferma .fm-body .cms-block--stats [class*="__value"] { font-family: var(--fm-serif); font-weight: 700; color: var(--fm-clover-2); }
.ferma .fm-body .cms-block--stats [class*="__label"] { font-family: var(--fm-label); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

.ferma .fm-body .cms-block--steps [class*="__num"], .ferma .fm-body .cms-block--steps [class*="__index"] { font-family: var(--fm-label); color: var(--fm-clover-2); }
.ferma .fm-body .cms-block--steps [class*="__title"] { font-family: var(--fm-serif); font-weight: 700; }

.ferma .fm-body .cms-input, .ferma .fm-body .cms-form__input, .ferma .fm-body .cms-field input, .ferma .fm-body .cms-field textarea, .ferma .fm-body .cms-field select {
    border-radius: var(--fm-r);
    border: 1.5px solid var(--c-border-strong);
    background: var(--c-surface);
}
.ferma .fm-body input:focus-visible, .ferma .fm-body textarea:focus-visible, .ferma .fm-body select:focus-visible { outline: 2px solid var(--fm-clover); outline-offset: 1px; }

.ferma .fm-body .cms-news__title { font-family: var(--fm-serif); font-weight: 700; }
.ferma .fm-body .cms-tone-dark .cms-news__input { background: rgba(255, 244, 220, 0.08); border-color: rgba(255, 244, 220, 0.3); color: #fff8e8; }

.ferma .fm-body .cms-card { border-radius: var(--fm-r); }

/* -------------------------------------------------------------------------
   8. Shop
   ------------------------------------------------------------------------- */
/* Cards «Бумажная карточка» (default): milk paper, a stitch inside, the
   price on a kraft tag. */
.shop-card:not(.shop-card--row) {
    padding: 0.6rem 0.6rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--fm-r);
    background: var(--fm-paper-2);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
html[data-ferma-stitch="on"] .shop-card:not(.shop-card--row) { outline: var(--fm-stitch); outline-offset: -5px; }
.shop-card:not(.shop-card--row):hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: var(--shadow-md); }
.shop-card__media {
    border-radius: calc(var(--fm-r) * 0.7);
    background: var(--fm-hay);
    overflow: hidden;
}
.shop-card__img { transition: transform 900ms var(--fm-ease); }
.shop-card:hover .shop-card__img { transform: scale(1.04); }
.shop-card__body { padding-inline: 0.45rem; }
.shop-card__title { font-family: var(--fm-serif); font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.shop-card__link { color: var(--c-text-strong); }
.shop-card__link:hover { color: var(--fm-clover-2); }
.shop-card .shop-price {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.45rem;
    padding: 0.3rem 0.8rem 0.3rem 1.5rem;
    background: var(--fm-kraft);
    color: var(--fm-ink);
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
    border-radius: 0 var(--fm-r) var(--fm-r) 0;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
}
.shop-card .shop-price::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--fm-paper-2);
}
.shop-price__now, .shop-price__value { font-family: var(--fm-label); font-weight: 600; font-size: 1.25em; letter-spacing: 0.02em; color: var(--fm-ink); }
.shop-price__old, .shop-price__was { color: color-mix(in srgb, var(--fm-ink) 60%, transparent); }
.shop-price__off { background: var(--c-danger); color: #fff; border-radius: 3px; }
.shop-pick__chip { border-radius: var(--fm-r); }
.shop-pick__legend { font-family: var(--fm-label); letter-spacing: 0.08em; text-transform: uppercase; }
.shop-sticker { border-radius: 3px; font-family: var(--fm-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; background: var(--fm-paper-2); color: var(--fm-ink); }
.shop-sticker--hit { background: var(--ferma-honey); color: var(--fm-ink); }
.shop-sticker--sale { background: var(--c-danger); color: #fff; }
.shop-sticker--new { background: var(--fm-clover); color: #fffbef; }
.shop-card .shop-card__btn { min-height: 44px; padding-inline: 1rem; font-size: 0.9rem; }
.shop-card__foot { margin-top: auto; }

/* Cards «Ящик из досок». */
html[data-ferma-cards="crate"] .shop-card:not(.shop-card--row) {
    border: 7px solid var(--fm-wood);
    box-shadow: inset 0 0 0 2px var(--fm-wood-2), var(--shadow-sm);
    outline: 0;
}
html[data-ferma-cards="crate"] .shop-card:not(.shop-card--row) .shop-card__media { border-radius: 2px; }
/* Cards «Простая». */
html[data-ferma-cards="plain"] .shop-card:not(.shop-card--row) { border: 0; background: transparent; box-shadow: none; outline: 0; padding: 0; }
html[data-ferma-cards="plain"] .shop-card:not(.shop-card--row):hover { box-shadow: none; }

.shop-product__title { font-family: var(--fm-serif); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.7vw, 2.9rem); line-height: 1.08; }
.shop-product__lead { color: var(--c-text-muted); }
.shop-catimg { border-radius: var(--fm-r); overflow: hidden; }
.shop-filter, .shop-facets { --c-accent: var(--fm-clover); }

/* -------------------------------------------------------------------------
   9. Motion and fit
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .fm-motion .fm-reveal { opacity: 1; transform: none; transition: none; }
    .shop-card__img, .fm-aisles__img, .fm-logo__seal, .shop-card, .cms-btn { transition: none !important; }
    .shop-card:hover .shop-card__img, .fm-aisles__item:hover .fm-aisles__img, .shop-card:not(.shop-card--row):hover { transform: none; }
}
.fm-aisles, .fm-box, .fm-season, .fm-story { overflow-x: clip; }
.fm-hdr__inner { grid-template-columns: auto minmax(0, 1fr) auto; }

/* Lining figures in the serif: prices, facts, phones, numbers. */
h1, h2, h3, h4, .cms-section__title, .fm-hero__facts strong, .fm-story__facts strong,
.fm-ftr__phone a, .cms-ptable__amount, .cms-block--stats [class*="__value"] { font-variant-numeric: lining-nums; }

@media (max-width: 1100px) {
    .fm-aisles--mixed .fm-aisles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fm-aisles--mixed .fm-aisles__item:first-child { grid-column: span 2; grid-row: auto; }
    .fm-aisles--mixed .fm-aisles__item:first-child .fm-aisles__media { min-height: 0; }
    .fm-aisles--mixed .fm-aisles__item:first-child .fm-aisles__img { position: static; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
    .fm-hero, .fm-box, .fm-story { grid-template-columns: minmax(0, 1fr); }
    .fm-story--right .fm-story__visual { order: 0; }
    .fm-hero__visual { padding: 1.5rem 0.5rem 2rem 0.5rem; max-width: 36rem; }
    .fm-hero--field { grid-template-columns: minmax(0, 1fr); padding: 1rem; min-height: 0; }
    .fm-hero--field .fm-hero__text { margin-top: 12rem; }
    .fm-hero__aside { position: absolute; top: 1rem; right: 1rem; }
}
@media (max-width: 560px) {
    .fm-hero__facts li + li, .fm-story__facts li + li { padding-left: 0; border-left: 0; }
    .fm-hero__facts, .fm-story__facts { grid-template-columns: 1fr 1fr; }
    .fm-hero__visual { padding: 1rem 0 0; }
    .fm-hero__photo::before, .fm-hero__photo::after { width: 70px; height: 22px; top: -10px; }
    .fm-hero__snap { display: none; }
    .fm-hero__stamp { width: 104px; top: -1rem; right: -0.25rem; padding: 1rem; }
    .fm-hero__stamp strong { font-size: 1.6rem; }
    .fm-hero__note { position: relative; right: auto; bottom: auto; width: auto; margin: -1.5rem 0.5rem 0; }
    .fm-aisles__note { font-size: 0.85rem; }
    .fm-aisles__board { margin-inline: 0.4rem; padding-inline: 0.8rem; }
    .fm-aisles__title { font-size: 0.95rem; letter-spacing: 0.06em; }
    .fm-box__name { padding-right: 0; margin-top: 1.8rem; }
    .fm-box__stamp { font-size: 0.95rem; }
    .fm-story__visual { padding: 0 0.5rem 2.5rem 0; }
    .shop-card:not(.shop-card--row) .shop-card__btn { padding-inline: 0.6rem; font-size: 0.8rem; }
}
