/* Shared UI: two action styles, independent of utility CSS generation. */
:root {
  --ui-radius: 8px; --ui-green: #1f4d38; --ui-border: #d9dfda;
  --font-display: 'Manrope'; --font-geist-sans: 'Geist';
}
.telegram-icon { display: inline-block; flex: 0 0 auto; color: #171717; fill: none; stroke-width: 1.8; vertical-align: middle; }
footer .telegram-icon, .bg-brand .telegram-icon { color: #fff; }
body { font-family: 'Manrope', sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:where(button, a.inline-flex[class*="h-"], #floating-panel a, .ui-button) {
  box-sizing: border-box; align-items: center; justify-content: center; gap: 8px;
  height: auto; min-height: 44px; max-width: 100%; padding: 11px 20px;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
  background: #fff; color: #1f4d38; font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em;
  text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere;
  box-shadow: none; vertical-align: middle;
  transition: background-color .18s, border-color .18s, color .18s;
}
button:not(.hidden), a.inline-flex[class*="h-"], #floating-panel a, .ui-button { display: inline-flex; }
:is(button, a.inline-flex[class*="h-"], #floating-panel a):hover { background: #f2f6f3; border-color: #96af9f; }
:is(button.bg-brand, a.inline-flex.bg-brand, #floating-panel a.bg-brand, .ui-button--primary) {
  background: var(--ui-green); color: #fff; border-color: var(--ui-green);
}
:is(button.bg-brand, a.inline-flex.bg-brand, #floating-panel a.bg-brand, .ui-button--primary):hover {
  background: #143a28; color: #fff; border-color: #143a28;
}
:is(button, a.inline-flex[class*="h-"], #floating-panel a):focus-visible { outline: 3px solid #9dc4ae; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
:is(button, a.inline-flex[class*="h-"], #floating-panel a) > svg { flex: 0 0 auto; align-self: center; }
:is(button, a.inline-flex[class*="h-"]) > span { min-width: 0; }
/* Navigation has the same spacing but stays visually light. */
#site-header nav button { background: transparent; border-color: transparent; padding: 9px 10px; color: #343e38; }
#site-header nav button:hover { background: #f2f6f3; }
#site-header [data-open-app-modal] { white-space: nowrap; flex-shrink: 0; }
#site-header nav { gap: 0; }
#site-header nav > a { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
#site-header a[href^="tel:"] { white-space: nowrap; }
#mobile-menu-toggle, button.modal-close { width: 40px; min-height: 40px; padding: 9px; }
#mobile-menu { position: absolute; inset-inline: 0; top: 100%; }
@media (min-width: 1024px) { #mobile-menu-toggle { display: none; } }
button[data-blog-filter], button[data-case-filter] { padding: 9px 15px; white-space: nowrap; }
.lead-form { display: grid; gap: 16px; font-family: 'Manrope', sans-serif; }
.lead-form > * { min-width: 0; margin: 0; }
.lead-form .submit-btn { width: 100%; min-height: 48px; }
.lead-form input:not([type="checkbox"]):not(.hp-field), .lead-form textarea {
  border-radius: var(--ui-radius); border-color: var(--ui-border); font-size: 14px; line-height: 1.5;
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 2px solid #9dc4ae; outline-offset: 2px; }
.lead-form__field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead-form__field > * { margin: 0; }
.lead-form__label { display: block; color: var(--foreground); font-size: 12px; font-weight: 600; line-height: 1.5; }
/* Error text fits the regular field gap without adding a blank row or moving controls. */
.lead-form .phone-error, .lead-form .phone-error-msg {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  display: block; min-height: 14px; font-size: 11px; line-height: 14px;
}
.lead-form .phone-error.hidden, .lead-form .phone-error-msg.hidden { visibility: hidden; }
.lead-form .phone-error > p { margin: 0; }
.lead-form__consent > input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.lead-form__privacy { align-items: flex-start; text-align: left; line-height: 1.5; }
.lead-form__privacy > svg { flex: 0 0 14px; margin-top: 1px; }
.lead-form__privacy > span { min-width: 0; }
#quiz button.hidden { display: none; }
#quiz .flex:has(> #quiz-prev.hidden):has(> #quiz-next.hidden) { display: none; }
#quiz-lead h3 { color: var(--brand); font-size: 24px; font-weight: 700; line-height: 1.25; }
html.modal-open { overflow: hidden; }
.modal-panel { position: relative; border-radius: 16px; max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
#quiz { overflow-anchor: none; }
.modal-form-heading { padding: 24px 64px 0 24px; }
.modal-form { padding: 16px 24px 24px; }
#app-modal-title { color: var(--brand); font-size: 26px; font-weight: 700; line-height: 1.2; }
#app-modal-desc { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.lead-magnet-heading { padding: 24px; }
.lead-magnet-heading > .flex { align-items: flex-start; }
.lead-magnet-heading > .flex > span { flex: 0 0 40px; height: 40px; }
.lead-magnet-heading > .flex > div { min-width: 0; }
#lm-title { padding-right: 32px; font-weight: 700; }
@media (max-width: 639px) {
  .modal-form-heading { padding: 24px 64px 0 20px; }
  .modal-form { padding-left: 20px; padding-right: 20px; }
  .lead-magnet-heading { padding: 24px 20px; }
  #app-modal-title { font-size: 24px; }
}
#floating-panel { right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); }
#floating-panel a { width: 44px; min-height: 44px; padding: 10px; }
#floating-panel #open-lead-magnet { padding: 10px 16px; }
body:has(#cookie-banner:not(.hidden)) #floating-panel { visibility: hidden; pointer-events: none; }
#cookie-banner.cookie-notice {
  position: fixed; z-index: 80; top: auto; left: 24px; right: 24px;
  bottom: max(20px, env(safe-area-inset-bottom)); width: auto; max-width: 960px; margin: 0 auto;
  padding: 20px 24px; border: 1px solid #dce5de; border-radius: 16px;
  background: #fff; color: #1a261f;
  box-shadow: 0 12px 48px #14302420, 0 2px 6px #1430240a;
  align-items: center; gap: 18px;
}
#cookie-banner.cookie-notice:not(.hidden) { display: flex; }
#cookie-banner.cookie-notice.hidden { display: none; }
.cookie-notice__icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; background: #edf3ef; color: #1f4d38; }
.cookie-notice__copy { flex: 1; min-width: 0; }
.cookie-notice__copy p { margin: 0; font-size: 13px; line-height: 1.65; color: #626c65; }
.cookie-notice__copy #cookie-title { margin-bottom: 4px; color: #233c2c; font-size: 15px; font-weight: 700; }
.cookie-notice__copy a { color: #1f4d38; text-decoration: underline; text-decoration-color: #a6bbae; text-underline-offset: 3px; }
#cookie-banner #cookie-accept { flex: 0 0 auto; min-width: 112px; }
@media (max-width: 639px) {
  #cookie-banner.cookie-notice { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 18px; gap: 12px; flex-wrap: wrap; }
  .cookie-notice__icon { flex-basis: 36px; height: 36px; align-self: flex-start; }
  .cookie-notice__copy { flex-basis: calc(100% - 48px); }
  #cookie-banner #cookie-accept { width: 100%; }
  #floating-panel { right: 12px; bottom: 12px; }
  #floating-panel > div { flex-direction: row; }
  #floating-panel #open-lead-magnet { width: 44px; min-height: 44px; padding: 10px; }
  #floating-panel #open-lead-magnet > span { display: none; }
  #site-header > div:first-child { gap: 8px; }
  #site-header > div:first-child > a > span:last-child > span:last-child { font-size: 9px; letter-spacing: 0; }
  #site-header > div:first-child > a { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { button, a { transition: none !important; } }
