/* adxpert.ru — isolated CTA modal v1. No site-wide selectors. */
.adx-contact[hidden] { display: none !important; }
.adx-contact, .adx-contact * { box-sizing: border-box; }
.adx-contact {
  --adx-contact-ink: #f5faf7;
  --adx-contact-muted: #c7d5ce;
  --adx-contact-outline: rgba(163, 236, 174, .48);
  --adx-contact-lime: #c4f184;
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Inter, Arial, sans-serif;
  color: var(--adx-contact-ink);
  isolation: isolate;
}
.adx-contact__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 12, 10, .76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.adx-contact__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 456px);
  max-height: min(680px, calc(100dvh - 40px));
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(164, 244, 169, .69);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 87% 103%, rgba(65, 157, 104, .27), transparent 48%),
    linear-gradient(142deg, rgba(6, 39, 31, .96), rgba(5, 32, 27, .95) 65%, rgba(14, 71, 47, .95));
  box-shadow: 0 24px 100px rgba(0,0,0,.43), inset 0 0 46px rgba(31, 118, 75, .08);
  padding: 45px 37px 35px;
  color: var(--adx-contact-ink);
}
.adx-contact__close {
  position: absolute;
  top: 18px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #d9e8df;
  cursor: pointer;
}
.adx-contact__close:hover { background: rgba(255,255,255,.07); }
.adx-contact__close svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.adx-contact__title {
  font-size: clamp(24px, 2.9vw, 32px);
  line-height: 1.17;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 35px 13px 0;
  color: var(--adx-contact-ink);
}
.adx-contact__description {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 28px;
  color: #e1ece6;
}
.adx-contact__choices { display: grid; gap: 10px; }
.adx-contact__choice {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 15px 18px;
  text-decoration: none;
  border: 1px solid rgba(165, 232, 175, .35);
  border-radius: 14px;
  color: #f7fcf9;
  background: linear-gradient(112deg, rgba(75, 116, 93, .24), rgba(44, 91, 68, .19));
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.adx-contact__choice:hover {
  border-color: rgba(191, 241, 166, .83);
  background: linear-gradient(112deg, rgba(76, 138, 92, .35), rgba(57, 113, 79, .33));
  transform: translateY(-1px);
}
.adx-contact__brand { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 50%; }
.adx-contact__brand svg { width: 25px; height: 25px; }
.adx-contact__brand--telegram { background: linear-gradient(140deg, #38c7fa, #0678ca); color: white; }
.adx-contact__brand--max { background: linear-gradient(135deg, #157eff 15%, #7046e8 65%, #bb39e9); color: white; }
.adx-contact__brand--max svg { stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.adx-contact__choice-copy { min-width: 0; flex: 1; display: grid; gap: 5px; }
.adx-contact__choice-copy strong { font-size: 18px; line-height: 1.25; font-weight: 650; color: #f7fcf9; }
.adx-contact__choice-copy small { font-size: 13px; line-height: 1.3; color: #c7d5ce; }
.adx-contact__arrow { flex: 0 0 23px; width: 23px; height: 23px; stroke: #e8f7e9; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adx-contact :is(button, a):focus-visible { outline: 3px solid var(--adx-contact-lime); outline-offset: 3px; }
@media (max-width: 600px) {
  .adx-contact { align-items: flex-end; padding: 0; }
  .adx-contact__dialog {
    width: 100%;
    max-height: min(88dvh, 720px);
    padding: 34px 22px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .adx-contact__close { top: 15px; right: 15px; }
  .adx-contact__title { font-size: 26px; }
  .adx-contact__description { font-size: 14px; margin-bottom: 21px; }
  .adx-contact__choice { min-height: 75px; padding: 12px 14px; gap: 13px; }
  .adx-contact__brand { flex-basis: 44px; height: 44px; }
  .adx-contact__choice-copy strong { font-size: 17px; }
  .adx-contact__choice-copy small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .adx-contact__choice { transition: none; }
}

/* Native top-layer shell: preserve the approved inner panel and backdrop. */
.adx-contact:not([open]) { display:none; }
.adx-contact { margin:0; border:0; width:100%; height:100vh; height:100dvh; max-width:none; max-height:none; background:transparent; overflow:hidden; }
.adx-contact::backdrop { background:transparent; }
.adx-contact .adx-contact__dialog { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.adx-contact :is(button, a) { font-family:inherit; }
.adx-contact .adx-contact__choice { color:#f7fcf9; }
