:root {
  --ren-green: #0a5c4a;
  --ren-green-strong: #07483b;
  --ren-green-soft: #e8f4ef;
  --ren-ink: #14221e;
  --ren-muted: #65736e;
  --ren-line: #dfe8e4;
  --ren-canvas: #f4f7f6;
  --ren-white: #ffffff;
  --ren-copper: #c98a52;
  --ren-danger: #b6463f;
  --ren-warning: #9a641e;
  --ren-blue: #17324d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 50px rgba(20, 34, 30, 0.08);
  --container: min(1180px, calc(100vw - 40px));
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", "Be Vietnam Pro", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ren-ink); background: var(--ren-white); font-family: var(--font-body); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--ren-green); border-radius: 11px 4px 11px 4px; font-size: 20px; }
.brand-copy { display: grid; line-height: 1; font-size: 18px; }
.brand-copy small { margin-top: 5px; color: var(--ren-muted); font-family: var(--font-body); font-size: 8px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-logo { display: block; width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.brand.logo-horizontal .brand-logo { width: 110px; height: 38px; }
.brand.logo-stacked .brand-logo { width: 38px; height: 38px; }
.powered { color: var(--ren-muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }

.button { min-height: 44px; padding: 0 18px; border: 1px solid var(--ren-line); border-radius: var(--radius-sm); color: var(--ren-ink); background: white; font-size: 13px; font-weight: 650; transition: 160ms ease; }
.button:hover { border-color: #b9ccc4; transform: translateY(-1px); }
.button.primary { color: white; border-color: var(--ren-green); background: var(--ren-green); }
.button.primary:hover { background: var(--ren-green-strong); }
.button.secondary { color: var(--ren-green); border-color: #b8d6ca; background: var(--ren-green-soft); }
.button.text { min-height: auto; padding: 0; border: 0; color: var(--ren-green); background: transparent; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(10, 92, 74, 0.2); outline-offset: 2px; }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head h2 { max-width: 700px; margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.045em; }
.section-head p { max-width: 560px; margin: 12px 0 0; color: var(--ren-muted); line-height: 1.7; }
.section-label { margin: 0 0 12px; color: var(--ren-green); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: min(390px, calc(100vw - 48px)); padding: 14px 18px; color: white; background: var(--ren-ink); border-radius: 10px; box-shadow: var(--shadow-soft); opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--ren-danger); }

dialog { width: min(500px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 100px rgba(20, 34, 30, 0.25); }
dialog::backdrop { background: rgba(20, 34, 30, 0.58); backdrop-filter: blur(3px); }
.dialog-form { position: relative; display: grid; gap: 16px; padding: 32px; }
.dialog-form h2 { margin: 0; font: 800 28px/1.15 var(--font-display); letter-spacing: -0.035em; }
.dialog-form > p { margin: -6px 0 4px; color: var(--ren-muted); line-height: 1.6; }
.dialog-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 650; }
.dialog-form input, .dialog-form textarea, .dialog-form select { width: 100%; padding: 12px 13px; border: 1px solid var(--ren-line); border-radius: 9px; color: var(--ren-ink); background: white; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--ren-muted); background: var(--ren-canvas); font-size: 20px; }
.legal-note { color: var(--ren-muted); font-size: 11px; line-height: 1.6; }

.loading { min-height: 220px; display: grid; place-items: center; color: var(--ren-muted); }
.loading::before { content: ""; width: 26px; height: 26px; border: 3px solid var(--ren-line); border-top-color: var(--ren-green); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); }
  .section { padding: 68px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 24px; }
  .section-head h2 { font-size: 32px; }
  .button { min-height: 42px; }
  .dialog-form { padding: 26px 20px 22px; }
}
