/* Root */
:root {
  --pwk-bg: #F5F5F2;
  --pwk-surface: #FFFFFF;
  --pwk-text: #1C1C1A;
  --pwk-muted: #55554F;
  --pwk-accent: #3D6B1F;
  --pwk-accent-dark: #2E5217;
  --pwk-accent-text: #F5F5F2;
  --pwk-plate-bg: #1C1C1A;
  --pwk-plate-text: #F5F5F2;
  --pwk-line: #E3E2DC;
  --pwk-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pwk-radius-card: 8px;
  --pwk-radius-btn: 999px;
  --pwk-shadow: 0 1px 2px rgb(28 28 26 / .06), 0 12px 32px rgb(28 28 26 / .08);
  --pwk-shadow-lift: 0 2px 4px rgb(28 28 26 / .08), 0 20px 44px rgb(28 28 26 / .12);
  --pwk-pad: clamp(20px, 4vw, 40px);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pwk-font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--pwk-text);
  background-color: var(--pwk-bg);
  background-image: radial-gradient(rgb(61 107 31 / .3) 3px, transparent 3.5px);
  background-size: 36px 36px;
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 750; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
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: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--pwk-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pwk-accent); }
:focus-visible { outline: 3px solid var(--pwk-accent); outline-offset: 2px; border-radius: 4px; }

/* Layout */
.pwk-wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pwk-pad); }
.pwk-part { padding-block: clamp(64px, 9vw, 128px); }
.pwk-part__intro { font-size: 1.05rem; color: var(--pwk-muted); max-width: 60ch; }
.pwk-copy { max-width: 760px; }
.pwk-copy ul, .pwk-copy ol { padding-left: 1.4em; }
.pwk-copy li { margin-bottom: 0.4em; }
.pwk-copy table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.pwk-copy th, .pwk-copy td { text-align: left; padding: 10px 12px; border: 1px solid var(--pwk-line); }
.pwk-copy th { background: var(--pwk-surface); font-weight: 650; }

/* Skip link */
.pwk-leap {
  position: absolute; left: -9999px; top: 0;
  background: var(--pwk-surface); color: var(--pwk-text);
  padding: 12px 20px; border-radius: var(--pwk-radius-btn); z-index: 100;
}
.pwk-leap:focus { left: 12px; top: 12px; }

/* Header */
.pwk-top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(245 245 242 / .96);
  backdrop-filter: blur(6px);
}
.pwk-top__inner {
  min-height: 72px;
  display: flex; align-items: center; gap: 20px;
  justify-content: space-between;
}
.pwk-top__rule { height: 4px; background: var(--pwk-accent); }
.pwk-top__sign {
  font-weight: 750; font-size: 1.15rem; color: var(--pwk-text);
  text-decoration: none; white-space: nowrap;
}
.pwk-menu__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pwk-menu__point {
  position: relative; display: inline-block; overflow: hidden;
  padding: 10px 14px; font-size: 1rem; color: var(--pwk-text); text-decoration: none;
  border-radius: 4px;
}
.pwk-menu__point::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  background: var(--pwk-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease; z-index: -1;
}
.pwk-menu__point:hover, .pwk-menu__point[aria-current="page"] { color: var(--pwk-accent-text); }
.pwk-menu__point:hover::before, .pwk-menu__point[aria-current="page"]::before { transform: scaleX(1); }
.pwk-top__bars {
  display: none; flex-direction: column; gap: 4px;
  background: var(--pwk-surface); border: 1px solid var(--pwk-line);
  border-radius: var(--pwk-radius-btn); padding: 10px 18px; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; color: var(--pwk-text);
}
.pwk-top__bars-line { display: block; width: 22px; height: 2px; background: var(--pwk-text); }
.pwk-top__bars-caption { font-size: 14px; }

/* Hero */
.pwk-hero { padding-top: clamp(48px, 6vw, 88px); }
.pwk-hero + .pwk-part { padding-top: clamp(56px, 7vw, 96px); }
.pwk-hero__inner { text-align: center; }
.pwk-hero__title { margin-bottom: 24px; max-width: 20ch; margin-inline: auto; }
.pwk-hero__title .pwk-rise { display: block; }
html.is-scripted .pwk-hero__title .pwk-rise { animation: pwk-lift 0.55s ease both; }
html.is-scripted .pwk-hero__title .pwk-rise:nth-child(2) { animation-delay: 0.15s; }
html.is-scripted .pwk-hero__title .pwk-rise:nth-child(3) { animation-delay: 0.3s; }
@keyframes pwk-lift { from { transform: translateY(8px); } to { transform: translateY(0); } }
.pwk-hero__lead { margin-inline: auto; max-width: 60ch; color: var(--pwk-muted); font-size: 1.1rem; }
.pwk-hero__cta { margin: 32px auto 48px; padding: 14px 32px; min-height: 52px; font-size: 1.05rem; width: auto; }
.pwk-hero__photo {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--pwk-radius-card); box-shadow: var(--pwk-shadow);
}

/* Split layout */
.pwk-split { display: grid; gap: 32px; align-items: start; }
.pwk-split__aside { position: static; }
.pwk-split__title { margin-bottom: 12px; font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.35rem); line-height: 1.2; max-width: 20ch; }
.pwk-split__intro { color: var(--pwk-muted); }
.pwk-split__body { display: grid; gap: 20px; }

/* Tiles */
.pwk-tile {
  background: var(--pwk-surface); border-radius: var(--pwk-radius-card);
  padding: 28px; box-shadow: var(--pwk-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pwk-tile:hover { transform: translateY(-4px); box-shadow: var(--pwk-shadow-lift); }

/* Steps */
.pwk-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.pwk-steps__row {
  display: grid; grid-template-columns: 80px 1fr; column-gap: 36px; align-items: baseline;
  background: var(--pwk-surface); border-radius: var(--pwk-radius-card);
  padding: 30px 32px; box-shadow: var(--pwk-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pwk-steps__row:hover { transform: translateY(-3px); box-shadow: var(--pwk-shadow-lift); }
.pwk-steps__num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 750; color: var(--pwk-accent); min-width: 2.2em; }
.pwk-steps__row h3 { margin-bottom: 6px; }
.pwk-steps__row p { margin: 0; color: var(--pwk-muted); max-width: 58ch; }

/* Gallery */
.pwk-shots { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.pwk-shots__frame { margin: 0; overflow: hidden; }
.pwk-shots__frame img { width: 100%; object-fit: cover; border-radius: var(--pwk-radius-card); }
.pwk-shots__frame figcaption { color: var(--pwk-muted); font-size: 14px; margin-top: 12px; }

/* Accent + plate */
.pwk-mark {
  font-size: clamp(2.2rem, 4vw + 1rem, 4.2rem);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--pwk-plate-text);
}
.pwk-slab {
  background: var(--pwk-plate-bg); color: var(--pwk-plate-text);
  border-radius: var(--pwk-radius-card); padding: clamp(28px, 5vw, 56px);
}
.pwk-slab a { color: #C9E3B4; }
.pwk-slab p { color: var(--pwk-plate-text); }

/* FAQ */
.pwk-qa { display: grid; gap: 12px; }
.pwk-qa details { padding: 0; }
.pwk-qa summary {
  cursor: pointer; font-weight: 650; padding: 20px 28px; list-style-position: inside;
}
.pwk-qa details[open] summary { border-bottom: 1px solid var(--pwk-line); }
.pwk-qa details p { padding: 16px 28px 20px; margin: 0; color: var(--pwk-muted); }

/* Buttons */
.pwk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: none; border-radius: var(--pwk-radius-btn);
  background: var(--pwk-accent); color: var(--pwk-accent-text);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.pwk-btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--pwk-accent-dark); transform: translateY(100%);
  transition: transform 0.25s ease; z-index: 0;
}
.pwk-btn:hover { transform: translateY(-1px); filter: brightness(0.94); }
.pwk-btn:hover::before { transform: translateY(0); }
.pwk-btn:active { transform: translateY(0); }
.pwk-btn:focus-visible { outline: 3px solid var(--pwk-accent); outline-offset: 3px; }
.pwk-btn > * { position: relative; z-index: 1; }
.pwk-btn--inverse { background: var(--pwk-plate-bg); color: var(--pwk-plate-text); }
.pwk-btn--inverse::before { background: #33332e; }

/* Form */
.pwk-note__head { margin-bottom: 28px; }
.pwk-note-form { display: grid; gap: 18px; }
.pwk-note-form__slot { display: grid; gap: 6px; }
.pwk-note-form__tag { font-size: 0.95rem; font-weight: 600; color: var(--pwk-plate-text); }
.pwk-note-form__line, .pwk-note-form__area {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--pwk-text);
  background: var(--pwk-bg); border: 1px solid var(--pwk-line);
  border-radius: var(--pwk-radius-card); padding: 13px 16px;
}
.pwk-note-form__line:focus, .pwk-note-form__area:focus {
  outline: 3px solid var(--pwk-accent); outline-offset: 1px;
}
.pwk-note-form__line::placeholder, .pwk-note-form__area::placeholder { color: #6B6B63; }
.pwk-note-form__area { resize: vertical; min-height: 120px; }
.pwk-note-form__slot.is-invalid .pwk-note-form__line,
.pwk-note-form__slot.is-invalid .pwk-note-form__area { border-color: #B3401F; box-shadow: inset 0 0 0 1px #B3401F; }
.pwk-note-form__slot.is-invalid .pwk-note-form__tag { color: #F3B8A5; }
.pwk-note-form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--pwk-plate-text); max-width: 68ch; }
.pwk-note-form__agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pwk-accent); flex: none; }
.pwk-note-form__agree label { cursor: pointer; }
.pwk-note-form__agree a { color: #C9E3B4; }
.pwk-note-form__hint { font-size: 14px; color: #C9C9C2; margin: 0; }
.pwk-note-form__send { justify-self: start; }
.pwk-note-form.is-waiting .pwk-note-form__send { opacity: 0.6; pointer-events: none; }

/* Contacts + misc pages */
.pwk-addr { font-style: normal; }
.pwk-contacts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pwk-page-head { text-align: center; padding-top: clamp(40px, 6vw, 72px); }
.pwk-page-head p { margin-inline: auto; color: var(--pwk-muted); max-width: 60ch; font-size: 1.1rem; }
.pwk-toc { background: var(--pwk-surface); border-radius: var(--pwk-radius-card); padding: 24px 28px; box-shadow: var(--pwk-shadow); }
.pwk-toc a { text-decoration: none; }
.pwk-toc ol { margin: 0; padding-left: 1.3em; }
.pwk-ok { text-align: center; }
.pwk-ok__sign {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--pwk-accent); color: var(--pwk-accent-text);
  font-size: 2rem; font-weight: 750;
}

/* Footer */
.pwk-base { background: var(--pwk-surface); border-top: 4px solid var(--pwk-accent); padding-block: clamp(40px, 6vw, 72px); }
.pwk-base__inner { display: grid; grid-template-columns: 1fr; gap: 32px; }
.pwk-base__col address { font-style: normal; }
.pwk-base__col address p { margin-bottom: 8px; }
.pwk-base__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pwk-base__col ul span { color: var(--pwk-muted); }
.pwk-base__note { color: var(--pwk-muted); font-size: 0.95rem; }
.pwk-base__legal { font-size: 0.95rem; margin-bottom: 0; }

/* Reveal */
html.is-scripted .pwk-rise { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.is-scripted .pwk-rise.is-risen,
html.is-scripted .is-risen .pwk-rise { opacity: 1; transform: translateY(0); }

/* Breakpoints */
@media (min-width: 480px) {
  .pwk-shots { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .pwk-split__body { grid-template-columns: repeat(2, 1fr); }
  .pwk-note-form { grid-template-columns: repeat(2, 1fr); }
  .pwk-note-form__slot--full, .pwk-note-form__agree, .pwk-note-form__hint, .pwk-note-form__send { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .pwk-split { grid-template-columns: minmax(260px, 1fr) 2fr; }
  .pwk-split__aside { position: sticky; top: 100px; }
  .pwk-split__body.pwk-tile { grid-template-columns: 1fr; }
  .pwk-base__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .pwk-top__bars { display: flex; }
  .pwk-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pwk-surface); border-bottom: 1px solid var(--pwk-line);
    padding: 8px var(--pwk-pad) 16px;
  }
  .pwk-menu--shown { display: block; }
  .pwk-menu__list { flex-direction: column; gap: 2px; }
  .pwk-menu__point { display: block; }
}
@media (min-width: 1024px) {
  .pwk-shots { grid-template-columns: repeat(3, 1fr); }
  .pwk-base__inner { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .pwk-part { padding-block: 128px; }
}

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

/* Mobile tuning */
@media (max-width: 639px) {
  .pwk-hero__title { font-size: clamp(2rem, 8vw, 2.25rem); line-height: 1.15; margin-bottom: 24px; }
  .pwk-hero__lead { font-size: 1rem; }
  .pwk-hero__cta { margin: 28px auto 40px; }
  .pwk-split__intro { margin-bottom: 32px; }
  .pwk-split__body { gap: 16px; }
  .pwk-tile { padding: 24px; }
  .pwk-steps__row { grid-template-columns: 56px 1fr; column-gap: 20px; padding: 24px; }
}
@media (min-width: 640px) {
  .pwk-split__intro { margin-bottom: 0; }
}

@media (min-width: 768px) {
  .pwk-top__inner { flex-wrap: wrap; }
  .pwk-menu { order: 1; }
  .pwk-top__sign { order: 2; margin-left: auto; }
}

/* Scroll reveal fallback */
@keyframes pwk-come {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  html.is-scripted .pwk-rise {
    animation: pwk-come 1s linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 25%;
  }
}
