/* GetPower: connection form as an iOS bottom sheet (phones only). */
.gp-sheet { display: none; }
@media (max-width: 900px) {
  html.gp-sheet-open body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
  html.gp-sheet-open .gp-cookie { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  .gp-sheet.is-mounted { display: block; position: fixed; inset: 0; z-index: 10010; }
  .gp-sheet-backdrop {
    position: absolute; inset: 0; background: rgba(0, 10, 22, .55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .4s ease;
  }
  .gp-sheet.is-open .gp-sheet-backdrop { opacity: 1; }
  .gp-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: calc(100vh - 44px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 44px - env(safe-area-inset-top, 0px));
    display: flex; flex-direction: column; outline: none;
    background: #00203e; color: #fff; border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
    transform: translate3d(0, 100%, 0); transition: transform .5s cubic-bezier(.32, .72, 0, 1);
    will-change: transform;
  }
  .gp-sheet.is-open .gp-sheet-panel { transform: none; }
  .gp-sheet.is-dragging .gp-sheet-panel { transition: none; }
  .gp-sheet-head { position: relative; flex: 0 0 auto; padding: 22px 56px 12px 20px; touch-action: none; }
  .gp-sheet-grabber { position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
  .gp-sheet-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
  .gp-sheet-close {
    position: absolute; top: 16px; right: 14px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center;
    -webkit-tap-highlight-color: transparent; transition: transform .3s cubic-bezier(.32, .72, 0, 1), background-color .2s ease;
  }
  .gp-sheet-close:active { transform: scale(.9); background: rgba(255, 255, 255, .2); }
  .gp-sheet-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .gp-sheet-body {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 4px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .gp-sheet-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
  .gp-sheet-sub:empty { display: none; }
  .gp-sheet-body .contact-form-wrapper { margin: 0 auto; max-width: none; width: 100%; padding: 16px; }
  /* Room for the floating field titles ("Тип заявки *") inside the frame. */
  .gp-sheet-body .contact-form-wrapper { padding-top: 24px; }
  .gp-sheet-body .contact-form-wrapper .form-container { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-sheet-panel, .gp-sheet-backdrop { transition: none !important; }
}
