:root {
  color-scheme: light;
  --background: #f4f7f4;
  --surface: #fff;
  --text: #182f27;
  --muted: #64766d;
  --green: #087f5b;
  --green-hover: #066b4c;
  --border: #dce6df;
  --error: #b33434;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #369e78; outline-offset: 4px; }
[hidden] { display: none !important; }
/* Keep the form anchored to the top, independent of keyboard/viewport height. */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.messenger { width: 100%; max-width: 438px; padding: 26px 28px 22px; background: var(--surface); border: 1px solid #e5ece7; border-radius: 26px; text-align: center; box-shadow: 0 4px 8px #142b2003, 0 20px 70px -20px #294d3815; }
.whatsapp-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; background: #e9f7ee; border-radius: calc(72px * 28 / 88); color: var(--green); }
.whatsapp-mark img { display: block; width: calc(72px * 52 / 88); height: auto; }
h1 { margin: 0; font-size: clamp(26px, 6.3vw, 28px); font-weight: 650; letter-spacing: -1.1px; line-height: 1.25; }
.title-dot { color: var(--green); }
.intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 8px 0 0; letter-spacing: -.1px; }
form { text-align: left; margin-top: 20px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.phone-field { display: flex; align-items: center; min-height: 54px; padding-left: 17px; padding-right: 4px; border: 1.5px solid var(--border); border-radius: 14px; background: #fcfdfc; transition: border-color 160ms, box-shadow 160ms; }
.phone-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #087f5b12; background: #fff; }
.phone-field.has-error { border-color: var(--error); }
.phone-icon { flex: 0 0 18px; color: #7a8c82; margin-right: 13px; }
input { width: 100%; min-width: 0; height: 50px; padding: 0; border: 0; background: transparent; color: var(--text); outline: none; font-size: 19px; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
input::placeholder { color: #64766d; opacity: 1; font-size: 17px; }
.field-action { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.field-action:hover { background: #edf3ef; }
.field-action:disabled { cursor: progress; opacity: .55; }
.field-hint { font-size: 12px; line-height: 1.5; margin: 7px 0 16px; color: var(--muted); }
.send-button { width: 100%; min-height: 52px; display: flex; gap: 12px; align-items: center; justify-content: center; border: 0; border-radius: 14px; padding: 13px 20px; background: var(--green); color: #fff; font-size: 15px; line-height: 1.5; font-weight: 600; box-shadow: 0 4px 9px #087f5b14; transition: background 160ms, transform 160ms; }
.send-button:hover { background: var(--green-hover); }
.send-button:active { transform: translateY(1px); }
.send-button:disabled { cursor: default; background: #8d9d95; box-shadow: none; }
.feedback { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--green); }
.feedback:empty { margin: 0; }
.feedback.is-error { color: var(--error); }
.page-footer { text-align: center; margin-top: 10px; }
.install-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border: 0; border-radius: 12px; color: #4d6658; background: transparent; font-size: 13px; font-weight: 550; transition: background 160ms; }
.install-button:hover { background: #e7eee7; }
.independent-note { font-size: 11px; margin: 4px 0 0; color: #607267; }
dialog { width: min(370px, calc(100% - 36px)); border: 1px solid var(--border); border-radius: 24px; padding: 34px 26px 26px; background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 20px 100px #0c251b26; }
dialog::backdrop { background: #18332655; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 12px; color: var(--muted); }
.dialog-close:hover { background: #edf3ef; }
.install-icon { display: block; margin: 4px auto 21px; border-radius: 16px; }
dialog h2 { font-size: 24px; letter-spacing: -.7px; margin: 0 0 12px; }
dialog p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 24px; }
.noscript-note { text-align: center; padding: 16px; color: var(--error); }
@media (max-width: 390px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .messenger { padding: 24px 22px 20px; }
  .phone-field { padding-left: 13px; }
  .phone-icon { margin-right: 9px; }
  input { font-size: 17px; }
  input::placeholder { font-size: 15px; }
}
@media (display-mode: standalone) { .install-button { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
