:root{color-scheme:light;--nav:#102f4c;--paper:#f0f4f6;--ink:#172a38;--line:#d6e0e5;--active:#d9ecf4;font:15px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper)}
.grovia-mobile{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100vh;height:100dvh;min-width:0;overflow:hidden}
.mobile-header{background:var(--nav);color:#fff;display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top,0px) + 7px) max(env(safe-area-inset-right,0px),12px) 7px max(env(safe-area-inset-left,0px),12px)}
.mobile-header img{border-radius:8px;display:block}
.mobile-header strong{font-size:12px;color:#cfe2ed}
.mobile-header h1{font-size:17px;font-weight:650;margin:0}
#mobile-pages{min-width:0;min-height:0}
#mobile-pages iframe{display:block;width:100%;height:100%;border:0;background:var(--paper);min-width:0}
#mobile-pages iframe[hidden]{display:none}
.mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px max(env(safe-area-inset-right,0px),4px) calc(env(safe-area-inset-bottom,0px) + 4px) max(env(safe-area-inset-left,0px),4px);border-top:1px solid var(--line);background:#fff}
.mobile-nav a{min-width:0;min-height:51px;display:grid;place-content:center;place-items:center;gap:1px;color:#374f61;text-decoration:none;text-align:center;border-radius:8px;padding:3px 1px;font-size:clamp(10px,2.95vw,13px);line-height:1.2;font-weight:650;-webkit-tap-highlight-color:transparent}
.mobile-nav b{font-size:20px;line-height:1.15;font-weight:600}
.mobile-nav a[aria-current]{background:var(--active);color:#092d45}
.mobile-nav a:focus-visible{outline:2px solid #146183;outline-offset:-2px}
.mobile-rule #rule6-app{padding:5px max(5px,env(safe-area-inset-right,0px)) 10px max(5px,env(safe-area-inset-left,0px))}
.mobile-rule .r6a{border-radius:9px;overflow:hidden}
.mobile-rule .r6a :is(input:not([type=checkbox]),select){font-size:max(16px,1em)}
.mobile-rule .r6a-table :is(input,select){min-height:37px}
.mobile-rule .r6a-risk{min-height:40px}
.mobile-rule .r6a button{min-height:38px}

.mobile-nav[hidden], .mobile-access[hidden], .mobile-cabinet-link[hidden] { display: none; }
.mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mobile-nav a { overflow-wrap: anywhere; }
.mobile-currency { padding: clamp(8px, 2vw, 22px); }
.mobile-cabinet-link {
  margin-left: auto;
  padding: 8px;
  color: #fff;
  font-weight: 650;
  text-align: center;
}
.mobile-register-link { display: inline-block; margin-top: 16px; color: #145775; font-weight: 650; }
body:has(.mobile-access:not([hidden])) #mobile-pages { overflow: auto; }
.mobile-access {
  width: min(440px, calc(100% - 32px));
  margin: clamp(20px, 8vh, 60px) auto 24px;
  padding: clamp(18px, 5vw, 28px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mobile-access h2 { margin: 0 0 8px; font-size: 23px; }
.mobile-access p { margin: 0 0 16px; }
.mobile-access form { display: grid; gap: 12px; }
.mobile-access label { display: grid; gap: 6px; font-weight: 600; }
.mobile-access input, .mobile-access button {
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #8195a3;
  border-radius: 8px;
}
.mobile-access button { background: var(--nav); color: white; cursor: pointer; }
.mobile-access button:disabled { opacity: .7; cursor: wait; }
.mobile-access .mobile-access-error { margin: 0; color: #a12034; }
.mobile-access-error:empty { display: none; }
