/* Root */
:root {
  --pp-bg: #F3F2EB;
  --pp-surface: #FCFBF7;
  --pp-text: #23261F;
  --pp-muted: #5A5E53;
  --pp-accent: #56651E;
  --pp-accent-dark: #3F4A15;
  --pp-accent-text: #FCFBF7;
  --pp-plate-bg: #23261F;
  --pp-plate-text: #F3F2EB;
  --pp-line: #DCDACC;
  --pp-radius: 8px;
  --pp-radius-btn: 999px;
  --pp-shadow: 0 1px 2px rgb(35 38 31 / .06), 0 12px 32px rgb(35 38 31 / .08);
  --pp-shadow-lift: 0 2px 4px rgb(35 38 31 / .08), 0 20px 44px rgb(35 38 31 / .12);
  --pp-font-head: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pp-font-body: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --pp-pad: clamp(16px, 4vw, 40px);
  --pp-gap: clamp(72px, 7vw, 104px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pp-bg);
  color: var(--pp-text);
  font-family: var(--pp-font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--pp-font-head);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--pp-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pp-accent); }
:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: 2px; }
ul, ol { padding-left: 1.3em; }

/* Layout */
.pp-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pp-pad); padding-right: var(--pp-pad); }
.pp-wrap--narrow { max-width: 760px; }
.pp-block { padding-top: var(--pp-gap); padding-bottom: var(--pp-gap); }
.pp-block + .pp-block { padding-top: calc(var(--pp-gap) / 2 + 24px); }
.pp-block--tint {
  position: relative;
  background: var(--pp-surface);
  border-radius: 0 0 48% 6% / 0 0 64px 24px;
  box-shadow: 0 8px 32px rgb(35 38 31 / .05);
  margin-bottom: 8px;
}
body { background-image: radial-gradient(circle at 12% 8%, rgb(86 101 30 / .08), transparent 42%), radial-gradient(circle at 88% 78%, rgb(86 101 30 / .06), transparent 38%); background-attachment: fixed; }

/* Skip */
.pp-skip { position: absolute; left: -9999px; top: 0; z-index: 90; }
.pp-skip:focus { left: 12px; top: 12px; background: var(--pp-surface); padding: 12px 20px; border-radius: var(--pp-radius); }

/* Header */
.pp-head {
  position: sticky; top: 0; z-index: 70;
  min-height: 68px;
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.pp-head.is-solid { background: var(--pp-surface); box-shadow: 0 1px 0 var(--pp-line), 0 8px 24px rgb(35 38 31 / .06); }
.pp-head__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; }
.pp-head__mail { margin: 0; font-size: 15px; color: var(--pp-muted); font-family: var(--pp-font-head); }
.pp-head__mail a { color: inherit; }
.pp-head__brand {
  font-family: var(--pp-font-head); font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--pp-text); text-decoration: none; text-align: center; white-space: nowrap;
}
.pp-menu__btn {
  justify-self: end;
  font-family: var(--pp-font-head); font-size: 15px; font-weight: 600;
  min-height: 44px; padding: 0 20px;
  background: none; color: var(--pp-text);
  border: 1.5px solid var(--pp-text); border-radius: var(--pp-radius-btn);
  cursor: pointer; transition: background .25s ease, color .25s ease;
}
.pp-menu__btn:hover { background: var(--pp-text); color: var(--pp-plate-text); }

/* Menu overlay */
.pp-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--pp-plate-bg); color: var(--pp-plate-text);
  display: grid; align-items: start;
  padding: 92px 0 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s .35s;
}
.pp-menu--open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
.pp-menu__grid { display: grid; gap: 40px; margin: auto 0; }
.pp-menu__list { list-style: none; margin: 0; padding: 0; }
.pp-menu__item { margin-bottom: 8px; }
.pp-menu__link {
  display: inline-block;
  font-family: var(--pp-font-head); font-weight: 650;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  color: var(--pp-plate-text); text-decoration: none;
  position: relative; padding: 4px 2px;
}
.pp-menu__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; background: #A8B86A;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.pp-menu__link:hover::after, .pp-menu__link[aria-current="page"]::after { transform: scaleX(1); }
.pp-menu__title { font-size: 1rem; color: #C9CCBB; letter-spacing: 0; }
.pp-menu__aside ul { list-style: none; margin: 0; padding: 0; }
.pp-menu__aside li { margin-bottom: 8px; font-size: 16px; }
.pp-menu__aside a { color: #E4E6D8; }

/* Buttons */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--pp-font-head); font-weight: 600; font-size: 16px;
  min-height: 48px; padding: 0 26px;
  background: var(--pp-accent); color: var(--pp-accent-text);
  border: 2px solid var(--pp-accent); border-radius: var(--pp-radius-btn);
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: background .25s ease, border-color .25s ease, transform .15s ease;
}
.pp-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--pp-accent-dark);
  transform: translateY(101%); transition: transform .28s ease; z-index: -1;
}
.pp-btn:hover::before { transform: translateY(0); }
.pp-btn:hover { border-color: var(--pp-accent-dark); }
.pp-btn:focus-visible { outline: 3px solid var(--pp-accent-dark); outline-offset: 3px; box-shadow: 0 0 0 6px rgb(86 101 30 / .25); }
.pp-btn:active { transform: scale(0.97); }
.pp-btn--ghost { background: transparent; color: var(--pp-accent-dark); }
.pp-btn--ghost::before { background: var(--pp-accent); }
.pp-btn--ghost:hover { color: var(--pp-accent-text); }

/* Accent */
.pp-accent {
  font-family: var(--pp-font-head); font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw + 0.8rem, 5.4rem);
  color: var(--pp-accent); display: inline-block;
}

/* Plate */
.pp-plate { background: var(--pp-plate-bg); color: var(--pp-plate-text); border-radius: 16px; padding: clamp(24px, 4vw, 44px); }
.pp-plate a { color: #E4E6D8; }
.pp-plate :focus-visible { outline-color: #C9CCBB; }

/* Hero */
.pp-hero { padding-top: clamp(40px, 6vw, 80px); }
.pp-hero__grid { display: grid; gap: 32px; align-items: center; }
.pp-hero__title { margin: 0 0 24px; display: grid; gap: 4px; }
.pp-hero__row { display: block; }
.pp-hero__row--big { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); font-weight: 800; }
.pp-hero__row--mid { font-size: clamp(1.5rem, 2.4vw + 0.7rem, 2.6rem); font-weight: 650; color: var(--pp-muted); }
.pp-hero__lead { font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem); margin-bottom: 28px; }
.pp-hero__media { margin: 0; max-width: 520px; width: 100%; justify-self: center; align-self: center; }
.pp-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pp-radius); box-shadow: var(--pp-shadow); }
@media (min-width: 768px) {
  .pp-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
}
html.is-ready .pp-hero__entry > * { animation: pp-rise .5s ease both; }
html.is-ready .pp-hero__entry > :nth-child(2) { animation-delay: .08s; }
html.is-ready .pp-hero__entry > :nth-child(3) { animation-delay: .16s; }
@keyframes pp-rise { from { transform: translateY(12px); } to { transform: none; } }

/* Checklist */
.pp-check__grid { display: grid; gap: 32px; }
.pp-check__title, .pp-check__lead { max-width: 46ch; }
.pp-check__intro { align-self: start; }
.pp-check__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pp-check__item {
  background: var(--pp-surface); border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius); padding: 16px 24px 16px 56px;
  position: relative; max-width: 52ch;
  display: flex; align-items: center;
}
.pp-check__item::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pp-accent);
}
@media (min-width: 900px) {
  .pp-check__grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
  .pp-check__intro { position: sticky; top: 120px; }
  .pp-check__list { max-width: 640px; gap: 14px; }
}

/* Cards */
.pp-rubrics__grid, .pp-card__list {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.pp-card {
  background: var(--pp-surface); border-radius: var(--pp-radius);
  overflow: hidden; box-shadow: var(--pp-shadow);
  border: 1px solid var(--pp-line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
  grid-auto-flow: row;
}
.pp-card:hover { transform: translateY(-6px); box-shadow: var(--pp-shadow-lift); }
.pp-card__media { margin: 0; }
.pp-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pp-card__body, .pp-card__title, .pp-card__text { padding: 0; }
.pp-card__title, .pp-card__text { margin-left: 24px; margin-right: 24px; }
.pp-card__title { margin-top: 16px; }
.pp-card__text { color: var(--pp-muted); margin-bottom: 24px; flex: 1; }
@media (min-width: 640px) { .pp-rubrics__grid, .pp-card__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .pp-rubrics__grid, .pp-card__list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .pp-rubrics__item:last-child:nth-child(3n+2) { grid-column: span 2; }
  .pp-rubrics__item:last-child:nth-child(3n+2) .pp-card__media img { aspect-ratio: 21 / 9; }
}
.pp-card.is-hidden, .pp-filter__item.is-hidden { display: none; }

/* Ask / form */
.pp-ask__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .pp-ask__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.pp-ask__title { color: var(--pp-plate-text); }
.pp-ask__lead { color: #C9CCBB; }
.pp-form { display: grid; gap: 22px; }
.pp-form__field { display: grid; gap: 6px; }
.pp-form__label { font-family: var(--pp-font-head); font-size: 15px; font-weight: 600; color: #F3F2EB; opacity: 0.9; }
.pp-form__input, .pp-form__area {
  font: inherit; font-size: 16px;
  background: var(--pp-bg); color: var(--pp-text);
  border: 1.5px solid transparent; border-radius: var(--pp-radius);
  padding: 12px 14px; width: 100%;
  min-height: 48px;
}
.pp-form__input::placeholder, .pp-form__area::placeholder { color: #6B6E62; opacity: 1; }
.pp-form__input:focus-visible, .pp-form__area:focus-visible { outline: 2px solid #C9CCBB; outline-offset: 1px; }
.pp-form__area { resize: vertical; min-height: 110px; }
.pp-form__check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 15px; color: #D8DACB; }
.pp-form__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #A8B86A; }
.pp-form__check a { color: #E4E6D8; }
.pp-form__note { font-size: 14px; color: #A9AC9C; margin: 0; }
.pp-form__err { color: #F0C9C0; font-size: 14px; font-family: var(--pp-font-head); margin: -10px 0 0; display: none; }
.pp-form__field.has-error .pp-form__err { display: block; }
.pp-form__field.has-error .pp-form__input { border-color: #F0C9C0; }
.pp-form__send { background: #A8B86A; border-color: #A8B86A; color: var(--pp-plate-bg); }
.pp-form__send::before { background: #F3F2EB; }
.pp-form__send:hover { color: var(--pp-plate-bg); }
.pp-form.is-sending .pp-form__send { opacity: .65; pointer-events: none; }

/* Filter */
.pp-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.pp-filter__btn {
  font-family: var(--pp-font-head); font-size: 15px; font-weight: 600;
  min-height: 44px; padding: 0 20px;
  background: var(--pp-surface); color: var(--pp-text);
  border: 1.5px solid var(--pp-line); border-radius: var(--pp-radius-btn);
  cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .15s ease;
}
.pp-filter__btn:hover { border-color: var(--pp-accent); }
.pp-filter__btn:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: 3px; }
.pp-filter__btn:active { transform: scale(0.97); }
.pp-filter__btn[aria-selected="true"] { background: var(--pp-accent); border-color: var(--pp-accent); color: var(--pp-accent-text); }
.pp-filter__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-filter__item {
  background: var(--pp-surface); border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius); padding: 14px 18px;
  transition: opacity .3s ease;
}

/* Stages */
.pp-stages__list { list-style: none; counter-reset: pp-step; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.pp-stages__step {
  counter-increment: pp-step;
  background: var(--pp-surface); border-radius: var(--pp-radius);
  border: 1px solid var(--pp-line);
  padding: 24px 24px 24px 72px; position: relative;
}
.pp-stages__step::before {
  content: counter(pp-step);
  position: absolute; left: 24px; top: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pp-plate-bg); color: var(--pp-plate-text);
  font-family: var(--pp-font-head); font-weight: 700; font-size: 16px;
  display: grid; place-items: center;
}
.pp-stages__step-title { margin-bottom: 6px; }
.pp-stages__step-text { color: var(--pp-muted); margin: 0; max-width: 60ch; }
.pp-stages__media { margin: 40px 0 0; }
.pp-stages__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--pp-radius); box-shadow: var(--pp-shadow); }
@media (min-width: 768px) { .pp-stages__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pp-stages__list { grid-template-columns: repeat(4, 1fr); } .pp-stages__step { padding: 24px 20px 24px 20px; } .pp-stages__step::before { position: static; margin-bottom: 12px; } }

/* FAQ */
.pp-faq__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .pp-faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } }
.pp-faq__item {
  background: var(--pp-surface); border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius); padding: 4px 20px; margin-bottom: 12px;
}
.pp-faq__item summary {
  cursor: pointer; font-family: var(--pp-font-head); font-weight: 650;
  font-size: 17px; padding: 14px 0; list-style-position: outside;
}
.pp-faq__item[open] summary { border-bottom: 1px solid var(--pp-line); margin-bottom: 8px; }
.pp-faq__item p { color: var(--pp-muted); padding-bottom: 8px; }

/* Prose */
.pp-prose { max-width: 760px; }
.pp-prose h2 { margin-top: 48px; }
.pp-prose ol, .pp-prose ul { margin-bottom: 1.2em; }
.pp-prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 1.5em; }
.pp-prose th, .pp-prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--pp-line); background: var(--pp-surface); }
.pp-prose th { font-family: var(--pp-font-head); font-weight: 650; }
.pp-prose .pp-toc { background: var(--pp-surface); border: 1px solid var(--pp-line); border-radius: var(--pp-radius); padding: 20px 24px; margin-bottom: 32px; }

/* Page head */
.pp-pagehead { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
.pp-pagehead h1 { margin-bottom: 16px; }
.pp-pagehead p { color: var(--pp-muted); font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem); }

/* Confirm / 404 */
.pp-confirm, .pp-missing { text-align: left; }
.pp-confirm__big, .pp-missing__big {
  font-family: var(--pp-font-head); font-weight: 800;
  font-size: clamp(3rem, 8vw + 1rem, 7rem); line-height: 1; color: var(--pp-accent);
  display: block; margin-bottom: 16px;
}
.pp-linkrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Contacts block */
.pp-contact address { font-style: normal; }
.pp-contact ul { list-style: none; margin: 0; padding: 0; }
.pp-contact li { margin-bottom: 8px; }
.pp-contact span { display: inline-block; min-width: 72px; font-family: var(--pp-font-head); font-size: 14px; font-weight: 600; color: var(--pp-muted); }

/* Footer */
.pp-foot { background: var(--pp-plate-bg); color: var(--pp-plate-text); margin-top: var(--pp-gap); padding-top: clamp(48px, 6vw, 80px); }
.pp-foot a { color: #E4E6D8; }
.pp-foot a:hover { color: #FFFFFF; }
.pp-foot__grid { display: grid; gap: 40px; }
.pp-foot__brand { font-family: var(--pp-font-head); font-weight: 800; font-size: 1.1rem; margin: 0 0 12px; color: #FFFFFF; }
.pp-foot__title { font-size: 15px; color: #C9CCBB; margin-bottom: 12px; }
.pp-foot__list { list-style: none; margin: 0; padding: 0; }
.pp-foot__list li { margin-bottom: 8px; font-size: 16px; }
.pp-foot__copy { border-top: 1px solid #3D4036; padding-top: 20px; padding-bottom: 24px; margin: 40px auto 0; font-size: 14px; color: #A9AC9C; }
@media (min-width: 768px) { .pp-foot__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* Reveal */
html.is-ready .pp-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
html.is-ready .pp-reveal.is-shown { opacity: 1; transform: none; }

/* Breakpoints */
@media (max-width: 479px) {
  .pp-head__mail { font-size: 13px; max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pp-head__row { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 480px) {
  .pp-menu__grid { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
}
@media (min-width: 640px) { .pp-linkrow { gap: 16px; } }
@media (min-width: 1280px) {
  .pp-wrap { max-width: 1160px; }
  .pp-hero__grid { gap: 64px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.is-ready .pp-reveal { opacity: 1; transform: none; }
  html.is-ready .pp-hero__entry > * { animation: none; }
}

/* Mobile hero rows */
@media (max-width: 479px) {
  .pp-hero__row--big { line-height: 1.05; }
  .pp-hero__row--mid, .pp-hero__row--big.pp-accent { margin-top: 8px; }
}

/* Rubrics mobile air */
@media (max-width: 639px) {
  .pp-rubrics__grid { gap: 32px; }
  .pp-card__title { margin-top: 16px; padding-top: 0; }
}

/* Open menu state */
body:has(.pp-menu--open) .pp-head { background: var(--pp-plate-bg); box-shadow: none; }
body:has(.pp-menu--open) .pp-head__brand { color: var(--pp-plate-text); }
body:has(.pp-menu--open) .pp-head__mail { color: #C9CCBB; }
body:has(.pp-menu--open) .pp-menu__btn { background: var(--pp-plate-text); border-color: var(--pp-plate-text); color: var(--pp-plate-bg); }
body:has(.pp-menu--open) .pp-menu__btn:hover { background: #E4E6D8; border-color: #E4E6D8; color: var(--pp-plate-bg); }
body:has(.pp-menu--open) .pp-menu__btn:focus-visible { outline-color: #A8B86A; }
@media (max-height: 640px) {
  .pp-menu { padding-top: 84px; }
  .pp-menu__link { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
  .pp-menu__grid { gap: 24px; }
}
