/* recipe-engine stylesheet — generated from recipe `EmeraldSilver — Изумруд и серебро` */

:root {
    --pfcw-primary:      #ccd074;
    --pfcw-primary-mid:  #bec34e;
    --pfcw-on-primary:   #0a0a0a;
    --pfcw-accent:       #a6db68;
    --pfcw-accent-soft:  #414c33;
    --pfcw-bg:           #2f353b;
    --pfcw-bg-alt:       #3a424a;
    --pfcw-text:         #e6e6e1;
    --pfcw-text-mid:     #b7b8a9;
    --pfcw-surface:      #303840;
    --pfcw-surface-dark: #262b30;
    --pfcw-radius-sm:    6px;
    --pfcw-radius-md:    12px;
    --pfcw-radius-lg:    20px;
    --pfcw-radius-pill:  999px;
    --pfcw-font-heading: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --pfcw-font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --pfcw-heading-weight: 700;
    --pfcw-heading-letter: -0.015em;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    margin: 0;
    font-family: var(--pfcw-font-body);
    color: var(--pfcw-text);
    background: var(--pfcw-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pfcw-primary); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--pfcw-font-heading);
    font-weight: var(--pfcw-heading-weight);
    letter-spacing: var(--pfcw-heading-letter);
    margin: 0 0 18px;
    color: var(--pfcw-text);
    line-height: 1.18;
}
h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
p { margin: 0 0 16px; color: var(--pfcw-text-mid); }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 6px; }

body {
    background-image: repeating-linear-gradient(
        45deg,
        color-mix(in srgb, var(--pfcw-text) 3%, transparent) 0px,
        color-mix(in srgb, var(--pfcw-text) 3%, transparent) 1px,
        transparent 1px,
        transparent 14px
    );
    background-color: var(--pfcw-bg);
    background-attachment: fixed;
}

.pfcw-h {
    background: var(--pfcw-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--pfcw-text) 8%, transparent);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(8px);
}
.pfcw-hi {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.pfcw-br {
    font-family: var(--pfcw-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pfcw-text);
    text-decoration: none;
}
.pfcw-br:hover { text-decoration: none; }
.pfcw-nav { display: flex; gap: 28px; align-items: center; flex-shrink: 0; white-space: nowrap; }
.pfcw-nav a {
    color: var(--pfcw-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.pfcw-nav a:hover { color: var(--pfcw-primary); border-bottom-color: var(--pfcw-primary); text-decoration: none; }
.pfcw-nav a.is-active { color: var(--pfcw-primary); border-bottom-color: var(--pfcw-primary); }
@media (max-width: 860px) {
    .pfcw-nav { display: none; }
}

.pfcw-he {
    position: relative;
    padding: 80px 0 96px;
    overflow: hidden;
}
.pfcw-hei {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.pfcw-hey {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--pfcw-primary);
    margin: 0 0 18px;
}
.pfcw-het {
    font-family: var(--pfcw-font-heading);
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: var(--pfcw-heading-letter, -0.02em);
    font-weight: var(--pfcw-heading-weight, 800);
    margin: 0 0 22px;
    color: var(--pfcw-text);
}
.pfcw-hes {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--pfcw-text-mid);
    margin: 0 0 32px;
    max-width: 540px;
}
.pfcw-hea { display: flex; flex-wrap: wrap; gap: 14px; }
.pfcw-hem img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--pfcw-radius-lg);
}

.pfcw-hei {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.pfcw-hec { max-width: 560px; }
@media (max-width: 960px) {
    .pfcw-hei { grid-template-columns: 1fr; }
}

.pfcw-s { padding: 80px 0; position: relative; }
.pfcw-sa { background: var(--pfcw-bg-alt); }
.pfcw-si { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pfcw-sh { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.pfcw-sey {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.12em; font-weight: 700;
    color: var(--pfcw-primary); margin: 0 0 14px;
}
.pfcw-st { margin: 0 0 14px; }
.pfcw-ss { font-size: 1.05rem; color: var(--pfcw-text-mid); margin: 0; }

.pfcw-g3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.pfcw-g4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}
.pfcw-g2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}
.pfcw-sp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 860px) {
    .pfcw-sp { grid-template-columns: 1fr; }
}

.pfcw-bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--pfcw-font-heading);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .22s ease, color .22s ease, transform .18s ease, border-color .22s ease, box-shadow .22s ease, letter-spacing .22s ease;
    width: auto;
    max-width: max-content;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    isolation: isolate;
}
.pfcw-bt:active { transform: translateY(1px) scale(0.99); }

.pfcw-bp {
    background: var(--pfcw-primary); color: var(--pfcw-on-primary);
    padding: 14px 26px; border: 2px solid var(--pfcw-primary);
    border-radius: 12px;
    font-size: 0.98rem;
    overflow: hidden;
}
.pfcw-bp::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 120% at 50% 50%, color-mix(in srgb, #fff 28%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: -1;
}
.pfcw-bp:hover {
    background: var(--pfcw-primary-mid); border-color: var(--pfcw-primary-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--pfcw-primary) 55%, transparent);
}
.pfcw-bp:hover::before { opacity: 1; }
.pfcw-bg {
    background: transparent; color: var(--pfcw-text);
    padding: 13px 24px; border: 2px solid color-mix(in srgb, var(--pfcw-text) 20%, transparent);
    border-radius: 12px;
}
.pfcw-bg:hover {
    border-color: var(--pfcw-primary); color: var(--pfcw-primary);
    transform: translateY(-2px);
}

/* Readable body/heading colors on every card motif (except dark_panel
   which inverts). Force high-contrast so dark-theme recipes don't drop
   to a low-contrast text-mid that blends into tinted card backgrounds. */
.pfcw-c h3,
.pfcw-c h4,
.pfcw-c .pfcw-pch h3 {
    color: var(--pfcw-text);
}
.pfcw-c p,
.pfcw-c li,
.pfcw-c ul li,
.pfcw-c .pfcw-ro {
    color: var(--pfcw-text) !important;
    opacity: 0.88;
}
.pfcw-c li::before,
.pfcw-c .pfcw-str {
    color: var(--pfcw-primary) !important;
    opacity: 1;
}
/* Role/meta labels need to stay readable on dark panels */
.pfcw-tc .pfcw-ro,
.pfcw-rc .pfcw-ro,
.pfcw-rc .pfcw-au,
.pfcw-pc .pfcw-pr {
    color: var(--pfcw-text) !important;
    opacity: 0.95;
}
/* Force primary accent for numbering so it pops on both themes */
.pfcw-c .pfcw-nu {
    color: var(--pfcw-primary) !important;
    opacity: 1;
}

.pfcw-c {
    /* Mix text into bg for guaranteed contrast regardless of --pfcw-surface
       value (some recipes have surface very close to bg on dark themes). */
    background: color-mix(in srgb, var(--pfcw-text) 7%, var(--pfcw-bg));
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08),
                0 1px 3px rgba(15, 23, 42, 0.05);
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 12%, transparent);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pfcw-c:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.pfcw-s { padding: 80px 0; }

/* FAQ */
.pfcw-fl { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pfcw-fq {
    background: var(--pfcw-surface);
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 12%, transparent);
    border-radius: var(--pfcw-radius-md);
    padding: 20px 26px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.pfcw-fq[open] { border-color: var(--pfcw-primary); }
.pfcw-fq:hover { border-color: var(--pfcw-primary); background: color-mix(in srgb, var(--pfcw-accent-soft) 40%, var(--pfcw-surface)); }
.pfcw-fq summary {
    cursor: pointer; font-weight: 700;
    font-size: 1.1rem; color: var(--pfcw-text);
    font-family: var(--pfcw-font-heading);
    list-style: none; position: relative; padding-right: 36px;
}
.pfcw-fq summary::-webkit-details-marker { display: none; }
.pfcw-fq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px; font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--pfcw-primary); background: color-mix(in srgb, var(--pfcw-primary) 14%, transparent);
    border-radius: 50%; transition: background .15s ease;
}
.pfcw-fq[open] summary::after { content: "−"; background: var(--pfcw-primary); color: #ffffff; }
.pfcw-fq p { margin: 14px 0 0; color: var(--pfcw-text-mid); }

/* FAQ — row variant (accordion_plus): no box, just border-top dividers, big +/- marker on the right */
.pfcw-fr { border-top: 2px solid color-mix(in srgb, var(--pfcw-text) 12%, transparent); padding: 0; }
.pfcw-fr summary {
    cursor: pointer; padding: 22px 36px 22px 0;
    font-weight: 700; font-size: 1.1rem; color: var(--pfcw-text);
    font-family: var(--pfcw-font-heading);
    list-style: none; position: relative;
}
.pfcw-fr summary::-webkit-details-marker { display: none; }
.pfcw-fr summary::marker { content: ""; }
.pfcw-fr summary::after {
    content: "+"; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    color: var(--pfcw-primary); font-size: 1.8rem;
    font-weight: 300; line-height: 1;
}
.pfcw-fr[open] summary::after { content: "−"; }
.pfcw-fr p { margin: 0; padding: 0 0 20px; opacity: 0.85; color: var(--pfcw-text-mid); }

/* Team */
.pfcw-tc { text-align: center; }
.pfcw-tc img {
    width: 150px; height: 150px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}
.pfcw-tc h3 { margin: 0 0 4px; font-size: 1.15rem; }
.pfcw-tc .pfcw-ro {
    color: var(--pfcw-primary);
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 700;
    margin: 0 0 12px;
}
.pfcw-tc p { font-size: 0.95rem; color: var(--pfcw-text-mid); }

/* Timeline */
.pfcw-tl { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 34px; }
.pfcw-tl::before {
    content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px;
    width: 2px; background: color-mix(in srgb, var(--pfcw-primary) 25%, transparent);
}
.pfcw-tli {
    position: relative; padding: 18px 22px;
    background: var(--pfcw-surface);
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 8%, transparent);
    border-radius: var(--pfcw-radius-md);
}
.pfcw-tli::before {
    content: ""; position: absolute; left: -25px; top: 22px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--pfcw-primary);
    border: 3px solid var(--pfcw-bg);
}
.pfcw-tli .pfcw-dt {
    color: var(--pfcw-primary); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; margin-bottom: 6px;
}
.pfcw-tli h3 { margin: 0 0 6px; font-size: 1.1rem; }

/* Pricing */
.pfcw-pc { display: flex; flex-direction: column; height: 100%; }
.pfcw-pcf {
    border-color: var(--pfcw-primary) !important;
    box-shadow: 0 14px 40px color-mix(in srgb, var(--pfcw-primary) 18%, transparent);
    transform: scale(1.03);
}
.pfcw-pch h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pfcw-pc .pfcw-pr {
    font-family: var(--pfcw-font-heading);
    font-weight: 800; font-size: 2.3rem;
    color: var(--pfcw-primary); margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.pfcw-pc ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pfcw-pc li { position: relative; padding-left: 22px; color: var(--pfcw-text-mid); }
.pfcw-pc li::before {
    content: "✓"; position: absolute; left: 0;
    color: var(--pfcw-primary); font-weight: 800;
}

/* Reviews */
.pfcw-rc .pfcw-str {
    color: var(--pfcw-primary);
    font-size: 1.1rem; letter-spacing: 2px;
    margin-bottom: 14px;
}
.pfcw-rc p { font-size: 1rem; color: var(--pfcw-text); margin: 0 0 18px; font-style: italic; }
.pfcw-rc .pfcw-au { font-weight: 700; margin: 0 0 2px; }
.pfcw-rc .pfcw-ro {
    color: var(--pfcw-primary); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; margin: 0;
}

/* Stats */
.pfcw-sst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    padding: 40px 28px;
    background: var(--pfcw-primary);
    color: #ffffff;
    border-radius: var(--pfcw-radius-lg);
    text-align: center;
}
.pfcw-stn {
    font-family: var(--pfcw-font-heading);
    font-size: 2.8rem; font-weight: 800; line-height: 1;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 4px;
}
.pfcw-stl {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.08em; opacity: 0.85;
}

/* Articles grid */
.pfcw-a {
    background: var(--pfcw-surface);
    border-radius: var(--pfcw-radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 6%, transparent);
}
.pfcw-a:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12); }
.pfcw-a img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.pfcw-ab { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pfcw-ad {
    color: var(--pfcw-primary);
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 700;
    margin: 0 0 10px;
}
.pfcw-a h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.35; }
.pfcw-a h3 a { color: inherit; }
.pfcw-a h3 a:hover { color: var(--pfcw-primary); text-decoration: none; }
.pfcw-a p { font-size: 0.95rem; margin: 0 0 14px; flex: 1; }
.pfcw-al { color: var(--pfcw-primary); font-weight: 700; font-size: 0.92rem; }

/* Sources */
.pfcw-src { border-left: 3px solid var(--pfcw-primary); background: var(--pfcw-surface); padding: 22px 26px; border-radius: var(--pfcw-radius-sm); }
.pfcw-src h3 { margin: 0 0 14px; font-size: 1.05rem; }
.pfcw-src ul { list-style: none; margin: 0; padding: 0; }
.pfcw-src li { color: var(--pfcw-text-mid); padding-left: 18px; position: relative; margin-bottom: 8px; }
.pfcw-src li::before { content: "→"; position: absolute; left: 0; color: var(--pfcw-primary); }

/* Values / feature cards with numbers */
.pfcw-vc { padding: 26px; }
.pfcw-vc .pfcw-nu {
    display: block; font-family: var(--pfcw-font-heading);
    font-size: 1.8rem; font-weight: 800;
    color: var(--pfcw-primary); margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.pfcw-vc h3 { margin: 0 0 8px; font-size: 1.15rem; }

/* Newsletter + CTA — mix primary into bg (not accent-soft) so contrast
   with --pfcw-text is reliable on both dark and light themes. Previously
   accent-soft was a near-white tint which collided with light text on
   dark-theme recipes, making the headline invisible. */
.pfcw-cta {
    text-align: center;
    max-width: 720px; margin: 0 auto;
    padding: 48px 36px;
    background: color-mix(in srgb, var(--pfcw-primary) 10%, var(--pfcw-bg));
    border-radius: var(--pfcw-radius-lg);
    border: 1px solid color-mix(in srgb, var(--pfcw-primary) 28%, transparent);
}
.pfcw-cta h2,
.pfcw-cta p {
    color: var(--pfcw-text) !important;
}
.pfcw-cta h2 { margin: 0 0 12px; }
.pfcw-cta p { margin: 0 0 24px; opacity: 0.85; }
.pfcw-cta .pfcw-bt { margin: 0 auto; }

/* Contact form */
.pfcw-fm { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pfcw-fmr { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .pfcw-fmr { grid-template-columns: 1fr; } }
.pfcw-fm label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--pfcw-text); }
.pfcw-fm input, .pfcw-fm textarea {
    font: inherit; font-family: var(--pfcw-font-body);
    padding: 12px 14px;
    background: var(--pfcw-surface);
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 20%, transparent);
    border-radius: var(--pfcw-radius-md);
    color: var(--pfcw-text);
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}
.pfcw-fm input:focus, .pfcw-fm textarea:focus {
    outline: none;
    border-color: var(--pfcw-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pfcw-primary) 18%, transparent);
}
.pfcw-fm textarea { min-height: 140px; resize: vertical; }
.pfcw-fmn { font-size: 0.85rem; color: var(--pfcw-text-mid); margin: 0; }

/* Consent row — overrides `.pfcw-fm label { flex-direction: column }` so
   the checkbox sits to the LEFT of the privacy note (not above it). Custom
   checkbox styling (appearance:none + theme-aware fill + drawn checkmark)
   makes the box feel intentional instead of looking like a stray native
   widget. The attribute selector on `name="consent"` also targets future
   forms where someone forgets the `.pfcw-fm__consent` class. */
.pfcw-fm__consent {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 400 !important;
    line-height: 1.5;
    color: color-mix(in srgb, var(--pfcw-text) 72%, transparent) !important;
    cursor: pointer;
    padding: 4px 0 0;
}
.pfcw-fm__consent input[type="checkbox"],
.pfcw-fm input[type="checkbox"][name="consent"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    flex-shrink: 0;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    background: var(--pfcw-surface);
    border: 1.5px solid color-mix(in srgb, var(--pfcw-text) 32%, transparent);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pfcw-fm__consent input[type="checkbox"]:hover,
.pfcw-fm input[type="checkbox"][name="consent"]:hover {
    border-color: var(--pfcw-primary);
}
.pfcw-fm__consent input[type="checkbox"]:checked,
.pfcw-fm input[type="checkbox"][name="consent"]:checked {
    background: var(--pfcw-primary);
    border-color: var(--pfcw-primary);
}
.pfcw-fm__consent input[type="checkbox"]:checked::after,
.pfcw-fm input[type="checkbox"][name="consent"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--pfcw-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.pfcw-fm__consent input[type="checkbox"]:focus-visible,
.pfcw-fm input[type="checkbox"][name="consent"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pfcw-primary) 25%, transparent);
}
.pfcw-fm__consent > span { flex: 1; }

/* Contact info cards. Colors use !important because `.re-f a` (footer base)
   has equal specificity (0,1,1) and comes later in the cascade — without
   !important the footer's 80% white rule hides the card text on light
   footer variants. */
.pfcw-cc {
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 24px;
    background: var(--pfcw-bg) !important;
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 14%, transparent);
    border-radius: var(--pfcw-radius-md);
    color: var(--pfcw-text) !important;
}
.pfcw-ccl {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 700;
    color: var(--pfcw-primary) !important;
    opacity: 1 !important;
}
/* Long email/phone tokens (info@bramleyfie11ld.mobi) overflow narrow
   viewports without explicit wrap — set overflow-wrap so they break inside
   the card instead of pushing the page wider than the screen. */
.pfcw-ccv { color: var(--pfcw-text) !important; font-weight: 600; opacity: 1 !important; overflow-wrap: anywhere; word-break: break-word; }
.pfcw-cc a { color: var(--pfcw-text) !important; font-weight: 600; opacity: 1 !important; text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
.pfcw-cc a:hover { color: var(--pfcw-primary) !important; text-decoration: underline; }

/* Legal block in footer. Structural only — colors INHERIT from the footer
   default (`.pfcw-f h4` = #fff, `.pfcw-f a` = 80% white), which is the
   right contrast on the dark default background. Forcing `var(--pfcw-text)` here
   was the bug: dark text on the dark footer → invisible. Light-background
   variants (signup_wide) and the dark-inverted variant get scoped overrides
   further down. */
.pfcw-lgc { display: flex; flex-direction: column; }
.pfcw-lgh {
    opacity: 0.88;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-family: var(--pfcw-font-heading, inherit);
}
.pfcw-lgl {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.pfcw-lm a {
    display: inline-flex; align-items: center; gap: 10px;
    opacity: 0.88;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color .15s ease, opacity .15s ease;
}
.pfcw-lm a:hover { opacity: 1; }
.pfcw-lm a span { flex: 1; }
/* Icon color is set to primary so it stays visible on both dark AND light
   footer variants — the surrounding text inherits the footer default. */
.pfcw-lmi { flex-shrink: 0; color: var(--pfcw-primary); opacity: 0.95; }
.pfcw-lm a:hover .pfcw-lmi { opacity: 1; }

/* Footer nav column heading + inline link groups inherit `.pfcw-f h4`
   (#fff) and `.pfcw-f a` (80% white) respectively — just tune opacity and
   typographic scale here. */
.pfcw-fh {
    opacity: 0.88;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-family: var(--pfcw-font-heading, inherit);
}
.pfcw-fln { display: flex; gap: 16px; flex-wrap: wrap; }
.pfcw-fln a { opacity: 0.88; text-decoration: none; transition: opacity .15s ease; }
.pfcw-fln a:hover { opacity: 1; }
.pfcw-fnv { line-height: 1.6; }

/* Light-background footer variant: signup_wide uses a tinted LIGHT background
   (color-mix(primary 6%, --pfcw-bg)), so the footer's default 80%-white text is
   unreadable there. Flip text to `var(--pfcw-text)` (dark) inside that variant. */
.pfcw-f--signup_wide { color: var(--pfcw-text) !important; }
.pfcw-f--signup_wide h4,
.pfcw-f--signup_wide .pfcw-fh,
.pfcw-f--signup_wide .pfcw-lgh {
    color: var(--pfcw-text) !important;
}
.pfcw-f--signup_wide a,
.pfcw-f--signup_wide .pfcw-fln a,
.pfcw-f--signup_wide .pfcw-lm a {
    color: var(--pfcw-text) !important;
}
.pfcw-f--signup_wide a:hover { color: var(--pfcw-primary) !important; }

/* Dark-inverted variant uses `background:var(--pfcw-text)` (a different shade
   of dark than `--pfcw-surface-dark`). Default 80%-white reads fine there too,
   so no override is strictly needed — but we pin to `var(--pfcw-bg)` for a
   cleaner, less-faded look on the distinctly darker panel. */
.pfcw-f--dark_inverted .pfcw-fh,
.pfcw-f--dark_inverted .pfcw-lgh,
.pfcw-f--dark_inverted h4 {
    color: var(--pfcw-bg) !important;
}
.pfcw-f--dark_inverted .pfcw-fln a,
.pfcw-f--dark_inverted .pfcw-lm a {
    color: var(--pfcw-bg) !important;
    opacity: 0.92;
}
.pfcw-f--dark_inverted .pfcw-fln a:hover,
.pfcw-f--dark_inverted .pfcw-lm a:hover { opacity: 1; }

/* Thank-you page */
.pfcw-ty { min-height: 60vh; display: flex; align-items: center; }
.pfcw-tyi { text-align: center; max-width: 620px; margin: 0 auto; padding: 0 24px; }
.pfcw-tic {
    width: 84px; height: 84px; border-radius: 50%;
    background: color-mix(in srgb, var(--pfcw-primary) 18%, transparent);
    color: var(--pfcw-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 42px; font-weight: 800;
    margin: 0 auto 28px;
}

/* ── featured_products section (product-catalog skeleton) ───────────── */
.re-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.re-product-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 24px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.re-product-carousel > .re-product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}
.re-product-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.re-product-split__rest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 720px) {
    .re-product-split {
        grid-template-columns: 1fr;
    }
}
.re-product-card {
    background: var(--pfcw-surface);
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 10%, transparent);
    border-radius: var(--pfcw-radius-md, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-decoration: none;
    color: inherit;
}
.re-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--pfcw-text) 24%, transparent);
    border-color: var(--pfcw-primary);
}
.re-product-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: color-mix(in srgb, var(--pfcw-text) 5%, transparent);
}
.re-product-card__body {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--pfcw-text);
}
.re-product-card__category {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pfcw-primary);
    margin: 0;
    font-weight: 700;
}
.re-product-card__name {
    margin: 0;
    font-family: var(--pfcw-font-heading);
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--pfcw-text);
}
.re-product-card__desc {
    margin: 4px 0 0;
    font-size: 0.92rem;
    opacity: 0.78;
    line-height: 1.5;
    flex: 1;
}
.re-product-card__cta {
    margin-top: 14px;
    font-family: var(--pfcw-font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pfcw-primary);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}
.re-product-card:hover .re-product-card__cta {
    text-decoration: underline;
}
/* End featured_products styles */

.pfcw-f {
    background: var(--pfcw-surface-dark);
    color: color-mix(in srgb, #ffffff 94%, transparent);
    padding: 64px 0 28px;
    margin-top: 96px;
}
.pfcw-fi {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}
.pfcw-f h4 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 18px;
}
.pfcw-f p, .pfcw-f li, .pfcw-f a { color: color-mix(in srgb, #ffffff 92%, transparent); font-size: 0.92rem; }
.pfcw-f a { color: color-mix(in srgb, #ffffff 92%, transparent); }
.pfcw-f a:hover { color: #ffffff; text-decoration: none; }
/* Contact-card visibility safety — force readable text on the card's light bg
   regardless of footer text rules or pack cascade. */
.pfcw-f .pfcw-cc { background: var(--pfcw-bg) !important; color: var(--pfcw-text) !important; }
.pfcw-f .pfcw-ccl { color: var(--pfcw-primary) !important; opacity: 1 !important; }
.pfcw-f .pfcw-ccv, .pfcw-f .pfcw-cc a { color: var(--pfcw-text) !important; opacity: 1 !important; }
.pfcw-f ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pfcw-fb { font-family: var(--pfcw-font-heading); font-weight: 800; font-size: 1.2rem; color: #ffffff; margin-bottom: 14px; display: block; }
.pfcw-fbt {
    max-width: 1240px;
    margin: 40px auto 0;
    padding: 22px 24px 0;
    border-top: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 0.85rem;
}
@media (max-width: 860px) {
    .pfcw-fi { grid-template-columns: 1fr; }
}

.pfcw-l { max-width: 1200px; margin: 60px auto 0; padding: 0 24px; }
.pfcw-lg { display: flex; flex-direction: column; gap: 18px; }
.pfcw-lc {
    display: flex; gap: 22px; align-items: flex-start;
    padding: 22px 28px; border-radius: var(--pfcw-radius-lg);
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 12%, transparent);
    border-left-width: 4px;
    background: color-mix(in srgb, var(--pfcw-text) 5%, var(--pfcw-bg));
}
.pfcw-lcr {
    border-left-color: #E07B39;
    background: color-mix(in srgb, #E07B39 8%, var(--pfcw-bg));
}
.pfcw-lcb {
    border-left-color: #3B82F6;
    background: color-mix(in srgb, #3B82F6 7%, var(--pfcw-bg));
}
.pfcw-li {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.pfcw-lcr .pfcw-li {
    background: color-mix(in srgb, #E07B39 20%, var(--pfcw-bg));
    color: #E07B39;
}
.pfcw-lcb .pfcw-li {
    background: color-mix(in srgb, #3B82F6 18%, var(--pfcw-bg));
    color: #3B82F6;
}
.pfcw-li svg { width: 24px; height: 24px; display: block; }
.pfcw-lb h3 {
    margin: 0 0 8px; font-size: 1.05rem; font-weight: 700;
    color: var(--pfcw-text) !important;
    font-family: var(--pfcw-font-heading);
}
.pfcw-lb p {
    margin: 0; font-size: 0.95rem; line-height: 1.6;
    color: var(--pfcw-text) !important; opacity: 0.85;
}
@media (max-width: 720px) {
    .pfcw-lc { flex-direction: column; padding: 20px; gap: 14px; }
    .pfcw-li { width: 42px; height: 42px; }
}

.re-cookie {
    position: fixed;
    left: 24px; right: 24px; bottom: 24px;
    z-index: 9000;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: var(--pfcw-radius-lg);
    background: color-mix(in srgb, var(--pfcw-text) 10%, var(--pfcw-bg));
    border: 1px solid color-mix(in srgb, var(--pfcw-text) 18%, transparent);
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    transform: translateY(32px);
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
    font-family: var(--pfcw-font-body, inherit);
}
.re-cookie.re-cookie--show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.re-cookie__inner {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: center; justify-content: space-between;
}
.re-cookie__text {
    flex: 1 1 280px; margin: 0;
    color: var(--pfcw-text); opacity: 0.92;
    font-size: 0.92rem; line-height: 1.5;
}
.re-cookie__link {
    color: var(--pfcw-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.re-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.re-cookie__btn {
    appearance: none; cursor: pointer;
    font-family: var(--pfcw-font-heading, inherit);
    font-weight: 600; font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: var(--pfcw-radius-md);
    border: 1.5px solid transparent;
    transition: background .15s ease, transform .1s ease, border-color .15s ease;
    white-space: nowrap;
}
.re-cookie__btn:hover { transform: translateY(-1px); }
.re-cookie__btn--accept {
    background: var(--pfcw-primary); color: #ffffff;
    border-color: var(--pfcw-primary);
}
.re-cookie__btn--accept:hover { background: var(--pfcw-primary-mid); border-color: var(--pfcw-primary-mid); }
.re-cookie__btn--ghost {
    background: transparent; color: var(--pfcw-text);
    border-color: color-mix(in srgb, var(--pfcw-text) 28%, transparent);
}
.re-cookie__btn--ghost:hover { border-color: var(--pfcw-text); }
@media (max-width: 560px) {
    .re-cookie { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
    .re-cookie__inner { flex-direction: column; align-items: stretch; }
    .re-cookie__actions { justify-content: flex-end; }
}

.pfcw-po {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
}
.pfcw-pin {
    padding: 22px 26px;
    background: color-mix(in srgb, var(--pfcw-primary) 8%, var(--pfcw-bg));
    border-left: 3px solid var(--pfcw-primary);
    border-radius: var(--pfcw-radius-md);
    margin-bottom: 48px;
}
.pfcw-pin p {
    margin: 0 0 12px;
    color: var(--pfcw-text) !important;
    font-size: 1rem;
}
.pfcw-pin p:last-child { margin-bottom: 0; }
.pfcw-pup {
    font-size: 0.88rem !important;
    color: var(--pfcw-text-mid) !important;
    margin-bottom: 16px !important;
}
.pfcw-psc {
    margin-bottom: 40px;
}
.pfcw-psc h2 {
    font-size: 1.5rem;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid color-mix(in srgb, var(--pfcw-primary) 20%, transparent);
    color: var(--pfcw-text);
}
.pfcw-psc p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pfcw-text);
    margin: 0 0 14px;
}
.pfcw-psc p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
    .pfcw-psc h2 { font-size: 1.25rem; }
}

.pfcw-ap { padding: 80px 0; }
.pfcw-api { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.pfcw-ap h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.12;
    margin: 8px 0 20px;
}
.pfcw-ap .pfcw-ey {
    color: var(--pfcw-primary);
    font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; font-size: 12px;
    margin-bottom: 8px;
}
.pfcw-ap .pfcw-ld {
    font-size: 1.2rem; color: var(--pfcw-text-mid);
    margin: 0 0 32px; font-weight: 500; line-height: 1.55;
}
.pfcw-ap p { font-size: 1.06rem; line-height: 1.72; margin: 0 0 20px; color: var(--pfcw-text); }

/* AI-generated article body — matches the editorial shell */
.pfcw-a-body .article-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--pfcw-border); }
.pfcw-a-body .article-eyebrow {
    color: var(--pfcw-primary); font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; font-size: 12px; margin: 0 0 10px;
}
.pfcw-a-body h1 {
    font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.14;
    margin: 4px 0 18px; color: var(--pfcw-text); font-family: var(--pfcw-font-heading);
}
.pfcw-a-body .article-lead {
    font-size: 1.2rem; color: var(--pfcw-text-mid);
    margin: 0 0 18px; font-weight: 500; line-height: 1.55;
}
.pfcw-a-body .article-meta {
    font-size: 0.88rem; color: var(--pfcw-text-mid);
    margin: 0; letter-spacing: 0.02em;
}
.pfcw-a-body h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.25;
    margin: 44px 0 14px; color: var(--pfcw-text);
    font-family: var(--pfcw-font-heading); letter-spacing: -0.01em;
}
.pfcw-a-body h3 {
    font-size: 1.2rem; line-height: 1.35;
    margin: 32px 0 12px; color: var(--pfcw-text);
    font-family: var(--pfcw-font-heading);
}
.pfcw-a-body p { font-size: 1.06rem; line-height: 1.72; margin: 0 0 20px; color: var(--pfcw-text); }
.pfcw-a-body ul, .pfcw-a-body ol { margin: 0 0 22px; padding-left: 1.3em; color: var(--pfcw-text); }
.pfcw-a-body li { font-size: 1.04rem; line-height: 1.65; margin-bottom: 8px; }
.pfcw-a-body blockquote, .pfcw-a-body .article-pullquote {
    margin: 28px 0; padding: 20px 24px;
    border-left: 4px solid var(--pfcw-primary);
    background: var(--pfcw-surface); color: var(--pfcw-text);
    font-size: 1.14rem; line-height: 1.55; font-style: italic;
    border-radius: 4px;
}
.pfcw-a-body .article-footer-note {
    margin-top: 36px; padding: 14px 18px;
    background: var(--pfcw-surface-muted, var(--pfcw-surface));
    font-size: 0.92rem; color: var(--pfcw-text-mid); border-radius: 4px;
}
.pfcw-a-body a { color: var(--pfcw-primary); }
.pfcw-a-body a:hover { text-decoration: underline; }
.pfcw-a-body strong { color: var(--pfcw-text); font-weight: 700; }
.pfcw-a-body em { font-style: italic; }
.pfcw-a-body .pfcw-a-figure,
.pfcw-a-body figure {
    margin: 28px 0; padding: 0;
}
.pfcw-a-body .pfcw-a-figure img,
.pfcw-a-body figure img {
    width: 100%; height: auto; display: block; border-radius: 8px;
}
.pfcw-a-body figcaption {
    font-size: 0.88rem; color: var(--pfcw-text-mid);
    margin-top: 10px; text-align: center;
}

/* ── Mobile hamburger nav (hidden on desktop) ─────────────────────── */
.pfcw-hi { position: relative; }
.re-mobile-nav-wrap { display: none; }
.re-mobile-nav__checkbox { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
    .re-mobile-nav-wrap {
        display: block;
        position: absolute;
        top: 50%;
        /* `inset-inline-end` instead of `right` so the hamburger lands on
           the same edge as the nav links — i.e. the right edge in LTR (en/ru),
           the LEFT edge in RTL (ur/ar). With literal `right:14px` the toggle
           sat on top of the brand wordmark on Urdu pages. */
        inset-inline-end: 14px;
        transform: translateY(-50%);
        z-index: 100;
    }
    .re-mobile-nav__toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }
    .re-mobile-nav__toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 0 auto;
        background: var(--pfcw-text);
        transition: transform 0.18s ease, opacity 0.18s ease;
    }
    .re-mobile-nav__checkbox:checked ~ .re-mobile-nav__toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .re-mobile-nav__checkbox:checked ~ .re-mobile-nav__toggle span:nth-child(2) { opacity: 0; }
    .re-mobile-nav__checkbox:checked ~ .re-mobile-nav__toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .re-mobile-nav__panel {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        /* Match wrapper anchoring: pin to the same inline-end edge so in
           RTL the panel grows INTO the screen (rightward) instead of off
           the left edge. Literal `right:0` was leaking the panel offscreen
           on Urdu pages. */
        inset-inline-end: 0;
        min-width: 220px;
        padding: 14px 18px;
        background: var(--pfcw-bg);
        border: 1px solid color-mix(in srgb, var(--pfcw-text) 14%, transparent);
        border-radius: 12px;
        box-shadow: 0 16px 40px color-mix(in srgb, var(--pfcw-text) 22%, transparent);
    }
    .re-mobile-nav__checkbox:checked ~ .re-mobile-nav__panel {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .re-mobile-nav__panel a {
        color: var(--pfcw-text);
        font-size: 1rem;
        font-weight: 500;
        padding: 10px 6px;
        border-bottom: 1px solid color-mix(in srgb, var(--pfcw-text) 8%, transparent);
    }
    .re-mobile-nav__panel a:last-child { border-bottom: 0; }
    .re-mobile-nav__panel a:hover { color: var(--pfcw-primary); text-decoration: none; }

    /* On mobile, only the brand wordmark + hamburger should appear in the
       header bar. Variants like dot_separated, right_brand, pill_container,
       and stacked_left wrap the desktop nav + CTA + dot separators in
       inline-styled <div>/<span>/<a> children of .pfcw-hi. The
       existing `.pfcw-nav { display: none }` rule only hides the <nav>
       element — the wrapping cluster div, the dot bullets, and the CTA
       button stay visible and collide with the hamburger toggle. Hide
       every direct child of .pfcw-hi that isn't the brand or the
       hamburger wrapper. (banner_bar's promo strip is a sibling of
       .pfcw-hi, so it stays visible.) */
    .pfcw-hi > *:not(.pfcw-br):not(.re-mobile-nav-wrap) {
        display: none !important;
    }
    /* Some variants (centered_stack, stacked_left, editorial_tall) set
       inline `flex-direction:column` on .pfcw-hi — the inline
       style would otherwise override the default row layout we want when
       only brand+hamburger remain. Force horizontal so brand sits on the
       start edge and hamburger floats on inline-end without stacking. */
    .pfcw-hi[style*="flex-direction:column"],
    .pfcw-hi[style*="flex-direction: column"] {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    /* Reserve room on the inline-end edge for the absolutely-positioned
       hamburger (44px wide + 14px offset). Without this, a long brand
       wordmark in RTL Urdu prints under the toggle. */
    .pfcw-hi {
        padding-inline-end: 68px !important;
    }
    .pfcw-hi > .pfcw-br {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ── Phone breakpoint (≤480px) — tighten spacing & type ──────────── */
@media (max-width: 480px) {
    .pfcw-s { padding: 56px 0; }
    .pfcw-si { padding: 0 16px; }
    .pfcw-sh { margin-bottom: 40px; }
    .pfcw-hi { padding: 14px 18px; }
    .pfcw-he { padding: 56px 0 64px; }
    .pfcw-hei { padding: 0 16px; gap: 32px; }
    .pfcw-g3, .pfcw-g4 { gap: 16px; }
    .pfcw-g2 { gap: 24px; }
    .pfcw-sp { gap: 28px; }
    .pfcw-c,
    .pfcw-fq,
    .pfcw-pc,
    .pfcw-vc,
    .pfcw-tc,
    .pfcw-rc,
    .re-featupfcw-c,
    .re-service-card { padding: 18px; }
    .pfcw-pcf { transform: none; }
    .pfcw-bt { padding: 12px 18px; font-size: 0.92rem; }
    .pfcw-he__cta .pfcw-bt,
    .pfcw-hea .pfcw-bt { width: 100%; max-width: 320px; }
    .pfcw-stn { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .pfcw-fi { padding: 48px 16px 28px; }
    .pfcw-f__grid { grid-template-columns: 1fr; gap: 24px; }
    .pfcw-l { padding: 48px 16px; }
    .pfcw-lc { padding: 18px; }
    .pfcw-a { padding: 48px 16px; }
    .pfcw-a img { height: auto; }
    table { display: block; overflow-x: auto; max-width: 100%; }
    pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; }
}

@media (max-width: 380px) {
    .pfcw-si { padding: 0 14px; }
    .pfcw-hi { padding: 12px 14px; }
    .pfcw-hei { padding: 0 14px; }
    .re-mobile-nav-wrap { inset-inline-end: 10px; right: auto; }
}

/* ── Mobile: collapse inline-styled grids + flex rows (640px) ─────────
   Renderers use inline `style="grid-template-columns:..."` and inline
   `style="display:flex"` rows with fixed pixel/fr values that overflow a
   393px viewport (article-list rows, big_brand footer grid, timeline
   row+circle layouts, FAQ q/a grids). Below 640px we force any such grid
   inside sections and the footer to a single column AND collapse flex rows
   to columns. Rules use `!important` because inline styles otherwise beat
   the media query. */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    /* Hard cap every direct top-level wrapper to viewport width. Without this
       a single overflowing descendant (a long URL, a fixed-width grid that
       slips through the inline-style match, an absolutely-positioned decor)
       still drags the whole page sideways in iOS Safari, defeating
       overflow-x:hidden on body. NOTE: skip <header> on purpose — the
       hamburger drawer panel is absolutely-positioned BELOW the header and
       gets clipped if the header has overflow:clip/hidden. Vertical
       overflow cap on body+html is enough to stop horizontal scroll. */
    main, footer, section { max-width: 100vw; overflow-x: clip; }
    footer [style*="grid-template-columns"],
    .pfcw-si [style*="grid-template-columns"],
    .pfcw-s [style*="grid-template-columns"],
    .pfcw-fi [style*="grid-template-columns"],
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    /* Inline `column-count:N` (CSS multi-column) used by the `masonry`
       articles variant doesn't get caught by the grid-template rule above —
       on a 393px viewport 3 columns become unreadable slivers. Collapse
       to a single column on mobile. */
    [style*="column-count:2"],
    [style*="column-count:3"],
    [style*="column-count: 2"],
    [style*="column-count: 3"] {
        column-count: 1 !important;
    }
    /* Inline flex rows that stretch wider than the viewport (avatar
       strips, chip rows, hero clusters, footer columns) — wrap them. */
    footer [style*="display:flex"],
    .pfcw-si [style*="display:flex"],
    .pfcw-s [style*="display:flex"] {
        flex-wrap: wrap !important;
    }
    /* Inline `min-width:NNNpx` on form inputs / chips / cards routinely
       exceeds 393px viewport (e.g. CTA email input has min-width:220px,
       fine; but stacked rows of multiple chips with min-width pile up).
       Strip min-width on anything inline-styled below 640px. */
    [style*="min-width"] {
        min-width: 0 !important;
    }
    /* Long Urdu paragraphs in inline-styled <p>/<h1>/<h2>/<h3> can
       refuse to wrap if they contain a single multi-word ligature run.
       Force wrap on every inline-styled text container. */
    p[style], h1[style], h2[style], h3[style], h4[style],
    a[style], span[style], li[style] {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    /* Block-level inline-styled containers (divs, sections, navs) that
       carry a fixed/large max-width — cap to viewport on mobile. */
    div[style*="max-width"],
    nav[style*="max-width"] {
        max-width: 100% !important;
    }
    /* Negative-margin overlapping avatar strips (avatar_strip team variant)
       look fine wrapped, but the negative left margin pushes items off-
       screen when they wrap — reset it under 640px. */
    .pfcw-s img[style*="margin-left:-"] { margin-left: 0 !important; }
    /* Keep images inside collapsed grids from stretching weirdly */
    footer img, .pfcw-s img { max-width: 100%; height: auto; }
    /* When an article-list row collapses, the "Read more" column
       becomes its own row — align left instead of right. */
    .pfcw-s [style*="text-align:right"] { text-align: left !important; }
    /* Hero headlines and section titles routinely use clamp() with fluid
       sizing already, but inline-styled <h2> / <h3> in section variants
       sometimes lock to desktop sizes — cap them on mobile so RTL Urdu
       (which renders ~30% wider than Latin) doesn't break out of the
       viewport. */
    .pfcw-s h1[style] { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
    .pfcw-s h2[style] { font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important; }
    .pfcw-s h3[style] { font-size: clamp(1.05rem, 4.4vw, 1.4rem) !important; }
    /* `sidebar_toc` FAQ variant pins the question TOC with
       `position:sticky;top:100px`. On mobile that TOC scrolls into the
       details column when both stack — text overlaps. Reset all inline
       sticky positioning under 640px so stacked sections render in normal
       flow. */
    .pfcw-s [style*="position:sticky"],
    .pfcw-s [style*="position: sticky"] {
        position: static !important;
        top: auto !important;
    }
}


/* ── design_library css_pack: brutalist ── */
/* ─────────────────────────────────────────────────────────────────────
   CSS pack: brutalist
   ─────────────────────────────────────────────────────────────────────*/

/* ── Все радиусы внутри секций — в ноль ─────────────────────────────── */
/* ВАЖНО: scope к секциям. Глобальный `*` пересекался с футер-карточками
   и cookie-баннером — они становились острыми поверх своей вёрстки. */
.pfcw-si *, .pfcw-si *::before, .pfcw-si *::after {
  border-radius: 0 !important;
}

/* ── Заголовки: большие, плотные, с tracking ───────────────────────── */
.pfcw-st {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.pfcw-sey {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pfcw-text);
  background: var(--pfcw-primary);
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.pfcw-ss {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.92rem;
  letter-spacing: 0;
}

/* ── Карточки: толстая чёрная рамка + offset «shadow» из второй рамки ─ */
.pfcw-c {
  --pfcw-c-fg: var(--pfcw-text);
  border: 3px solid var(--pfcw-text);
  background: var(--pfcw-bg);
  box-shadow: 6px 6px 0 0 var(--pfcw-primary);
  padding: 20px;
  transition: transform 0.1s ease;
}
.pfcw-c:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--pfcw-primary);
}

/* ── Кнопки: толстая рамка + offset shadow ──────────────────────────── */
.re-button,
button.re-button,
a.re-button {
  background: var(--pfcw-primary);
  color: var(--pfcw-bg);
  border: 3px solid var(--pfcw-text);
  box-shadow: 4px 4px 0 0 var(--pfcw-text);
  padding: 12px 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.88rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.re-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--pfcw-text);
}
.re-button:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--pfcw-text);
}

/* ── Изображения — с толстой чёрной рамкой ──────────────────────────── */
.pfcw-si img {
  border: 2px solid var(--pfcw-text);
}

/* ── Никаких градиентов и теней (agressive reset) ──────────────────── */
.pfcw-si [style*="gradient"],
.pfcw-si [style*="box-shadow"]:not(.pfcw-c):not(.re-button) {
  background-image: none !important;
  box-shadow: none !important;
}

/* ── Базовые ссылки внутри секций ───────────────────────────────────── */
/* ВАЖНО: scope строго к .pfcw-si — иначе пак трогает ссылки
   в футере (где они должны оставаться 80% white на тёмном фоне) и
   хедере. Футер использует <a> без класса, и без скоупа этот селектор
   делал бы тёмный текст на тёмном фоне → невидимо. */
.pfcw-si a:not([class]) {
  color: var(--pfcw-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
}
.pfcw-si a:not([class]):hover {
  background: var(--pfcw-primary);
  color: var(--pfcw-bg);
  text-decoration-color: transparent;
}

/* ── Базовый шрифт UI элементов — моно ──────────────────────────────── */
input, textarea, button, .pfcw-fm {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
}
