/* =========================================================================
   Память — a funeral service and monument workshop theme (child of Default).

   base.twig links the Default stylesheets and the modules' ones first,
   then this file last, so it only has to override.

   ART DIRECTION
   Quiet and noble. Light stone paper (#EFECE6) with a deeper stone for
   calm bands, deep slate (#262C2F) for the header line, the 24/7 panels
   and the footer, and one accent — a muted olive (#6B7150) — for buttons,
   hairlines, numerals and a fine sprig ornament. No gloom, no black
   frames: soft greys, generous air, photos of stone, flowers and calm
   landscapes.

   Type: a book serif (Lora) for headlines, set at a regular weight with
   italics for small labels («когда», eyebrows, places); Inter for text
   and the interface. No spaced capitals: the tone is a letter, not a sign.

   Form: arches (the stele, the window) as the signature photo shape,
   hairlines instead of shadows, square-ish corners (2px), a dotted
   leader in the price list.

   Variants (theme.json → design.controls) are at the end of the file.
   ========================================================================= */

@font-face {
    font-family: 'Pamyat Lora';
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    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: 'Pamyat Lora';
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    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: 'Pamyat Lora';
    font-style: italic;
    font-display: swap;
    font-weight: 400 700;
    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: 'Pamyat Lora';
    font-style: italic;
    font-display: swap;
    font-weight: 400 700;
    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: 'Pamyat Cormorant';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url('../fonts/cormorant-garamond-cyrillic-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Pamyat Cormorant';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url('../fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2-variations');
    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: 'Pamyat Cormorant';
    font-style: italic;
    font-display: swap;
    font-weight: 300 700;
    src: url('../fonts/cormorant-garamond-cyrillic-wght-italic.woff2') format('woff2-variations');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Pamyat Cormorant';
    font-style: italic;
    font-display: swap;
    font-weight: 300 700;
    src: url('../fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2-variations');
    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: 'Pamyat Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/themes/default/assets/fonts/inter-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: 'Pamyat Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/themes/default/assets/fonts/inter-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: 'Pamyat Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    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: 'Pamyat Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    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;
}

@font-face {
    font-family: 'Pamyat Onest';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    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: 'Pamyat Onest';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    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;
}

/* The owner's design settings: core prints the chosen values as
   :root{--pamyat-…} after this file, so these are only the defaults. */
:root {
    --pamyat-accent: #6b7150;
    --pamyat-font-display: 'Pamyat Lora', Lora, Georgia, 'Times New Roman', serif;
    --pamyat-font-body: 'Pamyat Inter', Inter, 'Segoe UI', Arial, system-ui, sans-serif;
    --pamyat-radius: 2px;
}

/* -------------------------------------------------------------------------
   1. Tokens (light in both colour schemes: the look is art-directed)
   ------------------------------------------------------------------------- */

:root:root {
    --pm-slate: #262c2f;
    --pm-slate-2: #30373a;
    --pm-slate-3: #414a4d;
    --pm-paper: #efece6;
    --pm-paper-2: #e4e0d8;
    --pm-sheet: #f8f7f3;
    --pm-text: #2a2f31;
    --pm-muted: #5a605d;
    --pm-faint: #7a7f7b;
    --pm-line: rgb(38 44 47 / 0.14);
    --pm-line-strong: rgb(38 44 47 / 0.28);
    --pm-olive: var(--pamyat-accent);
    --pm-olive-hi: color-mix(in srgb, var(--pamyat-accent), #ffffff 42%);
    --pm-olive-text: color-mix(in srgb, var(--pamyat-accent), #000000 22%);
    --pm-olive-soft: color-mix(in srgb, var(--pamyat-accent), #ffffff 82%);
    --pm-on-dark: #e4e2db;
    --pm-on-dark-strong: #f7f5f0;
    --pm-on-dark-muted: #aab0ab;
    --pm-radius: var(--pamyat-radius);
    --pm-serif: var(--pamyat-font-display);
    --pm-sans: var(--pamyat-font-body);
    --pm-shape-radius: 999px 999px var(--pm-radius) var(--pm-radius);
    --pm-arch-wide: 50% 50% var(--pm-radius) var(--pm-radius) / 26% 26% var(--pm-radius) var(--pm-radius);

    --c-bg: var(--pm-paper);
    --c-surface: var(--pm-sheet);
    --c-surface-sunk: var(--pm-paper-2);
    --c-text: var(--pm-text);
    --c-text-strong: var(--pm-slate);
    --c-text-muted: var(--pm-muted);
    --c-text-faint: var(--pm-faint);
    --c-border: var(--pm-line);
    --c-border-strong: var(--pm-line-strong);
    --c-accent: var(--pm-olive);
    --c-accent-hover: var(--pm-olive-text);
    --c-accent-soft: var(--pm-olive-soft);
    --c-accent-contrast: var(--pm-on-dark-strong);
    --c-mark: var(--pm-olive);
    --c-mark-text: var(--pm-olive-text);
    --c-mark-soft: var(--pm-olive-soft);
    --c-slab: var(--pm-slate);
    --c-slab-text: var(--pm-on-dark);
    --c-slab-muted: var(--pm-on-dark-muted);
    --c-link: var(--pm-slate);
    --c-link-hover: var(--pm-olive-text);

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

    --t-lg: clamp(1.35rem, 1.22rem + 0.5vw, 1.65rem);
    --t-xl: clamp(1.85rem, 1.55rem + 1.3vw, 2.65rem);
    --t-2xl: clamp(2.3rem, 1.75rem + 2.4vw, 3.7rem);
    --t-3xl: clamp(2.6rem, 1.9rem + 3.2vw, 4.4rem);
    --lh-tight: 1.1;
    --lh-snug: 1.18;
    --tr-tight: -0.012em;
    --tr-snug: -0.006em;
    --fw-heading: 500;

    --r-xs: min(var(--pm-radius), 3px);
    --r-sm: var(--pm-radius);
    --r-md: var(--pm-radius);
    --r-lg: calc(var(--pm-radius) * 1.5);
    --r-btn: var(--pm-radius);
    --card-radius: var(--pm-radius);
    --card-bg: var(--pm-sheet);
    --card-border: 1px solid var(--pm-line);
    --w-wide: 80rem;
    --w-container: 70rem;
    --shadow-lift: 0 1px 2px rgb(38 44 47 / 0.05), 0 22px 44px -30px rgb(38 44 47 / 0.35);

    --sp-sm: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --sp-md: clamp(3.75rem, 2.9rem + 3.6vw, 6rem);
    --sp-lg: clamp(4.75rem, 3.4rem + 5.6vw, 8rem);
    --sp-xl: clamp(6rem, 4.2rem + 8vw, 10.5rem);

    color-scheme: light;
}

/* Dark tone (design setting «Тёмный цвет»). */
:root:root[data-pamyat-tone="graphite"] { --pm-slate: #28292b; --pm-slate-2: #323336; --pm-slate-3: #45474a; }
:root:root[data-pamyat-tone="moss"] { --pm-slate: #252d28; --pm-slate-2: #2f3832; --pm-slate-3: #414b44; }
:root:root[data-pamyat-tone="umber"] { --pm-slate: #2e2924; --pm-slate-2: #39332d; --pm-slate-3: #4b443d; }

/* Page background (design setting «Фон страницы»). */
:root:root[data-pamyat-paper="linen"] { --pm-paper: #f3eee5; --pm-paper-2: #e8e0d2; --pm-sheet: #fbf8f2; }
:root:root[data-pamyat-paper="white"] { --pm-paper: #fbfbf9; --pm-paper-2: #efede8; --pm-sheet: #ffffff; }

/* Dark scopes: the header's top line, the 24/7 panels, dark bands, the footer. */
:root:root .cms-tone-dark,
:root:root .cms-tone-primary,
:root:root .cms-on-dark,
.pm-dark,
.pm-hdr .hdr-row--top,
.pm-ftr,
.pm-callbar {
    --c-bg: var(--pm-slate);
    --c-surface: var(--pm-slate-2);
    --c-surface-sunk: var(--pm-slate-2);
    --c-text: var(--pm-on-dark);
    --c-text-strong: var(--pm-on-dark-strong);
    --c-text-muted: var(--pm-on-dark-muted);
    --c-text-faint: #8f958f;
    --c-border: rgb(255 255 255 / 0.13);
    --c-border-strong: rgb(255 255 255 / 0.26);
    --c-accent: var(--pm-olive-hi);
    --c-accent-hover: var(--pm-on-dark-strong);
    --c-accent-contrast: var(--pm-slate);
    --c-link: var(--pm-on-dark-strong);
    --c-link-hover: var(--pm-olive-hi);
    --pm-olive-text: var(--pm-olive-hi);
    --card-bg: var(--pm-slate-2);
    --card-border: 1px solid rgb(255 255 255 / 0.12);
    color-scheme: dark;
}

:root:root .cms-tone-dark,
:root:root .cms-tone-primary { --section-bg: var(--pm-slate); }

:root:root .cms-tone-soft {
    --section-bg: var(--pm-paper-2);
    --c-bg: var(--pm-paper-2);
    --c-surface: var(--pm-sheet);
}

:root:root .cms-tone-accent {
    --section-bg: var(--pm-olive);
    --c-text: var(--pm-on-dark-strong);
    --c-text-strong: var(--pm-on-dark-strong);
    --c-text-muted: color-mix(in srgb, var(--pm-on-dark-strong), var(--pm-olive) 25%);
    --c-accent: var(--pm-on-dark-strong);
    --c-accent-contrast: var(--pm-slate);
    --c-link: var(--pm-on-dark-strong);
}

:root:root .cms-on-light {
    --c-bg: var(--pm-paper);
    --c-text: var(--pm-text);
    --c-text-strong: var(--pm-slate);
    --c-text-muted: var(--pm-muted);
    color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. Base type and utilities
   ------------------------------------------------------------------------- */

html.pamyat body,
.pm-body {
    background-color: var(--pm-paper);
    color: var(--pm-text);
    font-family: var(--pm-sans);
    font-feature-settings: 'lnum' 1;
}

.pm-body :is(h1, h2, h3, h4) {
    font-family: var(--pm-serif);
    font-weight: 500;
    color: var(--c-text-strong);
}

.pm-wrap {
    width: 100%;
    max-width: var(--w-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.pm-anchor { position: absolute; top: -7rem; }

/* An eyebrow: a short olive rule and a line in the serif's italics. */
.pm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.1rem;
    font-family: var(--pm-serif);
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    color: var(--pm-olive-text);
}

.pm-eyebrow::before {
    content: '';
    flex: none;
    width: 2rem;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

/* The quiet «live» dot of the 24/7 labels. */
.pm-pulse {
    position: relative;
    flex: none;
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--pm-olive-hi);
}

@media (prefers-reduced-motion: no-preference) {
    .pm-pulse::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 1px solid var(--pm-olive-hi);
        animation: pm-pulse 2.4s ease-out infinite;
    }
}

@keyframes pm-pulse {
    from { transform: scale(0.6); opacity: 0.9; }
    to { transform: scale(1.8); opacity: 0; }
}

.pm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text-strong);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--pm-olive), transparent 45%);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
    transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

.pm-link:hover { color: var(--pm-olive-text); text-decoration-color: var(--pm-olive); }
.pm-link .cms-icon { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.pm-link:hover .cms-icon { transform: translateX(3px); }

/* Buttons: calm, sentence case, olive fill with light text. */
.pm-body .cms-btn {
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border-radius: var(--r-btn);
    font-family: var(--pm-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    text-transform: none;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.pm-body .cms-btn--primary {
    background-color: var(--pm-olive);
    border-color: var(--pm-olive);
    color: var(--pm-on-dark-strong);
}

.pm-body .cms-btn--primary:hover {
    background-color: var(--pm-slate);
    border-color: var(--pm-slate);
    color: var(--pm-on-dark-strong);
}

.pm-body :is(.cms-tone-dark, .cms-tone-primary, .cms-on-dark, .pm-dark, .pm-ftr) .cms-btn--primary {
    background-color: var(--pm-on-dark-strong);
    border-color: var(--pm-on-dark-strong);
    color: var(--pm-slate);
}

.pm-body :is(.cms-tone-dark, .cms-tone-primary, .cms-on-dark, .pm-dark, .pm-ftr) .cms-btn--primary:hover {
    background-color: var(--pm-olive-hi);
    border-color: var(--pm-olive-hi);
    color: var(--pm-slate);
}

.pm-body .cms-btn--ghost {
    background: transparent;
    border: 1px solid var(--c-border-strong);
    color: var(--c-text-strong);
}

.pm-body .cms-btn--ghost:hover {
    border-color: var(--pm-olive);
    background: color-mix(in srgb, var(--pm-olive), transparent 90%);
    color: var(--c-text-strong);
}

.pm-body .cms-btn--link {
    padding-inline: 0;
    background: none;
    color: var(--c-text-strong);
    text-decoration: underline;
    text-decoration-color: var(--pm-olive);
    text-underline-offset: 0.4em;
}

.pm-body .cms-btn:focus-visible,
.pm-body a:focus-visible,
.pm-body button:focus-visible,
.pm-body summary:focus-visible,
.pm-body input:focus-visible,
.pm-body select:focus-visible,
.pm-body textarea:focus-visible {
    outline: 2px solid var(--pm-olive);
    outline-offset: 3px;
}

.pm-body :is(.pm-dark, .pm-ftr, .cms-tone-dark) :is(a, button, input, select, textarea, summary):focus-visible {
    outline-color: var(--pm-olive-hi);
}

/* Section heading (the engine's): the serif, and the sprig ornament under it. */
.pm-body .cms-section__title {
    font-family: var(--pm-serif);
    font-weight: 500;
    font-size: var(--t-xl);
    line-height: var(--lh-snug);
    letter-spacing: var(--tr-snug);
    text-wrap: balance;
}

.pm-body h1.cms-section__title { font-size: var(--t-2xl); }

.pm-body .cms-section__subtitle {
    font-size: var(--t-md);
    line-height: 1.65;
    color: var(--c-text-muted);
    text-wrap: pretty;
}

/* The sprig: an inline SVG drawn as a mask, so it takes the olive colour. */
.pm-body .cms-section__head::after,
.pm-head::after {
    content: '';
    display: block;
    width: 5.5rem;
    height: 1.1rem;
    margin-block-start: 1.35rem;
    background-color: var(--pm-olive);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M4 12h40M76 12h40'/%3E%3Cpath d='M60 12c-6-7-14-8-20-6 5 5 13 7 20 6Zm0 0c6-7 14-8 20-6-5 5-13 7-20 6Z'/%3E%3Ccircle cx='60' cy='12' r='1.8' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M4 12h40M76 12h40'/%3E%3Cpath d='M60 12c-6-7-14-8-20-6 5 5 13 7 20 6Zm0 0c6-7 14-8 20-6-5 5-13 7-20 6Z'/%3E%3Ccircle cx='60' cy='12' r='1.8' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.pm-body .cms-section__head--center::after { margin-inline: auto; -webkit-mask-position: center; mask-position: center; }
.pm-body .cms-section__head--right::after { margin-inline-start: auto; -webkit-mask-position: right center; mask-position: right center; }

.pm-body :is(.pm-dark, .cms-tone-dark, .cms-tone-primary) .cms-section__head::after,
.pm-dark .pm-head::after { background-color: var(--pm-olive-hi); }

/* A block's own heading (own_head blocks). */
.pm-head { margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.25rem); max-width: 46rem; }

.pm-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 3rem;
    max-width: none;
}

.pm-head--split::after { flex-basis: 100%; margin-block-start: 0; order: 2; }
.pm-head__text { max-width: 46rem; }

.pm-head__title,
.pm-body .pm-head__title {
    margin: 0;
    font-family: var(--pm-serif);
    font-weight: 500;
    font-size: var(--t-xl);
    line-height: var(--lh-snug);
    letter-spacing: var(--tr-snug);
    color: var(--c-text-strong);
    text-wrap: balance;
}

h1.pm-head__title { font-size: var(--t-2xl); }

.pm-head__lead {
    margin: 1rem 0 0;
    font-size: var(--t-md);
    line-height: 1.65;
    color: var(--c-text-muted);
    text-wrap: pretty;
}

.pm-head__more { flex: none; }

/* Prose */
.pm-body .cms-prose { font-family: var(--pm-sans); }
.pm-body .cms-prose :is(h2, h3) { font-family: var(--pm-serif); font-weight: 500; }
.pm-body .cms-prose a { text-decoration-color: var(--pm-olive); text-underline-offset: 0.25em; }
.pm-body .cms-prose ul > li::marker { color: var(--pm-olive); }

/* Forms */
.pm-body .cms-form__input,
.pm-body .shop-form__input {
    min-height: 48px;
    border-radius: var(--r-sm);
    border: 1px solid var(--pm-line-strong);
    background-color: var(--pm-sheet);
    color: var(--pm-text);
    font-family: var(--pm-sans);
    font-size: 1rem;
}

.pm-body .cms-form__input:focus-visible,
.pm-body .shop-form__input:focus-visible { border-color: var(--pm-olive); }

.pm-body .cms-form__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pm-muted);
}

.pm-body .cms-form__check { font-size: 0.875rem; color: var(--pm-muted); }
.pm-body .cms-form__check input { accent-color: var(--pm-olive); }

.pm-body .cms-form__success {
    padding: 1.25rem 1.4rem;
    border: 1px solid color-mix(in srgb, var(--pm-olive), transparent 55%);
    border-radius: var(--r-sm);
    background: var(--pm-olive-soft);
    color: var(--pm-slate);
    font-family: var(--pm-serif);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Photos in the template's shape (design setting «Форма фотографий»). */
.pm-shape { border-radius: var(--pm-shape-radius); overflow: hidden; }

/* -------------------------------------------------------------------------
   3. Header
   ------------------------------------------------------------------------- */

.pm-hdr {
    background-color: var(--pm-paper);
    border-bottom: 1px solid var(--pm-line);
}

.pm-hdr .hdr-row--top {
    background-color: var(--pm-slate);
    border-bottom: 0;
    color: var(--pm-on-dark-muted);
    font-size: 0.8125rem;
}

.pm-hdr .hdr-row--top .hdr-row__inner { min-height: 2.5rem; }
.pm-hdr .hdr-row--top .hdr-text { color: var(--pm-on-dark); }
.pm-hdr .hdr-row--top .hdr-text .cms-icon { color: var(--pm-olive-hi); }
.pm-hdr .hdr-row--top a { color: var(--pm-on-dark); }
.pm-hdr .hdr-row--top a:hover { color: var(--pm-olive-hi); }
.pm-hdr .hdr-row--top .cms-icon { color: var(--pm-on-dark-muted); }

.pm-hdr .hdr-row--main .hdr-row__inner { min-height: 5.25rem; }

/* The logo: an arch mark and the name in the serif. */
.pm-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--pm-slate);
    text-decoration: none;
}

.pm-logo__mark {
    flex: none;
    width: 2.1rem;
    height: 2.5rem;
    color: var(--pm-olive);
}

.pm-hdr .hdr-logo__name {
    font-family: var(--pm-serif);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: 1;
    color: var(--pm-slate);
}

.pm-hdr .hdr-logo__tagline {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--pm-muted);
}

.pm-hdr .hdr-nav__link {
    font-size: 0.9375rem;
    font-weight: 450;
    color: var(--pm-text);
}

.pm-hdr .hdr-nav__link:hover,
.pm-hdr .hdr-nav__link.is-active { color: var(--pm-slate); }

.pm-hdr .hdr-nav__link > span {
    background-image: linear-gradient(var(--pm-olive), var(--pm-olive));
}

.pm-hdr .hdr-sub {
    border-radius: var(--r-sm);
    border-color: var(--pm-line);
    background: var(--pm-sheet);
}

/* The phone: large, in the serif, with its caption («Круглосуточно»). */
.pm-hdr .hdr-row--main .hdr-phone__number {
    font-family: var(--pm-serif);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--pm-slate);
    font-variant-numeric: lining-nums;
}

.pm-hdr .hdr-row--main .hdr-phone__number:hover { color: var(--pm-olive-text); }

.pm-hdr .hdr-row--main .hdr-phone__caption {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--pm-olive-text);
}

.pm-hdr .hdr-row--main .hdr-phone__caption::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--pm-olive);
}

.pm-hdr .hdr-button { min-height: 44px; }

/* Dark header (design setting «Шапка» = slate). */
html[data-pamyat-header="slate"] .pm-hdr {
    --c-bg: var(--pm-slate);
    --c-surface: var(--pm-slate-2);
    --c-text: var(--pm-on-dark);
    --c-text-strong: var(--pm-on-dark-strong);
    --c-text-muted: var(--pm-on-dark-muted);
    --c-border: rgb(255 255 255 / 0.13);
    --c-border-strong: rgb(255 255 255 / 0.26);
    background-color: var(--pm-slate);
    border-bottom-color: transparent;
    color-scheme: dark;
}

html[data-pamyat-header="slate"] .pm-hdr .hdr-row--top { background-color: var(--pm-slate-2); }
html[data-pamyat-header="slate"] .pm-hdr :is(.hdr-logo__name, .hdr-nav__link, .hdr-phone__number, .pm-logo) { color: var(--pm-on-dark-strong); }
html[data-pamyat-header="slate"] .pm-hdr .hdr-logo__tagline { color: var(--pm-on-dark-muted); }
html[data-pamyat-header="slate"] .pm-hdr .hdr-row--main .hdr-phone__caption { color: var(--pm-olive-hi); }
html[data-pamyat-header="slate"] .pm-hdr .pm-logo__mark { color: var(--pm-olive-hi); }
html[data-pamyat-header="slate"] .pm-hdr .hdr-sub { background: var(--pm-slate-2); }
html[data-pamyat-header="slate"] .pm-hdr .cms-btn--ghost { color: var(--pm-on-dark-strong); border-color: rgb(255 255 255 / 0.3); }

/* Centred logo, the menu on a line of its own (design setting «Шапка» = centered). */
@media (min-width: 60rem) {
    html[data-pamyat-header="centered"] .pm-hdr .hdr-row--main .hdr-row__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "gap logo right" "menu menu menu";
        row-gap: 0;
        padding-block: 0.9rem 0;
    }

    html[data-pamyat-header="centered"] .pm-hdr .hdr-row--main .hdr-zone--left { grid-area: logo; justify-content: center; }
    html[data-pamyat-header="centered"] .pm-hdr .hdr-row--main .hdr-zone--center {
        grid-area: menu;
        justify-content: center;
        margin-top: 0.75rem;
        border-top: 1px solid var(--pm-line);
    }
    html[data-pamyat-header="centered"] .pm-hdr .hdr-row--main .hdr-zone--right { grid-area: right; }
    html[data-pamyat-header="centered"] .pm-hdr .hdr-logo { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* The drawer on phones */
.pm-drawer {
    background: var(--pm-paper);
}

.pm-drawer .hdr-drawer__phone {
    font-family: var(--pm-serif);
    font-size: 1.35rem;
    color: var(--pm-slate);
}

.pm-drawer .hdr-drawer__phone small { font-family: var(--pm-sans); color: var(--pm-olive-text); }

/* -------------------------------------------------------------------------
   4. Footer
   ------------------------------------------------------------------------- */

.pm-ftr {
    position: relative;
    background-color: var(--pm-slate);
    color: var(--pm-on-dark);
    border-top: 0;
    padding: 0;
}

.pm-ftr__ornament {
    display: flex;
    justify-content: center;
    padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0;
    color: var(--pm-olive-hi);
}

.pm-ftr__sprig { width: 7.5rem; height: 1.5rem; opacity: 0.85; }

.pm-ftr__band {
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.pm-ftr__band-inner {
    display: grid;
    gap: 1.5rem 3rem;
    padding-block: 2.5rem;
}

@media (min-width: 60rem) {
    .pm-ftr__band-inner { grid-template-columns: 1fr 1.2fr; align-items: center; }
}

.pm-ftr__band-title { margin: 0; font-size: var(--t-lg); color: var(--pm-on-dark-strong); }
.pm-ftr__band-lead { margin: 0.5rem 0 0; color: var(--pm-on-dark-muted); }

.pm-ftr__main {
    display: grid;
    gap: 2.5rem 4rem;
    padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(3rem, 2.5rem + 2vw, 4.5rem);
}

@media (min-width: 60rem) {
    .pm-ftr__main { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
}

.pm-ftr__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--pm-on-dark-strong);
    text-decoration: none;
}

.pm-ftr__mark { width: 2.2rem; height: 2.6rem; color: var(--pm-olive-hi); }
.pm-ftr__name { font-family: var(--pm-serif); font-size: 1.6rem; font-weight: 500; }
.pm-ftr__logo { max-height: 3rem; width: auto; }

.pm-ftr__title {
    margin: 0 0 1rem;
    font-family: var(--pm-serif);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    color: var(--pm-olive-hi);
}

.pm-ftr__title--about { margin-top: 1.25rem; }

.pm-ftr__lead {
    margin: 1.25rem 0 0;
    max-width: 30rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--pm-on-dark-muted);
}

.pm-ftr__socials { margin-top: 1.5rem; }

.pm-ftr__grid {
    display: grid;
    gap: 2rem 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.pm-ftr__menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }

.pm-ftr__menu a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 0.9375rem;
    color: var(--pm-on-dark);
    text-decoration: none;
}

.pm-ftr__menu a:hover { color: var(--pm-on-dark-strong); text-decoration: underline; text-decoration-color: var(--pm-olive-hi); text-underline-offset: 0.3em; }

.pm-ftr__contacts { font-style: normal; display: grid; gap: 0.6rem; }

.pm-ftr__phone { margin: 0; display: grid; }

.pm-ftr__phone a {
    font-family: var(--pm-serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--pm-on-dark-strong);
    text-decoration: none;
    font-variant-numeric: lining-nums;
}

.pm-ftr__phone a:hover { color: var(--pm-olive-hi); }
.pm-ftr__phone span { font-size: 0.8125rem; color: var(--pm-olive-hi); }
.pm-ftr__line { margin: 0; font-size: 0.9375rem; color: var(--pm-on-dark); }
.pm-ftr__line a { color: inherit; }
.pm-ftr__line--muted { color: var(--pm-on-dark-muted); }
.pm-ftr__text { margin: 0; color: var(--pm-on-dark-muted); font-size: 0.9375rem; line-height: 1.7; }

.pm-ftr__pay { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pm-ftr__pay-item { padding: 0.3rem 0.6rem; border: 1px solid rgb(255 255 255 / 0.18); border-radius: var(--r-sm); font-size: 0.8125rem; }

.pm-ftr__bottom { border-top: 1px solid rgb(255 255 255 / 0.1); }

.pm-ftr__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2rem;
    padding-block: 1.4rem;
    font-size: 0.8125rem;
    color: var(--pm-on-dark-muted);
}

.pm-ftr__copy,
.pm-ftr__company { margin: 0; }

.pm-ftr__links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.pm-ftr__links a { color: var(--pm-on-dark-muted); display: inline-flex; min-height: 32px; align-items: center; }
.pm-ftr__links a:hover { color: var(--pm-on-dark-strong); }

.pm-ftr .site-footer__slot:empty { display: none; }

/* -------------------------------------------------------------------------
   5. Call bar on phones (design setting «Кнопка звонка на телефоне»)
   ------------------------------------------------------------------------- */

.pm-callbar { display: none; }

@media (max-width: 47.99rem) {
    html[data-pamyat-callbar="on"] .pm-callbar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 55;
        display: block;
        padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
        background: var(--pm-slate);
        border-top: 1px solid rgb(255 255 255 / 0.1);
    }

    html[data-pamyat-callbar="on"] body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}

.pm-callbar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 3.1rem;
    border-radius: var(--r-btn);
    background: var(--pm-olive);
    color: var(--pm-on-dark-strong);
    text-decoration: none;
}

.pm-callbar__icon .cms-icon { width: 1.2rem; height: 1.2rem; }
.pm-callbar__text { display: grid; line-height: 1.15; }
.pm-callbar__number { font-family: var(--pm-serif); font-size: 1.15rem; font-weight: 500; }
.pm-callbar__label { font-size: 0.75rem; opacity: 0.85; }

/* -------------------------------------------------------------------------
   6. Blocks of the theme
   ------------------------------------------------------------------------- */

/* --- First screen ------------------------------------------------------- */

.pm-hero {
    position: relative;
    background:
        radial-gradient(60rem 30rem at 85% 10%, color-mix(in srgb, var(--pm-paper-2), transparent 30%), transparent 70%),
        var(--pm-paper);
    overflow: hidden;
}

.pm-hero__inner {
    display: grid;
    gap: 2.5rem clamp(2rem, 1rem + 4vw, 5.5rem);
    width: 100%;
    max-width: var(--w-wide);
    margin-inline: auto;
    padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--gutter) clamp(3rem, 2rem + 4vw, 6rem);
}

@media (min-width: 60rem) {
    .pm-hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
}

.pm-hero__title {
    margin: 0;
    font-family: var(--pm-serif);
    font-size: var(--t-3xl);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: var(--tr-tight);
    color: var(--pm-slate);
    text-wrap: balance;
}

.pm-hero__lead {
    margin: 1.5rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    line-height: 1.7;
    color: var(--pm-muted);
    text-wrap: pretty;
}

.pm-hero__actions { margin-top: 2.25rem; }

.pm-hero__points {
    display: grid;
    gap: 0.6rem;
    margin: 2.5rem 0 0;
    padding: 1.6rem 0 0;
    list-style: none;
    border-top: 1px solid var(--pm-line);
    max-width: 32rem;
}

.pm-hero__points li {
    position: relative;
    padding-inline-start: 1.75rem;
    font-size: 0.9375rem;
    color: var(--pm-text);
}

.pm-hero__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 1rem;
    height: 1px;
    background: var(--pm-olive);
}

.pm-hero__visual { position: relative; }

.pm-hero__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    max-height: 42rem;
    width: 100%;
    background: var(--pm-paper-2);
}

.pm-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pm-hero__blank {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--pm-olive);
}

.pm-hero__mark { width: 5rem; height: 6rem; opacity: 0.5; }

.pm-hero__panel {
    position: relative;
    margin: -4.5rem 1.25rem 0;
    padding: 1.5rem 1.6rem 1.6rem;
    border-radius: var(--r-sm);
    background: var(--pm-slate);
    color: var(--pm-on-dark);
    box-shadow: 0 30px 60px -36px rgb(20 24 26 / 0.7);
}

@media (min-width: 60rem) {
    .pm-hero__panel {
        position: absolute;
        left: -3rem;
        bottom: 2.5rem;
        margin: 0;
        width: min(22rem, 80%);
    }
}

.pm-hero__panel-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.35rem;
    font-family: var(--pm-serif);
    font-style: italic;
    color: var(--pm-olive-hi);
}

.pm-hero__phone {
    display: inline-block;
    font-family: var(--pm-serif);
    font-size: clamp(1.55rem, 1.35rem + 0.8vw, 1.95rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--pm-on-dark-strong);
    text-decoration: none;
    font-variant-numeric: lining-nums;
}

.pm-hero__phone:hover { color: var(--pm-olive-hi); }

.pm-hero__panel-note {
    margin: 0.6rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--pm-on-dark-muted);
}

/* --- What to do guide ---------------------------------------------------- */

.pm-guide {
    position: relative;
    display: grid;
    gap: 3rem clamp(2rem, 1rem + 4vw, 5rem);
}

@media (min-width: 60rem) {
    .pm-guide--aside { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); align-items: start; }
}

.pm-guide__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pm-step;
}

.pm-guide__step {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0 1.5rem;
    padding-bottom: 2.25rem;
}

.pm-guide__step:last-child { padding-bottom: 0; }

/* The olive line joining the numerals. */
.pm-guide__step::before {
    content: '';
    position: absolute;
    left: 1.625rem;
    top: 3.4rem;
    bottom: 0.4rem;
    width: 1px;
    background: color-mix(in srgb, var(--pm-olive), transparent 55%);
}

.pm-guide__step:last-child::before { display: none; }

.pm-guide__num {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid color-mix(in srgb, var(--pm-olive), transparent 40%);
    border-radius: 50%;
    font-family: var(--pm-serif);
    font-size: 1.35rem;
    color: var(--pm-olive-text);
    background: var(--c-bg);
}

.pm-guide__body { padding-top: 0.3rem; }

.pm-guide__when {
    margin: 0 0 0.25rem;
    font-family: var(--pm-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--pm-olive-text);
}

.pm-guide__title {
    margin: 0;
    font-size: var(--t-lg);
    line-height: 1.3;
    text-wrap: balance;
}

.pm-guide__text {
    margin: 0.6rem 0 0;
    max-width: 40rem;
    line-height: 1.7;
    color: var(--c-text);
}

.pm-guide__docs {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.9rem;
    margin-top: 0.9rem;
    font-size: 0.875rem;
}

.pm-guide__docs-label { margin: 0; color: var(--c-text-muted); }

.pm-guide__docs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pm-guide__docs li {
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--pm-line);
    border-radius: var(--r-sm);
    background: var(--pm-sheet);
    color: var(--pm-text);
}

.pm-guide__aside { position: relative; }

@media (min-width: 60rem) {
    .pm-guide__panel { position: sticky; top: 7rem; }
}

.pm-guide__panel {
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--pm-slate);
    color: var(--pm-on-dark);
}

.pm-guide__photo { margin: 0; aspect-ratio: 16 / 10; background: var(--pm-slate-2); }
.pm-guide__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pm-guide__panel-body { padding: 1.6rem 1.6rem 1.75rem; }

.pm-guide__panel-title {
    margin: 0;
    font-family: var(--pm-serif);
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--pm-on-dark-strong);
}

.pm-guide__panel-text { margin: 0.6rem 0 0; font-size: 0.9375rem; line-height: 1.65; color: var(--pm-on-dark-muted); }

.pm-guide__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    font-family: var(--pm-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--pm-on-dark-strong);
    text-decoration: none;
}

.pm-guide__phone .cms-icon { width: 1.1rem; height: 1.1rem; color: var(--pm-olive-hi); }
.pm-guide__phone:hover { color: var(--pm-olive-hi); }
.pm-guide__phone-label { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--pm-olive-hi); }
.pm-guide__panel .cms-actions { margin-top: 1.4rem; }

/* --- Services price list ------------------------------------------------- */

.pm-svc {
    position: relative;
    display: grid;
    gap: 2.5rem clamp(2rem, 1rem + 5vw, 6rem);
}

@media (min-width: 60rem) {
    .pm-svc { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .pm-svc__aside { position: sticky; top: 7rem; align-self: start; }
}

.pm-svc__aside .pm-head__title { max-width: 26rem; }

.pm-svc__aside::after {
    content: '';
    display: block;
}

.pm-svc__photo {
    margin: 2.25rem 0 0;
    aspect-ratio: 4 / 5;
    max-width: 24rem;
    background: var(--pm-paper-2);
}

.pm-svc__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pm-svc__items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-border-strong); }

.pm-svc__item {
    padding-block: 1.6rem 1.7rem;
    border-bottom: 1px solid var(--c-border);
}

.pm-svc__row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.pm-svc__title {
    margin: 0;
    font-size: var(--t-lg);
    line-height: 1.3;
    flex: 0 1 auto;
}

.pm-svc__title a { color: inherit; text-decoration: none; }
.pm-svc__title a:hover { color: var(--pm-olive-text); }

.pm-svc__leader {
    flex: 1 1 2rem;
    min-width: 1.5rem;
    border-bottom: 1px dotted color-mix(in srgb, var(--c-text-muted), transparent 30%);
    transform: translateY(-0.3em);
}

.pm-svc__price {
    flex: none;
    font-family: var(--pm-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--pm-olive-text);
    white-space: nowrap;
}

.pm-svc__text {
    margin: 0.55rem 0 0;
    max-width: 38rem;
    line-height: 1.65;
    color: var(--c-text-muted);
}

.pm-svc__included {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.2rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--c-text);
}

.pm-svc__included li { position: relative; padding-inline-start: 1rem; }

.pm-svc__included li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    border: 1px solid var(--pm-olive);
}

.pm-svc__more { margin-top: 0.3rem; }

.pm-svc__note {
    margin: 1.4rem 0 0;
    font-family: var(--pm-serif);
    font-style: italic;
    color: var(--c-text-muted);
}

.pm-svc__actions { margin-top: 1.75rem; }

@media (max-width: 35.99rem) {
    .pm-svc__row { flex-wrap: wrap; }
    .pm-svc__leader { display: none; }
    .pm-svc__price { flex-basis: 100%; }
}

/* --- Catalogue sections -------------------------------------------------- */

.pm-dirs__list {
    display: grid;
    gap: 2rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
    .pm-dirs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .pm-dirs--n4 .pm-dirs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pm-dirs--n5 .pm-dirs__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pm-dirs--n6 .pm-dirs__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.pm-dirs__item { position: relative; text-align: center; }

.pm-dirs__media {
    margin: 0;
    aspect-ratio: 3 / 4;
    background: var(--pm-paper-2);
}

.pm-dirs__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}

.pm-dirs__item:hover .pm-dirs__img { transform: scale(1.035); }
.pm-dirs__blank { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, var(--pm-paper-2), var(--pm-sheet)); }

.pm-dirs__title {
    margin: 1.1rem 0 0;
    font-size: 1.3rem;
    line-height: 1.25;
}

.pm-dirs__link { color: inherit; text-decoration: none; }
.pm-dirs__link::after { content: ''; position: absolute; inset: 0; }
.pm-dirs__link:hover { color: var(--pm-olive-text); }
.pm-dirs__link:focus-visible { outline: none; }
.pm-dirs__item:has(.pm-dirs__link:focus-visible) { outline: 2px solid var(--pm-olive); outline-offset: 6px; }

.pm-dirs__note {
    margin: 0.3rem 0 0;
    font-family: var(--pm-serif);
    font-style: italic;
    color: var(--pm-olive-text);
}

/* --- Monument constructor ------------------------------------------------ */

.pm-con { position: relative; }
.pm-con__head { max-width: 44rem; }

.pm-con__layout {
    display: grid;
    gap: 2rem clamp(2rem, 1rem + 4vw, 5rem);
}

@media (min-width: 60rem) {
    .pm-con__layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
    .pm-con__sketch { position: sticky; top: 7rem; }
}

.pm-con__stage {
    --pm-stone: #1c1e20;
    --pm-engrave: rgb(255 255 255 / 0.72);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--pm-shape-radius);
    background:
        radial-gradient(circle at 50% 100%, var(--pm-sheet), transparent 70%),
        linear-gradient(180deg, var(--pm-paper-2), var(--pm-sheet));
}

.pm-con__stage[data-light="on"] { --pm-engrave: rgb(38 44 47 / 0.55); }

.pm-con__bg { position: absolute; inset: 0; opacity: 0.22; }
.pm-con__bg-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }

.pm-con__svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 12% 10% 6%;
}

.pm-con__shadow { fill: rgb(38 44 47 / 0.14); }
.pm-con__plinth { fill: var(--pm-stone); filter: brightness(0.86); }
.pm-con__shape { display: none; fill: var(--pm-stone); }
.pm-con__flowers { display: none; fill: var(--pm-stone); filter: brightness(0.8); }
.pm-con__flowers circle { fill: var(--pm-olive); filter: none; }

.pm-con__stage[data-shape="stele"] .pm-con__shape--stele,
.pm-con__stage[data-shape="arch"] .pm-con__shape--arch,
.pm-con__stage[data-shape="wave"] .pm-con__shape--wave,
.pm-con__stage[data-shape="wide"] .pm-con__shape--wide,
.pm-con__stage[data-shape="family"] .pm-con__shape--family { display: inline; }

.pm-con__stage[data-mark-flowers="on"] .pm-con__flowers { display: inline; }

.pm-con__marks {
    fill: none;
    stroke: var(--pm-engrave);
    stroke-width: 1.6;
    stroke-linecap: round;
    transition: transform 0.35s var(--ease);
}

.pm-con__mark { display: none; }
.pm-con__mark--portrait { fill: color-mix(in srgb, var(--pm-engrave), transparent 75%); }

.pm-con__stage[data-mark-portrait="on"] .pm-con__mark--portrait,
.pm-con__stage[data-mark-name="on"] .pm-con__mark--name,
.pm-con__stage[data-mark-epitaph="on"] .pm-con__mark--epitaph,
.pm-con__stage[data-mark-symbol="on"] .pm-con__mark--symbol { display: inline; }

/* Marks follow the shape: lower on the horizontal and family steles. */
.pm-con__stage[data-shape="wide"] .pm-con__marks { transform: translate(0, 34px) scale(1); }
.pm-con__stage[data-shape="wide"] .pm-con__mark--portrait { transform: translate(-44px, 4px); }
.pm-con__stage[data-shape="wide"] .pm-con__mark--epitaph { transform: translate(0, -8px); }
.pm-con__stage[data-shape="wide"] .pm-con__mark--symbol { transform: translate(52px, -60px); }
.pm-con__stage[data-shape="family"] .pm-con__marks { transform: translateY(12px); }

.pm-con__caption {
    margin: 0.9rem 0 0;
    text-align: center;
    font-family: var(--pm-serif);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--c-text-muted);
}

.pm-con__panel {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 1px solid var(--pm-line);
    border-radius: var(--r-sm);
    background: var(--pm-sheet);
}

.pm-con__form { display: grid; gap: 1.75rem; }

.pm-con__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.pm-con__legend {
    padding: 0;
    margin-bottom: 0.8rem;
    font-family: var(--pm-serif);
    font-size: 1.2rem;
    color: var(--pm-slate);
}

.pm-con__chips {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25rem), 1fr));
}

.pm-chip { position: relative; display: block; cursor: pointer; }

.pm-chip__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pm-chip__box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    height: 100%;
    min-height: 3.25rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--pm-line-strong);
    border-radius: var(--r-sm);
    background: var(--pm-paper);
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.pm-chip:hover .pm-chip__box { border-color: var(--pm-olive); }

.pm-chip__input:checked + .pm-chip__box {
    border-color: var(--pm-olive);
    background: var(--pm-olive-soft);
    box-shadow: inset 0 0 0 1px var(--pm-olive);
}

.pm-chip__input:focus-visible + .pm-chip__box { outline: 2px solid var(--pm-olive); outline-offset: 2px; }

.pm-chip__text { display: grid; min-width: 0; line-height: 1.3; }
.pm-chip__label { font-size: 0.9375rem; color: var(--pm-text); }
.pm-chip__note { font-size: 0.78rem; color: var(--pm-muted); }

.pm-chip__swatch {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--pm-swatch);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15), inset 3px 3px 6px rgb(255 255 255 / 0.25);
}

/* Small silhouettes of the shapes, drawn with CSS. */
.pm-chip__glyph {
    flex: none;
    width: 1.3rem;
    height: 1.9rem;
    border: 1.5px solid var(--pm-slate);
    border-bottom-width: 3px;
    opacity: 0.8;
}

.pm-chip__glyph--arch { border-radius: 999px 999px 0 0; }
.pm-chip__glyph--wave { border-radius: 0.9rem 0.2rem 0 0; }
.pm-chip__glyph--wide { width: 1.9rem; height: 1.3rem; }
.pm-chip__glyph--family { width: 2rem; height: 1.6rem; clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%); border-top-width: 1.5px; background: linear-gradient(var(--pm-slate), var(--pm-slate)) 50% 0 / 100% 1.5px no-repeat; }

.pm-chip__tick {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--pm-line-strong);
    border-radius: var(--r-xs);
    background: var(--pm-sheet);
}

.pm-chip__input:checked + .pm-chip__box .pm-chip__tick {
    border-color: var(--pm-olive);
    background: var(--pm-olive);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.pm-con__fields {
    display: grid;
    gap: 1rem 1.25rem;
}

@media (min-width: 40rem) {
    .pm-con__fields { grid-template-columns: 1fr 1fr; }
    .pm-con__fields .cms-form__field--wide { grid-column: 1 / -1; }
}

.pm-con__actions .cms-btn { width: 100%; }

@media (min-width: 40rem) {
    .pm-con__actions .cms-btn { width: auto; }
}

.pm-con__note { margin: 1rem 0 0; font-size: 0.875rem; color: var(--c-text-muted); }

/* --- Works --------------------------------------------------------------- */

.pm-works__grid {
    display: grid;
    gap: 2.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

@media (min-width: 60rem) {
    .pm-works--feature .pm-works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pm-works--feature .pm-works__item:first-child { grid-column: span 2; grid-row: span 2; }
    .pm-works--feature .pm-works__item:first-child .pm-works__media { aspect-ratio: auto; height: 100%; min-height: 26rem; }
    .pm-works--feature .pm-works__item:first-child .pm-works__figure { height: 100%; display: flex; flex-direction: column; }
    .pm-works--feature .pm-works__item:first-child .pm-works__media { flex: 1; }
}

.pm-works__figure { margin: 0; }

.pm-works__media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-sm);
    background: var(--pm-paper-2);
}

.pm-works__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-works__blank { display: block; width: 100%; height: 100%; }

.pm-works__caption { padding-top: 1rem; }

.pm-works__place {
    margin: 0;
    font-family: var(--pm-serif);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--pm-olive-text);
}

.pm-works__title { margin: 0.2rem 0 0; font-size: 1.3rem; line-height: 1.3; }

.pm-works__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.pm-works__facts li + li::before { content: '·'; margin-inline: 0.55rem; color: var(--pm-olive); }

.pm-works__text { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--c-text); max-width: 40rem; }

/* --- 24/7 help band ------------------------------------------------------ */

.pm-help {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--pm-slate);
    color: var(--pm-on-dark);
}

.pm-help__bg { position: absolute; inset: 0; z-index: -1; }
.pm-help__img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.32; filter: grayscale(0.4); }

.pm-help--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, color-mix(in srgb, var(--pm-slate), transparent 8%) 20%, color-mix(in srgb, var(--pm-slate), transparent 40%));
}

.pm-help__inner {
    display: grid;
    gap: 2.5rem clamp(2rem, 1rem + 5vw, 6rem);
    width: 100%;
    max-width: var(--w-wide);
    margin-inline: auto;
    padding: var(--sp-lg) var(--gutter);
}

@media (min-width: 60rem) {
    .pm-help__inner { grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr); align-items: center; }
}

.pm-help .pm-eyebrow { color: var(--pm-olive-hi); }
.pm-help .pm-eyebrow::before { display: none; }

.pm-help__title {
    margin: 0;
    font-size: var(--t-2xl);
    line-height: 1.12;
    color: var(--pm-on-dark-strong);
    text-wrap: balance;
}

.pm-help__lead { margin: 1.1rem 0 0; max-width: 34rem; font-size: var(--t-md); line-height: 1.7; color: var(--pm-on-dark-muted); }

.pm-help__phone {
    display: inline-block;
    margin-top: 2rem;
    font-family: var(--pm-serif);
    font-size: clamp(2rem, 1.5rem + 2.4vw, 3.3rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--pm-on-dark-strong);
    text-decoration: none;
    font-variant-numeric: lining-nums;
    border-bottom: 1px solid color-mix(in srgb, var(--pm-olive-hi), transparent 50%);
}

.pm-help__phone:hover { color: var(--pm-olive-hi); }
.pm-help__phone-label { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--pm-olive-hi); }

.pm-help__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--pm-on-dark);
}

.pm-help__points li { position: relative; padding-inline-start: 1.4rem; }
.pm-help__points li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 1px; background: var(--pm-olive-hi); }

.pm-help__card {
    --c-bg: var(--pm-sheet);
    --c-surface: var(--pm-sheet);
    --c-text: var(--pm-text);
    --c-text-strong: var(--pm-slate);
    --c-text-muted: var(--pm-muted);
    --c-border: var(--pm-line);
    --c-border-strong: var(--pm-line-strong);
    --c-link: var(--pm-slate);
    color-scheme: light;
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    border-radius: var(--r-sm);
    background: var(--pm-sheet);
    color: var(--pm-text);
}

.pm-help__form-title { margin: 0 0 1.25rem; font-family: var(--pm-serif); font-size: 1.4rem; line-height: 1.3; color: var(--pm-slate); }
.pm-help__note { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--pm-muted); }

.pm-body .pm-help__card .cms-btn--primary { background-color: var(--pm-olive); border-color: var(--pm-olive); color: var(--pm-on-dark-strong); }
.pm-body .pm-help__card .cms-btn--primary:hover { background-color: var(--pm-slate); border-color: var(--pm-slate); color: var(--pm-on-dark-strong); }

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

/* Reviews: quiet letters on sheets, the quote in the serif. */
.pm-body .cms-review {
    border-radius: var(--r-sm);
    background: var(--pm-sheet);
    border: 1px solid var(--pm-line);
    box-shadow: none;
}

.pm-body .cms-review__text {
    font-family: var(--pm-serif);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--pm-text);
}

.pm-body .cms-review__mark { color: var(--pm-olive); opacity: 0.6; }
.pm-body .cms-review__name { font-weight: 500; color: var(--pm-slate); }
.pm-body .cms-review__role { color: var(--pm-olive-text); font-style: italic; font-family: var(--pm-serif); }
.pm-body .cms-review__initial { background: var(--pm-olive-soft); color: var(--pm-olive-text); font-family: var(--pm-serif); }

/* FAQ: hairlines, the question in the serif, an olive plus. */
.pm-body .cms-faq__question {
    font-family: var(--pm-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--pm-slate);
}

.pm-body .cms-faq__toggle { color: var(--pm-olive); }
.pm-body .cms-faq__item { border-color: var(--pm-line-strong); }
.pm-body .cms-faq__answer { color: var(--pm-text); line-height: 1.7; }
.pm-body .cms-faq__text { color: var(--pm-muted); }

/* Offices on a quiet plan: a drawn city scheme when there is no picture. */
.pm-body .cms-block--objects_map .cms-objmap__canvas--plan.is-blank {
    background-color: var(--pm-paper-2);
    background-image:
        radial-gradient(ellipse 60% 30% at 20% 85%, color-mix(in srgb, var(--pm-olive), transparent 80%), transparent 70%),
        radial-gradient(ellipse 40% 25% at 80% 20%, color-mix(in srgb, var(--pm-olive), transparent 82%), transparent 70%),
        linear-gradient(115deg, transparent 47%, color-mix(in srgb, #7e9aa3, transparent 55%) 47.5%, color-mix(in srgb, #7e9aa3, transparent 55%) 51%, transparent 51.5%),
        repeating-linear-gradient(0deg, transparent 0 46px, rgb(38 44 47 / 0.07) 46px 48px),
        repeating-linear-gradient(90deg, transparent 0 62px, rgb(38 44 47 / 0.07) 62px 64px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: var(--r-sm);
}

.pm-body .cms-block--objects_map .cms-objmap__point {
    background: var(--pm-slate);
    color: var(--pm-on-dark-strong);
    border: 2px solid var(--pm-sheet);
    font-family: var(--pm-serif);
}

.pm-body .cms-block--objects_map .cms-objmap__num {
    font-family: var(--pm-serif);
    color: var(--pm-olive-text);
    border-color: color-mix(in srgb, var(--pm-olive), transparent 40%);
}

.pm-body .cms-block--objects_map .cms-objmap__title { font-size: 1.2rem; }
.pm-body .cms-block--objects_map .cms-objmap__status { background: var(--pm-olive-soft); color: var(--pm-olive-text); border-radius: var(--r-sm); }
.pm-body .cms-block--objects_map .cms-objmap__text { color: var(--pm-muted); }

/* Stages of the workshop */
.pm-body .cms-block .cms-stages__marker { font-family: var(--pm-serif); }
.pm-body .cms-block .cms-stages__title { font-size: 1.2rem; }
.pm-body .cms-block .cms-stages__result { font-family: var(--pm-serif); font-style: italic; color: var(--pm-olive-text); }

/* Pricing table: the packages */
.pm-body .cms-block .cms-ptable__name { font-family: var(--pm-serif); font-size: 1.35rem; font-weight: 500; }
.pm-body .cms-block .cms-ptable__amount { font-family: var(--pm-serif); font-weight: 500; }
.pm-body .cms-block .cms-ptable__badge { background: var(--pm-olive); color: var(--pm-on-dark-strong); border-radius: var(--r-sm); }
.pm-body .cms-block .cms-ptable__mark--yes { color: var(--pm-olive); }
.pm-body .cms-block .cms-ptable__group { font-family: var(--pm-serif); font-style: italic; color: var(--pm-olive-text); }

/* Calculator */
.pm-body .cms-block .cms-calc__total-value { font-family: var(--pm-serif); font-weight: 500; }
.pm-body .cms-block .cms-calc__variant-title { font-family: var(--pm-serif); font-size: 1.1rem; }
.pm-body .cms-block .cms-calc input[type="range"] { accent-color: var(--pm-olive); }
.pm-body .cms-block .cms-calc input[type="checkbox"],
.pm-body .cms-block .cms-calc input[type="radio"] { accent-color: var(--pm-olive); }

/* Media and text: a gentle arch over wide photos. */
.pm-body .cms-mt__media { border-radius: var(--pm-arch-wide); overflow: hidden; }

/* The shared eyebrow, in the theme's italic voice. */
.pm-body :is(.cms-eyebrow, .cms-heading__eyebrow, .cms-banner__eyebrow) {
    font-family: var(--pm-serif);
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pm-olive-text);
}

/* Prices in the serif everywhere in the shop. */
.pm-body :is(.shop-price__current, .shop-price__value) { font-family: var(--pm-serif); font-weight: 500; }

/* -------------------------------------------------------------------------
   8. Shop: cards, listing, product page, request dialog
   ------------------------------------------------------------------------- */

.pm-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    box-shadow: none;
}

.pm-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--pm-shape-radius);
    background: var(--pm-paper-2);
}

.pm-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.pm-card:hover .pm-card__img { transform: scale(1.03); }

.pm-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--pm-olive); }
.pm-card__mark { width: 3rem; height: 3.6rem; opacity: 0.45; }

.pm-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
    padding: 1.1rem 0.25rem 0;
}

.pm-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    color: var(--pm-muted);
}

.pm-card__facts li + li::before { content: '·'; margin-inline: 0.45rem; color: var(--pm-olive); }

.pm-card__title {
    margin: 0;
    font-family: var(--pm-serif);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}

.pm-card .shop-card__link { color: var(--pm-slate); text-decoration: none; }
.pm-card .shop-card__link:hover { color: var(--pm-olive-text); }

.pm-card__lead { margin: 0.2rem 0 0; font-size: 0.9375rem; color: var(--pm-muted); line-height: 1.6; }

.pm-card__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.pm-card__price .shop-price { font-family: var(--pm-serif); }
.pm-card__price .shop-price__current,
.pm-card__price .shop-price__value { font-family: var(--pm-serif); font-size: 1.2rem; font-weight: 500; color: var(--pm-slate); }
.pm-card__price .shop-price--request { font-family: var(--pm-serif); font-style: italic; color: var(--pm-olive-text); }

.pm-card__cta { margin: 0; position: relative; z-index: 2; }
.pm-card__cta--request .shop-request__btn,
.pm-card .pm-card__btn {
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--pm-line-strong);
    background: transparent;
    color: var(--pm-slate);
    font-size: 0.875rem;
}

.pm-card__cta--request .shop-request__btn:hover,
.pm-card .pm-card__btn:hover { border-color: var(--pm-olive); background: var(--pm-olive); color: var(--pm-on-dark-strong); }

/* Stickers sit at the foot of the photo: the arch keeps its top clear. */
.pm-card .shop-stickers {
    top: auto;
    bottom: 0.7rem;
    left: 0.7rem;
}

.pm-card .shop-sticker { box-shadow: none; }

/* Card style (design setting «Карточки товаров»). */
html[data-pamyat-cards="plinth"] .pm-card,
html:not([data-pamyat-cards]) .pm-card {
    padding: 0.9rem 0.9rem 1.1rem;
    background: var(--pm-sheet);
    border: 1px solid color-mix(in srgb, var(--pm-line), transparent 30%);
}

html[data-pamyat-cards="line"] .pm-card {
    padding: 0.9rem 0.9rem 1.1rem;
    border: 1px solid var(--pm-line-strong);
}

html[data-pamyat-cards="open"] .pm-card { padding: 0; }

@media (max-width: 35.99rem) {
    html[data-pamyat-cards="plinth"] .pm-card,
    html:not([data-pamyat-cards]) .pm-card,
    html[data-pamyat-cards="line"] .pm-card { padding: 0.55rem 0.55rem 0.8rem; }
    .pm-card__title { font-size: 1.05rem; }
    .pm-card__cta,
    .pm-card__cta .shop-request,
    .pm-card__cta .shop-request__btn { width: 100%; }
}

/* The list view (row) */
.pm-card.shop-card--row { flex-direction: row; gap: 1.5rem; }
.pm-card.shop-card--row .pm-card__media { flex: 0 0 clamp(8rem, 30%, 14rem); aspect-ratio: 4 / 5; }
.pm-card.shop-card--row .pm-card__body { padding-top: 0.25rem; }

@media (max-width: 35.99rem) {
    .pm-card.shop-card--row { flex-direction: column; }
    .pm-card.shop-card--row .pm-card__media { flex-basis: auto; }
}

/* Listing and product pages */
.pm-body .shop-head__title,
.pm-body .shop-product__title,
.pm-body .shop-buybox__title { font-family: var(--pm-serif); font-weight: 500; }

.pm-body .shop-head__title { font-size: var(--t-2xl); }
.pm-body .shop-head__lead { font-size: var(--t-md); line-height: 1.65; color: var(--pm-muted); }
.pm-body .shop-section-title { font-family: var(--pm-serif); font-weight: 500; }

.pm-body .shop-tree__title a { font-family: var(--pm-serif); font-style: italic; color: var(--pm-olive-text); text-decoration: none; }
.pm-body .shop-tree__link[aria-current="page"] { color: var(--pm-slate); font-weight: 600; }

.pm-body .shop-price--request { font-family: var(--pm-serif); font-style: italic; }

.pm-body .shop-request__btn {
    border-radius: var(--r-btn);
}

.pm-body .shop-dialog {
    border-radius: var(--r-sm);
    background: var(--pm-sheet);
}

.pm-body .shop-dialog :is(h2, .shop-dialog__title) { font-family: var(--pm-serif); font-weight: 500; }

.pm-body .shop-sticker { border-radius: var(--r-sm); font-weight: 500; }

/* -------------------------------------------------------------------------
   9. Variants (theme.json → design.controls)
   ------------------------------------------------------------------------- */

/* Photo shape */
html[data-pamyat-shape="soft"] { --pm-shape-radius: 18px; --pm-arch-wide: 18px; }
html[data-pamyat-shape="square"] { --pm-shape-radius: var(--pm-radius); --pm-arch-wide: var(--pm-radius); }

/* Spacing between sections */
html[data-pamyat-density="normal"] {
    --sp-sm: clamp(2rem, 1.6rem + 2vw, 3rem);
    --sp-md: clamp(3rem, 2.4rem + 3vw, 4.75rem);
    --sp-lg: clamp(3.75rem, 2.8rem + 4.5vw, 6.25rem);
}

html[data-pamyat-density="compact"] {
    --sp-sm: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --sp-md: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
    --sp-lg: clamp(2.75rem, 2.1rem + 3.2vw, 4.5rem);
}

/* Sprig ornament off: a plain short hairline instead. */
html[data-pamyat-ornament="off"] .pm-body .cms-section__head::after,
html[data-pamyat-ornament="off"] .pm-head::after {
    width: 3rem;
    height: 1px;
    -webkit-mask: none;
    mask: none;
}

html[data-pamyat-ornament="off"] .pm-ftr__ornament { display: none; }

/* -------------------------------------------------------------------------
   10. Motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .pm-dirs__img,
    .pm-card__img,
    .pm-con__marks,
    .pm-link .cms-icon { transition: none; }

    .pm-dirs__item:hover .pm-dirs__img,
    .pm-card:hover .pm-card__img { transform: none; }
}
