/* Root */
:root {
  --cp-bg: #F1F4EE;
  --cp-surface: #FBFCF9;
  --cp-text: #1C2A20;
  --cp-muted: #4E5E52;
  --cp-accent: #2F6B45;
  --cp-accent-dark: #255537;
  --cp-accent-text: #FBFCF9;
  --cp-plate-bg: #1C2A20;
  --cp-plate-text: #F1F4EE;
  --cp-line: #C9D4C6;
  --cp-radius-card: 20px;
  --cp-radius-btn: 999px;
  --cp-pad-side: clamp(16px, 4vw, 40px);
  --cp-gap: clamp(64px, 9vw, 128px);
  --cp-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --cp-font-head: Georgia, 'Times New Roman', serif;
  --cp-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: var(--cp-font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--cp-font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); }
p { margin: 0 0 16px; max-width: 68ch; }
a { color: var(--cp-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cp-accent-dark); }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 2px; border-radius: 4px; }
.cp-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--cp-plate-bg); color: var(--cp-plate-text);
  padding: 10px 18px; border-radius: var(--cp-radius-btn);
}
.cp-skip:focus { left: 8px; color: var(--cp-plate-text); }

/* Shell & bands */
.cp-shell {
  max-width: 1200px; margin: 0 auto;
  padding-left: var(--cp-pad-side); padding-right: var(--cp-pad-side);
}
.cp-band { padding-block: 96px; position: relative; overflow: hidden; }
.cp-band__intro { color: var(--cp-muted); font-size: 1.05rem; max-width: 62ch; margin-bottom: 40px; }

/* Background layer */
.cp-band::before, .cp-band::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; opacity: .16;
  background: var(--cp-accent);
}
.cp-band::before {
  width: 420px; height: 420px; left: -190px; top: 40px;
}
.cp-band::after {
  width: 560px; height: 560px; right: -240px; bottom: -180px;
  border-radius: 999px 999px 0 0;
  background: var(--cp-muted);
}
.cp-band > .cp-shell, .cp-band > .cp-plate { position: relative; z-index: 1; }

/* Header */
.cp-top {
  background: var(--cp-surface);
  border-bottom: 1px solid var(--cp-line);
  position: sticky; top: 0; z-index: 50;
}
.cp-top__row {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px; justify-content: flex-start;
}
.cp-top__brand {
  font-family: var(--cp-font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--cp-text); text-decoration: none; white-space: nowrap; margin-left: auto;
}
.cp-top__menu { margin-left: 16px; }
.cp-top__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.cp-top__link {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  color: var(--cp-text); text-decoration: none; font-size: 1rem;
  background-image: linear-gradient(var(--cp-accent), var(--cp-accent));
  background-size: 100% 0%; background-position: bottom; background-repeat: no-repeat;
  transition: background-size .25s ease;
}
.cp-top__link:hover, .cp-top__link:focus-visible {
  background-size: 100% 100%; color: var(--cp-accent-text);
}
.cp-top__link[aria-current="page"] { color: var(--cp-accent-dark); font-weight: 600; }
.cp-top__rule { height: 5px; background: var(--cp-accent); width: 100%; }
.cp-top__trigger {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--cp-line); border-radius: var(--cp-radius-btn);
  color: var(--cp-text); font: inherit; font-size: 1rem;
  padding: 10px 18px; min-height: 48px; cursor: pointer;
}
.cp-top__trigger-line, .cp-top__trigger-line::before, .cp-top__trigger-line::after {
  width: 18px; height: 2px; background: var(--cp-text); content: ""; display: block; border-radius: 2px;
}
.cp-top__trigger-line::before { transform: translateY(-6px); }
.cp-top__trigger-line::after { transform: translateY(4px); }

/* Hero */
.cp-hero { padding-top: clamp(48px, 6vw, 88px); }
.cp-hero__frame { margin-bottom: 40px; }
.cp-hero__frame img {
  width: 100%; max-height: 600px; object-fit: cover; object-position: center;
  border-radius: var(--cp-radius-card); box-shadow: var(--cp-shadow);
}
.cp-hero__title { max-width: 22ch; margin-bottom: 24px; }
.cp-hero__cols { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; align-items: start; }
.cp-hero__text { color: var(--cp-muted); font-size: 17px; line-height: 1.7; margin-bottom: 0; }
.cp-hero__lead > .cp-btn { margin-top: 28px; }

/* Typography accent */
.cp-accent {
  font-size: clamp(2.1rem, 4vw + 0.9rem, 3.6rem);
  max-width: 24ch; color: var(--cp-text);
}
.cp-accent::first-letter { font-size: inherit; color: inherit; }

/* Buttons */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px;
  background: var(--cp-accent); color: var(--cp-accent-text);
  border: 2px solid transparent; border-radius: var(--cp-radius-btn);
  font: inherit; font-weight: 600; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.cp-btn:hover { background: var(--cp-accent-dark); transform: translateY(-1px); color: var(--cp-accent-text); }
.cp-btn:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }
.cp-btn:active { transform: translateY(0); background: var(--cp-accent); }
.cp-btn--quiet { background: transparent; color: var(--cp-accent-dark); border-color: var(--cp-accent); }
.cp-btn--quiet:hover { background: var(--cp-accent); color: var(--cp-accent-text); }

/* Topics accordion */
.cp-topics { max-width: 720px; }
.cp-topics__row { border-bottom: 1px solid var(--cp-line); }
.cp-topics__name { margin: 0; }
.cp-topics__trigger {
  width: 100%; text-align: left; background: none; border: 0;
  font-family: var(--cp-font-head); font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem);
  font-weight: 700; color: var(--cp-text); padding: 22px 8px; cursor: pointer;
  transition: color .2s ease, padding-left .2s ease;
}
.cp-topics__trigger:hover { color: var(--cp-accent-dark); padding-left: 18px; }
.cp-topics__trigger { padding-top: 20px; padding-bottom: 20px; }
.cp-topics__trigger[aria-expanded="true"] { color: var(--cp-accent-dark); }
.cp-topics__panel { padding: 0 8px 28px; color: var(--cp-muted); max-width: 68ch; }

/* Plate (contrast block) */
.cp-plate {
  background: var(--cp-plate-bg); color: var(--cp-plate-text);
  border-radius: calc(var(--cp-radius-card) + 8px);
  padding-block: 64px; margin-top: 96px;
}
.cp-plate::before, .cp-plate::after { display: none; }
.cp-plate__title { color: var(--cp-plate-text); max-width: 26ch; }
.cp-plate__intro { color: #C4D0C4; max-width: 58ch; margin-bottom: 32px; }
.cp-plate a { color: #9FD4B2; }

/* Form */
.cp-form { display: grid; gap: 20px; max-width: 560px; }
.cp-form__field { display: grid; gap: 6px; }
.cp-form__label { font-weight: 600; font-size: 1rem; }
.cp-form__input {
  font: inherit; color: var(--cp-text); background: var(--cp-surface);
  border: 2px solid var(--cp-line); border-radius: 14px;
  padding: 12px 16px; min-height: 48px; width: 100%;
}
.cp-form__input::placeholder { color: var(--cp-muted); }
.cp-form__input:focus-visible { outline: 3px solid #9FD4B2; outline-offset: 2px; border-color: #9FD4B2; }
.cp-form__area { min-height: 130px; resize: vertical; }
.cp-form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.cp-form__check input { width: 20px; height: 20px; flex: none; margin-top: 3px; margin-right: 10px; accent-color: #2F6B45; }
.cp-form__check label { max-width: 60ch; }
.cp-form__note { font-size: .92rem; color: #C4D0C4; margin: 0; }
.cp-form .cp-btn { justify-self: start; }
.cp-form .cp-btn:disabled, .cp-form .is-busy { opacity: .7; cursor: wait; }
.cp-form__err { color: #FFD9C9; font-size: .92rem; margin: -12px 0 0; }
.cp-form__field:has(.cp-form__err) .cp-form__input { border-color: #FFD9C9; }

/* Cards */
.cp-steps { display: grid; gap: 24px; grid-template-columns: 1fr; }
.cp-card {
  background: var(--cp-surface); border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card); padding: 28px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cp-card:hover, .cp-card:focus-within { border-color: var(--cp-accent); box-shadow: var(--cp-shadow); }
.cp-card p { color: var(--cp-muted); margin: 0; }

/* Gallery */
.cp-switch { display: inline-flex; gap: 6px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: var(--cp-radius-btn); padding: 5px; margin-bottom: 16px; }
.cp-switch__tab {
  border: 0; background: transparent; border-radius: var(--cp-radius-btn);
  font: inherit; font-size: .98rem; color: var(--cp-text);
  padding: 8px 20px; min-height: 40px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.cp-switch__tab:hover { background: #E3EADF; }
.cp-switch__tab[aria-selected="true"] { background: var(--cp-accent); color: var(--cp-accent-text); }
.cp-switch__panel { color: var(--cp-muted); max-width: 64ch; margin-bottom: 32px; }
.cp-gallery { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.cp-gallery__item { margin: 0; }
.cp-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cp-radius-card); }
.cp-gallery__item--mat { background: var(--cp-surface); border: 1px solid var(--cp-line); padding: 18px; border-radius: calc(var(--cp-radius-card) + 6px); }
.cp-gallery__item--mat img { border-radius: 12px; }

/* FAQ */
.cp-faq__item {
  background: var(--cp-surface); border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card); padding: 6px 24px; margin-bottom: 14px;
  transition: border-color .25s ease;
}
.cp-faq__item[open] { border-color: var(--cp-accent); }
.cp-faq__q {
  font-family: var(--cp-font-head); font-size: 1.2rem; font-weight: 700;
  padding: 16px 0; cursor: pointer; list-style: none;
}
.cp-faq__q::-webkit-details-marker { display: none; }
.cp-faq__q::after { content: "+"; float: right; color: var(--cp-accent); font-size: 1.5rem; line-height: 1; }
.cp-faq__item[open] .cp-faq__q::after { content: "–"; }
.cp-faq__item p { color: var(--cp-muted); padding-bottom: 18px; }

/* Prose */
.cp-prose { max-width: 760px; }
.cp-prose h2 { margin-top: 48px; }
.cp-prose h3 { margin-top: 32px; }
.cp-prose ul, .cp-prose ol { color: var(--cp-muted); margin-bottom: 20px; }
.cp-prose table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 24px 0; }
.cp-prose th, .cp-prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--cp-line); }
.cp-prose th { color: var(--cp-text); }
.cp-prose a { word-break: break-word; }

/* Page head (inner pages) */
.cp-page-head { padding-top: clamp(40px, 5vw, 72px); }
.cp-page-head h1 { max-width: 26ch; }
.cp-page-head p { color: var(--cp-muted); font-size: 1.1rem; max-width: 60ch; }

/* Contacts */
.cp-contact { display: grid; gap: 20px; grid-template-columns: 1fr; }
.cp-contact__card {
  background: var(--cp-surface); border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card); padding: 28px;
}
.cp-contact__card p, .cp-contact__card ul { margin: 0; }
.cp-contact__card ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--cp-muted); }

/* Confirm & 404 */
.cp-confirm, .cp-error { text-align: left; }
.cp-confirm h1, .cp-error h1 { max-width: 26ch; }
.cp-confirm p, .cp-error p { color: var(--cp-muted); max-width: 60ch; }
.cp-confirm__links, .cp-error__links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* Mobile sticky bar */
.cp-quick { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--cp-surface); border-top: 1px solid var(--cp-line); }
.cp-quick__go { width: 100%; }

/* Footer */
.cp-bottom { background: var(--cp-surface); border-top: 1px solid var(--cp-line); padding-block: clamp(40px, 5vw, 64px) 24px; }
.cp-bottom__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.cp-bottom__lead { font-family: var(--cp-font-head); font-size: 1.15rem; color: var(--cp-text); max-width: 40ch; }
.cp-bottom__contacts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.cp-bottom__contacts span { color: var(--cp-muted); display: inline-block; min-width: 74px; }
.cp-bottom__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cp-bottom__links a { color: var(--cp-text); text-decoration: none; }
.cp-bottom__links a:hover { color: var(--cp-accent-dark); text-decoration: underline; }
.cp-bottom address { font-style: normal; color: var(--cp-muted); margin: 0; }
.cp-bottom address p { margin: 0 0 10px; max-width: 42ch; }
.cp-bottom__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--cp-line); }
.cp-bottom__copy { font-size: .92rem; color: var(--cp-muted); margin: 0; }

/* Reveal */
html.cp-js .cp-rise { opacity: 1; transform: translateY(24px); transition: transform .6s ease, opacity .6s ease; }
html.cp-js .cp-rise--in { transform: translateY(0); }
.cp-hero__lead { transform: translateY(0); }
html.cp-js .cp-hero__lead { animation: cp-hero-in .5s ease both; }
@keyframes cp-hero-in { from { transform: translateY(12px); } to { transform: translateY(0); } }

/* Breakpoints */
@media (max-width: 1023px) {
  .cp-top__trigger { display: inline-flex; }
  .cp-top__menu { display: none; margin: 0; }
  .cp-top__menu--open { display: block; }
  .cp-top__brand { order: 2; margin-left: 0; }
  .cp-top__trigger { order: 3; margin-left: auto; }
  .cp-top__menu--open {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cp-surface); border-bottom: 1px solid var(--cp-line);
    padding: 12px var(--cp-pad-side) 20px;
  }
  .cp-top__list { flex-direction: column; gap: 2px; }
  .cp-top__link { display: block; padding: 12px 14px; }
}
@media (max-width: 767px) {
  .cp-quick { display: block; }
  .cp-bottom { padding-bottom: 96px; }
}
@media (max-width: 639px) {
  .cp-gallery { grid-template-columns: 1fr; }
  .cp-hero__frame img { aspect-ratio: 4 / 3; }
}
@media (min-width: 640px) {
  .cp-steps { grid-template-columns: 1fr 1fr; }
  .cp-contact { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .cp-hero__cols { grid-template-columns: 1fr 1fr; }
  .cp-bottom__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
@media (min-width: 1024px) {
  .cp-steps { grid-template-columns: repeat(3, 1fr); }
  .cp-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .cp-shell { max-width: 1120px; }
}
@media (max-height: 600px) {
  .cp-top { position: static; }
  .cp-hero { padding-top: 40px; }
}

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

@media (max-width: 639px) {
  h1, h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.25; letter-spacing: -0.01em; hyphens: auto; }
  .cp-hero__frame img { aspect-ratio: 4 / 3; }
  .cp-hero__cols { margin-bottom: 28px; }
}
@media (min-width: 1024px) {
  .cp-hero__frame img { aspect-ratio: 16 / 9; }
}

.cp-switch {
  flex-wrap: wrap;
  row-gap: 4px;
  max-width: 100%;
}
