.margo-cookie-banner {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #f8f5ee;
  background: rgba(19, 39, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.45;
}

.margo-cookie-banner[hidden] {
  display: none;
}

.margo-cookie-copy {
  margin: 0;
  font-size: 13px;
}

.margo-cookie-copy strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
}

.margo-cookie-copy a,
.margo-legal-links a,
.margo-form-consent a {
  color: #66c2bb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.margo-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.margo-cookie-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #f8f5ee;
  background: transparent;
  cursor: pointer;
  font: 600 12px/1 Montserrat, Arial, sans-serif;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.margo-cookie-button:hover,
.margo-cookie-button:focus-visible {
  border-color: #66c2bb;
  outline: none;
}

.margo-cookie-button--primary {
  color: #102f30;
  background: #78d2ca;
  border-color: #78d2ca;
}

.margo-cookie-button--primary:hover,
.margo-cookie-button--primary:focus-visible {
  background: #a1e5df;
  border-color: #a1e5df;
}

.margo-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.margo-form-consent {
  line-height: 1.45;
}

.margo-form-consent a {
  color: inherit;
}

.margo-lead-section {
  padding: 88px 24px;
  color: #12254a;
  background: #f4f7fb;
  font-family: Montserrat, Arial, sans-serif;
}

.margo-lead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.margo-lead-copy {
  max-width: 650px;
  padding-top: 12px;
}

.margo-lead-kicker {
  margin: 0 0 24px;
  color: #258c84;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.margo-lead-copy h2 {
  margin: 0;
  color: #12254a;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.17;
}

.margo-lead-description {
  max-width: 560px;
  margin: 28px 0 0;
  color: #69758b;
  font-size: 17px;
  line-height: 1.7;
}

.margo-lead-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 36px;
}

.margo-lead-contacts a {
  text-decoration: none;
}

.margo-lead-phone-link {
  color: #12254a;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.margo-lead-email-link {
  color: #69758b;
  font-size: 17px;
  font-weight: 500;
}

.margo-lead-phone-link:hover,
.margo-lead-email-link:hover {
  color: #258c84;
}

.margo-lead-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: #269ed3;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.margo-lead-telegram::before {
  content: "➤";
  margin-right: 9px;
  font-size: 16px;
  transform: rotate(-24deg);
}

.margo-lead-telegram:hover,
.margo-lead-telegram:focus-visible {
  background: #168cc0;
  outline: none;
  transform: translateY(-1px);
}

.margo-lead-form {
  padding: clamp(28px, 3vw, 42px);
  color: #12254a;
  background: #fff;
  border: 1px solid #d8e0ee;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(18, 37, 74, 0.08);
}

.margo-lead-field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
  color: #12254a;
  font-size: 14px;
  font-weight: 700;
}

.margo-lead-field b {
  color: #ef4f4f;
}

.margo-lead-field small {
  color: #8b96aa;
  font-size: inherit;
  font-weight: 600;
}

.margo-lead-field input,
.margo-lead-field select,
.margo-lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9c7df;
  border-radius: 11px;
  color: #12254a;
  background: #fff;
  font: 500 15px/1.35 Montserrat, Arial, sans-serif;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.margo-lead-field input,
.margo-lead-field select {
  min-height: 54px;
  padding: 0 15px;
}

.margo-lead-field textarea {
  min-height: 98px;
  padding: 14px 15px;
  resize: vertical;
}

.margo-lead-field input::placeholder,
.margo-lead-field textarea::placeholder {
  color: #a8b1c1;
}

.margo-lead-field select:invalid {
  color: #7e8aa0;
}

.margo-lead-field input:focus,
.margo-lead-field select:focus,
.margo-lead-field textarea:focus {
  border-color: #2a9188;
  box-shadow: 0 0 0 3px rgba(42, 145, 136, 0.16);
}

.margo-lead-consent-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 5px 0 18px;
  color: #536678;
  font-size: 11px;
  line-height: 1.45;
}

.margo-lead-consent-label input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #2a9188;
}

.margo-lead-consent-label a {
  color: #286d78;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.margo-lead-submit {
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #172e57;
  cursor: pointer;
  font: 700 14px/1 Montserrat, Arial, sans-serif;
  transition: background-color 160ms ease, transform 160ms ease;
}

.margo-lead-submit:hover,
.margo-lead-submit:focus-visible {
  background: #244677;
  outline: none;
  transform: translateY(-1px);
}

.margo-lead-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.margo-lead-status {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

.margo-lead-status:empty {
  display: none;
}

.margo-lead-status.text-red-500 {
  color: #c43b3b;
}

.margo-lead-status.text-teal-700 {
  color: #25766f;
}

@media (max-width: 720px) {
  .margo-lead-section {
    padding: 58px 16px;
  }

  .margo-lead-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .margo-lead-copy h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .margo-lead-description {
    margin-top: 20px;
    font-size: 14px;
  }

  .margo-lead-contacts {
    gap: 17px;
    margin-top: 26px;
  }

  .margo-lead-phone-link {
    font-size: 28px;
  }

  .margo-lead-form {
    padding: 22px;
    border-radius: 20px;
  }

  .margo-cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
  }

  .margo-cookie-actions {
    justify-content: stretch;
  }

  .margo-cookie-button {
    flex: 1 1 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .margo-cookie-button,
  .margo-lead-field input,
  .margo-lead-field select,
  .margo-lead-field textarea,
  .margo-lead-submit,
  .margo-lead-telegram {
    transition: none;
  }
}
