/* ============================================================
   Prosta Genix — shared styles for SEO / info / legal pages
   Prefixed with .pg- to avoid clashing with the landing styles.
   ============================================================ */
:root {
  --pg-red: #c8362a;
  --pg-red-dark: #a82a20;
  --pg-green: #4a7a2a;
  --pg-green-dark: #3c651f;
  --pg-ink: #222;
  --pg-muted: #5a5a5a;
  --pg-line: #e4e4e4;
  --pg-bg: #ffffff;
  --pg-bg-soft: #f6f7f4;
  --pg-bg-warm: #fbf6ee;
  --pg-radius: 12px;
  --pg-shadow: 0 6px 24px rgba(0,0,0,.08);
  --pg-max: 1080px;
  --pg-font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
.pg-page { margin: 0; font-family: var(--pg-font); color: var(--pg-ink); background: var(--pg-bg); line-height: 1.65; font-size: 17px; }
.pg-page img { max-width: 100%; height: auto; display: block; }
.pg-container { width: 100%; max-width: var(--pg-max); margin: 0 auto; padding: 0 18px; }
.pg-page a { color: var(--pg-red); }

/* ---------- Header ---------- */
.pg-header { background: #fff; border-bottom: 1px solid var(--pg-line); position: sticky; top: 0; z-index: 50; }
.pg-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.pg-logo { font-weight: 800; font-size: 22px; color: var(--pg-green-dark); text-decoration: none; letter-spacing: .3px; white-space: nowrap; }
.pg-logo span { color: var(--pg-red); }
.pg-nav { display: flex; align-items: center; gap: 18px; }
.pg-nav a { color: var(--pg-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.pg-nav a:hover { color: var(--pg-red); }
.pg-nav__cta { background: var(--pg-red); color: #fff !important; padding: 8px 16px; border-radius: 8px; }
.pg-nav__cta:hover { background: var(--pg-red-dark); }
.pg-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.pg-nav-toggle span { width: 24px; height: 3px; background: var(--pg-ink); border-radius: 2px; }

@media (max-width: 860px) {
  .pg-nav-toggle { display: flex; }
  .pg-nav { position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
            gap: 0; border-bottom: 1px solid var(--pg-line); box-shadow: var(--pg-shadow); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .pg-nav.is-open { max-height: 480px; }
  .pg-nav a { padding: 13px 18px; border-top: 1px solid var(--pg-line); }
  .pg-nav__cta { margin: 10px 18px 16px; border-radius: 8px; text-align: center; }
}

/* ---------- Breadcrumbs ---------- */
.pg-breadcrumbs { background: var(--pg-bg-soft); border-bottom: 1px solid var(--pg-line); font-size: 13px; }
.pg-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.pg-breadcrumbs li { color: var(--pg-muted); }
.pg-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #aaa; }
.pg-breadcrumbs a { color: var(--pg-muted); text-decoration: none; }
.pg-breadcrumbs a:hover { color: var(--pg-red); }

/* ---------- Hero ---------- */
.pg-hero { background: linear-gradient(180deg, var(--pg-bg-warm), #fff); padding: 34px 0 26px; border-bottom: 1px solid var(--pg-line); }
.pg-hero h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; color: var(--pg-ink); }
.pg-hero p { margin: 0; font-size: 18px; color: var(--pg-muted); max-width: 760px; }
.pg-hero__editor { margin-top: 14px; font-size: 13px; color: #8a8a8a; font-style: italic; }

/* ---------- Layout ---------- */
.pg-main { padding: 28px 0 10px; }
.pg-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
@media (max-width: 960px) { .pg-layout { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.pg-article h2 { font-size: 25px; margin: 34px 0 12px; color: var(--pg-green-dark); line-height: 1.25; }
.pg-article h3 { font-size: 20px; margin: 22px 0 8px; }
.pg-article p { margin: 0 0 16px; }
.pg-article ul, .pg-article ol { margin: 0 0 18px; padding-left: 22px; }
.pg-article li { margin-bottom: 8px; }
.pg-article img { border-radius: var(--pg-radius); margin: 18px 0; box-shadow: var(--pg-shadow); }
.pg-figure { margin: 20px 0; }
.pg-figure figcaption { font-size: 13px; color: #8a8a8a; margin-top: 6px; text-align: center; }

/* ---------- TOC ---------- */
.pg-toc { background: var(--pg-bg-soft); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 16px 18px; margin: 0 0 26px; }
.pg-toc strong { display: block; margin-bottom: 8px; font-size: 15px; }
.pg-toc ol { margin: 0; padding-left: 20px; }
.pg-toc a { text-decoration: none; }
.pg-toc a:hover { text-decoration: underline; }

/* ---------- Callout / note ---------- */
.pg-note { background: #eef5e8; border-left: 4px solid var(--pg-green); border-radius: 8px; padding: 14px 16px; margin: 20px 0; font-size: 15px; }
.pg-warn { background: #fdeeec; border-left: 4px solid var(--pg-red); border-radius: 8px; padding: 14px 16px; margin: 20px 0; font-size: 15px; }
.pg-warn strong { color: var(--pg-red-dark); }

/* ---------- Cards / ingredient grid ---------- */
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.pg-card { border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 16px; background: #fff; }
.pg-card h3 { margin: 0 0 8px; font-size: 18px; }
.pg-card img { border-radius: 8px; margin: 0 0 10px; box-shadow: none; }

/* ---------- Table ---------- */
.pg-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.pg-table th, .pg-table td { border: 1px solid var(--pg-line); padding: 10px 12px; text-align: left; }
.pg-table th { background: var(--pg-bg-soft); }

/* ---------- FAQ ---------- */
.pg-faq { margin: 28px 0; }
.pg-faq details { border: 1px solid var(--pg-line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.pg-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 16px; color: var(--pg-red); font-size: 20px; }
.pg-faq details[open] summary::after { content: "–"; }
.pg-faq details > div { padding: 0 16px 14px; color: var(--pg-muted); }

/* ---------- CTA ---------- */
.pg-cta { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #fff, var(--pg-bg-warm));
          border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 20px; margin: 28px 0; box-shadow: var(--pg-shadow); }
.pg-cta img { width: 150px; height: auto; flex: 0 0 auto; box-shadow: none; }
.pg-cta__body h2 { margin: 0 0 6px; font-size: 21px; color: var(--pg-ink); }
.pg-cta__body p { margin: 0 0 12px; color: var(--pg-muted); }
.pg-btn { display: inline-block; background: var(--pg-red); color: #fff !important; text-decoration: none; font-weight: 700;
          padding: 12px 26px; border-radius: 10px; border: 0; cursor: pointer; font-size: 17px; transition: background .15s; }
.pg-btn:hover { background: var(--pg-red-dark); }
.pg-btn--green { background: var(--pg-green); }
.pg-btn--green:hover { background: var(--pg-green-dark); }
.pg-btn--block { display: block; width: 100%; text-align: center; }
@media (max-width: 520px) { .pg-cta { flex-direction: column; text-align: center; } }

/* ---------- Sidebar ---------- */
.pg-sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) { .pg-sidebar { position: static; } }

/* ---------- Mini order form ---------- */
.pg-mini-form { background: #fff; border: 2px solid var(--pg-red); border-radius: var(--pg-radius); padding: 18px; box-shadow: var(--pg-shadow); }
.pg-mini-form h3 { margin: 0 0 6px; font-size: 19px; color: var(--pg-red-dark); }
.pg-mini-form .pg-price { font-size: 15px; color: var(--pg-muted); margin: 0 0 12px; }
.pg-mini-form .pg-price b { color: var(--pg-ink); font-size: 18px; }
.pg-mini-form input { width: 100%; padding: 12px 12px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.pg-mini-form button { width: 100%; }
.pg-mini-form__note { font-size: 11px; color: #999; margin: 10px 0 0; line-height: 1.4; }
.order_error { color: var(--pg-red); background: #fff; border: 1px solid var(--pg-red); border-radius: 6px; padding: 8px 10px; margin-top: 8px; font-size: 14px; text-align: center; }
.order_success { color: var(--pg-green-dark); background: #eef5e8; border: 1px solid var(--pg-green); border-radius: 8px; padding: 14px; text-align: center; font-weight: 600; }

/* ---------- Related ---------- */
.pg-related { margin: 34px 0; }
.pg-related h2 { font-size: 22px; margin-bottom: 14px; }
.pg-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pg-related__grid a { display: block; border: 1px solid var(--pg-line); border-radius: 10px; padding: 14px 16px;
                      text-decoration: none; color: var(--pg-ink); font-weight: 600; background: #fff; transition: box-shadow .15s; }
.pg-related__grid a:hover { box-shadow: var(--pg-shadow); color: var(--pg-red); }

/* ---------- Footer ---------- */
.pg-footer { background: #1f2a1c; color: #cdd6c6; margin-top: 40px; padding: 36px 0 22px; font-size: 14px; }
.pg-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 800px) { .pg-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pg-footer__grid { grid-template-columns: 1fr; } }
.pg-footer__col h3 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.pg-footer__col ul { list-style: none; margin: 0; padding: 0; }
.pg-footer__col li { margin-bottom: 8px; }
.pg-footer__col a { color: #cdd6c6; text-decoration: none; }
.pg-footer__col a:hover { color: #fff; text-decoration: underline; }
.pg-footer__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #38462f; }
.pg-footer__legal p { margin: 0 0 8px; font-size: 12px; color: #a7b29c; line-height: 1.5; }
.pg-disclaimer { font-style: italic; }
.pg-copy { color: #8c9882 !important; }

/* ---------- In-article banner ---------- */
.pg-banner { display: block; width: 100%; height: auto; border-radius: var(--pg-radius); margin: 26px 0; box-shadow: var(--pg-shadow); }
a.pg-banner-link { display: block; margin: 26px 0; }
a.pg-banner-link .pg-banner { margin: 0; }

/* ---------- Reviews (representative avatars) ---------- */
.pg-reviews { margin: 18px 0; }
.pg-review { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); padding: 16px; margin: 0 0 14px; background: #fff; }
.pg-review__avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: none; margin: 0; }
.pg-review__body { flex: 1; }
.pg-review__body p { margin: 0 0 6px; }
.pg-review__meta { font-size: 12px; color: #999; margin: 0; }
.pg-review__rep { font-size: 11px; color: #b08; opacity: .7; }

/* ---------- Utility ---------- */
.pg-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pg-lead { font-size: 19px; color: var(--pg-muted); }
.pg-center { text-align: center; }
.pg-mt { margin-top: 24px; }
