/* =========================================================================
   «Теплица» — a template for a greenhouse factory's online shop.

   Engineering meets the garden: mint glass pages with fine polycarbonate
   ribs, galvanised steel for type and dark bands, leaf green for action,
   tomato red for small marks. Greenhouse cross-sections are drawn in thin
   lines (series, anatomy, footer), sizes and loads are set in a mono face
   like a spec sheet, and every section title carries a small arch.

   1. Fonts            5. Header           9. Shared blocks re-dressed
   2. Design settings  6. Footer          10. Variants (data-teplitsa-…)
   3. Tokens and tones 7. Drawings        11. Phones and tablets
   4. Type, buttons    8. Own blocks
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fonts — self-hosted: the parent's Manrope, Unbounded, Onest, Inter and
   the template's own JetBrains Mono (assets/fonts, OFL).
   ------------------------------------------------------------------------- */

@font-face { font-family: 'Teplitsa 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: 'Teplitsa 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: 'Teplitsa Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900;
    src: url('/themes/default/assets/fonts/unbounded-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: 'Teplitsa Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900;
    src: url('/themes/default/assets/fonts/unbounded-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: 'Teplitsa 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: 'Teplitsa 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; }
@font-face { font-family: 'Teplitsa 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: 'Teplitsa 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: 'Teplitsa Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url('../fonts/jetbrains-mono-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: 'Teplitsa Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url('../fonts/jetbrains-mono-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; }

/* -------------------------------------------------------------------------
   2. Design settings (theme.json → design.controls). Core prints the
   owner's values as :root{--teplitsa-…} after this file.
   ------------------------------------------------------------------------- */

:root {
    --teplitsa-accent: #1f7a3c;
    --teplitsa-steel: #16283a;
    --teplitsa-tomato: #e8512f;
    --teplitsa-font-display: 'Teplitsa Manrope', 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --teplitsa-font-body: 'Teplitsa Inter', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --teplitsa-font-figures: 'Teplitsa Mono', 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
    --teplitsa-radius: 14px;
}

/* -------------------------------------------------------------------------
   3. Tokens and tones
   ------------------------------------------------------------------------- */

:root:root {
    --tp-leaf: var(--teplitsa-accent);
    --tp-leaf-deep: color-mix(in srgb, var(--tp-leaf), #000000 28%);
    --tp-leaf-hi: color-mix(in srgb, var(--tp-leaf), #ffffff 22%);
    --tp-leaf-soft: color-mix(in srgb, var(--tp-leaf) 11%, var(--tp-surface));
    --tp-lime: color-mix(in srgb, var(--tp-leaf) 22%, #cdf36a);
    --tp-steel: var(--teplitsa-steel);
    --tp-steel-2: color-mix(in srgb, var(--tp-steel), #ffffff 9%);
    --tp-steel-3: color-mix(in srgb, var(--tp-steel), #ffffff 18%);
    --tp-tomato: var(--teplitsa-tomato);
    --tp-tomato-ink: color-mix(in srgb, var(--tp-tomato), #000000 18%);
    --tp-glass: #edf4ee;
    --tp-surface: #ffffff;
    --tp-sunk: #e1ece3;
    --tp-line: #cddcd1;
    --tp-ink: var(--tp-steel);
    --tp-muted: #4f5f66;
    --tp-r: var(--teplitsa-radius);
    --tp-r-lg: calc(var(--teplitsa-radius) * 1.6);
    --tp-figs: var(--teplitsa-font-figures);
    --tp-hair: 1px solid var(--tp-line);
    --tp-ribs-dark: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.045) 0 1px, transparent 1px 16px);
    --tp-ribs-light: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tp-steel) 5%, transparent) 0 1px, transparent 1px 16px);
    --tp-grid: linear-gradient(color-mix(in srgb, var(--tp-steel) 7%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, color-mix(in srgb, var(--tp-steel) 7%, transparent) 1px, transparent 1px) 0 0 / 22px 22px;

    --c-bg: var(--tp-glass);
    --c-surface: var(--tp-surface);
    --c-surface-sunk: var(--tp-sunk);
    --c-text: #243642;
    --c-text-strong: var(--tp-ink);
    --c-text-muted: var(--tp-muted);
    --c-text-faint: #6d7b82;
    --c-border: var(--tp-line);
    --c-border-strong: var(--tp-ink);
    --c-accent: var(--tp-leaf);
    --c-accent-hover: var(--tp-leaf-deep);
    --c-accent-contrast: #ffffff;
    --c-accent-soft: var(--tp-leaf-soft);
    --c-link: var(--tp-leaf-deep);
    --c-link-hover: var(--tp-steel);
    --c-mark: var(--tp-tomato);
    --c-mark-text: var(--tp-tomato-ink);
    --c-mark-soft: color-mix(in srgb, var(--tp-tomato) 12%, #ffffff);
    --c-slab: var(--tp-steel);
    --c-slab-text: #eef4f1;
    --c-slab-muted: #b7c4cc;
    --c-danger: #b3321c;
    --c-success: var(--tp-leaf);

    --font-display: var(--teplitsa-font-display);
    --font-ui: var(--teplitsa-font-body);
    --font-prose: var(--teplitsa-font-body);
    --fw-heading: 800;
    --tr-tight: -0.04em;
    --tr-snug: -0.03em;
    --lh-tight: 1.02;
    --lh-snug: 1.1;
    --t-xl: clamp(1.85rem, 1.35rem + 1.9vw, 2.9rem);
    --t-2xl: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
    --t-3xl: clamp(2.7rem, 1.5rem + 4.8vw, 5.6rem);

    --r-xs: calc(var(--tp-r) * 0.5);
    --r-sm: calc(var(--tp-r) * 0.75);
    --r-md: var(--tp-r);
    --r-lg: var(--tp-r-lg);
    --r-btn: 999px;
    --card-radius: var(--tp-r);
    --card-bg: var(--tp-surface);
    --card-border: 1px solid var(--tp-line);
    --card-shadow: 0 1px 0 rgb(22 40 58 / 0.04);
    --shadow-sm: 0 1px 2px rgb(22 40 58 / 0.06);
    --shadow-md: 0 14px 32px -20px rgb(22 40 58 / 0.35);
    --shadow-lg: 0 30px 60px -34px rgb(22 40 58 / 0.45);

    --w-container: 76rem;
    --w-wide: 88rem;
    --sp-sm: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --sp-md: clamp(4rem, 2.8rem + 5vw, 7.5rem);
    --sp-lg: clamp(5rem, 3.4rem + 7vw, 10rem);

    color-scheme: light;
}

:root:root[data-teplitsa-glass="frost"] {
    --tp-glass: #eef3f7;
    --tp-sunk: #e0e8ee;
    --tp-line: #cbd7df;
}

:root:root[data-teplitsa-glass="sand"] {
    --tp-glass: #f5f1e8;
    --tp-sunk: #ebe4d5;
    --tp-line: #dbd1bc;
}

:root:root[data-teplitsa-density="compact"] {
    --sp-sm: clamp(2rem, 1.6rem + 2vw, 3rem);
    --sp-md: clamp(3rem, 2.2rem + 3.4vw, 5rem);
    --sp-lg: clamp(3.8rem, 2.8rem + 4.6vw, 6.5rem);
}

body.tp-body {
    background-color: var(--tp-glass);
    color: var(--c-text);
    font-family: var(--font-ui);
    font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* Tones. The id-level boost keeps the site's generated tones out. */
:is(.cms-tone-dark, .cms-on-dark):not(#tp) {
    --c-bg: var(--tp-steel);
    --c-surface: var(--tp-steel-2);
    --c-surface-sunk: color-mix(in srgb, var(--tp-steel), #000000 18%);
    --c-text: #dbe5e8;
    --c-text-strong: #ffffff;
    --c-text-muted: #aebcc4;
    --c-text-faint: #8d9ca5;
    --c-border: color-mix(in srgb, #ffffff 16%, transparent);
    --c-border-strong: #ffffff;
    --c-accent: var(--tp-lime);
    --c-accent-hover: #ffffff;
    --c-accent-contrast: var(--tp-steel);
    --c-accent-soft: color-mix(in srgb, #ffffff 9%, var(--tp-steel));
    --c-link: var(--tp-lime);
    --c-link-hover: #ffffff;
    --c-mark: var(--tp-lime);
    --c-mark-text: var(--tp-lime);
    --card-bg: var(--tp-steel-2);
    --card-border: 1px solid color-mix(in srgb, #ffffff 13%, transparent);
    --tp-hair: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
    color-scheme: dark;
}

.cms-tone-dark:not(#tp) { --section-bg: var(--tp-steel); }
html:not([data-teplitsa-ribs="off"]) .cms-section.cms-tone-dark { background-image: var(--tp-ribs-dark); }

.cms-tone-soft:not(#tp) {
    --section-bg: var(--tp-sunk);
    --c-bg: var(--tp-sunk);
    --c-surface: var(--tp-surface);
}

.cms-tone-primary:not(#tp) {
    --section-bg: var(--tp-leaf);
    --c-bg: var(--tp-leaf);
    --c-text: #eaf5ec;
    --c-text-strong: #ffffff;
    --c-text-muted: #d2e6d6;
    --c-border: color-mix(in srgb, #ffffff 24%, transparent);
    --c-border-strong: #ffffff;
    --c-accent: #ffffff;
    --c-accent-hover: var(--tp-lime);
    --c-accent-contrast: var(--tp-leaf-deep);
    --c-link: #ffffff;
    color-scheme: dark;
}

/* -------------------------------------------------------------------------
   4. Type, buttons, section heads
   ------------------------------------------------------------------------- */

.tp-body :is(h1, h2, h3, h4) { font-family: var(--font-display); color: var(--c-text-strong); }

.cms-section__head { max-width: 52rem; margin-block-end: clamp(2rem, 1.4rem + 2vw, 3.25rem); }

.cms-section__title {
    font-weight: var(--fw-heading);
    letter-spacing: var(--tr-snug);
    text-wrap: balance;
}

/* A small greenhouse arch over every section title, with a sun dot. */
.cms-section__head .cms-section__title::before {
    content: '';
    display: block;
    width: 2.6rem;
    height: 1.3rem;
    margin-block-end: 1rem;
    border: 2px solid var(--c-accent);
    border-bottom: 0;
    border-radius: 2.6rem 2.6rem 0 0;
    background:
        radial-gradient(circle, var(--tp-tomato) 0 3px, transparent 3.5px) 100% 0 / 9px 9px no-repeat,
        linear-gradient(90deg, transparent calc(50% - 0.5px), color-mix(in srgb, var(--c-accent) 55%, transparent) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)) 0 100% / 100% 45% no-repeat;
    transform: translateX(2px);
}
.cms-section__head--center .cms-section__title::before { margin-inline: auto; }

.cms-section__subtitle { max-width: 44rem; font-size: var(--t-md); line-height: 1.6; color: var(--c-text-muted); }

.tp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    font-family: var(--tp-figs);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tp-leaf-deep);
}
.tp-eyebrow::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--tp-tomato);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-tomato) 18%, transparent);
}

.cms-btn {
    min-height: 50px;
    padding: 0.85rem 1.6rem;
    border-radius: var(--r-btn);
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0;
}
.cms-btn--primary { background-color: var(--c-accent); color: var(--c-accent-contrast); }
.cms-btn--primary:hover { background-color: var(--c-accent-hover); }
.cms-btn--ghost { border-width: 1.5px; border-color: color-mix(in srgb, var(--c-text-strong) 55%, transparent); color: var(--c-text-strong); }
.cms-btn--ghost:hover { border-color: var(--c-text-strong); background-color: color-mix(in srgb, var(--c-text-strong) 6%, transparent); }

.tp-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 44px;
    color: var(--c-link);
    font-weight: 600;
    text-decoration: none;
}
.tp-arrow::after { content: '→'; transition: transform 0.2s ease; }
.tp-arrow:hover::after { transform: translateX(4px); }

.tp-body :focus-visible { outline: 2px solid var(--tp-tomato); outline-offset: 3px; }

/* -------------------------------------------------------------------------
   5. Header
   ------------------------------------------------------------------------- */

.tp-hdr.site-header {
    background-color: color-mix(in srgb, #ffffff 88%, transparent);
    border-bottom: 1px solid var(--tp-line);
    backdrop-filter: saturate(1.4) blur(12px);
}

.tp-hdr .hdr-row__inner { max-width: var(--w-wide); }

.tp-hdr .hdr-row--top {
    background: var(--tp-steel);
    background-image: var(--tp-ribs-dark);
    border-bottom: 0;
    color: #cfdbe0;
    font-family: var(--tp-figs);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}
.tp-hdr .hdr-row--top .hdr-row__inner { min-height: 2.25rem; }
.tp-hdr .hdr-row--top a { color: #eef4f1; }
.tp-hdr .hdr-row--top .cms-icon { color: var(--tp-lime); }

.tp-hdr .hdr-row--main .hdr-row__inner { min-height: 4.9rem; }

.tp-logo { color: var(--c-text-strong); gap: 0.7rem; }
.tp-logo__mark { width: 2.6rem; height: 2.6rem; flex: none; color: #ffffff; }
.tp-logo__tile { fill: var(--tp-leaf); }
.tp-logo__sun { fill: var(--tp-lime); }
.tp-hdr .hdr-logo__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}
.tp-hdr .hdr-logo__tagline {
    font-family: var(--tp-figs);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.tp-hdr .hdr-nav__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-strong);
}
.tp-hdr .hdr-nav__link > span { background-image: linear-gradient(var(--tp-leaf), var(--tp-leaf)); }

.tp-hdr .hdr-phone__number {
    font-family: var(--tp-figs);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-text-strong);
}
.tp-hdr .hdr-phone__caption { font-size: 0.72rem; color: var(--c-text-muted); }
.tp-hdr .hdr-el--button .cms-btn { min-height: 46px; padding-inline: 1.3rem; }
.tp-hdr .shop-minicart {
    border: 1.5px solid var(--tp-line);
    border-radius: 999px;
    background: var(--tp-surface);
}
.tp-hdr .shop-minicart__count { background: var(--tp-tomato); color: #ffffff; }

.hdr-sub { border-radius: var(--tp-r); border-color: var(--tp-line); background: var(--tp-surface); box-shadow: var(--shadow-md); }

.tp-drawer { background: var(--tp-glass); }
.tp-drawer__art { display: block; width: 60%; margin: var(--s-6) auto 0; color: var(--tp-leaf); opacity: 0.35; }

/* -------------------------------------------------------------------------
   6. Footer
   ------------------------------------------------------------------------- */

.tp-ftr.site-footer {
    --c-bg: var(--tp-steel);
    position: relative;
    overflow: hidden;
    background: var(--tp-steel);
    color: #d5e0e4;
    border-top: 0;
}
html:not([data-teplitsa-ribs="off"]) .tp-ftr.site-footer { background-image: var(--tp-ribs-dark); }
.tp-ftr .site-footer__inner { position: relative; z-index: 1; }

.tp-ftr__band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--s-6);
    max-width: var(--w-wide);
    margin-inline: auto;
    padding: clamp(3rem, 2rem + 4vw, 5rem) var(--gutter) 0;
    color: #ffffff;
}
.tp-ftr__word {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 0.8rem + 6vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}
.tp-ftr__skyline {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 0.8fr;
    align-items: end;
    gap: 0;
    border-bottom: 2px solid var(--tp-lime);
}
.tp-ftr__prof { display: block; color: color-mix(in srgb, #ffffff 55%, transparent); }
.tp-ftr__prof .tp-prof { width: 100%; height: auto; margin-bottom: -0.9%; }
.tp-ftr__prof .tp-prof__ground { display: none; }
.tp-ftr__prof--drop { color: var(--tp-lime); }

.tp-ftr .ftr-cols { border-top: 0; padding-top: var(--s-7); margin-top: var(--s-4); }
.tp-ftr .ftr-col__title {
    font-family: var(--tp-figs);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tp-lime);
}
.tp-ftr a { color: #f1f6f4; }
.tp-ftr a:hover { color: var(--tp-lime); }
.tp-ftr .ftr-contacts__phone a { font-family: var(--tp-figs); font-size: 1.2rem; font-weight: 600; }
.tp-ftr .ftr-about, .tp-ftr .ftr-text { color: #b9c7cd; }
.tp-ftr .ftr-pay { border-color: rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.06); color: #e7eef0; }

.tp-ftr__bottom.ftr-bottom {
    margin-top: var(--s-7);
    border-top: 1px solid rgb(255 255 255 / 0.14);
    font-family: var(--tp-figs);
    font-size: 0.78rem;
    color: #a8b8bf;
}

/* -------------------------------------------------------------------------
   7. Drawings — greenhouse cross-sections (templates/teplitsa/profile.twig)
   ------------------------------------------------------------------------- */

.tp-prof { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tp-prof__shape { stroke: currentColor; stroke-width: 2.4; }
.tp-prof__rib { stroke: currentColor; stroke-width: 1.1; opacity: 0.55; }
.tp-prof__door { stroke: currentColor; stroke-width: 1.1; opacity: 0.55; }
.tp-prof__ground { stroke: currentColor; stroke-width: 2.4; }
.tp-prof__wall { stroke: currentColor; stroke-width: 1.4; opacity: 0.7; }
.tp-prof__dim { stroke: currentColor; stroke-width: 1; opacity: 0.6; }

/* -------------------------------------------------------------------------
   8. Own blocks
   ------------------------------------------------------------------------- */

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

.tp-hero {
    position: relative;
    padding-block: clamp(2.5rem, 1.4rem + 4vw, 5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
    background: linear-gradient(180deg, color-mix(in srgb, #ffffff 55%, var(--tp-glass)), var(--tp-glass));
    overflow: hidden;
}
html:not([data-teplitsa-ribs="off"]) .tp-hero { background-image: var(--tp-ribs-light), linear-gradient(180deg, color-mix(in srgb, #ffffff 55%, var(--tp-glass)), var(--tp-glass)); }

.tp-hero__frame {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    max-width: var(--w-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.tp-hero__title {
    margin: 0;
    font-size: clamp(2.5rem, 1.3rem + 3.9vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.tp-hero__lead {
    max-width: 34rem;
    margin: 1.4rem 0 0;
    font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem);
    line-height: 1.6;
    color: var(--c-text-muted);
}
.tp-hero__actions { margin-top: 2rem; }
.tp-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin: 2.2rem 0 0;
    padding: 1.3rem 0 0;
    border-top: 1px dashed var(--tp-line);
    list-style: none;
}
.tp-hero__point {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-text-strong);
}
.tp-hero__point .cms-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.45rem;
    border-radius: 50%;
    background: var(--tp-leaf-soft);
    color: var(--tp-leaf-deep);
}

.tp-hero__visual { position: relative; padding: 0 0 1.5rem 2.5rem; }
.tp-hero__pane {
    position: relative;
    margin: 0;
    aspect-ratio: 5 / 4;
    border-radius: var(--tp-r-lg) var(--tp-r-lg) var(--tp-r-lg) var(--tp-r-lg);
    overflow: hidden;
    background: var(--tp-sunk);
    box-shadow: var(--shadow-lg);
}
.tp-hero__img { width: 100%; height: 100%; object-fit: cover; }
.tp-hero__blank { position: absolute; inset: 12% 14%; color: var(--tp-leaf); }
.tp-hero__arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgb(255 255 255 / 0.7);
    stroke-width: 1.4;
    pointer-events: none;
}
.tp-hero__arcs path { vector-effect: non-scaling-stroke; }
.tp-hero__tie { stroke-dasharray: 5 7; opacity: 0.8; }
html[data-teplitsa-ribs="off"] .tp-hero__arcs { display: none; }

.tp-hero__specs {
    position: absolute;
    left: 0;
    top: 12%;
    display: grid;
    gap: 0.6rem;
    margin: 0;
}
.tp-hero__spec {
    min-width: 9.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--tp-r);
    border: 1px solid rgb(255 255 255 / 0.7);
    background: color-mix(in srgb, #ffffff 86%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}
.tp-hero__spec dt {
    font-family: var(--tp-figs);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}
.tp-hero__spec dd { margin: 0.15rem 0 0; font-family: var(--tp-figs); font-size: 1.05rem; font-weight: 700; color: var(--tp-steel); }

.tp-hero__badge {
    position: absolute;
    right: clamp(-0.5rem, -2vw, 0rem);
    bottom: 0;
    display: grid;
    gap: 0.2rem;
    max-width: 13rem;
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: var(--tp-r);
    background: var(--tp-steel);
    background-image: var(--tp-ribs-dark);
    color: #d6e2e6;
    font-size: 0.85rem;
    line-height: 1.35;
    box-shadow: var(--shadow-lg);
}
.tp-hero__badge strong { font-family: var(--tp-figs); font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--tp-lime); letter-spacing: -0.02em; }

/* --- 8.2 Series ---------------------------------------------------------- */

.tp-series__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tp-series__item {
    position: relative;
    display: flex;
    flex-direction: column;
    border: var(--tp-hair);
    border-radius: var(--tp-r);
    background: var(--c-surface);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tp-series__item:has(.tp-series__link):hover { border-color: var(--tp-leaf); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tp-series__draw {
    position: relative;
    padding: 1.4rem 1.2rem 1.9rem;
    background: var(--tp-grid), color-mix(in srgb, var(--tp-glass) 70%, #ffffff);
    border-bottom: var(--tp-hair);
    color: var(--tp-steel);
}
.tp-series__draw .tp-prof { max-width: 13rem; margin-inline: auto; }
.tp-series__draw .tp-prof__rib, .tp-series__draw .tp-prof__door { stroke: var(--tp-leaf); opacity: 0.9; }
.tp-series__dim {
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    transform: translateX(-50%);
    padding: 0 0.4rem;
    background: color-mix(in srgb, var(--tp-glass) 70%, #ffffff);
    font-family: var(--tp-figs);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tp-steel);
}
.tp-series__body { flex: 1; padding: 1.1rem 1.2rem 0.4rem; }
.tp-series__badge {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tp-tomato) 12%, #ffffff);
    color: var(--tp-tomato-ink);
    font-family: var(--tp-figs);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.tp-series__title { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; }
.tp-series__link { color: inherit; text-decoration: none; }
.tp-series__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tp-series__text { margin: 0.5rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--c-text-muted); }
.tp-series__specs { display: grid; gap: 0.2rem; margin: 0.9rem 0 0; font-size: 0.85rem; }
.tp-series__specs > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.3rem; border-bottom: 1px dashed var(--tp-line); }
.tp-series__specs dt { color: var(--c-text-muted); }
.tp-series__specs dd { margin: 0; font-family: var(--tp-figs); font-weight: 600; color: var(--c-text-strong); }

.tp-gauge { margin-top: 0.9rem; }
.tp-gauge__head { display: flex; justify-content: space-between; gap: 0.6rem; margin: 0 0 0.45rem; font-size: 0.8rem; color: var(--c-text-muted); }
.tp-gauge__head strong { font-family: var(--tp-figs); font-weight: 700; color: var(--c-text-strong); white-space: nowrap; }
.tp-gauge__bar {
    position: relative;
    display: block;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--tp-sunk);
    overflow: hidden;
}
.tp-gauge__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--tp-fill, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tp-leaf-hi), var(--tp-leaf));
}
.tp-gauge__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(255 255 255 / 0.9) calc(10% - 1px) 10%);
}
.tp-series__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1rem 1.2rem 1.2rem;
}
.tp-series__price { margin: 0; font-family: var(--tp-figs); font-size: 1.05rem; font-weight: 700; color: var(--c-text-strong); white-space: nowrap; }
.tp-series__go { font-size: 0.85rem; font-weight: 600; color: var(--c-link); white-space: nowrap; }
.tp-series__go::after { content: ' →'; }

/* --- 8.3 Anatomy --------------------------------------------------------- */

.tp-anat {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
}
.tp-anat__sheet {
    padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
    border-radius: var(--tp-r-lg);
    background:
        linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--tp-steel);
    color: #e3edf0;
}
.tp-anat__canvas { position: relative; aspect-ratio: 200 / 144; }
.tp-anat__draw { position: absolute; inset: 0; }
.tp-anat__draw .tp-prof { width: 100%; height: 100%; }
.tp-anat__draw .tp-prof__rib, .tp-anat__draw .tp-prof__door { stroke: var(--tp-lime); opacity: 0.85; }
.tp-anat__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.tp-anat__mark-wrap { position: absolute; transform: translate(-50%, -50%); }
.tp-anat__mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--tp-tomato);
    color: #ffffff;
    font-family: var(--tp-figs);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--tp-tomato) 30%, transparent);
    transition: transform 0.2s ease;
}
.tp-anat__mark:hover { transform: scale(1.12); }
.tp-anat__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin: 1.2rem 0 0; color: var(--c-text-muted); }
.tp-anat__total strong { font-family: var(--tp-figs); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--tp-leaf); line-height: 1; }
.tp-anat__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tp-anat__item {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0.6rem;
    border-bottom: var(--tp-hair);
    border-radius: var(--tp-r);
    scroll-margin-top: 7rem;
    transition: background-color 0.3s ease;
}
.tp-anat__item:first-child { border-top: var(--tp-hair); border-radius: 0; }
.tp-anat__item:target { background: var(--tp-leaf-soft); }
.tp-anat__num {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1.5px solid var(--tp-tomato);
    border-radius: 50%;
    color: var(--tp-tomato-ink);
    font-family: var(--tp-figs);
    font-weight: 700;
}
.tp-anat__title { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.tp-anat__spec { margin: 0.2rem 0 0; font-family: var(--tp-figs); font-size: 0.8rem; font-weight: 600; color: var(--tp-leaf-deep); }
.tp-anat__desc { margin: 0.4rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--c-text-muted); }
.tp-anat__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.tp-anat__foot .tp-anat__total { margin: 0; }
.tp-anat__photo { flex: none; width: 6.5rem; margin: 0; border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 3px solid var(--tp-surface); box-shadow: var(--shadow-md); }
.tp-anat__img { width: 100%; height: 100%; object-fit: cover; }

/* --- 8.4 Factory --------------------------------------------------------- */

.tp-factory__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
}
.tp-factory__photo { position: relative; margin: 0; border-radius: var(--tp-r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-surface-sunk); }
.tp-factory__img { width: 100%; height: 100%; object-fit: cover; }
.tp-factory__caption {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgb(22 40 58 / 0.8);
    color: #ffffff;
    font-family: var(--tp-figs);
    font-size: 0.75rem;
}
.tp-factory__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; margin: 1.4rem 0 0; }
.tp-factory__fact { padding-top: 0.8rem; border-top: 2px solid var(--c-accent); }
.tp-factory__fact dd { margin: 0; order: -1; font-family: var(--tp-figs); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; color: var(--c-text-strong); letter-spacing: -0.02em; }
.tp-factory__fact { display: flex; flex-direction: column; }
.tp-factory__fact dt { font-size: 0.85rem; color: var(--c-text-muted); }
.tp-factory__text { font-size: 1.05rem; }
.tp-factory__body .cms-actions { margin-top: 1.6rem; }
.tp-factory__line { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.tp-factory__line-title { margin: 0 0 1.4rem; font-family: var(--tp-figs); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); }
.tp-factory__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--tp-steps, 5), minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tp-factory__steps::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0.95rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-accent) 0 10px, transparent 10px 16px);
    opacity: 0.6;
}
.tp-factory__step { position: relative; }
.tp-factory__num {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 2.6rem;
    height: 1.9rem;
    padding-inline: 0.5rem;
    border-radius: 999px;
    background: var(--c-accent);
    color: var(--c-accent-contrast);
    font-family: var(--tp-figs);
    font-size: 0.82rem;
    font-weight: 700;
}
.tp-factory__step-title { margin: 0.9rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.tp-factory__step-text { margin: 0.35rem 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--c-text-muted); }

/* --- 8.5 Season calendar ------------------------------------------------- */

.tp-harvest { --tp-crop: 17rem; }
.tp-harvest__legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-bottom: 1.2rem; font-size: 0.88rem; font-weight: 600; }
.tp-harvest__key { display: inline-flex; align-items: center; gap: 0.5rem; }
.tp-harvest__key::before { content: ''; width: 1.8rem; height: 0.7rem; border-radius: 999px; }
.tp-harvest__key--plant::before, .tp-harvest__bar--plant {
    background: repeating-linear-gradient(135deg, var(--tp-leaf) 0 4px, var(--tp-leaf-hi) 4px 8px);
}
.tp-harvest__key--harvest::before, .tp-harvest__bar--harvest { background: var(--tp-tomato); }
.tp-harvest__table { border: var(--tp-hair); border-radius: var(--tp-r); background: var(--c-surface); overflow: hidden; }
.tp-harvest__months {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-left: var(--tp-crop);
    border-bottom: var(--tp-hair);
    font-family: var(--tp-figs);
    font-size: 0.72rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
}
.tp-harvest__month { padding: 0.7rem 0; text-align: center; border-left: 1px solid var(--tp-line); }
.tp-harvest__month.is-now { color: var(--tp-tomato-ink); font-weight: 700; background: color-mix(in srgb, var(--tp-tomato) 8%, transparent); }
.tp-harvest__rows { margin: 0; padding: 0; list-style: none; }
.tp-harvest__row {
    display: grid;
    grid-template-columns: var(--tp-crop) minmax(0, 1fr);
    grid-template-areas: 'crop strip' 'crop tip';
    border-bottom: var(--tp-hair);
}
.tp-harvest__row:last-child { border-bottom: 0; }
.tp-harvest__crop { grid-area: crop; display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; }
.tp-harvest__pic { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; overflow: hidden; background: var(--tp-sunk); }
.tp-harvest__img { width: 100%; height: 100%; object-fit: cover; }
.tp-harvest__title { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.tp-harvest__yield { margin: 0.15rem 0 0; font-family: var(--tp-figs); font-size: 0.78rem; color: var(--tp-leaf-deep); }
.tp-harvest__strip {
    grid-area: strip;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 0.8rem 0.8rem;
    row-gap: 0.35rem;
    align-content: center;
    padding-block: 1rem 0.4rem;
    background: repeating-linear-gradient(90deg, var(--tp-line) 0 1px, transparent 1px calc(100% / 12));
}
.tp-harvest__bar { border-radius: 999px; margin-inline: 3px; }
.tp-harvest__bar--plant { grid-row: 1; }
.tp-harvest__bar--harvest { grid-row: 2; }
.tp-harvest__tip { grid-area: tip; margin: 0; padding: 0 1rem 0.9rem; font-size: 0.85rem; color: var(--c-text-muted); }
.tp-harvest__note { margin: 1rem 0 0; font-size: 0.88rem; color: var(--c-text-muted); }

/* -------------------------------------------------------------------------
   9. Shared blocks re-dressed
   ------------------------------------------------------------------------- */

/* Stages: numbered nodes on a dashed rail, durations in mono. */
.teplitsa .tp-body .cms-stages__marker {
    border: 2px solid var(--c-accent);
    background: var(--c-bg);
    color: var(--c-accent);
    font-family: var(--tp-figs);
    font-weight: 700;
}
.teplitsa .tp-body .cms-stages__item.is-done .cms-stages__marker { background: var(--c-accent); color: var(--c-accent-contrast); }
.teplitsa .tp-body .cms-stages__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.teplitsa .tp-body .cms-stages__meta { font-family: var(--tp-figs); font-size: 0.8rem; color: var(--c-accent); }
.teplitsa .tp-body .cms-stages__meta .cms-icon { color: var(--c-accent); }
.teplitsa .tp-body .cms-stages__result {
    border: 0;
    border-radius: var(--tp-r);
    background: var(--c-accent-soft);
    color: var(--c-text-strong);
    font-size: 0.85rem;
}
.teplitsa .tp-body .cms-stages__result .cms-icon { color: var(--c-accent); }
.teplitsa .tp-body .cms-stages__total-value { font-family: var(--tp-figs); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--c-accent); letter-spacing: -0.02em; }
.teplitsa .tp-body .cms-stages--steps .cms-stages__item.cms-card,
.teplitsa .tp-body .cms-stages--cards .cms-stages__item { border-radius: var(--tp-r); }

/* Calculator: a white input card, the result as a steel panel with ribs. */
.teplitsa .tp-body .cms-calc__inputs { border: var(--tp-hair); border-radius: var(--tp-r-lg); box-shadow: none; background: var(--tp-surface); }
.teplitsa .tp-body .cms-calc__label, .teplitsa .tp-body .cms-calc__group legend { font-weight: 700; color: var(--c-text-strong); }
.teplitsa .tp-body .cms-calc__variant-card { border-radius: var(--tp-r); border: 1.5px solid var(--tp-line); background: var(--tp-surface); }
.teplitsa .tp-body .cms-calc__variant input:checked + .cms-calc__variant-card,
.teplitsa .tp-body .cms-calc__variant-card:has(input:checked) { border-color: var(--tp-leaf); background: var(--tp-leaf-soft); box-shadow: inset 0 0 0 1px var(--tp-leaf); }
.teplitsa .tp-body .cms-calc__variant-title { font-weight: 700; }
.teplitsa .tp-body .cms-calc__variant-price, .teplitsa .tp-body .cms-calc__option-add, .teplitsa .tp-body .cms-calc__number { font-family: var(--tp-figs); }
.teplitsa .tp-body .cms-calc__range { accent-color: var(--tp-leaf); }
.teplitsa .tp-body .cms-calc__scale { font-family: var(--tp-figs); font-size: 0.75rem; }
.teplitsa .tp-body .cms-calc__option { border-radius: var(--tp-r); }
.teplitsa .tp-body .cms-calc__result {
    --c-text: #d6e2e6;
    --c-text-strong: #ffffff;
    --c-text-muted: #aebcc4;
    --c-border: rgb(255 255 255 / 0.16);
    --c-accent: var(--tp-lime);
    --c-accent-hover: #ffffff;
    --c-accent-contrast: var(--tp-steel);
    --c-link: var(--tp-lime);
    --c-surface: var(--tp-steel-2);
    border: 0;
    border-radius: var(--tp-r-lg);
    background: var(--tp-steel);
    color: #d6e2e6;
    box-shadow: var(--shadow-lg);
    color-scheme: dark;
}
html:not([data-teplitsa-ribs="off"]) .teplitsa .tp-body .cms-calc__result { background-image: var(--tp-ribs-dark); }
.teplitsa .tp-body .cms-calc__total-label { font-family: var(--tp-figs); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #aebcc4; }
.teplitsa .tp-body .cms-calc__total-value { font-family: var(--tp-figs); font-weight: 700; letter-spacing: -0.03em; color: var(--tp-lime); }
.teplitsa .tp-body .cms-calc__result .cms-form__input { background: #ffffff; color: var(--tp-steel); }
.teplitsa .tp-body .cms-calc__result a { color: var(--tp-lime); }

/* Objects on a map: a schematic of the region — grid, delivery rings from the factory. */
.teplitsa .tp-body .cms-objmap__canvas--plan {
    border-radius: var(--tp-r-lg);
    border: var(--tp-hair);
}
.teplitsa .tp-body .cms-block--objects_map .cms-objmap__canvas--plan.is-blank {
    background:
        repeating-radial-gradient(circle at 64% 60%, transparent 0 58px, color-mix(in srgb, var(--tp-leaf) 22%, transparent) 58px 60px),
        radial-gradient(circle at 64% 60%, color-mix(in srgb, var(--tp-leaf) 16%, transparent) 0 58px, transparent 59px),
        linear-gradient(color-mix(in srgb, var(--tp-steel) 6%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, color-mix(in srgb, var(--tp-steel) 6%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--tp-surface);
}
.teplitsa .tp-body .cms-objmap__point { background: var(--tp-tomato); color: #ffffff; font-family: var(--tp-figs); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-tomato) 25%, transparent); }
.teplitsa .tp-body .cms-objmap__point-wrap:first-child .cms-objmap__point { background: var(--tp-leaf); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tp-leaf) 25%, transparent); }
.teplitsa .tp-body .cms-objmap__item { border-radius: var(--tp-r); }
.teplitsa .tp-body .cms-objmap__num { background: var(--tp-steel); color: #ffffff; font-family: var(--tp-figs); }
.teplitsa .tp-body .cms-objmap__title { font-weight: 800; letter-spacing: -0.02em; }
.teplitsa .tp-body .cms-objmap__status { font-family: var(--tp-figs); font-size: 0.72rem; background: var(--tp-leaf-soft); color: var(--tp-leaf-deep); border-radius: 999px; }
.teplitsa .tp-body .cms-objmap__chip[aria-pressed="true"] { background: var(--tp-steel); color: #ffffff; border-color: var(--tp-steel); }

/* Reviews */
.tp-body .cms-review.cms-card { background: var(--c-surface); border: var(--tp-hair); border-radius: var(--tp-r-lg); box-shadow: none; }
.tp-body .cms-review__text { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.55; font-weight: 600; letter-spacing: -0.01em; color: var(--c-text-strong); }
.tp-body .cms-review__role { font-family: var(--tp-figs); font-size: 0.75rem; }
.tp-body .cms-review__initial { background: var(--tp-leaf-soft); color: var(--tp-leaf-deep); }
.tp-body .cms-stars { color: var(--tp-tomato); }
.tp-body .cms-rating-summary__value { font-family: var(--tp-figs); font-weight: 700; }

/* FAQ */
.tp-body .cms-faq__question { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.tp-body .cms-faq--divided .cms-faq__item { border-color: var(--tp-line); }
.tp-body .cms-faq__toggle { color: var(--tp-leaf); }

/* Stats, features, contacts */
.tp-body :is(.cms-stat__value, .cms-stats__value) { font-family: var(--tp-figs); font-weight: 700; letter-spacing: -0.03em; color: var(--c-accent); }
.tp-body .cms-feature.cms-card, .tp-body .cms-items--card .cms-items__item { border-radius: var(--tp-r-lg); }
.tp-body .cms-feature__icon, .tp-body .cms-items__icon { border-radius: var(--tp-r); background: var(--tp-leaf-soft); color: var(--tp-leaf-deep); }
.tp-body .cms-contact__value { font-family: var(--tp-figs); }

/* Lead form block on steel */
.tp-body .cms-tone-dark .cms-form, .tp-body .cms-tone-dark .cms-formblock__card { border-radius: var(--tp-r-lg); }

.tp-body .cms-lead { border-radius: var(--tp-r-lg); }

/* -------------------------------------------------------------------------
   10. Variants
   ------------------------------------------------------------------------- */

/* Header «band»: logo, phone and icons on glass, the menu on a steel band. */
@media (min-width: 60rem) {
    html[data-teplitsa-header="band"] .tp-hdr .hdr-row--main .hdr-row__inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: 'left right' 'nav nav';
        row-gap: 0;
        padding-top: 0.6rem;
    }
    html[data-teplitsa-header="band"] .tp-hdr .hdr-zone--left { grid-area: left; }
    html[data-teplitsa-header="band"] .tp-hdr .hdr-zone--right { grid-area: right; justify-self: end; }
    html[data-teplitsa-header="band"] .tp-hdr .hdr-zone--center {
        grid-area: nav;
        justify-content: flex-start;
        margin-top: 0.6rem;
        background: var(--tp-steel);
        box-shadow: 0 0 0 100vmax var(--tp-steel);
        clip-path: inset(0 -100vmax);
    }
    html[data-teplitsa-header="band"] .tp-hdr .hdr-zone--center .hdr-nav__link { color: #ffffff; min-height: 3rem; }
    html[data-teplitsa-header="band"] .tp-hdr .hdr-zone--center .hdr-nav__link > span { background-image: linear-gradient(var(--tp-lime), var(--tp-lime)); }
    html[data-teplitsa-header="band"] .tp-hdr .hdr-zone--center .hdr-chevron { color: #ffffff; }
}

html[data-teplitsa-ribs="off"] .tp-hdr .hdr-row--top,
html[data-teplitsa-ribs="off"] .tp-hero__badge { background-image: none; }

/* -------------------------------------------------------------------------
   11. Phones and tablets
   ------------------------------------------------------------------------- */

@media (max-width: 63.99rem) {
    .tp-anat, .tp-factory__top { grid-template-columns: minmax(0, 1fr); }
    .tp-factory__steps { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); row-gap: 1.6rem; }
    .tp-factory__steps::before { display: none; }
    .tp-ftr__band { grid-template-columns: minmax(0, 1fr); }
    .tp-ftr__skyline { max-width: 30rem; }
}

@media (max-width: 59.99rem) {
    .tp-hero__frame { grid-template-columns: minmax(0, 1fr); }
    .tp-hero__visual { padding: 0 0 1.5rem; }
    .tp-hero__specs { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
    .tp-hero__spec { min-width: 0; flex: 1 1 7rem; box-shadow: none; border-color: var(--tp-line); }
    .tp-hero__spec dd { font-size: 0.9rem; }
    .tp-hero__badge { right: 0.8rem; bottom: auto; top: 0.8rem; }
    .tp-hdr .hdr-row--main .hdr-row__inner { min-height: 4.25rem; }
    .tp-harvest { --tp-crop: 0px; }
    .tp-harvest__months { margin-left: 0; }
    .tp-harvest__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'crop' 'strip' 'tip'; }
    .tp-harvest__crop { padding-bottom: 0.2rem; }
    .tp-harvest__strip { padding-top: 0.5rem; }
    .tp-harvest__tip { padding-top: 0.5rem; }
}

@media (max-width: 35.99rem) {
    .tp-hero__title { font-size: clamp(2.1rem, 1.2rem + 5vw, 2.6rem); }
    .tp-hero__actions .cms-btn { width: 100%; }
    .tp-hero__pane { aspect-ratio: 4 / 3.4; }
    .tp-hero__badge { max-width: 10rem; padding: 0.7rem 0.9rem; }
    .tp-hero__badge strong { font-size: 1.3rem; }
    .tp-hero__points { flex-direction: column; }
    .tp-harvest__month { font-size: 0.6rem; letter-spacing: -0.02em; overflow: hidden; }
    .tp-factory__steps { grid-template-columns: minmax(0, 1fr); }
    .tp-anat__mark { width: 1.8rem; height: 1.8rem; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tp-series__item, .tp-anat__mark, .tp-anat__item, .tp-arrow::after { transition: none; }
    .tp-series__item:hover { transform: none; }
}

/* Calculator variants: two per row reads as a pair of choices, not a ragged row. */
.teplitsa .tp-body .cms-block--calculator .cms-calc__variants { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
